postSnap(contract, sender, proposalID, currency)
Feature
Return raw operation to check voting power of the account that participated in the voting. The smaller value compared to the voting power calculated by 'postSnap' will be recognized as voting power. Can use it only within the ‘PostSnapshotPeriod’, anyone can execute. Notes: If turnout and quorum are not satisfied, the proposal is rejected. Must execute only once.
Parameters
string contract address,
string sender,
string proposal ID,
string currency ID
Return Value
object post snap operation
example
const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const sender = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";
const proposalID = "test_proposal";
const currencyID = "MCC";
const snapOperation = mitum.dao.postSnap(contractAddress, sender, proposalID, currencyID);
console.log(snapOperation)
// output
Operation {
id: 'mitum',
fact: PostSnapFact {
hint: Hint { s: 'mitum-dao-post-snap-operation-fact' },
token: Token { s: '2023-10-18 06:04:04.861 +0000 UTC' },
_hash: <Buffer >,
sender: Address {
s: '0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca',
type: 'mitum'
},
contract: Address {
s: '0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca',
type: 'mitum'
},
currency: CurrencyID { s: 'MCC' },
proposalID: 'test_proposal'
},
hint: Hint { s: 'mitum-dao-post-snap-operation' },
_factSigns: [],
_hash: <Buffer >
}Previousvote(contract, sender, proposalID, voteOption, currency)Nextexecute(contract, sender, proposalID, currency)
Last updated