@etherspot/contracts
Version:
Etherspot Solidity contracts
120 lines (113 loc) • 3.34 kB
text/typescript
/* 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 { LibDiamond, LibDiamondInterface } from "../LibDiamond";
const _abi = [
{
anonymous: false,
inputs: [
{
components: [
{
internalType: "address",
name: "facetAddress",
type: "address",
},
{
internalType: "enum IDiamondCut.FacetCutAction",
name: "action",
type: "uint8",
},
{
internalType: "bytes4[]",
name: "functionSelectors",
type: "bytes4[]",
},
],
indexed: false,
internalType: "struct IDiamondCut.FacetCut[]",
name: "_diamondCut",
type: "tuple[]",
},
{
indexed: false,
internalType: "address",
name: "_init",
type: "address",
},
{
indexed: false,
internalType: "bytes",
name: "_calldata",
type: "bytes",
},
],
name: "DiamondCut",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferred",
type: "event",
},
];
const _bytecode =
"0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e443216bcd038ab1823e4b419d4c6f195e30184d868d9d809f07908d8502743064736f6c63430008110033";
type LibDiamondConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: LibDiamondConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class LibDiamond__factory extends ContractFactory {
constructor(...args: LibDiamondConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
deploy(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<LibDiamond> {
return super.deploy(overrides || {}) as Promise<LibDiamond>;
}
getDeployTransaction(
overrides?: Overrides & { from?: string | Promise<string> }
): TransactionRequest {
return super.getDeployTransaction(overrides || {});
}
attach(address: string): LibDiamond {
return super.attach(address) as LibDiamond;
}
connect(signer: Signer): LibDiamond__factory {
return super.connect(signer) as LibDiamond__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): LibDiamondInterface {
return new utils.Interface(_abi) as LibDiamondInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): LibDiamond {
return new Contract(address, _abi, signerOrProvider) as LibDiamond;
}
}