UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

327 lines (326 loc) 12.2 kB
/** * @see [TvmSolBaseEvent](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/EverscaleSolanaBaseEvent.abi.json) */ export const TvmSolBaseEventAbi = { '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: 'eventTransactionLt', type: 'uint64' }, { name: 'eventTimestamp', type: 'uint32' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executeAccounts', type: 'tuple[]', }, { name: 'executePayloadNeeded', type: 'bool' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executePayloadAccounts', type: 'tuple[]', }, { name: 'eventData', type: 'cell' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'staking', type: 'address' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'confirm', inputs: [{ name: 'voteReceiver', type: 'address' }], outputs: [], }, { name: 'reject', inputs: [{ name: 'voteReceiver', type: 'address' }], outputs: [], }, { name: 'close', inputs: [], outputs: [], }, { name: 'getDetails', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64' }, { name: 'eventTimestamp', type: 'uint32' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executeAccounts', type: 'tuple[]', }, { name: 'executePayloadNeeded', type: 'bool' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executePayloadAccounts', type: 'tuple[]', }, { name: 'eventData', type: 'cell' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'staking', type: 'address' }, ], 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: 'createdAt', inputs: [], outputs: [{ name: 'createdAt', type: 'uint32' }], }, ], data: [ { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64' }, { name: 'eventTimestamp', type: 'uint32' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executeAccounts', type: 'tuple[]', }, { name: 'executePayloadNeeded', type: 'bool' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executePayloadAccounts', type: 'tuple[]', }, { name: 'eventData', type: 'cell' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'staking', type: 'address' }, ], 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: [], }, ], 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' }, { name: 'createdAt', type: 'uint32' }, { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64' }, { name: 'eventTimestamp', type: 'uint32' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executeAccounts', type: 'tuple[]', }, { name: 'executePayloadNeeded', type: 'bool' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: 'executePayloadAccounts', type: 'tuple[]', }, { name: 'eventData', type: 'cell' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'staking', type: 'address' }, ], name: 'eventInitData', type: 'tuple', }, ], };