@towns-protocol/generated
Version:
## How to generate contract types
163 lines (159 loc) • 3 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 { IBanning, IBanningInterface } from "../IBanning";
const _abi = [
{
type: "function",
name: "ban",
inputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "banned",
inputs: [],
outputs: [
{
name: "",
type: "uint256[]",
internalType: "uint256[]",
},
],
stateMutability: "view",
},
{
type: "function",
name: "isBanned",
inputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "unban",
inputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "Banned",
inputs: [
{
name: "moderator",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "tokenId",
type: "uint256",
indexed: true,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "Unbanned",
inputs: [
{
name: "moderator",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "tokenId",
type: "uint256",
indexed: true,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "error",
name: "Banning__AlreadyBanned",
inputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
},
{
type: "error",
name: "Banning__CannotBanOwner",
inputs: [],
},
{
type: "error",
name: "Banning__CannotBanSelf",
inputs: [],
},
{
type: "error",
name: "Banning__InvalidTokenId",
inputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
},
{
type: "error",
name: "Banning__NotBanned",
inputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
},
] as const;
export class IBanning__factory {
static readonly abi = _abi;
static createInterface(): IBanningInterface {
return new utils.Interface(_abi) as IBanningInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IBanning {
return new Contract(address, _abi, signerOrProvider) as IBanning;
}
}