UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

789 lines (788 loc) 19.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VoteEscrowProposalAbi = void 0; exports.VoteEscrowProposalAbi = { 'ABI version': 2, header: ['time'], version: '2.2', data: [], events: [ { inputs: [ { name: 'voter', type: 'address', }, { name: 'support', type: 'bool', }, { name: 'votes', type: 'uint128', }, { name: 'reason', type: 'string', }, ], name: 'VoteCast', outputs: [], }, { inputs: [ { name: 'executionTime', type: 'uint32', }, ], name: 'Queued', outputs: [], }, { inputs: [], name: 'Executed', outputs: [], }, { inputs: [], name: 'Canceled', outputs: [], }, { inputs: [ { name: 'currentVersion', type: 'uint16', }, ], name: 'CodeUpgradeRequested', outputs: [], }, { inputs: [ { name: 'newVersion', type: 'uint16', }, ], name: 'ProposalCodeUpgraded', outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256', }, { name: '_timestamp', type: 'uint64', }, { name: '_constructorFlag', type: 'bool', }, { name: 'root', type: 'address', }, { name: 'platformCode', type: 'cell', }, { name: 'id', type: 'uint32', }, { name: 'voteEscrowRoot', type: 'address', }, { name: 'proposer', type: 'address', }, { name: 'description', type: 'string', }, { 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: 'proposalVersion', type: 'uint16', }, { 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: 'config', type: 'tuple', }, { name: 'startTime', type: 'uint32', }, { name: 'endTime', type: 'uint32', }, { name: 'executionTime', type: 'uint32', }, { name: 'canceled', type: 'bool', }, { name: 'executed', type: 'bool', }, { name: 'forVotes', type: 'uint128', }, { name: 'againstVotes', type: 'uint128', }, ], functions: [ { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getOverview', outputs: [ { name: 'proposer_', type: 'address', }, { name: 'description_', type: 'string', }, { name: 'startTime_', type: 'uint32', }, { name: 'endTime_', type: 'uint32', }, { name: 'executionTime_', type: 'uint32', }, { name: 'forVotes_', type: 'uint128', }, { name: 'againstVotes_', type: 'uint128', }, { name: 'quorumVotes_', type: 'uint128', }, { name: 'state_', type: 'uint8', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getProposer', outputs: [ { name: 'value0', type: 'address', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getActions', outputs: [ { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'value0', type: 'tuple[]', }, { components: [ { name: 'value', type: 'uint256', }, { name: 'chainId', type: 'uint32', }, { name: 'target', type: 'uint160', }, { name: 'signature', type: 'string', }, { name: 'callData', type: 'bytes', }, ], name: 'value1', type: 'tuple[]', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getConfig', 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: 'value0', type: 'tuple', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getTimings', outputs: [ { name: 'value0', type: 'uint32', }, { name: 'value1', type: 'uint32', }, { name: 'value2', type: 'uint32', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getVotes', outputs: [ { name: 'value0', type: 'uint128', }, { name: 'value1', type: 'uint128', }, { name: 'value2', type: 'uint128', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getStatuses', outputs: [ { name: 'value0', type: 'bool', }, { name: 'value1', type: 'bool', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getState', outputs: [ { name: 'value0', type: 'uint8', }, ], }, { inputs: [], name: 'queue', outputs: [], }, { inputs: [], name: 'execute', outputs: [], }, { inputs: [], name: 'cancel', outputs: [], }, { inputs: [ { name: 'value0', type: 'uint32', }, { name: 'voter', type: 'address', }, { name: 'votes', type: 'uint128', }, { name: 'support', type: 'bool', }, { name: 'reason', type: 'string', }, ], name: 'castVote', outputs: [], }, { inputs: [], name: 'onActionsExecuted', outputs: [], }, { inputs: [ { name: 'accountOwner', type: 'address', }, ], name: 'unlockCastedVote', outputs: [], }, { inputs: [ { name: 'accountOwner', type: 'address', }, ], name: 'unlockVoteTokens', outputs: [], }, { inputs: [ { name: 'sendGasTo', type: 'address', }, ], name: 'requestUpgrade', outputs: [], }, { inputs: [ { name: 'code', type: 'cell', }, { name: 'newVersion', type: 'uint16', }, { name: 'sendGasTo', type: 'address', }, ], name: 'upgrade', outputs: [], }, { inputs: [], name: 'constructor', outputs: [], }, { inputs: [], name: 'root', outputs: [ { name: 'root', type: 'address', }, ], }, { inputs: [], name: 'platformCode', outputs: [ { name: 'platformCode', type: 'cell', }, ], }, { inputs: [], name: 'id', outputs: [ { name: 'id', type: 'uint32', }, ], }, { inputs: [], name: 'voteEscrowRoot', outputs: [ { name: 'voteEscrowRoot', type: 'address', }, ], }, { inputs: [], name: 'proposer', outputs: [ { name: 'proposer', type: 'address', }, ], }, { inputs: [], name: 'description', outputs: [ { name: 'description', type: 'string', }, ], }, { inputs: [], name: 'tonActions', outputs: [ { components: [ { name: 'value', type: 'uint128', }, { name: 'target', type: 'address', }, { name: 'payload', type: 'cell', }, ], name: 'tonActions', type: 'tuple[]', }, ], }, { inputs: [], name: 'ethActions', outputs: [ { 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[]', }, ], }, { inputs: [], name: 'proposalVersion', outputs: [ { name: 'proposalVersion', type: 'uint16', }, ], }, { inputs: [], name: 'config', 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: 'config', type: 'tuple', }, ], }, { inputs: [], name: 'startTime', outputs: [ { name: 'startTime', type: 'uint32', }, ], }, { inputs: [], name: 'endTime', outputs: [ { name: 'endTime', type: 'uint32', }, ], }, { inputs: [], name: 'executionTime', outputs: [ { name: 'executionTime', type: 'uint32', }, ], }, { inputs: [], name: 'canceled', outputs: [ { name: 'canceled', type: 'bool', }, ], }, { inputs: [], name: 'executed', outputs: [ { name: 'executed', type: 'bool', }, ], }, { inputs: [], name: 'forVotes', outputs: [ { name: 'forVotes', type: 'uint128', }, ], }, { inputs: [], name: 'againstVotes', outputs: [ { name: 'againstVotes', type: 'uint128', }, ], }, ], };