UNPKG

@river-build/generated

Version:

## How to generate contract types

194 lines (186 loc) 6.24 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 = "0x608060405234801561001057600080fd5b5061001961001e565b6100c4565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef520008054640100000000900460ff161561006a576040516366008a2d60e01b815260040160405180910390fd5b805463ffffffff90811610156100c157805463ffffffff191663ffffffff90811782556040519081527fe9c9b456cb2994b80aeef036cf59d26e9617df80f816a6ee5a5b4166e07e2f5c9060200160405180910390a15b50565b610332806100d36000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80638da5cb5b14610046578063d78f00211461006a578063f2fde38b1461007f575b600080fd5b61004e610092565b6040516001600160a01b03909116815260200160405180910390f35b61007d610078366004610302565b6100a1565b005b61007d61008d366004610302565b6100f7565b600061009c61013f565b905090565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef5200054640100000000900460ff166100eb57604051630ef4733760e31b815260040160405180910390fd5b6100f48161016d565b50565b6100ff61013f565b6001600160a01b0316336001600160a01b031614610136576040516365f4906560e01b815233600482015260240160405180910390fd5b6100f481610186565b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae300546001600160a01b031690565b61017681610186565b6100f46307f5828d60e41b610229565b600061019061013f565b90506001600160a01b0382166101b957604051634e3ef82560e01b815260040160405180910390fd5b817f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae30080546001600160a01b0319166001600160a01b03928316179055604051838216918316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b0319811660009081527f81088bbc801e045ea3e7620779ab349988f58afbdfba10dff983df3f33522b00602052604090205460ff166102b1576001600160e01b0319811660009081527f81088bbc801e045ea3e7620779ab349988f58afbdfba10dff983df3f33522b0060205260409020805460ff191660011790556102ca565b604051637967f77d60e11b815260040160405180910390fd5b6040516001600160e01b03198216907f78f84e5b1c5c05be2b5ad3800781dd404d6d6c6302bc755c0fe20f58a33a7f2290600090a250565b60006020828403121561031457600080fd5b81356001600160a01b038116811461032b57600080fd5b939250505056"; 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; } }