@broxus/js-bridge-essentials
Version: 
Bridge JavaScript Essentials library
421 lines (420 loc) • 13.7 kB
JavaScript
/**
 * @see [TvmEvmEventNative](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/MultiVaultEverscaleEVMEventNative.abi.json)
 */
export const TvmEvmEventNativeAbi = {
    'ABI version': 2,
    version: '2.3',
    header: ['pubkey', 'time', 'expire'],
    functions: [
        {
            name: 'constructor',
            inputs: [
                { name: '_initializer', type: 'address' },
                { name: '_meta', type: 'cell' },
            ],
            outputs: [],
        },
        {
            name: 'getUnmodifiedEventData',
            inputs: [{ name: 'answerId', type: 'uint32' }],
            outputs: [{ name: 'value0', type: 'cell' }],
        },
        {
            name: 'receiveTokenName',
            inputs: [{ name: 'name_', type: 'string' }],
            outputs: [],
        },
        {
            name: 'receiveTokenSymbol',
            inputs: [{ name: 'symbol_', type: 'string' }],
            outputs: [],
        },
        {
            name: 'receiveTokenDecimals',
            inputs: [{ name: 'decimals_', type: 'uint8' }],
            outputs: [],
        },
        {
            name: 'receiveProxyTokenWallet',
            inputs: [{ name: 'tokenWallet_', 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: 'uint160' },
                { name: 'chainId_', type: 'uint256' },
                {
                    components: [
                        { name: 'recipient', type: 'uint160' },
                        { name: 'payload', type: 'bytes' },
                        { name: 'strict', type: 'bool' },
                    ],
                    name: 'callback',
                    type: 'tuple',
                },
                { name: 'name_', type: 'string' },
                { name: 'symbol_', type: 'string' },
                { name: 'decimals_', type: 'uint8' },
            ],
        },
        {
            name: 'getEventInitData',
            inputs: [{ name: 'answerId', type: 'uint32' }],
            outputs: [
                {
                    components: [
                        {
                            components: [
                                { name: 'eventTransactionLt', type: 'uint64' },
                                { name: 'eventTimestamp', type: 'uint32' },
                                { name: 'eventData', type: 'cell' },
                            ],
                            name: 'voteData',
                            type: 'tuple',
                        },
                        { name: 'configuration', type: 'address' },
                        { name: 'staking', type: 'address' },
                    ],
                    name: 'value0',
                    type: 'tuple',
                },
            ],
        },
        {
            name: 'confirm',
            inputs: [
                { name: 'signature', type: 'bytes' },
                { 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' },
                                { 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: '_signatures', type: 'bytes[]' },
                { 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: 'signatures',
            inputs: [],
            outputs: [{ name: 'signatures', type: 'map(uint256,bytes)' }],
        },
        {
            name: 'nonce',
            inputs: [],
            outputs: [{ name: 'nonce', type: 'uint32' }],
        },
        {
            name: 'proxy',
            inputs: [],
            outputs: [{ name: 'proxy', type: 'address' }],
        },
        {
            name: 'tokenWallet',
            inputs: [],
            outputs: [{ name: 'tokenWallet', type: 'address' }],
        },
        {
            name: 'token',
            inputs: [],
            outputs: [{ name: 'token', 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: 'uint160' }],
        },
        {
            name: 'chainId',
            inputs: [],
            outputs: [{ name: 'chainId', type: 'uint256' }],
        },
        {
            name: 'sender',
            inputs: [],
            outputs: [{ name: 'sender', type: 'address' }],
        },
        {
            name: 'initial_balance',
            inputs: [],
            outputs: [{ name: 'initial_balance', type: 'uint128' }],
        },
        {
            name: 'callback_recipient',
            inputs: [],
            outputs: [{ name: 'callback_recipient', type: 'uint160' }],
        },
        {
            name: 'callback_payload',
            inputs: [],
            outputs: [{ name: 'callback_payload', type: 'bytes' }],
        },
        {
            name: 'callback_strict',
            inputs: [],
            outputs: [{ name: 'callback_strict', type: 'bool' }],
        },
        {
            name: 'name',
            inputs: [],
            outputs: [{ name: 'name', type: 'string' }],
        },
        {
            name: 'symbol',
            inputs: [],
            outputs: [{ name: 'symbol', type: 'string' }],
        },
        {
            name: 'decimals',
            inputs: [],
            outputs: [{ name: 'decimals', type: 'uint8' }],
        },
        {
            name: 'expectedTokenWallet',
            inputs: [],
            outputs: [{ name: 'expectedTokenWallet', type: 'address' }],
        },
        {
            name: 'unmodifiedEventData',
            inputs: [],
            outputs: [{ name: 'unmodifiedEventData', type: 'cell' }],
        },
    ],
    data: [
        {
            components: [
                {
                    components: [
                        { name: 'eventTransactionLt', type: 'uint64' },
                        { name: 'eventTimestamp', type: 'uint32' },
                        { 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' },
                { name: 'signature', type: 'bytes' },
            ],
            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' },
                        { name: 'eventData', type: 'cell' },
                    ],
                    name: 'voteData',
                    type: 'tuple',
                },
                { name: 'configuration', type: 'address' },
                { name: 'staking', type: 'address' },
            ],
            name: 'eventInitData',
            type: 'tuple',
        },
        { name: 'signatures', type: 'map(uint256,bytes)' },
        { name: 'nonce', type: 'uint32' },
        { name: 'proxy', type: 'address' },
        { name: 'tokenWallet', type: 'address' },
        { name: 'token', type: 'address' },
        { name: 'remainingGasTo', type: 'address' },
        { name: 'amount', type: 'uint128' },
        { name: 'recipient', type: 'uint160' },
        { name: 'chainId', type: 'uint256' },
        { name: 'sender', type: 'address' },
        { name: 'initial_balance', type: 'uint128' },
        { name: 'callback_recipient', type: 'uint160' },
        { name: 'callback_payload', type: 'bytes' },
        { name: 'callback_strict', type: 'bool' },
        { name: 'name', type: 'string' },
        { name: 'symbol', type: 'string' },
        { name: 'decimals', type: 'uint8' },
        { name: 'expectedTokenWallet', type: 'address' },
        { name: 'unmodifiedEventData', type: 'cell' },
    ],
};