@river-build/generated
Version:
## How to generate contract types
80 lines (76 loc) • 1.69 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type { IProxyManager, IProxyManagerInterface } from "../IProxyManager";
const _abi = [
{
type: "function",
name: "getImplementation",
inputs: [
{
name: "selector",
type: "bytes4",
internalType: "bytes4",
},
],
outputs: [
{
name: "",
type: "address",
internalType: "address",
},
],
stateMutability: "view",
},
{
type: "function",
name: "setImplementation",
inputs: [
{
name: "implementation",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "ProxyManager__ImplementationSet",
inputs: [
{
name: "implementation",
type: "address",
indexed: false,
internalType: "address",
},
],
anonymous: false,
},
{
type: "error",
name: "ProxyManager__NotContract",
inputs: [
{
name: "implementation",
type: "address",
internalType: "address",
},
],
},
] as const;
export class IProxyManager__factory {
static readonly abi = _abi;
static createInterface(): IProxyManagerInterface {
return new utils.Interface(_abi) as IProxyManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IProxyManager {
return new Contract(address, _abi, signerOrProvider) as IProxyManager;
}
}