DAORoot
propose
propose
Creates new DAO proposal.
Parameters:
answerId
uint32
tonActions
TonAction[]
List of everscale actions
ethActions
EthAction[]
List of ethereum actions
description
string
Description of the proposal
deployProposal
deployProposal
Deploys Proposal contract (creates a new instance of Platform contract).
nonce
uint32
accountOwner
address
The address of owner of the account
proposalData
TvmCell
Information about the proposal, including answer id, description, list of TON and EVM actions
Events emitted:
ProposalCreated
onProposalSucceeded
onProposalSucceeded
Callback method after successful proposal.
Parameters:
proposalId
uint32
The id of the proposal
proposer
address
Address of the proposal creator
tonActions
TonAction[]
List of everscale actions
ethActions
EthAction[]
List of ethereum actions
Events emitted:
ExecutingTonActions
executeTonAction
executeTonAction
Does the transfer based on the action payload.
Parameters:
action
TonAction
The everscale action to be executed
executeEthActions
executeEthActions
Based on the list of actions fills necessary data, adds actions to the chain of actions, encodes them to the event data and deploys events.
Parameters:
proposer
address
Address of the proposal creator
actions
EthAction[]
The ethereum action to be executed
calcTonActionsValue
calcTonActionsValue
Calculates total value of actions on Everscale.
Parameters:
actions
TonAction[]
The list of actions to be calculated
Return values:
totalValue
uint128
Total value of the actions list
calcEthActionsValue
calcEthActionsValue
Calculates total value of actions on Ethereum.
Parameters:
actions
EthAction[]
The list of actions to be calculated
Return values:
totalValue
uint128
Total value of the actions list
_buildProposalInitialData Builds initial data for Proposal
function _buildProposalInitialData(uint32 proposalId) private inline pure returns (TvmCell)
Parameters:
proposalId
uint32
The id of the proposal
Return values:
TvmCell
Proposal initial data in cell format
_buildStakingAccountInitialData
_buildStakingAccountInitialData
Builds initial data for Staking account
Parameters:
accountOwner
address
The address of the staking account owner
Return values:
TvmCell
Staking account initial data in cell format
_buildInitData
_buildInitData
Builds initial data for specified Platform type.
Parameters:
platformType
PlatformType
Type of the platform
initialData
TvmCell
The proposal initial data in cell format
Return values:
TvmCell
Initial data represented in cell format
Type of the platform
requestUpgradeProposal
requestUpgradeProposal
Creates request for upgrading proposal for different version.
Parameters:
currentVersion
uint16
Current version of proposal
sendGasTo
address
Address where to send spent gas
proposalId
uint32
The id of the proposal
setStakingRoot
setStakingRoot
Sets staking root address from params and transfers remaining gas to admin
Parameters:
newStakingRoot
address
The address of the new staking root
Events emitted:
StakingRootUpdated
transferAdmin
transferAdmin
Transfers admin role to other address.
Parameters:
newAdmin
address
The address of the new admin
Events emitted:
AdminTransferAccepted
Last updated