Skip to content

Commit

Permalink
Add docs for handle_epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Oct 28, 2024
1 parent e7449af commit 80be86a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/band_price_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,13 @@ Create channel
```bash
rly tx channel {$PATH_NAME} --src-port wasm.$price_feed --dst-port oracle --order unordered --version bandchain-1 --home $relayer_home --override
```

## Register handle epoch for price feed contract

Currently, the price feed contract only allow to call handle epoch via SudoMsg. Therefore, we need to register price feed contract to the chain.

```bash
meshconsumerd tx meshsecurity submit-proposal set-price-feed $price_feed --title "Title" --summary "Summary" --from $addr --keyring-backend test --home=$home --node $node --chain-id $chainid -y --deposit 10000000stake
```

After submitting proposal, we vote for the proposal to pass. Meshsecurity module will automatically set the handle_epoch task for price feed contract.

0 comments on commit 80be86a

Please sign in to comment.