SlateRegistry_ExecuteResult
SlateRegistry_ExecuteResult is an integration mandate that triggers the execution of the winning slate once a SlateRegistry election has ended. It calls executeResults on the SlateRegistry, which tallies votes and requests execution of the winning slate’s actions.
Overview
Section titled “Overview”This is the final step in the SlateRegistry election lifecycle. Once voting has closed (the current block has passed endBlock), this mandate can be called to tally the results and execute the winning slate’s pre-configured actions.
Configuration
Section titled “Configuration”When adopting a SlateRegistry_ExecuteResult instance, the following parameter is required:
SlateRegistry(address): The address of the SlateRegistry helper contract.
Proposing an Action
Section titled “Proposing an Action”When calling the mandate, one parameter must be provided:
ElectionTitle(string): The title of the election to execute results for.
Execution Flow
Section titled “Execution Flow”-
Timing Check
- Computes the
electionIdaskeccak256(powers + ElectionTitle). - Retrieves the election’s
endBlockfrom the SlateRegistry. - Reverts with
"vote not yet closed"if the current block is at or beforeendBlock.
- Computes the
-
Execute Results
- Calls
SlateRegistry.executeResults(electionId). - The SlateRegistry tallies votes and calls
Powers.requestfor the winning slate’s mandate, triggering its execution.
- Calls
Error Conditions
Section titled “Error Conditions”"vote not yet closed"— The election’s end block has not yet been reached.
Current Deployments
Section titled “Current Deployments”| Chain ID | Chain Name | Address |
|---|---|---|