import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import type { FunctionFragment, Result } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common"; export interface ERC1155ReceiverUpgradeableInterface extends utils.Interface { functions: { "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": FunctionFragment; "onERC1155Received(address,address,uint256,uint256,bytes)": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "onERC1155BatchReceived" | "onERC1155Received" | "supportsInterface"): FunctionFragment; encodeFunctionData(functionFragment: "onERC1155BatchReceived", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue[], PromiseOrValue[], PromiseOrValue ]): string; encodeFunctionData(functionFragment: "onERC1155Received", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue ]): string; encodeFunctionData(functionFragment: "supportsInterface", values: [PromiseOrValue]): string; decodeFunctionResult(functionFragment: "onERC1155BatchReceived", data: BytesLike): Result; decodeFunctionResult(functionFragment: "onERC1155Received", data: BytesLike): Result; decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result; events: {}; } export interface ERC1155ReceiverUpgradeable extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: ERC1155ReceiverUpgradeableInterface; 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: { /** * Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param values An array containing amounts of each token being transferred (order and length must match ids array) */ onERC1155BatchReceived(operator: PromiseOrValue, from: PromiseOrValue, ids: PromiseOrValue[], values: PromiseOrValue[], data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param operator The address which initiated the transfer (i.e. msg.sender) * @param value The amount of tokens being transferred */ onERC1155Received(operator: PromiseOrValue, from: PromiseOrValue, id: PromiseOrValue, value: PromiseOrValue, data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; }; /** * Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param values An array containing amounts of each token being transferred (order and length must match ids array) */ onERC1155BatchReceived(operator: PromiseOrValue, from: PromiseOrValue, ids: PromiseOrValue[], values: PromiseOrValue[], data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param operator The address which initiated the transfer (i.e. msg.sender) * @param value The amount of tokens being transferred */ onERC1155Received(operator: PromiseOrValue, from: PromiseOrValue, id: PromiseOrValue, value: PromiseOrValue, data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; callStatic: { /** * Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param values An array containing amounts of each token being transferred (order and length must match ids array) */ onERC1155BatchReceived(operator: PromiseOrValue, from: PromiseOrValue, ids: PromiseOrValue[], values: PromiseOrValue[], data: PromiseOrValue, overrides?: CallOverrides): Promise; /** * Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param operator The address which initiated the transfer (i.e. msg.sender) * @param value The amount of tokens being transferred */ onERC1155Received(operator: PromiseOrValue, from: PromiseOrValue, id: PromiseOrValue, value: PromiseOrValue, data: PromiseOrValue, overrides?: CallOverrides): Promise; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; }; filters: {}; estimateGas: { /** * Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param values An array containing amounts of each token being transferred (order and length must match ids array) */ onERC1155BatchReceived(operator: PromiseOrValue, from: PromiseOrValue, ids: PromiseOrValue[], values: PromiseOrValue[], data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param operator The address which initiated the transfer (i.e. msg.sender) * @param value The amount of tokens being transferred */ onERC1155Received(operator: PromiseOrValue, from: PromiseOrValue, id: PromiseOrValue, value: PromiseOrValue, data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; }; populateTransaction: { /** * Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param values An array containing amounts of each token being transferred (order and length must match ids array) */ onERC1155BatchReceived(operator: PromiseOrValue, from: PromiseOrValue, ids: PromiseOrValue[], values: PromiseOrValue[], data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). * @param data Additional data with no specified format * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param operator The address which initiated the transfer (i.e. msg.sender) * @param value The amount of tokens being transferred */ onERC1155Received(operator: PromiseOrValue, from: PromiseOrValue, id: PromiseOrValue, value: PromiseOrValue, data: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue; }): Promise; /** * See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas. */ supportsInterface(interfaceId: PromiseOrValue, overrides?: CallOverrides): Promise; }; }