web3wagmi
← All standards

ERC-1202 Voting Interface

ReviewERCcreated 2018-07-08requires ERC-5269

A general interface for voting on-chain

Authors: Zainan Victor Zhou (@xinbenlv), ERC-1202 Working Group

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IERC1202Core0x9bf5c246
IERC1202MultiVote0xde20f8c3
IERC1202Info0xe9ead4cd

Functions this standard introduces (6)

0xde20f8c3castMultiVote(uint256,uint8[],uint256[],string,bytes)payable
0x2b7ad4a8castVote(uint256,uint8,uint256,string,bytes)payable
0xe960ddfbcastVoteFrom(address,uint256,uint8,uint256,string,bytes)payable
0x01703246eligibleVotingWeight(uint256,address)view
0x59efcb15execute(uint256,bytes)payable
0xe89ae68bvotingPeriodFor(uint256)view

Events (2)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x67abc2129973ac27817ec861c0eb56cbd003c58a1aadcf58165a43895b41593eVoteCast(address,uint256,uint8,uint256,string,bytes)
0x0233feb91af0e47bf0890fad15df045a35c12783e9bb8258bf5733524424301fMultiVoteCast(address,uint256,uint8[],uint256[],string,bytes)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion