[PROTOCOL-OPS] - Monitoring/reporting of governance actions #1190
Labels
Project: PROTOCOL-EVMv1
Superfluid protocol EVM v1 implementation in Solidity
Tag: Idea
Raw idea, questions, thoughts and brainstorming notes
Milestone
Status quo
governance actions are triggered via GH actions or local invocation of protocol scripts.
Relevant GH workflows:
For a while we manually kept track of governance actions in a Wiki page, but that became infeasible (overhead) with the expansion from 2 to now 6 mainnets.
It's also an unreliabe and error-prone process.
What we want
We want a system which monitors governance actions and
How to do it
In order to be sufficiently reliable and trustworthy, the system should be sufficiently decoupled from the mechanisms used to trigger gov actions, such to not allow gov actions triggered in other way to slip through.
The best way to achieve that may be to observe on-chain events related to governance.
Currently this are:
SuperfluidGovernanceII contract:
Superfluid contract:
All contracts implementing
Proxiable
(ConstantFlowAgreementV1, InstantDistributionAgreementV1, SuperfluidGovernanceII, SuperToken, SuperTokenFactory, Superfluid(Note how some contract upgrades are covered by specific events emitted by the Superfluid contract, while some are not and could be detected only by listening for
CodeUpdated
events emitted be the upgraded contracts.)Governance actions are execute in the context of transactions from a multisig wallet to the governance contract.
In case of config changes, such a tx will typically contain 2 events:
ConfigChanged
and a config specific event (e.g.TrustedForwarderChanged
). This allows to construct a human readable report of what happened, e.g.In case of protocol upgrades, such a tx will contain several instances of
CodeUpdated
alongside related events emitted by the Superfluid contract.An auto-generated report could have this format:
Config Actions:
Upgrade Actions:
The reports can be generated by a backend periodically checking the state via subgraph, similar to how the solvency reports work.
New reports can be written to a local file + posted to the Discord channel
protocol-gov-actions
.The text was updated successfully, but these errors were encountered: