Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/app/params/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Package params defines the simulation parameters in the gaia.

It contains the default weights used for each transaction used on the module's
simulation. These weights define the chance for a transaction to be simulated at
any gived operation.
any given, gave operation.

You can repace the default values for the weights by providing a params.json
You can replace the default values for the weights by providing a params.json
file with the weights defined for each of the transaction operations:

{
Expand Down
2 changes: 1 addition & 1 deletion docs/band_price_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trading_pair: {
base_asset: String,
quote_asset: String,
} -> Consumer chain denom is base_asset, provider chain denom is quote_asset
client_id: String -> Arbitary string for your request
client_id: String -> Arbitrary string for your request
oracle_script_id: Uint64, -> The data source's id you choose
ask_count: Uint64, -> The number of validator you want to ask (Recommend: 4 on testnet)
min_count: Uint64, -> The minimum number of validator need to answer to aggregate result (Recommend: 3 on testnet)
Expand Down
10 changes: 5 additions & 5 deletions docs/v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ In order to let the contract know about the delegation of each user to each vali

On the next schedule task, if query **`AllDelegations`** returns empty, that mean all users's delegation has been unbond completely, virtual staking contract will send **`DeleteScheduledTasks`** to mesh security module and stop creating tasks.
#### Messages
- `AllDelegations` query msg has been established as folows:
- `AllDelegations` query msg has been established as follows:
AllDelegationsQuery:

| Parameters | Type |
Expand All @@ -121,7 +121,7 @@ Delegation:
|Validator | String |
|Amount | String |

- `UpdateDelegation` msg has been established as folows:
- `UpdateDelegation` msg has been established as follows:

| Parameters | Type |
|------------|--------|
Expand All @@ -134,10 +134,10 @@ Delegation:
- Handle on chain: [mesh-security-sdk#173](https://github.com/osmosis-labs/mesh-security-sdk/pull/173)
- Contract: [mesh-security#192](https://github.com/osmosis-labs/mesh-security/pull/192)
### [Auto unbond tombstoned validators](https://github.com/osmosis-labs/mesh-security/issues/154)
We had modifed [inactive list](https://github.com/osmosis-labs/mesh-security/blob/c170596e515dd9f2247a1de26097c10104b2e6a1/contracts/consumer/virtual-staking/src/contract.rs#L47) in virtual-staking to check if a validator is tombstoned or not. If validator is tombstoned, the `handle_epoch` function will query `TotalDelegation` from mesh scecurity module to get the amount should be unbond and unbond it automatically. As we save `tombstoned_unbond_enable` when instantiate contract, blockchain implementations may decide to unbond automatically when tombstoning.
We had modified [inactive list](https://github.com/osmosis-labs/mesh-security/blob/c170596e515dd9f2247a1de26097c10104b2e6a1/contracts/consumer/virtual-staking/src/contract.rs#L47) in virtual-staking to check if a validator is tombstoned or not. If validator is tombstoned, the `handle_epoch` function will query `TotalDelegation` from mesh scecurity module to get the amount should be unbond and unbond it automatically. As we save `tombstoned_unbond_enable` when instantiate contract, blockchain implementations may decide to unbond automatically when tombstoning.

#### Messages
- `TotalDelegation` query msg has been established as folows:
- `TotalDelegation` query msg has been established as follows:
TotalDelegationQuery:

| Parameters | Type |
Expand Down Expand Up @@ -260,7 +260,7 @@ QueryArithmeticTwapToNowResponse:

### [Band price feeder](https://github.com/osmosis-labs/mesh-security/pull/195)

The band price feeder is designed similar to osmosis price feeder, but secified to query price in Band oracle. The packet **`OracleRequestPacketData`** send to band chain is specified designed for oracle module. Its ack packet will not return price immediately, so we need to wait for receiving and updating price on **`OnReceiveIBCPacket`**. Also, port forwarding to the Band chain should be set to **`oracle`**, and the version should be **`bandchain-1`**.
The band price feeder is designed similar to osmosis price feeder, but specified to query price in Band oracle. The packet **`OracleRequestPacketData`** send to band chain is specified designed for oracle module. Its ack packet will not return price immediately, so we need to wait for receiving and updating price on **`OnReceiveIBCPacket`**. Also, port forwarding to the Band chain should be set to **`oracle`**, and the version should be **`bandchain-1`**.

#### Flow
```mermaid
Expand Down
2 changes: 1 addition & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scripts

These scripts are copied from the [Cosmos-SDK](https://github.com/cosmos/cosmos-sdk/tree/v0.42.1/scripts) respository
These scripts are copied from the [Cosmos-SDK](https://github.com/cosmos/cosmos-sdk/tree/v0.42.1/scripts) repository
with minor modifications. All credits and big thanks go to the original authors.

Please note that a custom [fork](github.com/regen-network/protobuf) by the Regen network team is used.
Expand Down
2 changes: 1 addition & 1 deletion x/meshsecurity/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
```

## Jailed to removed
3 differet events, unlikely at the same height
3 different events, unlikely at the same height
* jailed:
```json
{
Expand Down