Technical Guides for the Oversight Committee
Technical Guides for the Oversight Committee
The oversight committee has a few main tasks they have to interact with the Hydro contract for:
- Adding/Removing accounts from the whitelist or the ICQ managers
- Pausing the contract
- Updating the maximal number of tokens that can be locked in the contract
- Querying the top N proposals
For general information on how to interact with CosmWasm contracts, see the wasmd documentation.
Executing Transactions
To execute messages via DAODAO (which is how the committee will interact with the contract), you have to create an "Execute Smart Contract" proposal on the DAODAO interface. In the message, you need to fill in the correct message.
The messages can be seen in the Hydro contract in the ExecuteMsg enum.
For example, to pause the contract, the message looks like this:
{"pause": {}}
In the DAODAO interface, it looks like this:
Querying the contract
Querying the contract does not need to go through DAODAO, since every committee member can just query the contract directly and verify the results.
This is how you can query the top N proposals using the command line (make sure to put the right contract address and query parameters):
neutrond q wasm contract-state smart neutron192s005pfsx7j397l4jarhgu8gs2lcgwyuntehp6wundrh8pgkywqgss0tm "{\"top_n_proposals\": {\"round_id\": 0, \"tranche_id\": 1, \"number_of_proposals\": 5}}"
Revenue Sharing
Revenue sharing (i.e. distributing a portion of the profit made by a liquidity deployment to its voters) is enabled in Hydro by utilizing the tribute contract. While projects would add their tribute during a round, the revenue sharing is done after the round has ended, where the committee can simply add the appropriate revenue that should be shared with voters as a tribute.
Liquidity deployments
The committee must register performed liquidity deployments in the Hydro contract.