@ethsub/sol
Version:
ethsub contracts
302 lines (277 loc) • 14.3 kB
text/typescript
/* 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 } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface IERC1155ReceiverInterface extends utils.Interface {
functions: {
"supportsInterface(bytes4)": FunctionFragment;
"onERC1155Received(address,address,uint256,uint256,bytes)": FunctionFragment;
"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": FunctionFragment;
};
encodeFunctionData(
functionFragment: "supportsInterface",
values: [BytesLike]
): string;
encodeFunctionData(
functionFragment: "onERC1155Received",
values: [string, string, BigNumberish, BigNumberish, BytesLike]
): string;
encodeFunctionData(
functionFragment: "onERC1155BatchReceived",
values: [string, string, BigNumberish[], BigNumberish[], BytesLike]
): string;
decodeFunctionResult(
functionFragment: "supportsInterface",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "onERC1155Received",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "onERC1155BatchReceived",
data: BytesLike
): Result;
events: {};
}
export interface IERC1155Receiver extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
interface: IERC1155ReceiverInterface;
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: {
/**
* 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]>;
/**
* 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: string,
from: string,
id: BigNumberish,
value: BigNumberish,
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
/**
* 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: string,
from: string,
ids: BigNumberish[],
values: BigNumberish[],
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
};
/**
* 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>;
/**
* 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: string,
from: string,
id: BigNumberish,
value: BigNumberish,
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
/**
* 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: string,
from: string,
ids: BigNumberish[],
values: BigNumberish[],
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
callStatic: {
/**
* 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>;
/**
* 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: string,
from: string,
id: BigNumberish,
value: BigNumberish,
data: BytesLike,
overrides?: CallOverrides
): Promise<string>;
/**
* 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: string,
from: string,
ids: BigNumberish[],
values: BigNumberish[],
data: BytesLike,
overrides?: CallOverrides
): Promise<string>;
};
filters: {};
estimateGas: {
/**
* 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<BigNumber>;
/**
* 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: string,
from: string,
id: BigNumberish,
value: BigNumberish,
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
/**
* 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: string,
from: string,
ids: BigNumberish[],
values: BigNumberish[],
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};
populateTransaction: {
/**
* 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<PopulatedTransaction>;
/**
* 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: string,
from: string,
id: BigNumberish,
value: BigNumberish,
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
/**
* 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: string,
from: string,
ids: BigNumberish[],
values: BigNumberish[],
data: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
};
}