@opensea/sdk 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +70 -0
- package/lib/api/accounts.d.ts +27 -0
- package/lib/api/accounts.js +46 -0
- package/lib/api/accounts.js.map +1 -0
- package/lib/api/api.d.ts +489 -0
- package/lib/api/api.js +754 -0
- package/lib/api/api.js.map +1 -0
- package/lib/api/apiPaths.d.ts +46 -0
- package/lib/api/apiPaths.js +176 -0
- package/lib/api/apiPaths.js.map +1 -0
- package/lib/api/chains.d.ts +13 -0
- package/lib/api/chains.js +22 -0
- package/lib/api/chains.js.map +1 -0
- package/lib/api/collections.d.ts +34 -0
- package/lib/api/collections.js +80 -0
- package/lib/api/collections.js.map +1 -0
- package/lib/api/drops.d.ts +21 -0
- package/lib/api/drops.js +39 -0
- package/lib/api/drops.js.map +1 -0
- package/lib/api/events.d.ts +26 -0
- package/lib/api/events.js +43 -0
- package/lib/api/events.js.map +1 -0
- package/lib/api/fetcher.d.ts +24 -0
- package/lib/api/fetcher.js +3 -0
- package/lib/api/fetcher.js.map +1 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +19 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/listings.d.ts +44 -0
- package/lib/api/listings.js +88 -0
- package/lib/api/listings.js.map +1 -0
- package/lib/api/nfts.d.ts +39 -0
- package/lib/api/nfts.js +79 -0
- package/lib/api/nfts.js.map +1 -0
- package/lib/api/offers.d.ts +54 -0
- package/lib/api/offers.js +124 -0
- package/lib/api/offers.js.map +1 -0
- package/lib/api/orders.d.ts +50 -0
- package/lib/api/orders.js +153 -0
- package/lib/api/orders.js.map +1 -0
- package/lib/api/search.d.ts +13 -0
- package/lib/api/search.js +22 -0
- package/lib/api/search.js.map +1 -0
- package/lib/api/tokens.d.ts +25 -0
- package/lib/api/tokens.js +43 -0
- package/lib/api/tokens.js.map +1 -0
- package/lib/api/types.d.ts +1113 -0
- package/lib/api/types.js +65 -0
- package/lib/api/types.js.map +1 -0
- package/lib/constants.d.ts +22 -0
- package/lib/constants.js +52 -0
- package/lib/constants.js.map +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +24 -0
- package/lib/index.js.map +1 -0
- package/lib/orders/privateListings.d.ts +12 -0
- package/lib/orders/privateListings.js +130 -0
- package/lib/orders/privateListings.js.map +1 -0
- package/lib/orders/types.d.ts +160 -0
- package/lib/orders/types.js +10 -0
- package/lib/orders/types.js.map +1 -0
- package/lib/orders/utils.d.ts +89 -0
- package/lib/orders/utils.js +177 -0
- package/lib/orders/utils.js.map +1 -0
- package/lib/sdk/assets.d.ts +104 -0
- package/lib/sdk/assets.js +398 -0
- package/lib/sdk/assets.js.map +1 -0
- package/lib/sdk/cancellation.d.ts +97 -0
- package/lib/sdk/cancellation.js +235 -0
- package/lib/sdk/cancellation.js.map +1 -0
- package/lib/sdk/context.d.ts +28 -0
- package/lib/sdk/context.js +3 -0
- package/lib/sdk/context.js.map +1 -0
- package/lib/sdk/fulfillment.d.ts +153 -0
- package/lib/sdk/fulfillment.js +298 -0
- package/lib/sdk/fulfillment.js.map +1 -0
- package/lib/sdk/orders.d.ts +253 -0
- package/lib/sdk/orders.js +679 -0
- package/lib/sdk/orders.js.map +1 -0
- package/lib/sdk/tokens.d.ts +31 -0
- package/lib/sdk/tokens.js +65 -0
- package/lib/sdk/tokens.js.map +1 -0
- package/lib/sdk.d.ts +560 -0
- package/lib/sdk.js +693 -0
- package/lib/sdk.js.map +1 -0
- package/lib/src/api/accounts.d.ts +18 -0
- package/lib/src/api/accounts.js +30 -0
- package/lib/src/api/accounts.js.map +1 -0
- package/lib/src/api/api.d.ts +429 -0
- package/lib/src/api/api.js +652 -0
- package/lib/src/api/api.js.map +1 -0
- package/lib/src/api/apiPaths.d.ts +37 -0
- package/lib/src/api/apiPaths.js +140 -0
- package/lib/src/api/apiPaths.js.map +1 -0
- package/lib/src/api/collections.d.ts +26 -0
- package/lib/src/api/collections.js +57 -0
- package/lib/src/api/collections.js.map +1 -0
- package/lib/src/api/events.d.ts +26 -0
- package/lib/src/api/events.js +42 -0
- package/lib/src/api/events.js.map +1 -0
- package/lib/src/api/fetcher.d.ts +24 -0
- package/lib/src/api/fetcher.js +3 -0
- package/lib/src/api/fetcher.js.map +1 -0
- package/lib/src/api/index.d.ts +2 -0
- package/lib/src/api/index.js +19 -0
- package/lib/src/api/index.js.map +1 -0
- package/lib/src/api/listings.d.ts +44 -0
- package/lib/src/api/listings.js +86 -0
- package/lib/src/api/listings.js.map +1 -0
- package/lib/src/api/nfts.d.ts +35 -0
- package/lib/src/api/nfts.js +66 -0
- package/lib/src/api/nfts.js.map +1 -0
- package/lib/src/api/offers.d.ts +54 -0
- package/lib/src/api/offers.js +122 -0
- package/lib/src/api/offers.js.map +1 -0
- package/lib/src/api/orders.d.ts +50 -0
- package/lib/src/api/orders.js +151 -0
- package/lib/src/api/orders.js.map +1 -0
- package/lib/src/api/search.d.ts +13 -0
- package/lib/src/api/search.js +21 -0
- package/lib/src/api/search.js.map +1 -0
- package/lib/src/api/tokens.d.ts +25 -0
- package/lib/src/api/tokens.js +42 -0
- package/lib/src/api/tokens.js.map +1 -0
- package/lib/src/api/types.d.ts +840 -0
- package/lib/src/api/types.js +65 -0
- package/lib/src/api/types.js.map +1 -0
- package/lib/src/constants.d.ts +22 -0
- package/lib/src/constants.js +52 -0
- package/lib/src/constants.js.map +1 -0
- package/lib/src/index.d.ts +18 -0
- package/lib/src/index.js +24 -0
- package/lib/src/index.js.map +1 -0
- package/lib/src/orders/privateListings.d.ts +12 -0
- package/lib/src/orders/privateListings.js +130 -0
- package/lib/src/orders/privateListings.js.map +1 -0
- package/lib/src/orders/types.d.ts +160 -0
- package/lib/src/orders/types.js +10 -0
- package/lib/src/orders/types.js.map +1 -0
- package/lib/src/orders/utils.d.ts +89 -0
- package/lib/src/orders/utils.js +177 -0
- package/lib/src/orders/utils.js.map +1 -0
- package/lib/src/sdk/assets.d.ts +104 -0
- package/lib/src/sdk/assets.js +397 -0
- package/lib/src/sdk/assets.js.map +1 -0
- package/lib/src/sdk/cancellation.d.ts +97 -0
- package/lib/src/sdk/cancellation.js +234 -0
- package/lib/src/sdk/cancellation.js.map +1 -0
- package/lib/src/sdk/context.d.ts +28 -0
- package/lib/src/sdk/context.js +3 -0
- package/lib/src/sdk/context.js.map +1 -0
- package/lib/src/sdk/fulfillment.d.ts +153 -0
- package/lib/src/sdk/fulfillment.js +296 -0
- package/lib/src/sdk/fulfillment.js.map +1 -0
- package/lib/src/sdk/orders.d.ts +253 -0
- package/lib/src/sdk/orders.js +677 -0
- package/lib/src/sdk/orders.js.map +1 -0
- package/lib/src/sdk/tokens.d.ts +31 -0
- package/lib/src/sdk/tokens.js +64 -0
- package/lib/src/sdk/tokens.js.map +1 -0
- package/lib/src/sdk.d.ts +560 -0
- package/lib/src/sdk.js +675 -0
- package/lib/src/sdk.js.map +1 -0
- package/lib/src/typechain/contracts/ERC1155.d.ts +236 -0
- package/lib/src/typechain/contracts/ERC1155.js +3 -0
- package/lib/src/typechain/contracts/ERC1155.js.map +1 -0
- package/lib/src/typechain/contracts/ERC20.d.ts +141 -0
- package/lib/src/typechain/contracts/ERC20.js +3 -0
- package/lib/src/typechain/contracts/ERC20.js.map +1 -0
- package/lib/src/typechain/contracts/ERC721.d.ts +213 -0
- package/lib/src/typechain/contracts/ERC721.js +3 -0
- package/lib/src/typechain/contracts/ERC721.js.map +1 -0
- package/lib/src/typechain/contracts/Multicall3.d.ts +57 -0
- package/lib/src/typechain/contracts/Multicall3.js +3 -0
- package/lib/src/typechain/contracts/Multicall3.js.map +1 -0
- package/lib/src/typechain/contracts/TransferHelper.d.ts +55 -0
- package/lib/src/typechain/contracts/TransferHelper.js +3 -0
- package/lib/src/typechain/contracts/TransferHelper.js.map +1 -0
- package/lib/src/typechain/contracts/common.d.ts +50 -0
- package/lib/src/typechain/contracts/common.js +3 -0
- package/lib/src/typechain/contracts/common.js.map +1 -0
- package/lib/src/typechain/contracts/factories/ERC1155__factory.d.ts +250 -0
- package/lib/src/typechain/contracts/factories/ERC1155__factory.js +332 -0
- package/lib/src/typechain/contracts/factories/ERC1155__factory.js.map +1 -0
- package/lib/src/typechain/contracts/factories/ERC20__factory.d.ts +174 -0
- package/lib/src/typechain/contracts/factories/ERC20__factory.js +240 -0
- package/lib/src/typechain/contracts/factories/ERC20__factory.js.map +1 -0
- package/lib/src/typechain/contracts/factories/ERC721__factory.d.ts +268 -0
- package/lib/src/typechain/contracts/factories/ERC721__factory.js +351 -0
- package/lib/src/typechain/contracts/factories/ERC721__factory.js.map +1 -0
- package/lib/src/typechain/contracts/factories/Multicall3__factory.d.ts +43 -0
- package/lib/src/typechain/contracts/factories/Multicall3__factory.js +68 -0
- package/lib/src/typechain/contracts/factories/Multicall3__factory.js.map +1 -0
- package/lib/src/typechain/contracts/factories/TransferHelper__factory.d.ts +46 -0
- package/lib/src/typechain/contracts/factories/TransferHelper__factory.js +71 -0
- package/lib/src/typechain/contracts/factories/TransferHelper__factory.js.map +1 -0
- package/lib/src/typechain/contracts/factories/index.d.ts +5 -0
- package/lib/src/typechain/contracts/factories/index.js +17 -0
- package/lib/src/typechain/contracts/factories/index.js.map +1 -0
- package/lib/src/typechain/contracts/index.d.ts +11 -0
- package/lib/src/typechain/contracts/index.js +48 -0
- package/lib/src/typechain/contracts/index.js.map +1 -0
- package/lib/src/types.d.ts +387 -0
- package/lib/src/types.js +127 -0
- package/lib/src/types.js.map +1 -0
- package/lib/src/utils/chain.d.ts +60 -0
- package/lib/src/utils/chain.js +248 -0
- package/lib/src/utils/chain.js.map +1 -0
- package/lib/src/utils/converters.d.ts +37 -0
- package/lib/src/utils/converters.js +137 -0
- package/lib/src/utils/converters.js.map +1 -0
- package/lib/src/utils/dateHelper.d.ts +38 -0
- package/lib/src/utils/dateHelper.js +52 -0
- package/lib/src/utils/dateHelper.js.map +1 -0
- package/lib/src/utils/fees.d.ts +13 -0
- package/lib/src/utils/fees.js +29 -0
- package/lib/src/utils/fees.js.map +1 -0
- package/lib/src/utils/index.d.ts +2 -0
- package/lib/src/utils/index.js +19 -0
- package/lib/src/utils/index.js.map +1 -0
- package/lib/src/utils/protocol.d.ts +75 -0
- package/lib/src/utils/protocol.js +161 -0
- package/lib/src/utils/protocol.js.map +1 -0
- package/lib/src/utils/rateLimit.d.ts +34 -0
- package/lib/src/utils/rateLimit.js +97 -0
- package/lib/src/utils/rateLimit.js.map +1 -0
- package/lib/src/utils/stringHelper.d.ts +18 -0
- package/lib/src/utils/stringHelper.js +24 -0
- package/lib/src/utils/stringHelper.js.map +1 -0
- package/lib/src/utils/utils.d.ts +18 -0
- package/lib/src/utils/utils.js +45 -0
- package/lib/src/utils/utils.js.map +1 -0
- package/lib/typechain/contracts/ERC1155.d.ts +236 -0
- package/lib/typechain/contracts/ERC1155.js +3 -0
- package/lib/typechain/contracts/ERC1155.js.map +1 -0
- package/lib/typechain/contracts/ERC20.d.ts +141 -0
- package/lib/typechain/contracts/ERC20.js +3 -0
- package/lib/typechain/contracts/ERC20.js.map +1 -0
- package/lib/typechain/contracts/ERC721.d.ts +213 -0
- package/lib/typechain/contracts/ERC721.js +3 -0
- package/lib/typechain/contracts/ERC721.js.map +1 -0
- package/lib/typechain/contracts/Multicall3.d.ts +57 -0
- package/lib/typechain/contracts/Multicall3.js +3 -0
- package/lib/typechain/contracts/Multicall3.js.map +1 -0
- package/lib/typechain/contracts/TransferHelper.d.ts +55 -0
- package/lib/typechain/contracts/TransferHelper.js +3 -0
- package/lib/typechain/contracts/TransferHelper.js.map +1 -0
- package/lib/typechain/contracts/common.d.ts +50 -0
- package/lib/typechain/contracts/common.js +3 -0
- package/lib/typechain/contracts/common.js.map +1 -0
- package/lib/typechain/contracts/factories/ERC1155__factory.d.ts +250 -0
- package/lib/typechain/contracts/factories/ERC1155__factory.js +332 -0
- package/lib/typechain/contracts/factories/ERC1155__factory.js.map +1 -0
- package/lib/typechain/contracts/factories/ERC20__factory.d.ts +174 -0
- package/lib/typechain/contracts/factories/ERC20__factory.js +240 -0
- package/lib/typechain/contracts/factories/ERC20__factory.js.map +1 -0
- package/lib/typechain/contracts/factories/ERC721__factory.d.ts +268 -0
- package/lib/typechain/contracts/factories/ERC721__factory.js +351 -0
- package/lib/typechain/contracts/factories/ERC721__factory.js.map +1 -0
- package/lib/typechain/contracts/factories/Multicall3__factory.d.ts +43 -0
- package/lib/typechain/contracts/factories/Multicall3__factory.js +68 -0
- package/lib/typechain/contracts/factories/Multicall3__factory.js.map +1 -0
- package/lib/typechain/contracts/factories/TransferHelper__factory.d.ts +46 -0
- package/lib/typechain/contracts/factories/TransferHelper__factory.js +71 -0
- package/lib/typechain/contracts/factories/TransferHelper__factory.js.map +1 -0
- package/lib/typechain/contracts/factories/index.d.ts +5 -0
- package/lib/typechain/contracts/factories/index.js +17 -0
- package/lib/typechain/contracts/factories/index.js.map +1 -0
- package/lib/typechain/contracts/index.d.ts +11 -0
- package/lib/typechain/contracts/index.js +48 -0
- package/lib/typechain/contracts/index.js.map +1 -0
- package/lib/types.d.ts +389 -0
- package/lib/types.js +129 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/chain.d.ts +64 -0
- package/lib/utils/chain.js +211 -0
- package/lib/utils/chain.js.map +1 -0
- package/lib/utils/chainIds.generated.d.ts +7 -0
- package/lib/utils/chainIds.generated.js +37 -0
- package/lib/utils/chainIds.generated.js.map +1 -0
- package/lib/utils/converters.d.ts +37 -0
- package/lib/utils/converters.js +137 -0
- package/lib/utils/converters.js.map +1 -0
- package/lib/utils/dateHelper.d.ts +38 -0
- package/lib/utils/dateHelper.js +52 -0
- package/lib/utils/dateHelper.js.map +1 -0
- package/lib/utils/fees.d.ts +13 -0
- package/lib/utils/fees.js +29 -0
- package/lib/utils/fees.js.map +1 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +19 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/protocol.d.ts +75 -0
- package/lib/utils/protocol.js +161 -0
- package/lib/utils/protocol.js.map +1 -0
- package/lib/utils/rateLimit.d.ts +34 -0
- package/lib/utils/rateLimit.js +97 -0
- package/lib/utils/rateLimit.js.map +1 -0
- package/lib/utils/stringHelper.d.ts +18 -0
- package/lib/utils/stringHelper.js +24 -0
- package/lib/utils/stringHelper.js.map +1 -0
- package/lib/utils/utils.d.ts +18 -0
- package/lib/utils/utils.js +45 -0
- package/lib/utils/utils.js.map +1 -0
- package/package.json +72 -0
- package/src/abi/ERC1155.json +314 -0
- package/src/abi/ERC20.json +222 -0
- package/src/abi/ERC721.json +333 -0
- package/src/abi/Multicall3.json +50 -0
- package/src/abi/TransferHelper.json +53 -0
- package/src/api/accounts.ts +69 -0
- package/src/api/api.ts +1152 -0
- package/src/api/apiPaths.ts +208 -0
- package/src/api/chains.ts +18 -0
- package/src/api/collections.ts +120 -0
- package/src/api/drops.ts +49 -0
- package/src/api/events.ts +71 -0
- package/src/api/fetcher.ts +31 -0
- package/src/api/index.ts +2 -0
- package/src/api/listings.ts +126 -0
- package/src/api/nfts.ts +144 -0
- package/src/api/offers.ts +242 -0
- package/src/api/orders.ts +283 -0
- package/src/api/search.ts +21 -0
- package/src/api/tokens.ts +67 -0
- package/src/api/types.ts +1210 -0
- package/src/constants.ts +90 -0
- package/src/index.ts +22 -0
- package/src/orders/privateListings.ts +173 -0
- package/src/orders/types.ts +191 -0
- package/src/orders/utils.ts +253 -0
- package/src/sdk/assets.ts +591 -0
- package/src/sdk/cancellation.ts +346 -0
- package/src/sdk/context.ts +33 -0
- package/src/sdk/fulfillment.ts +478 -0
- package/src/sdk/orders.ts +1149 -0
- package/src/sdk/tokens.ts +95 -0
- package/src/sdk.ts +1051 -0
- package/src/typechain/contracts/ERC1155.ts +440 -0
- package/src/typechain/contracts/ERC20.ts +286 -0
- package/src/typechain/contracts/ERC721.ts +412 -0
- package/src/typechain/contracts/Multicall3.ts +117 -0
- package/src/typechain/contracts/TransferHelper.ts +122 -0
- package/src/typechain/contracts/common.ts +131 -0
- package/src/typechain/contracts/factories/ERC1155__factory.ts +331 -0
- package/src/typechain/contracts/factories/ERC20__factory.ts +239 -0
- package/src/typechain/contracts/factories/ERC721__factory.ts +350 -0
- package/src/typechain/contracts/factories/Multicall3__factory.ts +67 -0
- package/src/typechain/contracts/factories/TransferHelper__factory.ts +76 -0
- package/src/typechain/contracts/factories/index.ts +8 -0
- package/src/typechain/contracts/index.ts +14 -0
- package/src/types.ts +413 -0
- package/src/utils/chain.ts +224 -0
- package/src/utils/chainIds.generated.ts +34 -0
- package/src/utils/converters.ts +145 -0
- package/src/utils/dateHelper.ts +48 -0
- package/src/utils/fees.ts +31 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/protocol.ts +185 -0
- package/src/utils/rateLimit.ts +147 -0
- package/src/utils/stringHelper.ts +25 -0
- package/src/utils/utils.ts +36 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export interface ERC1155Interface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "balanceOf" | "balanceOfBatch" | "isApprovedForAll" | "safeBatchTransferFrom" | "safeTransferFrom" | "setApprovalForAll" | "supportsInterface" | "uri"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "ApprovalForAll" | "TransferBatch" | "TransferSingle" | "URI"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike, BigNumberish]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "balanceOfBatch", values: [AddressLike[], BigNumberish[]]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "safeBatchTransferFrom", values: [
|
|
10
|
+
AddressLike,
|
|
11
|
+
AddressLike,
|
|
12
|
+
BigNumberish[],
|
|
13
|
+
BigNumberish[],
|
|
14
|
+
BytesLike
|
|
15
|
+
]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "safeTransferFrom", values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string;
|
|
20
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "balanceOfBatch", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "safeBatchTransferFrom", data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: "safeTransferFrom", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace ApprovalForAllEvent {
|
|
30
|
+
type InputTuple = [
|
|
31
|
+
account: AddressLike,
|
|
32
|
+
operator: AddressLike,
|
|
33
|
+
approved: boolean
|
|
34
|
+
];
|
|
35
|
+
type OutputTuple = [
|
|
36
|
+
account: string,
|
|
37
|
+
operator: string,
|
|
38
|
+
approved: boolean
|
|
39
|
+
];
|
|
40
|
+
interface OutputObject {
|
|
41
|
+
account: string;
|
|
42
|
+
operator: string;
|
|
43
|
+
approved: boolean;
|
|
44
|
+
}
|
|
45
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
46
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
47
|
+
type Log = TypedEventLog<Event>;
|
|
48
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace TransferBatchEvent {
|
|
51
|
+
type InputTuple = [
|
|
52
|
+
operator: AddressLike,
|
|
53
|
+
from: AddressLike,
|
|
54
|
+
to: AddressLike,
|
|
55
|
+
ids: BigNumberish[],
|
|
56
|
+
values: BigNumberish[]
|
|
57
|
+
];
|
|
58
|
+
type OutputTuple = [
|
|
59
|
+
operator: string,
|
|
60
|
+
from: string,
|
|
61
|
+
to: string,
|
|
62
|
+
ids: bigint[],
|
|
63
|
+
values: bigint[]
|
|
64
|
+
];
|
|
65
|
+
interface OutputObject {
|
|
66
|
+
operator: string;
|
|
67
|
+
from: string;
|
|
68
|
+
to: string;
|
|
69
|
+
ids: bigint[];
|
|
70
|
+
values: bigint[];
|
|
71
|
+
}
|
|
72
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
73
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
74
|
+
type Log = TypedEventLog<Event>;
|
|
75
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace TransferSingleEvent {
|
|
78
|
+
type InputTuple = [
|
|
79
|
+
operator: AddressLike,
|
|
80
|
+
from: AddressLike,
|
|
81
|
+
to: AddressLike,
|
|
82
|
+
id: BigNumberish,
|
|
83
|
+
value: BigNumberish
|
|
84
|
+
];
|
|
85
|
+
type OutputTuple = [
|
|
86
|
+
operator: string,
|
|
87
|
+
from: string,
|
|
88
|
+
to: string,
|
|
89
|
+
id: bigint,
|
|
90
|
+
value: bigint
|
|
91
|
+
];
|
|
92
|
+
interface OutputObject {
|
|
93
|
+
operator: string;
|
|
94
|
+
from: string;
|
|
95
|
+
to: string;
|
|
96
|
+
id: bigint;
|
|
97
|
+
value: bigint;
|
|
98
|
+
}
|
|
99
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
100
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
101
|
+
type Log = TypedEventLog<Event>;
|
|
102
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace URIEvent {
|
|
105
|
+
type InputTuple = [value: string, id: BigNumberish];
|
|
106
|
+
type OutputTuple = [value: string, id: bigint];
|
|
107
|
+
interface OutputObject {
|
|
108
|
+
value: string;
|
|
109
|
+
id: bigint;
|
|
110
|
+
}
|
|
111
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
112
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
113
|
+
type Log = TypedEventLog<Event>;
|
|
114
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
115
|
+
}
|
|
116
|
+
export interface ERC1155 extends BaseContract {
|
|
117
|
+
connect(runner?: ContractRunner | null): ERC1155;
|
|
118
|
+
waitForDeployment(): Promise<this>;
|
|
119
|
+
interface: ERC1155Interface;
|
|
120
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
121
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
122
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
123
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
124
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
125
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
126
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
127
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
128
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
129
|
+
balanceOf: TypedContractMethod<[
|
|
130
|
+
account: AddressLike,
|
|
131
|
+
id: BigNumberish
|
|
132
|
+
], [
|
|
133
|
+
bigint
|
|
134
|
+
], "view">;
|
|
135
|
+
balanceOfBatch: TypedContractMethod<[
|
|
136
|
+
accounts: AddressLike[],
|
|
137
|
+
ids: BigNumberish[]
|
|
138
|
+
], [
|
|
139
|
+
bigint[]
|
|
140
|
+
], "view">;
|
|
141
|
+
isApprovedForAll: TypedContractMethod<[
|
|
142
|
+
account: AddressLike,
|
|
143
|
+
operator: AddressLike
|
|
144
|
+
], [
|
|
145
|
+
boolean
|
|
146
|
+
], "view">;
|
|
147
|
+
safeBatchTransferFrom: TypedContractMethod<[
|
|
148
|
+
from: AddressLike,
|
|
149
|
+
to: AddressLike,
|
|
150
|
+
ids: BigNumberish[],
|
|
151
|
+
amounts: BigNumberish[],
|
|
152
|
+
data: BytesLike
|
|
153
|
+
], [
|
|
154
|
+
void
|
|
155
|
+
], "nonpayable">;
|
|
156
|
+
safeTransferFrom: TypedContractMethod<[
|
|
157
|
+
from: AddressLike,
|
|
158
|
+
to: AddressLike,
|
|
159
|
+
id: BigNumberish,
|
|
160
|
+
amount: BigNumberish,
|
|
161
|
+
data: BytesLike
|
|
162
|
+
], [
|
|
163
|
+
void
|
|
164
|
+
], "nonpayable">;
|
|
165
|
+
setApprovalForAll: TypedContractMethod<[
|
|
166
|
+
operator: AddressLike,
|
|
167
|
+
approved: boolean
|
|
168
|
+
], [
|
|
169
|
+
void
|
|
170
|
+
], "nonpayable">;
|
|
171
|
+
supportsInterface: TypedContractMethod<[
|
|
172
|
+
interfaceId: BytesLike
|
|
173
|
+
], [
|
|
174
|
+
boolean
|
|
175
|
+
], "view">;
|
|
176
|
+
uri: TypedContractMethod<[id: BigNumberish], [string], "view">;
|
|
177
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
178
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[
|
|
179
|
+
account: AddressLike,
|
|
180
|
+
id: BigNumberish
|
|
181
|
+
], [
|
|
182
|
+
bigint
|
|
183
|
+
], "view">;
|
|
184
|
+
getFunction(nameOrSignature: "balanceOfBatch"): TypedContractMethod<[
|
|
185
|
+
accounts: AddressLike[],
|
|
186
|
+
ids: BigNumberish[]
|
|
187
|
+
], [
|
|
188
|
+
bigint[]
|
|
189
|
+
], "view">;
|
|
190
|
+
getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
|
|
191
|
+
account: AddressLike,
|
|
192
|
+
operator: AddressLike
|
|
193
|
+
], [
|
|
194
|
+
boolean
|
|
195
|
+
], "view">;
|
|
196
|
+
getFunction(nameOrSignature: "safeBatchTransferFrom"): TypedContractMethod<[
|
|
197
|
+
from: AddressLike,
|
|
198
|
+
to: AddressLike,
|
|
199
|
+
ids: BigNumberish[],
|
|
200
|
+
amounts: BigNumberish[],
|
|
201
|
+
data: BytesLike
|
|
202
|
+
], [
|
|
203
|
+
void
|
|
204
|
+
], "nonpayable">;
|
|
205
|
+
getFunction(nameOrSignature: "safeTransferFrom"): TypedContractMethod<[
|
|
206
|
+
from: AddressLike,
|
|
207
|
+
to: AddressLike,
|
|
208
|
+
id: BigNumberish,
|
|
209
|
+
amount: BigNumberish,
|
|
210
|
+
data: BytesLike
|
|
211
|
+
], [
|
|
212
|
+
void
|
|
213
|
+
], "nonpayable">;
|
|
214
|
+
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
215
|
+
operator: AddressLike,
|
|
216
|
+
approved: boolean
|
|
217
|
+
], [
|
|
218
|
+
void
|
|
219
|
+
], "nonpayable">;
|
|
220
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
221
|
+
getFunction(nameOrSignature: "uri"): TypedContractMethod<[id: BigNumberish], [string], "view">;
|
|
222
|
+
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
223
|
+
getEvent(key: "TransferBatch"): TypedContractEvent<TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject>;
|
|
224
|
+
getEvent(key: "TransferSingle"): TypedContractEvent<TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject>;
|
|
225
|
+
getEvent(key: "URI"): TypedContractEvent<URIEvent.InputTuple, URIEvent.OutputTuple, URIEvent.OutputObject>;
|
|
226
|
+
filters: {
|
|
227
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
228
|
+
ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
229
|
+
"TransferBatch(address,address,address,uint256[],uint256[])": TypedContractEvent<TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject>;
|
|
230
|
+
TransferBatch: TypedContractEvent<TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject>;
|
|
231
|
+
"TransferSingle(address,address,address,uint256,uint256)": TypedContractEvent<TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject>;
|
|
232
|
+
TransferSingle: TypedContractEvent<TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject>;
|
|
233
|
+
"URI(string,uint256)": TypedContractEvent<URIEvent.InputTuple, URIEvent.OutputTuple, URIEvent.OutputObject>;
|
|
234
|
+
URI: TypedContractEvent<URIEvent.InputTuple, URIEvent.OutputTuple, URIEvent.OutputObject>;
|
|
235
|
+
};
|
|
236
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC1155.js","sourceRoot":"","sources":["../../../src/typechain/contracts/ERC1155.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export interface ERC20Interface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "name" | "approve" | "totalSupply" | "transferFrom" | "decimals" | "balanceOf" | "symbol" | "transfer" | "allowance"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
15
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
17
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
18
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace ApprovalEvent {
|
|
26
|
+
type InputTuple = [
|
|
27
|
+
owner: AddressLike,
|
|
28
|
+
spender: AddressLike,
|
|
29
|
+
value: BigNumberish
|
|
30
|
+
];
|
|
31
|
+
type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
32
|
+
interface OutputObject {
|
|
33
|
+
owner: string;
|
|
34
|
+
spender: string;
|
|
35
|
+
value: bigint;
|
|
36
|
+
}
|
|
37
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
38
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
39
|
+
type Log = TypedEventLog<Event>;
|
|
40
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace TransferEvent {
|
|
43
|
+
type InputTuple = [
|
|
44
|
+
from: AddressLike,
|
|
45
|
+
to: AddressLike,
|
|
46
|
+
value: BigNumberish
|
|
47
|
+
];
|
|
48
|
+
type OutputTuple = [from: string, to: string, value: bigint];
|
|
49
|
+
interface OutputObject {
|
|
50
|
+
from: string;
|
|
51
|
+
to: string;
|
|
52
|
+
value: bigint;
|
|
53
|
+
}
|
|
54
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
55
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
56
|
+
type Log = TypedEventLog<Event>;
|
|
57
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
58
|
+
}
|
|
59
|
+
export interface ERC20 extends BaseContract {
|
|
60
|
+
connect(runner?: ContractRunner | null): ERC20;
|
|
61
|
+
waitForDeployment(): Promise<this>;
|
|
62
|
+
interface: ERC20Interface;
|
|
63
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
64
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
65
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
66
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
67
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
68
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
69
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
70
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
71
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
72
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
73
|
+
approve: TypedContractMethod<[
|
|
74
|
+
_spender: AddressLike,
|
|
75
|
+
_value: BigNumberish
|
|
76
|
+
], [
|
|
77
|
+
boolean
|
|
78
|
+
], "nonpayable">;
|
|
79
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
80
|
+
transferFrom: TypedContractMethod<[
|
|
81
|
+
_from: AddressLike,
|
|
82
|
+
_to: AddressLike,
|
|
83
|
+
_value: BigNumberish
|
|
84
|
+
], [
|
|
85
|
+
boolean
|
|
86
|
+
], "nonpayable">;
|
|
87
|
+
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
88
|
+
balanceOf: TypedContractMethod<[_owner: AddressLike], [bigint], "view">;
|
|
89
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
90
|
+
transfer: TypedContractMethod<[
|
|
91
|
+
_to: AddressLike,
|
|
92
|
+
_value: BigNumberish
|
|
93
|
+
], [
|
|
94
|
+
boolean
|
|
95
|
+
], "nonpayable">;
|
|
96
|
+
allowance: TypedContractMethod<[
|
|
97
|
+
_owner: AddressLike,
|
|
98
|
+
_spender: AddressLike
|
|
99
|
+
], [
|
|
100
|
+
bigint
|
|
101
|
+
], "view">;
|
|
102
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
103
|
+
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
104
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
105
|
+
_spender: AddressLike,
|
|
106
|
+
_value: BigNumberish
|
|
107
|
+
], [
|
|
108
|
+
boolean
|
|
109
|
+
], "nonpayable">;
|
|
110
|
+
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
111
|
+
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
112
|
+
_from: AddressLike,
|
|
113
|
+
_to: AddressLike,
|
|
114
|
+
_value: BigNumberish
|
|
115
|
+
], [
|
|
116
|
+
boolean
|
|
117
|
+
], "nonpayable">;
|
|
118
|
+
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
|
|
119
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[_owner: AddressLike], [bigint], "view">;
|
|
120
|
+
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
|
|
121
|
+
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
122
|
+
_to: AddressLike,
|
|
123
|
+
_value: BigNumberish
|
|
124
|
+
], [
|
|
125
|
+
boolean
|
|
126
|
+
], "nonpayable">;
|
|
127
|
+
getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
|
|
128
|
+
_owner: AddressLike,
|
|
129
|
+
_spender: AddressLike
|
|
130
|
+
], [
|
|
131
|
+
bigint
|
|
132
|
+
], "view">;
|
|
133
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
134
|
+
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
135
|
+
filters: {
|
|
136
|
+
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
137
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
138
|
+
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
139
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC20.js","sourceRoot":"","sources":["../../../src/typechain/contracts/ERC20.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export interface ERC721Interface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "approve" | "mint" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "transferFrom" | "balanceOf" | "getApproved" | "isApprovedForAll" | "ownerOf" | "supportsInterface"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Transfer" | "Approval" | "ApprovalForAll"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "mint", values: [AddressLike, BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "getApproved", values: [BigNumberish]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "ownerOf", values: [BigNumberish]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
17
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
18
|
+
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace TransferEvent {
|
|
30
|
+
type InputTuple = [
|
|
31
|
+
from: AddressLike,
|
|
32
|
+
to: AddressLike,
|
|
33
|
+
tokenId: BigNumberish
|
|
34
|
+
];
|
|
35
|
+
type OutputTuple = [from: string, to: string, tokenId: bigint];
|
|
36
|
+
interface OutputObject {
|
|
37
|
+
from: string;
|
|
38
|
+
to: string;
|
|
39
|
+
tokenId: bigint;
|
|
40
|
+
}
|
|
41
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
42
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
43
|
+
type Log = TypedEventLog<Event>;
|
|
44
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace ApprovalEvent {
|
|
47
|
+
type InputTuple = [
|
|
48
|
+
owner: AddressLike,
|
|
49
|
+
approved: AddressLike,
|
|
50
|
+
tokenId: BigNumberish
|
|
51
|
+
];
|
|
52
|
+
type OutputTuple = [owner: string, approved: string, tokenId: bigint];
|
|
53
|
+
interface OutputObject {
|
|
54
|
+
owner: string;
|
|
55
|
+
approved: string;
|
|
56
|
+
tokenId: bigint;
|
|
57
|
+
}
|
|
58
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
59
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
60
|
+
type Log = TypedEventLog<Event>;
|
|
61
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace ApprovalForAllEvent {
|
|
64
|
+
type InputTuple = [
|
|
65
|
+
owner: AddressLike,
|
|
66
|
+
operator: AddressLike,
|
|
67
|
+
approved: boolean
|
|
68
|
+
];
|
|
69
|
+
type OutputTuple = [
|
|
70
|
+
owner: string,
|
|
71
|
+
operator: string,
|
|
72
|
+
approved: boolean
|
|
73
|
+
];
|
|
74
|
+
interface OutputObject {
|
|
75
|
+
owner: string;
|
|
76
|
+
operator: string;
|
|
77
|
+
approved: boolean;
|
|
78
|
+
}
|
|
79
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
80
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
81
|
+
type Log = TypedEventLog<Event>;
|
|
82
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
83
|
+
}
|
|
84
|
+
export interface ERC721 extends BaseContract {
|
|
85
|
+
connect(runner?: ContractRunner | null): ERC721;
|
|
86
|
+
waitForDeployment(): Promise<this>;
|
|
87
|
+
interface: ERC721Interface;
|
|
88
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
89
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
90
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
91
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
92
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
93
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
94
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
95
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
96
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
97
|
+
approve: TypedContractMethod<[
|
|
98
|
+
to: AddressLike,
|
|
99
|
+
tokenId: BigNumberish
|
|
100
|
+
], [
|
|
101
|
+
void
|
|
102
|
+
], "nonpayable">;
|
|
103
|
+
mint: TypedContractMethod<[
|
|
104
|
+
to: AddressLike,
|
|
105
|
+
tokenId: BigNumberish
|
|
106
|
+
], [
|
|
107
|
+
void
|
|
108
|
+
], "nonpayable">;
|
|
109
|
+
"safeTransferFrom(address,address,uint256)": TypedContractMethod<[
|
|
110
|
+
from: AddressLike,
|
|
111
|
+
to: AddressLike,
|
|
112
|
+
tokenId: BigNumberish
|
|
113
|
+
], [
|
|
114
|
+
void
|
|
115
|
+
], "nonpayable">;
|
|
116
|
+
"safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<[
|
|
117
|
+
from: AddressLike,
|
|
118
|
+
to: AddressLike,
|
|
119
|
+
tokenId: BigNumberish,
|
|
120
|
+
_data: BytesLike
|
|
121
|
+
], [
|
|
122
|
+
void
|
|
123
|
+
], "nonpayable">;
|
|
124
|
+
setApprovalForAll: TypedContractMethod<[
|
|
125
|
+
to: AddressLike,
|
|
126
|
+
approved: boolean
|
|
127
|
+
], [
|
|
128
|
+
void
|
|
129
|
+
], "nonpayable">;
|
|
130
|
+
transferFrom: TypedContractMethod<[
|
|
131
|
+
from: AddressLike,
|
|
132
|
+
to: AddressLike,
|
|
133
|
+
tokenId: BigNumberish
|
|
134
|
+
], [
|
|
135
|
+
void
|
|
136
|
+
], "nonpayable">;
|
|
137
|
+
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
138
|
+
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
139
|
+
isApprovedForAll: TypedContractMethod<[
|
|
140
|
+
owner: AddressLike,
|
|
141
|
+
operator: AddressLike
|
|
142
|
+
], [
|
|
143
|
+
boolean
|
|
144
|
+
], "view">;
|
|
145
|
+
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
146
|
+
supportsInterface: TypedContractMethod<[
|
|
147
|
+
interfaceId: BytesLike
|
|
148
|
+
], [
|
|
149
|
+
boolean
|
|
150
|
+
], "view">;
|
|
151
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
152
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
153
|
+
to: AddressLike,
|
|
154
|
+
tokenId: BigNumberish
|
|
155
|
+
], [
|
|
156
|
+
void
|
|
157
|
+
], "nonpayable">;
|
|
158
|
+
getFunction(nameOrSignature: "mint"): TypedContractMethod<[
|
|
159
|
+
to: AddressLike,
|
|
160
|
+
tokenId: BigNumberish
|
|
161
|
+
], [
|
|
162
|
+
void
|
|
163
|
+
], "nonpayable">;
|
|
164
|
+
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
|
|
165
|
+
from: AddressLike,
|
|
166
|
+
to: AddressLike,
|
|
167
|
+
tokenId: BigNumberish
|
|
168
|
+
], [
|
|
169
|
+
void
|
|
170
|
+
], "nonpayable">;
|
|
171
|
+
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"): TypedContractMethod<[
|
|
172
|
+
from: AddressLike,
|
|
173
|
+
to: AddressLike,
|
|
174
|
+
tokenId: BigNumberish,
|
|
175
|
+
_data: BytesLike
|
|
176
|
+
], [
|
|
177
|
+
void
|
|
178
|
+
], "nonpayable">;
|
|
179
|
+
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
180
|
+
to: AddressLike,
|
|
181
|
+
approved: boolean
|
|
182
|
+
], [
|
|
183
|
+
void
|
|
184
|
+
], "nonpayable">;
|
|
185
|
+
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
186
|
+
from: AddressLike,
|
|
187
|
+
to: AddressLike,
|
|
188
|
+
tokenId: BigNumberish
|
|
189
|
+
], [
|
|
190
|
+
void
|
|
191
|
+
], "nonpayable">;
|
|
192
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
|
193
|
+
getFunction(nameOrSignature: "getApproved"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
194
|
+
getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
|
|
195
|
+
owner: AddressLike,
|
|
196
|
+
operator: AddressLike
|
|
197
|
+
], [
|
|
198
|
+
boolean
|
|
199
|
+
], "view">;
|
|
200
|
+
getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
201
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
202
|
+
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
203
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
204
|
+
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
205
|
+
filters: {
|
|
206
|
+
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
207
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
208
|
+
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
209
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
210
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
211
|
+
ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC721.js","sourceRoot":"","sources":["../../../src/typechain/contracts/ERC721.ts"],"names":[],"mappings":""}
|