UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

278 lines (277 loc) 9.33 kB
/** * @see [EvmTonBaseEvent](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/EthereumEverscaleBaseEvent.abi.json) */ export const EvmTonBaseEventAbi = { 'ABI version': 2, version: '2.3', header: ['pubkey', 'time', 'expire'], functions: [ { name: 'constructor', inputs: [ { name: '_initializer', type: 'address' }, { name: '_meta', type: 'cell' }, ], outputs: [], }, { name: 'getEventInitData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'confirm', inputs: [{ name: '_voteReceiver', type: 'address' }], outputs: [], }, { name: 'reject', inputs: [{ name: '_voteReceiver', type: 'address' }], outputs: [], }, { name: 'getDetails', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: '_eventInitData', type: 'tuple', }, { name: '_status', type: 'uint8' }, { name: '_confirms', type: 'uint256[]' }, { name: '_rejects', type: 'uint256[]' }, { name: 'empty', type: 'uint256[]' }, { name: 'balance', type: 'uint128' }, { name: '_initializer', type: 'address' }, { name: '_meta', type: 'cell' }, { name: '_requiredVotes', type: 'uint32' }, ], }, { name: 'status', inputs: [], outputs: [{ name: 'value0', type: 'uint8' }], }, { name: 'receiveRoundAddress', inputs: [ { name: '_roundContract', type: 'address' }, { name: '_roundNum', type: 'uint32' }, ], outputs: [], }, { name: 'receiveRoundRelays', inputs: [{ name: '_keys', type: 'uint256[]' }], outputs: [], }, { name: 'getVoters', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_vote', type: 'uint8' }, ], outputs: [{ name: 'voters', type: 'uint256[]' }], }, { name: 'getVote', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_voter', type: 'uint256' }, ], outputs: [{ name: 'vote', type: 'optional(uint8)' }], }, { name: 'getApiVersion', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint32' }], }, { name: 'votes', inputs: [], outputs: [{ name: 'votes', type: 'map(uint256,uint8)' }], }, { name: 'initializer', inputs: [], outputs: [{ name: 'initializer', type: 'address' }], }, { name: 'meta', inputs: [], outputs: [{ name: 'meta', type: 'cell' }], }, { name: 'requiredVotes', inputs: [], outputs: [{ name: 'requiredVotes', type: 'uint32' }], }, { name: 'confirms', inputs: [], outputs: [{ name: 'confirms', type: 'uint16' }], }, { name: 'rejects', inputs: [], outputs: [{ name: 'rejects', type: 'uint16' }], }, { name: 'relay_round', inputs: [], outputs: [{ name: 'relay_round', type: 'address' }], }, { name: 'round_number', inputs: [], outputs: [{ name: 'round_number', type: 'uint32' }], }, { name: 'nonce', inputs: [], outputs: [{ name: 'nonce', type: 'uint32' }], }, ], data: [ { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], key: 1, name: 'eventInitData', type: 'tuple', }, ], events: [ { name: 'Confirm', inputs: [{ name: 'relay', type: 'uint256' }], outputs: [], }, { name: 'Reject', inputs: [{ name: 'relay', type: 'uint256' }], outputs: [], }, { name: 'Closed', inputs: [], outputs: [], }, { name: 'Confirmed', inputs: [], outputs: [], }, { name: 'Rejected', inputs: [{ name: 'reason', type: 'uint32' }], outputs: [], }, { name: 'LimitReached', inputs: [{ name: 'approver', type: 'address' }], outputs: [], }, { name: 'LiquidityRequested', inputs: [{ name: 'bounty', type: 'uint128' }], outputs: [], }, { name: 'Cancelled', inputs: [], outputs: [], }, { name: 'LiquidityProvided', inputs: [{ name: 'tokenSender', type: 'address' }], outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256' }, { name: '_timestamp', type: 'uint64' }, { name: '_constructorFlag', type: 'bool' }, { name: '_status', type: 'uint8' }, { name: 'votes', type: 'map(uint256,uint8)' }, { name: 'initializer', type: 'address' }, { name: 'meta', type: 'cell' }, { name: 'requiredVotes', type: 'uint32' }, { name: 'confirms', type: 'uint16' }, { name: 'rejects', type: 'uint16' }, { name: 'relay_round', type: 'address' }, { name: 'round_number', type: 'uint32' }, { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: 'eventInitData', type: 'tuple', }, { name: 'nonce', type: 'uint32' }, ], };