/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, BigNumberish, Contract, ContractFactory, Overrides, } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { TestCommon, TestCommonInterface } from "../TestCommon"; const _abi = [ { inputs: [ { internalType: "uint32", name: "_localDomain", type: "uint32", }, { internalType: "address", name: "_updater", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "oldRoot", type: "bytes32", }, { indexed: false, internalType: "bytes32[2]", name: "newRoot", type: "bytes32[2]", }, { indexed: false, internalType: "bytes", name: "signature", type: "bytes", }, { indexed: false, internalType: "bytes", name: "signature2", type: "bytes", }, ], name: "DoubleUpdate", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "updater", type: "address", }, ], name: "NewUpdater", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint32", name: "homeDomain", type: "uint32", }, { indexed: true, internalType: "bytes32", name: "oldRoot", type: "bytes32", }, { indexed: true, internalType: "bytes32", name: "newRoot", type: "bytes32", }, { indexed: false, internalType: "bytes", name: "signature", type: "bytes", }, ], name: "Update", type: "event", }, { inputs: [], name: "committedRoot", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "_oldRoot", type: "bytes32", }, { internalType: "bytes32[2]", name: "_newRoot", type: "bytes32[2]", }, { internalType: "bytes", name: "_signature", type: "bytes", }, { internalType: "bytes", name: "_signature2", type: "bytes", }, ], name: "doubleUpdate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "homeDomainHash", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "localDomain", outputs: [ { internalType: "uint32", name: "", type: "uint32", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_updater", type: "address", }, ], name: "setUpdater", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "state", outputs: [ { internalType: "enum Common.States", name: "", type: "uint8", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "_oldRoot", type: "bytes32", }, { internalType: "bytes32", name: "_newRoot", type: "bytes32", }, { internalType: "bytes", name: "_signature", type: "bytes", }, ], name: "testIsUpdaterSignature", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "updater", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, ]; const _bytecode = "0x60a060405234801561001057600080fd5b50604051610c9d380380610c9d8339818101604052604081101561003357600080fd5b5080516020909101516001600160e01b031960e083901b166080526100578161005e565b5050610151565b600054610100900460ff16806100775750610077610130565b80610085575060005460ff16155b6100c05760405162461bcd60e51b815260040180806020018281038252602e815260200180610c6f602e913960400191505060405180910390fd5b600054610100900460ff161580156100eb576000805460ff1961ff0019909116610100171660011790555b6000805462010000600160b01b031916620100006001600160a01b038516021760ff60b01b1916600160b01b179055801561012c576000805461ff00191690555b5050565b60006101453061014b60201b6106b51760201c565b15905090565b3b151590565b60805160e01c610afc6101736000398061058d52806106015250610afc6000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638d3638f41161005b5780638d3638f4146102445780639d54f41914610265578063c19d93fb14610298578063df034cd0146102c157610088565b806319d9d21a1461008d57806325605c021461015c57806345630b1a1461022257806367a6771d1461023c575b600080fd5b61015a600480360360a08110156100a357600080fd5b81359160208101918101906080810160608201356401000000008111156100c957600080fd5b8201836020820111156100db57600080fd5b803590602001918460018302840111640100000000831117156100fd57600080fd5b91939092909160208101903564010000000081111561011b57600080fd5b82018360208201111561012d57600080fd5b8035906020019184600183028401116401000000008311171561014f57600080fd5b5090925090506102f2565b005b61020e6004803603606081101561017257600080fd5b81359160208101359181019060608101604082013564010000000081111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111640100000000831117156101cd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610551945050505050565b604080519115158252519081900360200190f35b61022a610566565b60408051918252519081900360200190f35b61022a6105f9565b61024c6105ff565b6040805163ffffffff9092168252519081900360200190f35b61015a6004803603602081101561027b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610623565b6102a0610670565b604051808260028111156102b057fe5b815260200191505060405180910390f35b6102c9610693565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6002600054760100000000000000000000000000000000000000000000900460ff16600281111561031f57fe5b141561038c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6661696c65642073746174650000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516020601f86018190048102820181019092528481526103ce91889188359188908890819084018382808284376000920191909152506106bb92505050565b801561041d575061041d86866001602002013584848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506106bb92505050565b801561042e57508435602086013514155b156105495761043b610753565b7f2c3f60bab4170347826231b75a920b5053941ddebc6eed6fd2c25721648b186f8686868686866040518087815260200186600260200280828437600083820152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690910182810360409081018252810186905290506020810160608201878780828437600083820152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690910184810383528581526020019050858580828437600083820152604051601f9091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169092018290039a509098505050505050505050a15b505050505050565b600061055e8484846106bb565b949350505050565b604080517fffffffff000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000060e01b166020808301919091527f4f5054494353000000000000000000000000000000000000000000000000000060248301528251600a818403018152602a909201909252805191012090565b60015481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000805473ffffffffffffffffffffffffffffffffffffffff90921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b600054760100000000000000000000000000000000000000000000900460ff1681565b60005462010000900473ffffffffffffffffffffffffffffffffffffffff1681565b3b151590565b6000806106c6610566565b85856040516020018084815260200183815260200182815260200193505050506040516020818303038152906040528051906020012090506107078161075d565b60005490915062010000900473ffffffffffffffffffffffffffffffffffffffff1661073382856107ae565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b61075b610848565b565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461082057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a61083e8682858561088b565b9695505050505050565b600080547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff16760200000000000000000000000000000000000000000000179055565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115610906576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610a836022913960400191505060405180910390fd5b8360ff16601b148061091b57508360ff16601c145b610970576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610aa56022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156109cc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116610a7957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9594505050505056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a26469706673582212206a1f96aed10a2caae15483df09e5715f6d1749c7627840a5933b51a7646e702364736f6c63430007060033496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564"; export class TestCommon__factory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } deploy( _localDomain: BigNumberish, _updater: string, overrides?: Overrides & { from?: string | Promise } ): Promise { return super.deploy( _localDomain, _updater, overrides || {} ) as Promise; } getDeployTransaction( _localDomain: BigNumberish, _updater: string, overrides?: Overrides & { from?: string | Promise } ): TransactionRequest { return super.getDeployTransaction(_localDomain, _updater, overrides || {}); } attach(address: string): TestCommon { return super.attach(address) as TestCommon; } connect(signer: Signer): TestCommon__factory { return super.connect(signer) as TestCommon__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): TestCommonInterface { return new utils.Interface(_abi) as TestCommonInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): TestCommon { return new Contract(address, _abi, signerOrProvider) as TestCommon; } }