UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

1,244 lines (1,243 loc) 34.3 kB
/** * **VoteEscrowDaoRoot ABI v2.2** * * This ABI is used for interacting with the `VoteEscrowDaoRoot` contract on the TVM blockchain. * @see [VoteEscrowDaoRoot](https://github.com/broxus/flatqube-dao-contracts/blob/master/build/DaoRoot.abi.json) */ export const VoteEscrowDaoRootAbi = { 'ABI version': 2, data: [ { key: 1, name: '_nonce', type: 'uint32', }, ], events: [ { inputs: [ { name: 'gasBackWid', type: 'int8', }, { name: 'gasBackAddress', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'actions', type: 'tuple[]', }, ], name: 'EthActions', outputs: [], }, { inputs: [ { name: 'proposalId', type: 'uint32', }, { name: 'proposer', type: 'address', }, { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'tonActions', type: 'tuple[]', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'ethActions', type: 'tuple[]', }, { name: 'description', type: 'string', }, ], name: 'ProposalCreated', outputs: [], }, { inputs: [ { name: 'oldRoot', type: 'address', }, { name: 'newRoot', type: 'address', }, ], name: 'VoteEscrowRootUpdated', outputs: [], }, { inputs: [ { name: 'oldAdmin', type: 'address', }, { name: 'newAdmin', type: 'address', }, ], name: 'RequestedAdminTransfer', outputs: [], }, { inputs: [ { name: 'oldAdmin', type: 'address', }, { name: 'newAdmin', type: 'address', }, ], name: 'AdminTransferAccepted', outputs: [], }, { inputs: [ { name: 'oldConfiguration', type: 'address', }, { name: 'newConfiguration', type: 'address', }, { name: 'oldDeployEventValue', type: 'uint128', }, { name: 'newDeployEventValue', type: 'uint128', }, ], name: 'EthereumActionEventConfigurationUpdated', outputs: [], }, { inputs: [ { name: 'newVersion', type: 'uint16', }, ], name: 'ProposalCodeUpgraded', outputs: [], }, { inputs: [ { components: [ { name: 'votingDelay', type: 'uint32', }, { name: 'votingPeriod', type: 'uint32', }, { name: 'quorumVotes', type: 'uint128', }, { name: 'timeLock', type: 'uint32', }, { name: 'threshold', type: 'uint128', }, { name: 'gracePeriod', type: 'uint32', }, ], name: 'oldConfig', type: 'tuple', }, { components: [ { name: 'votingDelay', type: 'uint32', }, { name: 'votingPeriod', type: 'uint32', }, { name: 'quorumVotes', type: 'uint128', }, { name: 'timeLock', type: 'uint32', }, { name: 'threshold', type: 'uint128', }, { name: 'gracePeriod', type: 'uint32', }, ], name: 'newConfig', type: 'tuple', }, ], name: 'ProposalConfigurationUpdated', outputs: [], }, { inputs: [ { name: 'oldVotingDelay', type: 'uint32', }, { name: 'newVotingDelay', type: 'uint32', }, ], name: 'ProposalVotingDelayUpdated', outputs: [], }, { inputs: [ { name: 'oldGracePeriod', type: 'uint32', }, { name: 'newGracePeriod', type: 'uint32', }, ], name: 'ProposalGracePeriodUpdated', outputs: [], }, { inputs: [ { name: 'oldVotingPeriod', type: 'uint32', }, { name: 'newVotingPeriod', type: 'uint32', }, ], name: 'ProposalVotingPeriodUpdated', outputs: [], }, { inputs: [ { name: 'oldThreshold', type: 'uint128', }, { name: 'newThreshold', type: 'uint128', }, ], name: 'ProposalThresholdUpdated', outputs: [], }, { inputs: [ { name: 'oldQuorumVotes', type: 'uint128', }, { name: 'newQuorumVotes', type: 'uint128', }, ], name: 'ProposalQuorumVotesUpdated', outputs: [], }, { inputs: [ { name: 'oldTimeLock', type: 'uint32', }, { name: 'newTimeLock', type: 'uint32', }, ], name: 'ProposalTimeLockUpdated', outputs: [], }, { inputs: [ { name: 'proposalId', type: 'uint32', }, { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'tonActions', type: 'tuple[]', }, ], name: 'ExecutingTonActions', outputs: [], }, { inputs: [], name: 'RootCodeUpgraded', outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256', }, { name: '_timestamp', type: 'uint64', }, { name: '_constructorFlag', type: 'bool', }, { name: 'delegators', type: 'map(address,uint256[])', }, { name: '_nonce', type: 'uint32', }, { name: 'voteEscrowRoot', type: 'address', }, { name: 'ethereumActionEventConfiguration', type: 'address', }, { name: 'deployEventValue', type: 'uint128', }, { name: 'proposalCount', type: 'uint32', }, { components: [ { name: 'votingDelay', type: 'uint32', }, { name: 'votingPeriod', type: 'uint32', }, { name: 'quorumVotes', type: 'uint128', }, { name: 'timeLock', type: 'uint32', }, { name: 'threshold', type: 'uint128', }, { name: 'gracePeriod', type: 'uint32', }, ], name: 'proposalConfiguration', type: 'tuple', }, { name: 'proposalCode', type: 'cell', }, { name: 'platformCode', type: 'cell', }, { name: 'proposalVersion', type: 'uint16', }, { name: 'admin', type: 'address', }, { name: 'pendingAdmin', type: 'address', }, ], functions: [ { inputs: [ { name: 'platformCode_', type: 'cell', }, { components: [ { name: 'votingDelay', type: 'uint32', }, { name: 'votingPeriod', type: 'uint32', }, { name: 'quorumVotes', type: 'uint128', }, { name: 'timeLock', type: 'uint32', }, { name: 'threshold', type: 'uint128', }, { name: 'gracePeriod', type: 'uint32', }, ], name: 'proposalConfiguration_', type: 'tuple', }, { name: 'admin_', type: 'address', }, ], name: 'constructor', outputs: [], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getAdmin', outputs: [ { name: 'value0', type: 'address', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getPendingAdmin', outputs: [ { name: 'value0', type: 'address', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getProposalCount', outputs: [ { name: 'value0', type: 'uint32', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getVoteEscrowRoot', outputs: [ { name: 'value0', type: 'address', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getEthereumActionEventConfiguration', outputs: [ { name: 'value0', type: 'address', }, { name: 'value1', type: 'uint128', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, { name: 'proposalId', type: 'uint32', }, ], name: 'expectedProposalAddress', outputs: [ { name: 'value0', type: 'address', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, { name: 'accountOwner', type: 'address', }, ], name: 'expectedVoteEscrowAccountAddress', outputs: [ { name: 'value0', type: 'address', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'tonActions', type: 'tuple[]', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'ethActions', type: 'tuple[]', }, { name: 'description', type: 'string', }, ], name: 'propose', outputs: [], }, { inputs: [ { name: 'nonce', type: 'uint32', }, { name: 'accountOwner', type: 'address', }, { name: 'proposalData', type: 'cell', }, ], name: 'deployProposal', outputs: [], }, { inputs: [ { name: 'proposalId', type: 'uint32', }, { name: 'proposer', type: 'address', }, { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'tonActions', type: 'tuple[]', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'ethActions', type: 'tuple[]', }, ], name: 'onProposalSucceeded', outputs: [], }, { inputs: [ { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'actions', type: 'tuple[]', }, ], name: 'calcTonActionsValue', outputs: [ { name: 'totalValue', type: 'uint128', }, ], }, { inputs: [ { components: [ { name: 'value', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'actions', type: 'tuple[]', }, ], name: 'calcEthActionsValue', outputs: [ { name: 'totalValue', type: 'uint128', }, ], }, { inputs: [ { name: 'currentVersion', type: 'uint16', }, { name: 'sendGasTo', type: 'address', }, { name: 'proposalId', type: 'uint32', }, ], name: 'requestUpgradeProposal', outputs: [], }, { inputs: [ { name: 'newVoteEscrowRoot', type: 'address', }, ], name: 'setVoteEscrowRoot', outputs: [], }, { inputs: [ { name: 'newAdmin', type: 'address', }, ], name: 'transferAdmin', outputs: [], }, { inputs: [], name: 'acceptAdmin', outputs: [], }, { inputs: [ { name: 'newConfiguration', type: 'address', }, { name: 'newDeployEventValue', type: 'uint128', }, ], name: 'updateEthereumActionEventConfiguration', outputs: [], }, { inputs: [ { name: 'code', type: 'cell', }, ], name: 'updateProposalCode', outputs: [], }, { inputs: [ { name: 'newQuorumVotes', type: 'uint128', }, ], name: 'updateQuorumVotes', outputs: [], }, { inputs: [ { name: 'newThreshold', type: 'uint128', }, ], name: 'updateThreshold', outputs: [], }, { inputs: [ { name: 'newTimeLock', type: 'uint32', }, ], name: 'updateTimeLock', outputs: [], }, { inputs: [ { name: 'newVotingPeriod', type: 'uint32', }, ], name: 'updateVotingPeriod', outputs: [], }, { inputs: [ { name: 'newVotingDelay', type: 'uint32', }, ], name: 'updateVotingDelay', outputs: [], }, { inputs: [ { name: 'newGracePeriod', type: 'uint32', }, ], name: 'updateGracePeriod', outputs: [], }, { inputs: [ { components: [ { name: 'votingDelay', type: 'uint32', }, { name: 'votingPeriod', type: 'uint32', }, { name: 'quorumVotes', type: 'uint128', }, { name: 'timeLock', type: 'uint32', }, { name: 'threshold', type: 'uint128', }, { name: 'gracePeriod', type: 'uint32', }, ], name: 'newConfig', type: 'tuple', }, ], name: 'updateProposalConfiguration', outputs: [], }, { inputs: [ { name: 'addr', type: 'address', }, { name: 'callHash', type: 'uint256', }, ], name: 'addDelegate', outputs: [], }, { inputs: [ { name: 'code', type: 'cell', }, ], name: 'upgrade', outputs: [], }, { inputs: [ { name: 'gasBackWid', type: 'int8', }, { name: 'gasBackAddress', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'actions', type: 'tuple[]', }, ], name: 'encodeDaoEthereumActionData', outputs: [ { name: 'data', type: 'cell', }, ], }, { inputs: [ { name: 'data', type: 'cell', }, ], name: 'decodeDaoEthereumActionData', outputs: [ { name: 'gasBackWid', type: 'int8', }, { name: 'gasBackAddress', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'actions', type: 'tuple[]', }, ], }, { inputs: [], name: 'delegators', outputs: [ { name: 'delegators', type: 'map(address,uint256[])', }, ], }, { inputs: [], name: 'voteEscrowRoot', outputs: [ { name: 'voteEscrowRoot', type: 'address', }, ], }, { inputs: [], name: 'ethereumActionEventConfiguration', outputs: [ { name: 'ethereumActionEventConfiguration', type: 'address', }, ], }, { inputs: [], name: 'deployEventValue', outputs: [ { name: 'deployEventValue', type: 'uint128', }, ], }, { inputs: [], name: 'proposalCount', outputs: [ { name: 'proposalCount', type: 'uint32', }, ], }, { inputs: [], name: 'proposalConfiguration', outputs: [ { components: [ { name: 'votingDelay', type: 'uint32', }, { name: 'votingPeriod', type: 'uint32', }, { name: 'quorumVotes', type: 'uint128', }, { name: 'timeLock', type: 'uint32', }, { name: 'threshold', type: 'uint128', }, { name: 'gracePeriod', type: 'uint32', }, ], name: 'proposalConfiguration', type: 'tuple', }, ], }, { inputs: [], name: 'proposalCode', outputs: [ { name: 'proposalCode', type: 'cell', }, ], }, { inputs: [], name: 'platformCode', outputs: [ { name: 'platformCode', type: 'cell', }, ], }, { inputs: [], name: 'proposalVersion', outputs: [ { name: 'proposalVersion', type: 'uint16', }, ], }, { inputs: [], name: 'admin', outputs: [ { name: 'admin', type: 'address', }, ], }, { inputs: [], name: 'pendingAdmin', outputs: [ { name: 'pendingAdmin', type: 'address', }, ], }, ], header: ['time'], version: '2.2', };