@river-build/generated
Version:
## How to generate contract types
111 lines (107 loc) • 2.18 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 {
IOperatorRegistry,
IOperatorRegistryInterface,
} from "../IOperatorRegistry";
const _abi = [
{
type: "function",
name: "approveOperator",
inputs: [
{
name: "operator",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "getAllOperators",
inputs: [],
outputs: [
{
name: "",
type: "address[]",
internalType: "address[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "isOperator",
inputs: [
{
name: "operator",
type: "address",
internalType: "address",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "removeOperator",
inputs: [
{
name: "operator",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "OperatorAdded",
inputs: [
{
name: "operatorAddress",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "OperatorRemoved",
inputs: [
{
name: "operatorAddress",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
] as const;
export class IOperatorRegistry__factory {
static readonly abi = _abi;
static createInterface(): IOperatorRegistryInterface {
return new utils.Interface(_abi) as IOperatorRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IOperatorRegistry {
return new Contract(address, _abi, signerOrProvider) as IOperatorRegistry;
}
}