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 IERC1155MetadataURIInterface extends utils.Interface { contractName: "IERC1155MetadataURI"; functions: { "balanceOf(address,uint256)": FunctionFragment; "balanceOfBatch(address[],uint256[])": FunctionFragment; "isApprovedForAll(address,address)": 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: "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: "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; "TransferBatch(address,address,address,uint256[],uint256[])": EventFragment; "TransferSingle(address,address,address,uint256,uint256)": EventFragment; "URI(string,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferBatch"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferSingle"): EventFragment; getEvent(nameOrSignatureOrTopic: "URI"): EventFragment; } export declare type ApprovalForAllEvent = TypedEvent<[ string, string, boolean ], { account: string; operator: string; approved: boolean; }>; export declare type ApprovalForAllEventFilter = TypedEventFilter; export declare type TransferBatchEvent = TypedEvent<[ string, string, string, BigNumber[], BigNumber[] ], { operator: string; from: string; to: string; ids: BigNumber[]; values: BigNumber[]; }>; export declare type TransferBatchEventFilter = TypedEventFilter; export declare type TransferSingleEvent = TypedEvent<[ string, string, string, BigNumber, BigNumber ], { operator: string; from: string; to: string; id: BigNumber; value: BigNumber; }>; export declare type TransferSingleEventFilter = TypedEventFilter; export declare type URIEvent = TypedEvent<[ string, BigNumber ], { value: string; id: BigNumber; }>; export declare type URIEventFilter = TypedEventFilter; export interface IERC1155MetadataURI extends BaseContract { contractName: "IERC1155MetadataURI"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IERC1155MetadataURIInterface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { /** * Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise<[BigNumber[]]>; /** * Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise<[boolean]>; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<[boolean]>; /** * Returns the URI for token type `id`. If the `\{id\}` substring is present in the URI, it must be replaced by clients with the actual token type ID. */ uri(id: BigNumberish, overrides?: CallOverrides): Promise<[string]>; }; /** * Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; /** * Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the URI for token type `id`. If the `\{id\}` substring is present in the URI, it must be replaced by clients with the actual token type ID. */ uri(id: BigNumberish, overrides?: CallOverrides): Promise; callStatic: { /** * Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; /** * Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: CallOverrides): Promise; /** * Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: CallOverrides): Promise; /** * Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller. */ setApprovalForAll(operator: string, approved: boolean, overrides?: CallOverrides): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the URI for token type `id`. If the `\{id\}` substring is present in the URI, it must be replaced by clients with the actual token type ID. */ uri(id: BigNumberish, overrides?: CallOverrides): Promise; }; filters: { "ApprovalForAll(address,address,bool)"(account?: string | null, operator?: string | null, approved?: null): ApprovalForAllEventFilter; ApprovalForAll(account?: string | null, operator?: string | null, approved?: null): ApprovalForAllEventFilter; "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; }; estimateGas: { /** * Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; /** * Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the URI for token type `id`. If the `\{id\}` substring is present in the URI, it must be replaced by clients with the actual token type ID. */ uri(id: BigNumberish, overrides?: CallOverrides): Promise; }; populateTransaction: { /** * Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; /** * Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the URI for token type `id`. If the `\{id\}` substring is present in the URI, it must be replaced by clients with the actual token type ID. */ uri(id: BigNumberish, overrides?: CallOverrides): Promise; }; }