UNPKG

@towns-protocol/generated

Version:

## How to generate contract types

194 lines (186 loc) 6.98 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import type { Provider, TransactionRequest } from "@ethersproject/providers"; import type { PromiseOrValue } from "../common"; import type { OwnableFacet, OwnableFacetInterface } from "../OwnableFacet"; const _abi = [ { type: "function", name: "__Ownable_init", inputs: [ { name: "owner_", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "owner", inputs: [], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "transferOwnership", inputs: [ { name: "newOwner", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "event", name: "Initialized", inputs: [ { name: "version", type: "uint32", indexed: false, internalType: "uint32", }, ], anonymous: false, }, { type: "event", name: "InterfaceAdded", inputs: [ { name: "interfaceId", type: "bytes4", indexed: true, internalType: "bytes4", }, ], anonymous: false, }, { type: "event", name: "InterfaceRemoved", inputs: [ { name: "interfaceId", type: "bytes4", indexed: true, internalType: "bytes4", }, ], anonymous: false, }, { type: "event", name: "OwnershipTransferred", inputs: [ { name: "previousOwner", type: "address", indexed: true, internalType: "address", }, { name: "newOwner", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, { type: "error", name: "Initializable_InInitializingState", inputs: [], }, { type: "error", name: "Initializable_NotInInitializingState", inputs: [], }, { type: "error", name: "Introspection_AlreadySupported", inputs: [], }, { type: "error", name: "Introspection_NotSupported", inputs: [], }, { type: "error", name: "Ownable__NotOwner", inputs: [ { name: "account", type: "address", internalType: "address", }, ], }, { type: "error", name: "Ownable__ZeroAddress", inputs: [], }, ] as const; const _bytecode = "0x6080604052348015600e575f5ffd5b5060156019565b60bd565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef520008054640100000000900460ff16156064576040516366008a2d60e01b815260040160405180910390fd5b805463ffffffff908116101560ba57805463ffffffff191663ffffffff90811782556040519081527fe9c9b456cb2994b80aeef036cf59d26e9617df80f816a6ee5a5b4166e07e2f5c9060200160405180910390a15b50565b6104b1806100ca5f395ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c80638da5cb5b14610043578063d78f002114610074578063f2fde38b14610089575b5f5ffd5b61004b61009c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b610087610082366004610477565b6100e0565b005b610087610097366004610477565b61014f565b5f6100db7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef5200054640100000000900460ff16610143576040517f77a399b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014c816101ce565b50565b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff1633146101c5576040517f65f4906500000000000000000000000000000000000000000000000000000000815233600482015260240160405180910390fd5b61014c81610200565b6101d781610200565b61014c7f7f5828d000000000000000000000000000000000000000000000000000000000610322565b5f61023f7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff1690565b905073ffffffffffffffffffffffffffffffffffffffff821661028e576040517f4e3ef82500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b817f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae30080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff928316179055604051838216918316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b7fffffffff0000000000000000000000000000000000000000000000000000000081165f9081527f81088bbc801e045ea3e7620779ab349988f58afbdfba10dff983df3f33522b00602052604090205460ff166103f6577fffffffff0000000000000000000000000000000000000000000000000000000081165f9081527f81088bbc801e045ea3e7620779ab349988f58afbdfba10dff983df3f33522b006020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610428565b6040517ff2cfeefa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fffffffff000000000000000000000000000000000000000000000000000000008216907f78f84e5b1c5c05be2b5ad3800781dd404d6d6c6302bc755c0fe20f58a33a7f22905f90a250565b5f60208284031215610487575f5ffd5b813573ffffffffffffffffffffffffffffffffffffffff811681146104aa575f5ffd5b939250505056"; type OwnableFacetConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: OwnableFacetConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class OwnableFacet__factory extends ContractFactory { constructor(...args: OwnableFacetConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override deploy( overrides?: Overrides & { from?: PromiseOrValue<string> } ): Promise<OwnableFacet> { return super.deploy(overrides || {}) as Promise<OwnableFacet>; } override getDeployTransaction( overrides?: Overrides & { from?: PromiseOrValue<string> } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } override attach(address: string): OwnableFacet { return super.attach(address) as OwnableFacet; } override connect(signer: Signer): OwnableFacet__factory { return super.connect(signer) as OwnableFacet__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): OwnableFacetInterface { return new utils.Interface(_abi) as OwnableFacetInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): OwnableFacet { return new Contract(address, _abi, signerOrProvider) as OwnableFacet; } }