/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { PingPongRouter, PingPongRouterInterface, } from "../PingPongRouter"; const _abi = [ { inputs: [ { internalType: "address", name: "_xAppConnectionManager", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { 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: true, internalType: "uint32", name: "domain", type: "uint32", }, { indexed: true, internalType: "uint32", name: "matchId", type: "uint32", }, { indexed: false, internalType: "uint256", name: "count", type: "uint256", }, { indexed: false, internalType: "bool", name: "isPing", type: "bool", }, ], name: "Received", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint32", name: "domain", type: "uint32", }, { indexed: true, internalType: "uint32", name: "matchId", type: "uint32", }, { indexed: false, internalType: "uint256", name: "count", type: "uint256", }, { indexed: false, internalType: "bool", name: "isPing", type: "bool", }, ], name: "Sent", type: "event", }, { inputs: [ { internalType: "uint32", name: "_domain", type: "uint32", }, { internalType: "bytes32", name: "_router", type: "bytes32", }, ], name: "enrollRemoteRouter", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint32", name: "_origin", type: "uint32", }, { internalType: "bytes32", name: "_sender", type: "bytes32", }, { internalType: "bytes", name: "_message", type: "bytes", }, ], name: "handle", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint32", name: "_destinationDomain", type: "uint32", }, ], name: "initiatePingPongMatch", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint32", name: "", type: "uint32", }, ], name: "remotes", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_xAppConnectionManager", type: "address", }, ], name: "setXAppConnectionManager", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newOwner", type: "address", }, ], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "xAppConnectionManager", outputs: [ { internalType: "contract XAppConnectionManager", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, ]; const _bytecode = "0x608060405234801561001057600080fd5b506040516100833803806100838339818101604052602081101561003357600080fd5b50516040805162461bcd60e51b815260206004820152601b60248201527f6578616d706c6520784170702c20646f206e6f74206465706c6f790000000000604482015290519081900360640190fdfe"; export class PingPongRouter__factory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } deploy( _xAppConnectionManager: string, overrides?: Overrides & { from?: string | Promise } ): Promise { return super.deploy( _xAppConnectionManager, overrides || {} ) as Promise; } getDeployTransaction( _xAppConnectionManager: string, overrides?: Overrides & { from?: string | Promise } ): TransactionRequest { return super.getDeployTransaction(_xAppConnectionManager, overrides || {}); } attach(address: string): PingPongRouter { return super.attach(address) as PingPongRouter; } connect(signer: Signer): PingPongRouter__factory { return super.connect(signer) as PingPongRouter__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): PingPongRouterInterface { return new utils.Interface(_abi) as PingPongRouterInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): PingPongRouter { return new Contract(address, _abi, signerOrProvider) as PingPongRouter; } }