From 80be86a6afc4b1211f7e92006d3df7a2f7b89e31 Mon Sep 17 00:00:00 2001 From: Trinity Date: Mon, 28 Oct 2024 21:44:39 +0700 Subject: [PATCH] Add docs for handle_epoch --- docs/band_price_source.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/band_price_source.md b/docs/band_price_source.md index b9fb3081..3bfe747d 100644 --- a/docs/band_price_source.md +++ b/docs/band_price_source.md @@ -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. \ No newline at end of file