Import
Initialization
contract_version: "shyshares-v1". Validates that governance and execution blocks are present and that transfer_layer: "shywire" is set in the governance block.
Organization
Membership
getMembershipSnapshot returns the effective voting weight for the commitment at the snapshot block used for the current active proposal (if any). Token transfers after the snapshot block do not affect weight for that proposal — see fixed governance snapshot.
Proposals
Create a proposal
Close a proposal
Weighted ballot
identity_hash = H("account:wallet:walletAddress"). Voting weight is read from the membership snapshot — the voter’s full token weight is applied without revealing the wallet address in List 1. The List 2 record contains only the commitment hash.
Action queue
Dispatch a queued action
dispatchAction triggers execution through the configured adapter. The canonical queue record is the authoritative governance result — external dispatch is not required to define it.
Governance snapshot
Claim 16 of the patent covers the three snapshot timing options:snapshotMode | When weight is fixed |
|---|---|
proposal_creation_time | At the block the proposal is created |
voting_start | At the submission-period opening block |
block_height | At an explicit block height referenced in the proposal record |