UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

632 lines (631 loc) 22.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NativeProxyV8Abi = void 0; /** * @see [ProxyMultiVaultNative_V8](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/ProxyMultiVaultNative_V8.abi.json) */ exports.NativeProxyV8Abi = { '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: 'onTVMEventConfirmedExtended', inputs: [ { components: [ { name: 'msgHash', type: 'uint256' }, { name: 'configuration', type: 'address' }, { name: 'chainId', type: 'int32' }, ], name: 'eventInitData', type: 'tuple', }, { name: 'meta', type: 'cell' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'receiveEventContractAddress', inputs: [ { name: 'eventContract', type: 'address' }, { name: 'callId', type: 'uint32' }, ], 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: 'onEVMEventCancelled', 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: '_withdrawPayload', type: 'cell' }, ], outputs: [], }, { name: 'onTVMEventCancelled', inputs: [ { components: [ { name: 'msgHash', type: 'uint256' }, { name: 'configuration', type: 'address' }, { name: 'chainId', type: 'int32' }, ], name: 'value0', type: 'tuple', }, { name: 'withdrawPayload', type: 'cell' }, ], outputs: [], }, { name: 'getTvmDefaultFee', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { name: 'incomingNumerator', type: 'uint32' }, { name: 'outgoingNumerator', type: 'uint32' }, { name: 'denominator', type: 'uint32' }, ], }, { name: 'getPlatformCode', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'cell' }], }, { name: 'getTokenFeeCode', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'cell' }], }, { name: 'getTvmFees', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'incoming', type: 'uint32' }, { name: 'outgoing', type: 'uint32' }, ], name: 'value0', type: 'map(address,tuple)', }, ], }, { name: 'getTvmTokenFee', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_token', type: 'address' }, ], outputs: [ { name: 'incomingNumerator', type: 'uint32' }, { name: 'outgoingNumerator', type: 'uint32' }, { name: 'denominator', type: 'uint32' }, ], }, { name: 'setTvmDefaultFeeNumerator', inputs: [ { name: '_incoming', type: 'uint32' }, { name: '_outgoing', type: 'uint32' }, ], outputs: [], }, { name: 'setPlatformCode', inputs: [{ name: '_code', type: 'cell' }], outputs: [], }, { name: 'setTokenFeeCode', inputs: [{ name: '_code', type: 'cell' }], outputs: [], }, { name: 'setTvmTokenFee', inputs: [ { name: '_token', type: 'address' }, { name: '_incoming', type: 'uint32' }, { name: '_outgoing', type: 'uint32' }, ], outputs: [], }, { name: 'deleteTvmTokenFee', inputs: [{ name: '_token', type: 'address' }], outputs: [], }, { name: 'deployTokenFee', inputs: [ { name: '_token', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'getExpectedTokenFeeAddress', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_token', type: 'address' }, ], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'withdrawTokenFee', inputs: [ { name: '_tokenRoot', type: 'address' }, { name: '_recipient', type: 'address' }, ], outputs: [], }, { name: 'onCheckAccumulatedFee', inputs: [{ name: '_payload', type: 'cell' }], outputs: [], }, { name: 'upgradeTokenFee', inputs: [ { name: '_token', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setTokenDailyLimits', inputs: [ { name: '_token', type: 'address' }, { name: '_incomingLimit', type: 'optional(uint128)' }, { name: '_outgoingLimit', type: 'optional(uint128)' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'getDailyLimits', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_token', type: 'address' }, ], outputs: [ { components: [ { name: 'incomingLimit', type: 'optional(uint128)' }, { name: 'dailyIncomingVolume', type: 'uint128' }, { name: 'outgoingLimit', type: 'optional(uint128)' }, { name: 'dailyOutgoingVolume', type: 'uint128' }, { name: 'dayStartTimestamp', type: 'uint32' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'setLimitApprover', inputs: [ { name: '_approver', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'getLimitApprover', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'apiVersion', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint8' }], }, { name: 'setDexMiddleware', inputs: [{ name: '_dex_middleware', type: 'address' }], outputs: [], }, { name: 'setProxyMultiVaultAlien', inputs: [{ name: '_proxyMultiVaultAlien', type: 'address' }], outputs: [], }, { name: 'setWNative', inputs: [{ name: '_wNative', type: 'address' }], outputs: [], }, { name: 'removeWNative', inputs: [{ name: '_wNative', 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', }, { components: [ { name: 'incomingConfigurations', type: 'address[]' }, { components: [ { name: 'incoming', type: 'uint32' }, { name: 'outgoing', type: 'uint32' }, ], name: 'defaultFee', type: 'tuple', }, { components: [ { name: 'incoming', type: 'uint32' }, { name: 'outgoing', type: 'uint32' }, ], name: 'fees', type: 'map(address,tuple)', }, { name: 'tokenFeeCode', type: 'cell' }, ], name: 'value2', type: 'tuple', }, ], }, { name: 'getEventAddressKeeperCode', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'cell' }], }, { 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: 'setTVMConfiguration', inputs: [ { name: '_incomingConfigurations', type: 'address[]' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setEventAddressKeeperCode', inputs: [ { name: '_eventAddressKeeperCode', type: 'cell' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setColdVault', inputs: [ { name: '_coldVault', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setVaultWithdrawer', inputs: [ { name: '_withdrawer', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'withdrawTokenToColdVault', inputs: [ { name: '_tokenWallet', type: 'address' }, { name: '_amount', type: 'uint128' }, { 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: 'proxyMultiVaultAlien', inputs: [], outputs: [{ name: 'proxyMultiVaultAlien', type: 'address' }], }, { name: 'coldVault', inputs: [], outputs: [{ name: 'coldVault', type: 'address' }], }, { name: 'vaultWithdrawer', inputs: [], outputs: [{ name: 'vaultWithdrawer', type: 'address' }], }, { name: 'wNativeAddresses', inputs: [], outputs: [{ name: 'wNativeAddresses', type: 'map(address,bool)' }], }, { 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: 'TvmTvmNative', inputs: [ { name: 'destinationChainId', type: 'int32' }, { name: 'baseToken', type: 'address' }, { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' }, { name: 'decimals', type: 'uint8' }, { name: 'nativeProxyWallet', type: 'address' }, { name: 'sender', type: 'address' }, { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint128' }, { name: 'attachedGas', type: 'uint128' }, { name: 'expectedGas', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, { name: 'payload', type: 'optional(cell)' }, ], outputs: [], }, { name: 'IncomingFeeTaken', inputs: [ { name: 'fee', type: 'uint128' }, { name: 'token', type: 'address' }, { name: 'msgHash', type: 'uint256' }, ], outputs: [], }, { name: 'OutgoingFeeTaken', inputs: [ { name: 'fee', type: 'uint128' }, { name: 'token', type: 'address' }, ], outputs: [], }, { name: 'OutgoingLimitReached', inputs: [{ name: 'token', type: 'address' }], outputs: [], }, { name: 'NotEnoughLiquidity', inputs: [{ name: 'eventAddress', type: 'address' }], 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', }, { components: [ { name: 'incomingConfigurations', type: 'address[]' }, { components: [ { name: 'incoming', type: 'uint32' }, { name: 'outgoing', type: 'uint32' }, ], name: 'defaultFee', type: 'tuple', }, { components: [ { name: 'incoming', type: 'uint32' }, { name: 'outgoing', type: 'uint32' }, ], name: 'fees', type: 'map(address,tuple)', }, { name: 'tokenFeeCode', type: 'cell' }, ], name: 'tvmConfiguration', type: 'tuple', }, { name: 'api_version', type: 'uint8' }, { name: 'dex_middleware', type: 'address' }, { name: 'proxyMultiVaultAlien', type: 'address' }, { name: 'eventAddressKeeperCode', type: 'cell' }, { name: 'platformCode', type: 'cell' }, { components: [ { name: 'incomingLimit', type: 'optional(uint128)' }, { name: 'dailyIncomingVolume', type: 'uint128' }, { name: 'outgoingLimit', type: 'optional(uint128)' }, { name: 'dailyOutgoingVolume', type: 'uint128' }, { name: 'dayStartTimestamp', type: 'uint32' }, ], name: 'tokenToDailyLimits', type: 'map(address,tuple)', }, { name: 'limitApprover', type: 'address' }, { name: 'coldVault', type: 'address' }, { name: 'vaultWithdrawer', type: 'address' }, { name: 'wNativeAddresses', type: 'map(address,bool)' }, { name: '_randomNonce', type: 'uint256' }, ], };