buildExecutionMandateScript
@totemsdk/kissvm / buildExecutionMandateScript
Function: buildExecutionMandateScript()
buildExecutionMandateScript(
config):string
Build an execution-mandate script that enforces:
- Timelock: current block > votingEndsAt + executionDelay
- Outcome proof committed and verified on-chain
- Vote tally hash matches the committed outcome
- Membership snapshot hash matches the proposal
- Governance multisig threshold must authorize execution
- Single-use enforcement via INC nonce
Port layout: 0 — execution nonce (for single-use replay protection) 1 — outcomeProofId (committed hash bytes) 2 — voteTallyHash (committed hash bytes) 3 — membershipSnapshotHash (committed hash bytes) 4 — votingEndsAt (block, from proposal anchor) 5 — executionDelay (blocks, from proposal anchor)
Parameters
config
Returns
string