UNPKG

@towns-protocol/generated

Version:

## How to generate contract types

208 lines (204 loc) 4.24 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IDiamondCut, IDiamondCutInterface } from "../IDiamondCut"; const _abi = [ { type: "function", name: "diamondCut", inputs: [ { name: "facetCuts", type: "tuple[]", internalType: "struct IDiamond.FacetCut[]", components: [ { name: "facetAddress", type: "address", internalType: "address", }, { name: "action", type: "uint8", internalType: "enum IDiamond.FacetCutAction", }, { name: "functionSelectors", type: "bytes4[]", internalType: "bytes4[]", }, ], }, { name: "init", type: "address", internalType: "address", }, { name: "initPayload", type: "bytes", internalType: "bytes", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "event", name: "DiamondCut", inputs: [ { name: "facetCuts", type: "tuple[]", indexed: false, internalType: "struct IDiamond.FacetCut[]", components: [ { name: "facetAddress", type: "address", internalType: "address", }, { name: "action", type: "uint8", internalType: "enum IDiamond.FacetCutAction", }, { name: "functionSelectors", type: "bytes4[]", internalType: "bytes4[]", }, ], }, { name: "init", type: "address", indexed: false, internalType: "address", }, { name: "initPayload", type: "bytes", indexed: false, internalType: "bytes", }, ], anonymous: false, }, { type: "error", name: "DiamondCut_FunctionAlreadyExists", inputs: [ { name: "selector", type: "bytes4", internalType: "bytes4", }, ], }, { type: "error", name: "DiamondCut_FunctionDoesNotExist", inputs: [ { name: "facet", type: "address", internalType: "address", }, ], }, { type: "error", name: "DiamondCut_FunctionFromSameFacetAlreadyExists", inputs: [ { name: "selector", type: "bytes4", internalType: "bytes4", }, ], }, { type: "error", name: "DiamondCut_ImmutableFacet", inputs: [], }, { type: "error", name: "DiamondCut_InvalidContract", inputs: [ { name: "init", type: "address", internalType: "address", }, ], }, { type: "error", name: "DiamondCut_InvalidFacet", inputs: [ { name: "facet", type: "address", internalType: "address", }, ], }, { type: "error", name: "DiamondCut_InvalidFacetCutAction", inputs: [], }, { type: "error", name: "DiamondCut_InvalidFacetCutLength", inputs: [], }, { type: "error", name: "DiamondCut_InvalidFacetRemoval", inputs: [ { name: "facet", type: "address", internalType: "address", }, { name: "selector", type: "bytes4", internalType: "bytes4", }, ], }, { type: "error", name: "DiamondCut_InvalidFacetSelectors", inputs: [ { name: "facet", type: "address", internalType: "address", }, ], }, { type: "error", name: "DiamondCut_InvalidSelector", inputs: [], }, ] as const; export class IDiamondCut__factory { static readonly abi = _abi; static createInterface(): IDiamondCutInterface { return new utils.Interface(_abi) as IDiamondCutInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): IDiamondCut { return new Contract(address, _abi, signerOrProvider) as IDiamondCut; } }