The ID of the proposal to vote on. This is an auto-incrementing integer in the Governor Alpha contract.
A boolean of true for 'yes' or false for 'no' on the proposal vote.
Returns an Ethers.js transaction object of the vote transaction.
Submit a vote on a Venus Governance proposal using an EIP-712 signature.
The ID of the proposal to vote on. This is an auto-incrementing integer in the Governor Alpha contract.
A boolean of true for 'yes' or false for 'no' on the proposal vote.
An object that contains the v, r, and, s values of an EIP-712 signature.
Returns an Ethers.js transaction object of the vote transaction.
Create a vote signature for a Venus Governance proposal using EIP-712.
This can be used to create an 'empty ballot' without burning gas. The
signature can then be sent to someone else to post to the blockchain.
The recipient can post one signature using the castVoteBySig method.
The ID of the proposal to vote on. This is an auto-incrementing integer in the Governor Alpha contract.
A boolean of true for 'yes' or false for 'no' on the
proposal vote. To create an 'empty ballot' call this method twice using
true and then false for this parameter.
Returns an object that contains the v, r, and s
components of an Ethereum signature as hexadecimal strings.
Submit a vote on a Venus Governance proposal.
const venus = new Venus(window.ethereum); (async function() { const castVoteTx = await venus.castVote(12, true); console.log('Ethers.js transaction object', castVoteTx); })().catch(console.error);