/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { OmniteLayerZeroBridgeReceiver, OmniteLayerZeroBridgeReceiverInterface, } from "../OmniteLayerZeroBridgeReceiver"; const _abi = [ { inputs: [ { internalType: "contract ISystemContext", name: "systemContext_", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint16", name: "chainId", type: "uint16", }, { indexed: true, internalType: "bytes", name: "fromAddress", type: "bytes", }, { indexed: true, internalType: "uint64", name: "nonce", type: "uint64", }, { indexed: false, internalType: "address", name: "calledContract", type: "address", }, { indexed: false, internalType: "uint16", name: "index", type: "uint16", }, { indexed: false, internalType: "string", name: "error", type: "string", }, ], name: "CallFailed", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint16", name: "chainId", type: "uint16", }, { indexed: true, internalType: "bytes", name: "fromAddress", type: "bytes", }, { indexed: true, internalType: "uint64", name: "nonce", type: "uint64", }, { indexed: false, internalType: "address", name: "calledContract", type: "address", }, { indexed: false, internalType: "bytes", name: "returnData", type: "bytes", }, { indexed: false, internalType: "uint16", name: "index", type: "uint16", }, ], name: "CallSuccess", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint16", name: "chainId", type: "uint16", }, { indexed: true, internalType: "bytes", name: "fromAddress", type: "bytes", }, { indexed: true, internalType: "uint64", name: "nonce", type: "uint64", }, { indexed: false, internalType: "address", name: "newContract", type: "address", }, ], name: "ContractDeployed", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint16", name: "chainId", type: "uint16", }, { indexed: true, internalType: "bytes", name: "fromAddress", type: "bytes", }, { indexed: true, internalType: "uint64", name: "nonce", type: "uint64", }, { indexed: false, internalType: "string", name: "error", type: "string", }, ], name: "ContractNotDeployed", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint16", name: "chainId", type: "uint16", }, { indexed: false, internalType: "bytes", name: "fromAddress", type: "bytes", }, { indexed: false, internalType: "uint64", name: "nonce", type: "uint64", }, { indexed: false, internalType: "enum IBridge.Operation", name: "operation", type: "uint8", }, ], name: "ReceiveEvent", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint16", name: "destChainId", type: "uint16", }, { indexed: false, internalType: "bytes", name: "destBridge", type: "bytes", }, { indexed: false, internalType: "uint64", name: "nonce", type: "uint64", }, ], name: "SendEvent", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint16", name: "chainId", type: "uint16", }, { indexed: true, internalType: "bytes", name: "fromAddress", type: "bytes", }, { indexed: true, internalType: "uint64", name: "nonce", type: "uint64", }, { indexed: false, internalType: "enum IBridge.Operation", name: "operation", type: "uint8", }, { indexed: false, internalType: "uint256", name: "apiVersion", type: "uint256", }, { indexed: false, internalType: "bytes", name: "rawData", type: "bytes", }, ], name: "UndefinedCall", type: "event", }, { inputs: [], name: "apiVersion", outputs: [ { internalType: "uint64", name: "", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "endpoint", outputs: [ { internalType: "contract ILayerZeroEndpoint", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint16", name: "_srcChainId", type: "uint16", }, { internalType: "bytes", name: "_fromAddress", type: "bytes", }, { internalType: "bytes", name: "_payload", type: "bytes", }, ], name: "estimateReceiveGas", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint16", name: "_srcChainId", type: "uint16", }, { internalType: "bytes", name: "_srcAddress", type: "bytes", }, ], name: "forceResume", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint16", name: "_srcChainId", type: "uint16", }, { internalType: "bytes", name: "_fromAddress", type: "bytes", }, { internalType: "uint64", name: "_nonce", type: "uint64", }, { internalType: "bytes", name: "_payload", type: "bytes", }, ], name: "handleAll", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint16", name: "_srcChainId", type: "uint16", }, { internalType: "bytes", name: "_fromAddress", type: "bytes", }, { internalType: "uint64", name: "_nonce", type: "uint64", }, { internalType: "bytes", name: "_payload", type: "bytes", }, ], name: "handleAllEstimate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint16", name: "_srcChainId", type: "uint16", }, { internalType: "bytes", name: "_fromAddress", type: "bytes", }, { internalType: "uint64", name: "_nonce", type: "uint64", }, { internalType: "bytes", name: "_payload", type: "bytes", }, ], name: "lzReceive", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "contract ILayerZeroEndpoint", name: "endpoint_", type: "address", }, ], name: "setEndpoint", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "systemContext", outputs: [ { internalType: "contract ISystemContext", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, ]; export class OmniteLayerZeroBridgeReceiver__factory { static readonly abi = _abi; static createInterface(): OmniteLayerZeroBridgeReceiverInterface { return new utils.Interface(_abi) as OmniteLayerZeroBridgeReceiverInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): OmniteLayerZeroBridgeReceiver { return new Contract( address, _abi, signerOrProvider ) as OmniteLayerZeroBridgeReceiver; } }