Proposal
queue
queue
Happening after proposal execution
Events emitted:
Queued
execute
execute
Proposal execution.
Events emitted:
Executed
cancel
cancel
Proposal cancel.
Events emitted:
Canceled
castVote
castVote
Processing voter's vote is it for or against proposal.
Parameters:
Name | Type | Description |
---|---|---|
uint32 | The id of the proposal | |
voter | address | The address of the voter |
votes | uint128 | Number of votes given for proposal |
support | bool | True if voting in favor, false if against |
reason | string | Reason of the decided vote |
Events emitted:
VoteCast
onActionsExecuted
onActionsExecuted
Callback for executed actions.
state
state
Gets the state of the proposal based on the specified conditions.
Return values:
Type | Description |
---|---|
ProposalState | Current proposal state |
unlockCastedVote
unlockCastedVote
Unlocks casted vote only if proposal state is not active.
Parameters:
Name | Type | Description |
---|---|---|
accountOwner | address | The address of the account owner |
unlockVoteTokens
unlockVoteTokens
Unlocks vote tokens based on the proposal state.
Parameters:
Name | Type | Description |
---|---|---|
accountOwner | address | The address of the account owner |
_buildAccountInitialData
_buildAccountInitialData
Builds initial data for account.
Parameters:
Name | Type | Description |
---|---|---|
accountOwner | address | The address of the account owner |
Return values:
Type | Description |
---|---|
TvmCell | Account initial data in cell format |
_buildStakingInitData
_buildStakingInitData
Builds initial data for staking.
Parameters:
Name | Type | Description |
---|---|---|
platformType | uint8 | The type of the platform |
initialData | TvmCell | Initial data represented in cell format |
Return values:
Type | Description |
---|---|
TvmCell | Staking initial data in cell format |
requestUpgrade
requestUpgrade
Creates request for upgrading proposal for different version
Parameters:
Name | Type | Description |
---|---|---|
sendGasTo | address | Address where to send spent gas |
Events emitted:
CodeUpgradeRequested
upgrade
upgrade
Upgrades code to the new version
Parameters:
Name | Type | Description |
---|---|---|
code | TvmCell | Code to be set for upgraded version |
newVersion | uint16 | New version of the code |
sendGasTo | address | Address where to send spent gas |
Events emitted:
ProposalCodeUpgraded
Last updated