UNPKG

iso-filecoin

Version:

Isomorphic filecoin abstractions for RPC, signatures, address, token and wallet

100 lines (96 loc) 1.79 kB
const abi = /** @type {const} */ [ { inputs: [ { internalType: 'int256', name: 'errorCode', type: 'int256', }, ], name: 'ActorError', type: 'error', }, { inputs: [], name: 'FailToCallActor', type: 'error', }, { inputs: [ { internalType: 'bytes', name: 'addr', type: 'bytes', }, ], name: 'InvalidAddress', type: 'error', }, { inputs: [], name: 'InvalidAddress', type: 'error', }, { inputs: [ { internalType: 'uint64', name: '', type: 'uint64', }, ], name: 'InvalidCodec', type: 'error', }, { inputs: [], name: 'InvalidResponseLength', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'balance', type: 'uint256', }, { internalType: 'uint256', name: 'value', type: 'uint256', }, ], name: 'NotEnoughBalance', type: 'error', }, { inputs: [ { internalType: 'bytes', name: 'destination', type: 'bytes', }, ], name: 'forward', outputs: [], stateMutability: 'payable', type: 'function', }, ] /** * @type {`0x${string}`} */ const contractAddress = '0x2B3ef6906429b580b7b2080de5CA893BC282c225' const chainIds = { filecoinMainnet: 'eip155:314', filecoinCalibrationTestnet: 'eip155:314159', } // FEVM FilForwarder contract metadata // Contract source: https://github.com/FilOzone/FilForwarder export const filForwarderMetadata = { abi, // The contract address is the same on all chains where the contract is deployed contractAddress, // The CAIP-2 chain ids where the contract is deployed chainIds, }