UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

245 lines (244 loc) 8.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NativeProxyV6Abi = void 0; /** * @see [ProxyMultiVaultNative_V6](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/ProxyMultiVaultNative_V6.abi.json) */ exports.NativeProxyV6Abi = { 'ABI version': 2, version: '2.3', header: ['time'], functions: [ { name: 'constructor', inputs: [{ name: 'owner_', type: 'address' }], outputs: [], }, { name: 'upgrade', inputs: [{ name: 'code', type: 'cell' }], outputs: [], }, { name: 'onEventConfirmedExtended', inputs: [ { 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: 'staking', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: 'eventInitData', type: 'tuple', }, { name: 'meta', type: 'cell' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'onSolanaEventConfirmedExtended', inputs: [ { components: [ { components: [ { name: 'accountSeed', type: 'uint128' }, { name: 'slot', type: 'uint64' }, { name: 'blockTime', type: 'uint64' }, { name: 'txSignature', type: 'string' }, { name: 'eventData', type: 'cell' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'staking', type: 'address' }, ], name: 'eventInitData', type: 'tuple', }, { name: 'meta', type: 'cell' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'onAcceptTokensTransfer', inputs: [ { name: 'tokenRoot', type: 'address' }, { name: 'amount', type: 'uint128' }, { name: 'sender', type: 'address' }, { name: 'value3', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'apiVersion', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint8' }], }, { name: 'setDexMiddleware', inputs: [{ name: '_dex_middleware', type: 'address' }], outputs: [], }, { name: 'getConfiguration', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'everscaleConfiguration', type: 'address' }, { name: 'evmConfigurations', type: 'address[]' }, ], name: 'value0', type: 'tuple', }, { components: [ { name: 'everscaleConfiguration', type: 'address' }, { name: 'solanaConfiguration', type: 'address' }, ], name: 'value1', type: 'tuple', }, ], }, { name: 'setEVMConfiguration', inputs: [ { components: [ { name: 'everscaleConfiguration', type: 'address' }, { name: 'evmConfigurations', type: 'address[]' }, ], name: '_config', type: 'tuple', }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setSolanaConfiguration', inputs: [ { components: [ { name: 'everscaleConfiguration', type: 'address' }, { name: 'solanaConfiguration', type: 'address' }, ], name: '_config', type: 'tuple', }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'transferOwnership', inputs: [{ name: 'newOwner', type: 'address' }], outputs: [], }, { name: 'renounceOwnership', inputs: [], outputs: [], }, { name: 'owner', inputs: [], outputs: [{ name: 'owner', type: 'address' }], }, { name: 'dex_middleware', inputs: [], outputs: [{ name: 'dex_middleware', type: 'address' }], }, { name: '_randomNonce', inputs: [], outputs: [{ name: '_randomNonce', type: 'uint256' }], }, ], data: [{ key: 1, name: '_randomNonce', type: 'uint256' }], events: [ { name: 'OwnershipTransferred', inputs: [ { name: 'previousOwner', type: 'address' }, { name: 'newOwner', type: 'address' }, ], outputs: [], }, { name: 'SolanaNativeTransfer', inputs: [ { name: 'base_token', type: 'uint256' }, { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' }, { name: 'decimals', type: 'uint8' }, { name: 'amount', type: 'uint128' }, { name: 'sol_amount', type: 'uint64' }, { name: 'recipient', type: 'address' }, { name: 'payload', type: 'bytes' }, ], outputs: [], }, { name: 'EVMNativeTransfer', inputs: [ { name: 'token_wid', type: 'int8' }, { name: 'token_addr', type: 'uint256' }, { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' }, { name: 'decimals', type: 'uint8' }, { name: 'amount', type: 'uint128' }, { name: 'recipient', type: 'uint160' }, { name: 'chainId', type: 'uint256' }, { name: 'callback_recipient', type: 'uint160' }, { name: 'callback_payload', type: 'bytes' }, { name: 'callback_strict', type: 'bool' }, ], outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256' }, { name: '_timestamp', type: 'uint64' }, { name: '_constructorFlag', type: 'bool' }, { name: 'owner', type: 'address' }, { components: [ { name: 'everscaleConfiguration', type: 'address' }, { name: 'evmConfigurations', type: 'address[]' }, ], name: 'evmConfiguration', type: 'tuple', }, { components: [ { name: 'everscaleConfiguration', type: 'address' }, { name: 'solanaConfiguration', type: 'address' }, ], name: 'solanaConfiguration', type: 'tuple', }, { name: 'api_version', type: 'uint8' }, { name: 'dex_middleware', type: 'address' }, { name: '_randomNonce', type: 'uint256' }, ], };