UNPKG

@ethsub/sol

Version:
639 lines (566 loc) 18.6 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils, } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface ERC1155PausableInterface extends utils.Interface { functions: { "balanceOf(address,uint256)": FunctionFragment; "balanceOfBatch(address[],uint256[])": FunctionFragment; "isApprovedForAll(address,address)": FunctionFragment; "paused()": FunctionFragment; "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": FunctionFragment; "safeTransferFrom(address,address,uint256,uint256,bytes)": FunctionFragment; "setApprovalForAll(address,bool)": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; "uri(uint256)": FunctionFragment; }; encodeFunctionData( functionFragment: "balanceOf", values: [string, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOfBatch", values: [string[], BigNumberish[]] ): string; encodeFunctionData( functionFragment: "isApprovedForAll", values: [string, string] ): string; encodeFunctionData(functionFragment: "paused", values?: undefined): string; encodeFunctionData( functionFragment: "safeBatchTransferFrom", values: [string, string, BigNumberish[], BigNumberish[], BytesLike] ): string; encodeFunctionData( functionFragment: "safeTransferFrom", values: [string, string, BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "setApprovalForAll", values: [string, boolean] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "balanceOfBatch", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isApprovedForAll", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; decodeFunctionResult( functionFragment: "safeBatchTransferFrom", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeTransferFrom", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setApprovalForAll", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result; events: { "ApprovalForAll(address,address,bool)": EventFragment; "Paused(address)": EventFragment; "TransferBatch(address,address,address,uint256[],uint256[])": EventFragment; "TransferSingle(address,address,address,uint256,uint256)": EventFragment; "URI(string,uint256)": EventFragment; "Unpaused(address)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferBatch"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferSingle"): EventFragment; getEvent(nameOrSignatureOrTopic: "URI"): EventFragment; getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; } export type ApprovalForAllEvent = TypedEvent< [string, string, boolean], { account: string; operator: string; approved: boolean } >; export type ApprovalForAllEventFilter = TypedEventFilter<ApprovalForAllEvent>; export type PausedEvent = TypedEvent<[string], { account: string }>; export type PausedEventFilter = TypedEventFilter<PausedEvent>; export type TransferBatchEvent = TypedEvent< [string, string, string, BigNumber[], BigNumber[]], { operator: string; from: string; to: string; ids: BigNumber[]; values: BigNumber[]; } >; export type TransferBatchEventFilter = TypedEventFilter<TransferBatchEvent>; export type TransferSingleEvent = TypedEvent< [string, string, string, BigNumber, BigNumber], { operator: string; from: string; to: string; id: BigNumber; value: BigNumber; } >; export type TransferSingleEventFilter = TypedEventFilter<TransferSingleEvent>; export type URIEvent = TypedEvent< [string, BigNumber], { value: string; id: BigNumber } >; export type URIEventFilter = TypedEventFilter<URIEvent>; export type UnpausedEvent = TypedEvent<[string], { account: string }>; export type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>; export interface ERC1155Pausable extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: ERC1155PausableInterface; queryFilter<TEvent extends TypedEvent>( event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TEvent>>; listeners<TEvent extends TypedEvent>( eventFilter?: TypedEventFilter<TEvent> ): Array<TypedListener<TEvent>>; listeners(eventName?: string): Array<Listener>; removeAllListeners<TEvent extends TypedEvent>( eventFilter: TypedEventFilter<TEvent> ): this; removeAllListeners(eventName?: string): this; off: OnEvent<this>; on: OnEvent<this>; once: OnEvent<this>; removeListener: OnEvent<this>; functions: { /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf( account: string, id: BigNumberish, overrides?: CallOverrides ): Promise<[BigNumber]>; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch( accounts: string[], ids: BigNumberish[], overrides?: CallOverrides ): Promise<[BigNumber[]]>; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll( account: string, operator: string, overrides?: CallOverrides ): Promise<[boolean]>; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise<[boolean]>; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom( from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ContractTransaction>; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom( from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ContractTransaction>; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ContractTransaction>; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<[boolean]>; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>; }; /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf( account: string, id: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch( accounts: string[], ids: BigNumberish[], overrides?: CallOverrides ): Promise<BigNumber[]>; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll( account: string, operator: string, overrides?: CallOverrides ): Promise<boolean>; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise<boolean>; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom( from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ContractTransaction>; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom( from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ContractTransaction>; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<ContractTransaction>; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<boolean>; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>; callStatic: { /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf( account: string, id: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch( accounts: string[], ids: BigNumberish[], overrides?: CallOverrides ): Promise<BigNumber[]>; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll( account: string, operator: string, overrides?: CallOverrides ): Promise<boolean>; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise<boolean>; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom( from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: CallOverrides ): Promise<void>; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom( from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: CallOverrides ): Promise<void>; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll( operator: string, approved: boolean, overrides?: CallOverrides ): Promise<void>; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<boolean>; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>; }; filters: { "ApprovalForAll(address,address,bool)"( account?: string | null, operator?: string | null, approved?: null ): ApprovalForAllEventFilter; ApprovalForAll( account?: string | null, operator?: string | null, approved?: null ): ApprovalForAllEventFilter; "Paused(address)"(account?: null): PausedEventFilter; Paused(account?: null): PausedEventFilter; "TransferBatch(address,address,address,uint256[],uint256[])"( operator?: string | null, from?: string | null, to?: string | null, ids?: null, values?: null ): TransferBatchEventFilter; TransferBatch( operator?: string | null, from?: string | null, to?: string | null, ids?: null, values?: null ): TransferBatchEventFilter; "TransferSingle(address,address,address,uint256,uint256)"( operator?: string | null, from?: string | null, to?: string | null, id?: null, value?: null ): TransferSingleEventFilter; TransferSingle( operator?: string | null, from?: string | null, to?: string | null, id?: null, value?: null ): TransferSingleEventFilter; "URI(string,uint256)"( value?: null, id?: BigNumberish | null ): URIEventFilter; URI(value?: null, id?: BigNumberish | null): URIEventFilter; "Unpaused(address)"(account?: null): UnpausedEventFilter; Unpaused(account?: null): UnpausedEventFilter; }; estimateGas: { /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf( account: string, id: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch( accounts: string[], ids: BigNumberish[], overrides?: CallOverrides ): Promise<BigNumber>; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll( account: string, operator: string, overrides?: CallOverrides ): Promise<BigNumber>; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise<BigNumber>; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom( from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<BigNumber>; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom( from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<BigNumber>; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<BigNumber>; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<BigNumber>; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>; }; populateTransaction: { /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf( account: string, id: BigNumberish, overrides?: CallOverrides ): Promise<PopulatedTransaction>; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch( accounts: string[], ids: BigNumberish[], overrides?: CallOverrides ): Promise<PopulatedTransaction>; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll( account: string, operator: string, overrides?: CallOverrides ): Promise<PopulatedTransaction>; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise<PopulatedTransaction>; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom( from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<PopulatedTransaction>; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom( from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<PopulatedTransaction>; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise<string> } ): Promise<PopulatedTransaction>; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<PopulatedTransaction>; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri( arg0: BigNumberish, overrides?: CallOverrides ): Promise<PopulatedTransaction>; }; }