@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
427 lines (426 loc) • 15.5 kB
JavaScript
/**
* @see [TvmSolEventAlien](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/MultiVaultEverscaleSolanaEventAlien.abi.json)
*/
export const TvmSolEventAlienAbi = {
'ABI version': 2,
version: '2.3',
header: ['pubkey', 'time', 'expire'],
functions: [
{
name: 'constructor',
inputs: [
{ name: '_initializer', type: 'address' },
{ name: '_meta', type: 'cell' },
],
outputs: [],
},
{
name: 'receiveTokenMeta',
inputs: [
{ name: 'base_token_', type: 'uint256' },
{ name: 'name', type: 'string' },
{ name: 'symbol', type: 'string' },
{ name: 'decimals', type: 'uint8' },
],
outputs: [],
},
{
name: 'receiveAlienTokenRoot',
inputs: [{ name: 'token_', type: 'address' }],
outputs: [],
},
{
name: 'getDecodedData',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [
{ name: 'proxy_', type: 'address' },
{ name: 'tokenWallet_', type: 'address' },
{ name: 'token_', type: 'address' },
{ name: 'remainingGasTo_', type: 'address' },
{ name: 'amount_', type: 'uint128' },
{ name: 'recipient_', type: 'uint256' },
{ name: 'base_token_', type: 'uint256' },
{ name: 'solanaPayload_', type: 'bytes' },
],
},
{
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' }],
},
{
name: 'nonce',
inputs: [],
outputs: [{ name: 'nonce', type: 'uint32' }],
},
{
name: 'proxy',
inputs: [],
outputs: [{ name: 'proxy', type: 'address' }],
},
{
name: 'token',
inputs: [],
outputs: [{ name: 'token', type: 'address' }],
},
{
name: 'tokenWallet',
inputs: [],
outputs: [{ name: 'tokenWallet', type: 'address' }],
},
{
name: 'remainingGasTo',
inputs: [],
outputs: [{ name: 'remainingGasTo', type: 'address' }],
},
{
name: 'amount',
inputs: [],
outputs: [{ name: 'amount', type: 'uint128' }],
},
{
name: 'recipient',
inputs: [],
outputs: [{ name: 'recipient', type: 'uint256' }],
},
{
name: 'sender',
inputs: [],
outputs: [{ name: 'sender', type: 'address' }],
},
{
name: 'initial_balance',
inputs: [],
outputs: [{ name: 'initial_balance', type: 'uint128' }],
},
{
name: 'base_token',
inputs: [],
outputs: [{ name: 'base_token', type: 'uint256' }],
},
{
name: 'expectedToken',
inputs: [],
outputs: [{ name: 'expectedToken', type: 'address' }],
},
{
name: 'solanaPayload',
inputs: [],
outputs: [{ name: 'solanaPayload', type: 'bytes' }],
},
],
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: '_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',
},
{ name: 'nonce', type: 'uint32' },
{ name: 'proxy', type: 'address' },
{ name: 'token', type: 'address' },
{ name: 'tokenWallet', type: 'address' },
{ name: 'remainingGasTo', type: 'address' },
{ name: 'amount', type: 'uint128' },
{ name: 'recipient', type: 'uint256' },
{ name: 'sender', type: 'address' },
{ name: 'initial_balance', type: 'uint128' },
{ name: 'base_token', type: 'uint256' },
{ name: 'expectedToken', type: 'address' },
{ name: 'solanaPayload', type: 'bytes' },
],
};