@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
836 lines (835 loc) • 20.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EvmBridgeAbi = void 0;
/**
* @see [Bridge](https://github.com/broxus/octusbridge-contracts/blob/master/ethereum/abi/Bridge.json)
*/
exports.EvmBridgeAbi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'relay',
type: 'address',
},
{
indexed: false,
internalType: 'bool',
name: 'status',
type: 'bool',
},
],
name: 'BanRelay',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'bool',
name: 'active',
type: 'bool',
},
],
name: 'EmergencyShutdown',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint32',
name: 'round',
type: 'uint32',
},
{
components: [
{
internalType: 'uint32',
name: 'end',
type: 'uint32',
},
{
internalType: 'uint32',
name: 'ttl',
type: 'uint32',
},
{
internalType: 'uint32',
name: 'relays',
type: 'uint32',
},
{
internalType: 'uint32',
name: 'requiredSignatures',
type: 'uint32',
},
],
indexed: false,
internalType: 'struct IBridge.Round',
name: 'meta',
type: 'tuple',
},
],
name: 'NewRound',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Paused',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint32',
name: 'round',
type: 'uint32',
},
{
indexed: true,
internalType: 'address',
name: 'relay',
type: 'address',
},
],
name: 'RoundRelay',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Unpaused',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint32',
name: 'value',
type: 'uint32',
},
],
name: 'UpdateMinimumRequiredSignatures',
type: 'event',
},
{
anonymous: false,
inputs: [
{
components: [
{
internalType: 'int128',
name: 'wid',
type: 'int128',
},
{
internalType: 'uint256',
name: 'addr',
type: 'uint256',
},
],
indexed: false,
internalType: 'struct IEverscale.EverscaleAddress',
name: 'configuration',
type: 'tuple',
},
],
name: 'UpdateRoundRelaysConfiguration',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: '_roundSubmitter',
type: 'address',
},
],
name: 'UpdateRoundSubmitter',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint32',
name: 'value',
type: 'uint32',
},
],
name: 'UpdateRoundTTL',
type: 'event',
},
{
inputs: [
{
internalType: 'address[]',
name: '_relays',
type: 'address[]',
},
],
name: 'banRelays',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
name: 'blacklist',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
name: 'cache',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'payload',
type: 'bytes',
},
],
name: 'decodeEverscaleEvent',
outputs: [
{
components: [
{
internalType: 'uint64',
name: 'eventTransactionLt',
type: 'uint64',
},
{
internalType: 'uint32',
name: 'eventTimestamp',
type: 'uint32',
},
{
internalType: 'bytes',
name: 'eventData',
type: 'bytes',
},
{
internalType: 'int8',
name: 'configurationWid',
type: 'int8',
},
{
internalType: 'uint256',
name: 'configurationAddress',
type: 'uint256',
},
{
internalType: 'int8',
name: 'eventContractWid',
type: 'int8',
},
{
internalType: 'uint256',
name: 'eventContractAddress',
type: 'uint256',
},
{
internalType: 'address',
name: 'proxy',
type: 'address',
},
{
internalType: 'uint32',
name: 'round',
type: 'uint32',
},
],
internalType: 'struct IEverscale.EverscaleEvent',
name: '_event',
type: 'tuple',
},
],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'payload',
type: 'bytes',
},
],
name: 'decodeRoundRelaysEventData',
outputs: [
{
internalType: 'uint32',
name: 'round',
type: 'uint32',
},
{
internalType: 'uint160[]',
name: '_relays',
type: 'uint160[]',
},
{
internalType: 'uint32',
name: 'roundEnd',
type: 'uint32',
},
],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [],
name: 'emergencyShutdown',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint160[]',
name: '_relays',
type: 'uint160[]',
},
{
internalType: 'uint32',
name: 'roundEnd',
type: 'uint32',
},
],
name: 'forceRoundRelays',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'initialRound',
outputs: [
{
internalType: 'uint32',
name: '',
type: 'uint32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '_owner',
type: 'address',
},
{
internalType: 'address',
name: '_roundSubmitter',
type: 'address',
},
{
internalType: 'uint32',
name: '_minimumRequiredSignatures',
type: 'uint32',
},
{
internalType: 'uint32',
name: '_roundTTL',
type: 'uint32',
},
{
internalType: 'uint32',
name: '_initialRound',
type: 'uint32',
},
{
internalType: 'uint32',
name: '_initialRoundEnd',
type: 'uint32',
},
{
internalType: 'uint160[]',
name: '_relays',
type: 'uint160[]',
},
],
name: 'initialize',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'candidate',
type: 'address',
},
],
name: 'isBanned',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint32',
name: 'round',
type: 'uint32',
},
{
internalType: 'address',
name: 'candidate',
type: 'address',
},
],
name: 'isRelay',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint32',
name: 'round',
type: 'uint32',
},
],
name: 'isRoundRotten',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'lastRound',
outputs: [
{
internalType: 'uint32',
name: '',
type: 'uint32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'minimumRequiredSignatures',
outputs: [
{
internalType: 'uint32',
name: '',
type: 'uint32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'pause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'paused',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'payload',
type: 'bytes',
},
{
internalType: 'bytes',
name: 'signature',
type: 'bytes',
},
],
name: 'recoverSignature',
outputs: [
{
internalType: 'address',
name: 'signer',
type: 'address',
},
],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [
{
internalType: 'uint32',
name: '',
type: 'uint32',
},
{
internalType: 'address',
name: '',
type: 'address',
},
],
name: 'relays',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'renounceOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'roundRelaysConfiguration',
outputs: [
{
internalType: 'int128',
name: 'wid',
type: 'int128',
},
{
internalType: 'uint256',
name: 'addr',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'roundSubmitter',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'roundTTL',
outputs: [
{
internalType: 'uint32',
name: '',
type: 'uint32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint32',
name: '',
type: 'uint32',
},
],
name: 'rounds',
outputs: [
{
internalType: 'uint32',
name: 'end',
type: 'uint32',
},
{
internalType: 'uint32',
name: 'ttl',
type: 'uint32',
},
{
internalType: 'uint32',
name: 'relays',
type: 'uint32',
},
{
internalType: 'uint32',
name: 'requiredSignatures',
type: 'uint32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
internalType: 'int128',
name: 'wid',
type: 'int128',
},
{
internalType: 'uint256',
name: 'addr',
type: 'uint256',
},
],
internalType: 'struct IEverscale.EverscaleAddress',
name: '_roundRelaysConfiguration',
type: 'tuple',
},
],
name: 'setConfiguration',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'payload',
type: 'bytes',
},
{
internalType: 'bytes[]',
name: 'signatures',
type: 'bytes[]',
},
],
name: 'setRoundRelays',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '_roundSubmitter',
type: 'address',
},
],
name: 'setRoundSubmitter',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address[]',
name: '_relays',
type: 'address[]',
},
],
name: 'unbanRelays',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'unpause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint32',
name: '_minimumRequiredSignatures',
type: 'uint32',
},
],
name: 'updateMinimumRequiredSignatures',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'uint32',
name: '_roundTTL',
type: 'uint32',
},
],
name: 'updateRoundTTL',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes',
name: 'payload',
type: 'bytes',
},
{
internalType: 'bytes[]',
name: 'signatures',
type: 'bytes[]',
},
],
name: 'verifySignedEverscaleEvent',
outputs: [
{
internalType: 'uint32',
name: 'errorCode',
type: 'uint32',
},
],
stateMutability: 'view',
type: 'function',
},
];