@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,440 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
EventFragment,
|
|
12
|
+
AddressLike,
|
|
13
|
+
ContractRunner,
|
|
14
|
+
ContractMethod,
|
|
15
|
+
Listener,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type {
|
|
18
|
+
TypedContractEvent,
|
|
19
|
+
TypedDeferredTopicFilter,
|
|
20
|
+
TypedEventLog,
|
|
21
|
+
TypedLogDescription,
|
|
22
|
+
TypedListener,
|
|
23
|
+
TypedContractMethod,
|
|
24
|
+
} from "./common";
|
|
25
|
+
|
|
26
|
+
export interface ERC1155Interface extends Interface {
|
|
27
|
+
getFunction(
|
|
28
|
+
nameOrSignature:
|
|
29
|
+
| "balanceOf"
|
|
30
|
+
| "balanceOfBatch"
|
|
31
|
+
| "isApprovedForAll"
|
|
32
|
+
| "safeBatchTransferFrom"
|
|
33
|
+
| "safeTransferFrom"
|
|
34
|
+
| "setApprovalForAll"
|
|
35
|
+
| "supportsInterface"
|
|
36
|
+
| "uri"
|
|
37
|
+
): FunctionFragment;
|
|
38
|
+
|
|
39
|
+
getEvent(
|
|
40
|
+
nameOrSignatureOrTopic:
|
|
41
|
+
| "ApprovalForAll"
|
|
42
|
+
| "TransferBatch"
|
|
43
|
+
| "TransferSingle"
|
|
44
|
+
| "URI"
|
|
45
|
+
): EventFragment;
|
|
46
|
+
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "balanceOf",
|
|
49
|
+
values: [AddressLike, BigNumberish]
|
|
50
|
+
): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "balanceOfBatch",
|
|
53
|
+
values: [AddressLike[], BigNumberish[]]
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(
|
|
56
|
+
functionFragment: "isApprovedForAll",
|
|
57
|
+
values: [AddressLike, AddressLike]
|
|
58
|
+
): string;
|
|
59
|
+
encodeFunctionData(
|
|
60
|
+
functionFragment: "safeBatchTransferFrom",
|
|
61
|
+
values: [
|
|
62
|
+
AddressLike,
|
|
63
|
+
AddressLike,
|
|
64
|
+
BigNumberish[],
|
|
65
|
+
BigNumberish[],
|
|
66
|
+
BytesLike
|
|
67
|
+
]
|
|
68
|
+
): string;
|
|
69
|
+
encodeFunctionData(
|
|
70
|
+
functionFragment: "safeTransferFrom",
|
|
71
|
+
values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike]
|
|
72
|
+
): string;
|
|
73
|
+
encodeFunctionData(
|
|
74
|
+
functionFragment: "setApprovalForAll",
|
|
75
|
+
values: [AddressLike, boolean]
|
|
76
|
+
): string;
|
|
77
|
+
encodeFunctionData(
|
|
78
|
+
functionFragment: "supportsInterface",
|
|
79
|
+
values: [BytesLike]
|
|
80
|
+
): string;
|
|
81
|
+
encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string;
|
|
82
|
+
|
|
83
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(
|
|
85
|
+
functionFragment: "balanceOfBatch",
|
|
86
|
+
data: BytesLike
|
|
87
|
+
): Result;
|
|
88
|
+
decodeFunctionResult(
|
|
89
|
+
functionFragment: "isApprovedForAll",
|
|
90
|
+
data: BytesLike
|
|
91
|
+
): Result;
|
|
92
|
+
decodeFunctionResult(
|
|
93
|
+
functionFragment: "safeBatchTransferFrom",
|
|
94
|
+
data: BytesLike
|
|
95
|
+
): Result;
|
|
96
|
+
decodeFunctionResult(
|
|
97
|
+
functionFragment: "safeTransferFrom",
|
|
98
|
+
data: BytesLike
|
|
99
|
+
): Result;
|
|
100
|
+
decodeFunctionResult(
|
|
101
|
+
functionFragment: "setApprovalForAll",
|
|
102
|
+
data: BytesLike
|
|
103
|
+
): Result;
|
|
104
|
+
decodeFunctionResult(
|
|
105
|
+
functionFragment: "supportsInterface",
|
|
106
|
+
data: BytesLike
|
|
107
|
+
): Result;
|
|
108
|
+
decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace ApprovalForAllEvent {
|
|
112
|
+
export type InputTuple = [
|
|
113
|
+
account: AddressLike,
|
|
114
|
+
operator: AddressLike,
|
|
115
|
+
approved: boolean
|
|
116
|
+
];
|
|
117
|
+
export type OutputTuple = [
|
|
118
|
+
account: string,
|
|
119
|
+
operator: string,
|
|
120
|
+
approved: boolean
|
|
121
|
+
];
|
|
122
|
+
export interface OutputObject {
|
|
123
|
+
account: string;
|
|
124
|
+
operator: string;
|
|
125
|
+
approved: boolean;
|
|
126
|
+
}
|
|
127
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
128
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
129
|
+
export type Log = TypedEventLog<Event>;
|
|
130
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export namespace TransferBatchEvent {
|
|
134
|
+
export type InputTuple = [
|
|
135
|
+
operator: AddressLike,
|
|
136
|
+
from: AddressLike,
|
|
137
|
+
to: AddressLike,
|
|
138
|
+
ids: BigNumberish[],
|
|
139
|
+
values: BigNumberish[]
|
|
140
|
+
];
|
|
141
|
+
export type OutputTuple = [
|
|
142
|
+
operator: string,
|
|
143
|
+
from: string,
|
|
144
|
+
to: string,
|
|
145
|
+
ids: bigint[],
|
|
146
|
+
values: bigint[]
|
|
147
|
+
];
|
|
148
|
+
export interface OutputObject {
|
|
149
|
+
operator: string;
|
|
150
|
+
from: string;
|
|
151
|
+
to: string;
|
|
152
|
+
ids: bigint[];
|
|
153
|
+
values: bigint[];
|
|
154
|
+
}
|
|
155
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
156
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
157
|
+
export type Log = TypedEventLog<Event>;
|
|
158
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace TransferSingleEvent {
|
|
162
|
+
export type InputTuple = [
|
|
163
|
+
operator: AddressLike,
|
|
164
|
+
from: AddressLike,
|
|
165
|
+
to: AddressLike,
|
|
166
|
+
id: BigNumberish,
|
|
167
|
+
value: BigNumberish
|
|
168
|
+
];
|
|
169
|
+
export type OutputTuple = [
|
|
170
|
+
operator: string,
|
|
171
|
+
from: string,
|
|
172
|
+
to: string,
|
|
173
|
+
id: bigint,
|
|
174
|
+
value: bigint
|
|
175
|
+
];
|
|
176
|
+
export interface OutputObject {
|
|
177
|
+
operator: string;
|
|
178
|
+
from: string;
|
|
179
|
+
to: string;
|
|
180
|
+
id: bigint;
|
|
181
|
+
value: bigint;
|
|
182
|
+
}
|
|
183
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
184
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
185
|
+
export type Log = TypedEventLog<Event>;
|
|
186
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export namespace URIEvent {
|
|
190
|
+
export type InputTuple = [value: string, id: BigNumberish];
|
|
191
|
+
export type OutputTuple = [value: string, id: bigint];
|
|
192
|
+
export interface OutputObject {
|
|
193
|
+
value: string;
|
|
194
|
+
id: bigint;
|
|
195
|
+
}
|
|
196
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
197
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
198
|
+
export type Log = TypedEventLog<Event>;
|
|
199
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface ERC1155 extends BaseContract {
|
|
203
|
+
connect(runner?: ContractRunner | null): ERC1155;
|
|
204
|
+
waitForDeployment(): Promise<this>;
|
|
205
|
+
|
|
206
|
+
interface: ERC1155Interface;
|
|
207
|
+
|
|
208
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
209
|
+
event: TCEvent,
|
|
210
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
211
|
+
toBlock?: string | number | undefined
|
|
212
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
213
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
214
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
215
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
216
|
+
toBlock?: string | number | undefined
|
|
217
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
218
|
+
|
|
219
|
+
on<TCEvent extends TypedContractEvent>(
|
|
220
|
+
event: TCEvent,
|
|
221
|
+
listener: TypedListener<TCEvent>
|
|
222
|
+
): Promise<this>;
|
|
223
|
+
on<TCEvent extends TypedContractEvent>(
|
|
224
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
225
|
+
listener: TypedListener<TCEvent>
|
|
226
|
+
): Promise<this>;
|
|
227
|
+
|
|
228
|
+
once<TCEvent extends TypedContractEvent>(
|
|
229
|
+
event: TCEvent,
|
|
230
|
+
listener: TypedListener<TCEvent>
|
|
231
|
+
): Promise<this>;
|
|
232
|
+
once<TCEvent extends TypedContractEvent>(
|
|
233
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
234
|
+
listener: TypedListener<TCEvent>
|
|
235
|
+
): Promise<this>;
|
|
236
|
+
|
|
237
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
238
|
+
event: TCEvent
|
|
239
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
240
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
241
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
242
|
+
event?: TCEvent
|
|
243
|
+
): Promise<this>;
|
|
244
|
+
|
|
245
|
+
balanceOf: TypedContractMethod<
|
|
246
|
+
[account: AddressLike, id: BigNumberish],
|
|
247
|
+
[bigint],
|
|
248
|
+
"view"
|
|
249
|
+
>;
|
|
250
|
+
|
|
251
|
+
balanceOfBatch: TypedContractMethod<
|
|
252
|
+
[accounts: AddressLike[], ids: BigNumberish[]],
|
|
253
|
+
[bigint[]],
|
|
254
|
+
"view"
|
|
255
|
+
>;
|
|
256
|
+
|
|
257
|
+
isApprovedForAll: TypedContractMethod<
|
|
258
|
+
[account: AddressLike, operator: AddressLike],
|
|
259
|
+
[boolean],
|
|
260
|
+
"view"
|
|
261
|
+
>;
|
|
262
|
+
|
|
263
|
+
safeBatchTransferFrom: TypedContractMethod<
|
|
264
|
+
[
|
|
265
|
+
from: AddressLike,
|
|
266
|
+
to: AddressLike,
|
|
267
|
+
ids: BigNumberish[],
|
|
268
|
+
amounts: BigNumberish[],
|
|
269
|
+
data: BytesLike
|
|
270
|
+
],
|
|
271
|
+
[void],
|
|
272
|
+
"nonpayable"
|
|
273
|
+
>;
|
|
274
|
+
|
|
275
|
+
safeTransferFrom: TypedContractMethod<
|
|
276
|
+
[
|
|
277
|
+
from: AddressLike,
|
|
278
|
+
to: AddressLike,
|
|
279
|
+
id: BigNumberish,
|
|
280
|
+
amount: BigNumberish,
|
|
281
|
+
data: BytesLike
|
|
282
|
+
],
|
|
283
|
+
[void],
|
|
284
|
+
"nonpayable"
|
|
285
|
+
>;
|
|
286
|
+
|
|
287
|
+
setApprovalForAll: TypedContractMethod<
|
|
288
|
+
[operator: AddressLike, approved: boolean],
|
|
289
|
+
[void],
|
|
290
|
+
"nonpayable"
|
|
291
|
+
>;
|
|
292
|
+
|
|
293
|
+
supportsInterface: TypedContractMethod<
|
|
294
|
+
[interfaceId: BytesLike],
|
|
295
|
+
[boolean],
|
|
296
|
+
"view"
|
|
297
|
+
>;
|
|
298
|
+
|
|
299
|
+
uri: TypedContractMethod<[id: BigNumberish], [string], "view">;
|
|
300
|
+
|
|
301
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
302
|
+
key: string | FunctionFragment
|
|
303
|
+
): T;
|
|
304
|
+
|
|
305
|
+
getFunction(
|
|
306
|
+
nameOrSignature: "balanceOf"
|
|
307
|
+
): TypedContractMethod<
|
|
308
|
+
[account: AddressLike, id: BigNumberish],
|
|
309
|
+
[bigint],
|
|
310
|
+
"view"
|
|
311
|
+
>;
|
|
312
|
+
getFunction(
|
|
313
|
+
nameOrSignature: "balanceOfBatch"
|
|
314
|
+
): TypedContractMethod<
|
|
315
|
+
[accounts: AddressLike[], ids: BigNumberish[]],
|
|
316
|
+
[bigint[]],
|
|
317
|
+
"view"
|
|
318
|
+
>;
|
|
319
|
+
getFunction(
|
|
320
|
+
nameOrSignature: "isApprovedForAll"
|
|
321
|
+
): TypedContractMethod<
|
|
322
|
+
[account: AddressLike, operator: AddressLike],
|
|
323
|
+
[boolean],
|
|
324
|
+
"view"
|
|
325
|
+
>;
|
|
326
|
+
getFunction(
|
|
327
|
+
nameOrSignature: "safeBatchTransferFrom"
|
|
328
|
+
): TypedContractMethod<
|
|
329
|
+
[
|
|
330
|
+
from: AddressLike,
|
|
331
|
+
to: AddressLike,
|
|
332
|
+
ids: BigNumberish[],
|
|
333
|
+
amounts: BigNumberish[],
|
|
334
|
+
data: BytesLike
|
|
335
|
+
],
|
|
336
|
+
[void],
|
|
337
|
+
"nonpayable"
|
|
338
|
+
>;
|
|
339
|
+
getFunction(
|
|
340
|
+
nameOrSignature: "safeTransferFrom"
|
|
341
|
+
): TypedContractMethod<
|
|
342
|
+
[
|
|
343
|
+
from: AddressLike,
|
|
344
|
+
to: AddressLike,
|
|
345
|
+
id: BigNumberish,
|
|
346
|
+
amount: BigNumberish,
|
|
347
|
+
data: BytesLike
|
|
348
|
+
],
|
|
349
|
+
[void],
|
|
350
|
+
"nonpayable"
|
|
351
|
+
>;
|
|
352
|
+
getFunction(
|
|
353
|
+
nameOrSignature: "setApprovalForAll"
|
|
354
|
+
): TypedContractMethod<
|
|
355
|
+
[operator: AddressLike, approved: boolean],
|
|
356
|
+
[void],
|
|
357
|
+
"nonpayable"
|
|
358
|
+
>;
|
|
359
|
+
getFunction(
|
|
360
|
+
nameOrSignature: "supportsInterface"
|
|
361
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
362
|
+
getFunction(
|
|
363
|
+
nameOrSignature: "uri"
|
|
364
|
+
): TypedContractMethod<[id: BigNumberish], [string], "view">;
|
|
365
|
+
|
|
366
|
+
getEvent(
|
|
367
|
+
key: "ApprovalForAll"
|
|
368
|
+
): TypedContractEvent<
|
|
369
|
+
ApprovalForAllEvent.InputTuple,
|
|
370
|
+
ApprovalForAllEvent.OutputTuple,
|
|
371
|
+
ApprovalForAllEvent.OutputObject
|
|
372
|
+
>;
|
|
373
|
+
getEvent(
|
|
374
|
+
key: "TransferBatch"
|
|
375
|
+
): TypedContractEvent<
|
|
376
|
+
TransferBatchEvent.InputTuple,
|
|
377
|
+
TransferBatchEvent.OutputTuple,
|
|
378
|
+
TransferBatchEvent.OutputObject
|
|
379
|
+
>;
|
|
380
|
+
getEvent(
|
|
381
|
+
key: "TransferSingle"
|
|
382
|
+
): TypedContractEvent<
|
|
383
|
+
TransferSingleEvent.InputTuple,
|
|
384
|
+
TransferSingleEvent.OutputTuple,
|
|
385
|
+
TransferSingleEvent.OutputObject
|
|
386
|
+
>;
|
|
387
|
+
getEvent(
|
|
388
|
+
key: "URI"
|
|
389
|
+
): TypedContractEvent<
|
|
390
|
+
URIEvent.InputTuple,
|
|
391
|
+
URIEvent.OutputTuple,
|
|
392
|
+
URIEvent.OutputObject
|
|
393
|
+
>;
|
|
394
|
+
|
|
395
|
+
filters: {
|
|
396
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<
|
|
397
|
+
ApprovalForAllEvent.InputTuple,
|
|
398
|
+
ApprovalForAllEvent.OutputTuple,
|
|
399
|
+
ApprovalForAllEvent.OutputObject
|
|
400
|
+
>;
|
|
401
|
+
ApprovalForAll: TypedContractEvent<
|
|
402
|
+
ApprovalForAllEvent.InputTuple,
|
|
403
|
+
ApprovalForAllEvent.OutputTuple,
|
|
404
|
+
ApprovalForAllEvent.OutputObject
|
|
405
|
+
>;
|
|
406
|
+
|
|
407
|
+
"TransferBatch(address,address,address,uint256[],uint256[])": TypedContractEvent<
|
|
408
|
+
TransferBatchEvent.InputTuple,
|
|
409
|
+
TransferBatchEvent.OutputTuple,
|
|
410
|
+
TransferBatchEvent.OutputObject
|
|
411
|
+
>;
|
|
412
|
+
TransferBatch: TypedContractEvent<
|
|
413
|
+
TransferBatchEvent.InputTuple,
|
|
414
|
+
TransferBatchEvent.OutputTuple,
|
|
415
|
+
TransferBatchEvent.OutputObject
|
|
416
|
+
>;
|
|
417
|
+
|
|
418
|
+
"TransferSingle(address,address,address,uint256,uint256)": TypedContractEvent<
|
|
419
|
+
TransferSingleEvent.InputTuple,
|
|
420
|
+
TransferSingleEvent.OutputTuple,
|
|
421
|
+
TransferSingleEvent.OutputObject
|
|
422
|
+
>;
|
|
423
|
+
TransferSingle: TypedContractEvent<
|
|
424
|
+
TransferSingleEvent.InputTuple,
|
|
425
|
+
TransferSingleEvent.OutputTuple,
|
|
426
|
+
TransferSingleEvent.OutputObject
|
|
427
|
+
>;
|
|
428
|
+
|
|
429
|
+
"URI(string,uint256)": TypedContractEvent<
|
|
430
|
+
URIEvent.InputTuple,
|
|
431
|
+
URIEvent.OutputTuple,
|
|
432
|
+
URIEvent.OutputObject
|
|
433
|
+
>;
|
|
434
|
+
URI: TypedContractEvent<
|
|
435
|
+
URIEvent.InputTuple,
|
|
436
|
+
URIEvent.OutputTuple,
|
|
437
|
+
URIEvent.OutputObject
|
|
438
|
+
>;
|
|
439
|
+
};
|
|
440
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
EventFragment,
|
|
12
|
+
AddressLike,
|
|
13
|
+
ContractRunner,
|
|
14
|
+
ContractMethod,
|
|
15
|
+
Listener,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type {
|
|
18
|
+
TypedContractEvent,
|
|
19
|
+
TypedDeferredTopicFilter,
|
|
20
|
+
TypedEventLog,
|
|
21
|
+
TypedLogDescription,
|
|
22
|
+
TypedListener,
|
|
23
|
+
TypedContractMethod,
|
|
24
|
+
} from "./common";
|
|
25
|
+
|
|
26
|
+
export interface ERC20Interface extends Interface {
|
|
27
|
+
getFunction(
|
|
28
|
+
nameOrSignature:
|
|
29
|
+
| "name"
|
|
30
|
+
| "approve"
|
|
31
|
+
| "totalSupply"
|
|
32
|
+
| "transferFrom"
|
|
33
|
+
| "decimals"
|
|
34
|
+
| "balanceOf"
|
|
35
|
+
| "symbol"
|
|
36
|
+
| "transfer"
|
|
37
|
+
| "allowance"
|
|
38
|
+
): FunctionFragment;
|
|
39
|
+
|
|
40
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
|
|
41
|
+
|
|
42
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "approve",
|
|
45
|
+
values: [AddressLike, BigNumberish]
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "totalSupply",
|
|
49
|
+
values?: undefined
|
|
50
|
+
): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "transferFrom",
|
|
53
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
56
|
+
encodeFunctionData(
|
|
57
|
+
functionFragment: "balanceOf",
|
|
58
|
+
values: [AddressLike]
|
|
59
|
+
): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
61
|
+
encodeFunctionData(
|
|
62
|
+
functionFragment: "transfer",
|
|
63
|
+
values: [AddressLike, BigNumberish]
|
|
64
|
+
): string;
|
|
65
|
+
encodeFunctionData(
|
|
66
|
+
functionFragment: "allowance",
|
|
67
|
+
values: [AddressLike, AddressLike]
|
|
68
|
+
): string;
|
|
69
|
+
|
|
70
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(
|
|
73
|
+
functionFragment: "totalSupply",
|
|
74
|
+
data: BytesLike
|
|
75
|
+
): Result;
|
|
76
|
+
decodeFunctionResult(
|
|
77
|
+
functionFragment: "transferFrom",
|
|
78
|
+
data: BytesLike
|
|
79
|
+
): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
83
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace ApprovalEvent {
|
|
88
|
+
export type InputTuple = [
|
|
89
|
+
owner: AddressLike,
|
|
90
|
+
spender: AddressLike,
|
|
91
|
+
value: BigNumberish
|
|
92
|
+
];
|
|
93
|
+
export type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
94
|
+
export interface OutputObject {
|
|
95
|
+
owner: string;
|
|
96
|
+
spender: string;
|
|
97
|
+
value: bigint;
|
|
98
|
+
}
|
|
99
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
100
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
101
|
+
export type Log = TypedEventLog<Event>;
|
|
102
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace TransferEvent {
|
|
106
|
+
export type InputTuple = [
|
|
107
|
+
from: AddressLike,
|
|
108
|
+
to: AddressLike,
|
|
109
|
+
value: BigNumberish
|
|
110
|
+
];
|
|
111
|
+
export type OutputTuple = [from: string, to: string, value: bigint];
|
|
112
|
+
export interface OutputObject {
|
|
113
|
+
from: string;
|
|
114
|
+
to: string;
|
|
115
|
+
value: bigint;
|
|
116
|
+
}
|
|
117
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
118
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
119
|
+
export type Log = TypedEventLog<Event>;
|
|
120
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ERC20 extends BaseContract {
|
|
124
|
+
connect(runner?: ContractRunner | null): ERC20;
|
|
125
|
+
waitForDeployment(): Promise<this>;
|
|
126
|
+
|
|
127
|
+
interface: ERC20Interface;
|
|
128
|
+
|
|
129
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
130
|
+
event: TCEvent,
|
|
131
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
132
|
+
toBlock?: string | number | undefined
|
|
133
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
134
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
135
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
136
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
137
|
+
toBlock?: string | number | undefined
|
|
138
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
139
|
+
|
|
140
|
+
on<TCEvent extends TypedContractEvent>(
|
|
141
|
+
event: TCEvent,
|
|
142
|
+
listener: TypedListener<TCEvent>
|
|
143
|
+
): Promise<this>;
|
|
144
|
+
on<TCEvent extends TypedContractEvent>(
|
|
145
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
146
|
+
listener: TypedListener<TCEvent>
|
|
147
|
+
): Promise<this>;
|
|
148
|
+
|
|
149
|
+
once<TCEvent extends TypedContractEvent>(
|
|
150
|
+
event: TCEvent,
|
|
151
|
+
listener: TypedListener<TCEvent>
|
|
152
|
+
): Promise<this>;
|
|
153
|
+
once<TCEvent extends TypedContractEvent>(
|
|
154
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
155
|
+
listener: TypedListener<TCEvent>
|
|
156
|
+
): Promise<this>;
|
|
157
|
+
|
|
158
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
159
|
+
event: TCEvent
|
|
160
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
161
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
162
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
163
|
+
event?: TCEvent
|
|
164
|
+
): Promise<this>;
|
|
165
|
+
|
|
166
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
167
|
+
|
|
168
|
+
approve: TypedContractMethod<
|
|
169
|
+
[_spender: AddressLike, _value: BigNumberish],
|
|
170
|
+
[boolean],
|
|
171
|
+
"nonpayable"
|
|
172
|
+
>;
|
|
173
|
+
|
|
174
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
175
|
+
|
|
176
|
+
transferFrom: TypedContractMethod<
|
|
177
|
+
[_from: AddressLike, _to: AddressLike, _value: BigNumberish],
|
|
178
|
+
[boolean],
|
|
179
|
+
"nonpayable"
|
|
180
|
+
>;
|
|
181
|
+
|
|
182
|
+
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
183
|
+
|
|
184
|
+
balanceOf: TypedContractMethod<[_owner: AddressLike], [bigint], "view">;
|
|
185
|
+
|
|
186
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
187
|
+
|
|
188
|
+
transfer: TypedContractMethod<
|
|
189
|
+
[_to: AddressLike, _value: BigNumberish],
|
|
190
|
+
[boolean],
|
|
191
|
+
"nonpayable"
|
|
192
|
+
>;
|
|
193
|
+
|
|
194
|
+
allowance: TypedContractMethod<
|
|
195
|
+
[_owner: AddressLike, _spender: AddressLike],
|
|
196
|
+
[bigint],
|
|
197
|
+
"view"
|
|
198
|
+
>;
|
|
199
|
+
|
|
200
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
201
|
+
key: string | FunctionFragment
|
|
202
|
+
): T;
|
|
203
|
+
|
|
204
|
+
getFunction(
|
|
205
|
+
nameOrSignature: "name"
|
|
206
|
+
): TypedContractMethod<[], [string], "view">;
|
|
207
|
+
getFunction(
|
|
208
|
+
nameOrSignature: "approve"
|
|
209
|
+
): TypedContractMethod<
|
|
210
|
+
[_spender: AddressLike, _value: BigNumberish],
|
|
211
|
+
[boolean],
|
|
212
|
+
"nonpayable"
|
|
213
|
+
>;
|
|
214
|
+
getFunction(
|
|
215
|
+
nameOrSignature: "totalSupply"
|
|
216
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
217
|
+
getFunction(
|
|
218
|
+
nameOrSignature: "transferFrom"
|
|
219
|
+
): TypedContractMethod<
|
|
220
|
+
[_from: AddressLike, _to: AddressLike, _value: BigNumberish],
|
|
221
|
+
[boolean],
|
|
222
|
+
"nonpayable"
|
|
223
|
+
>;
|
|
224
|
+
getFunction(
|
|
225
|
+
nameOrSignature: "decimals"
|
|
226
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
227
|
+
getFunction(
|
|
228
|
+
nameOrSignature: "balanceOf"
|
|
229
|
+
): TypedContractMethod<[_owner: AddressLike], [bigint], "view">;
|
|
230
|
+
getFunction(
|
|
231
|
+
nameOrSignature: "symbol"
|
|
232
|
+
): TypedContractMethod<[], [string], "view">;
|
|
233
|
+
getFunction(
|
|
234
|
+
nameOrSignature: "transfer"
|
|
235
|
+
): TypedContractMethod<
|
|
236
|
+
[_to: AddressLike, _value: BigNumberish],
|
|
237
|
+
[boolean],
|
|
238
|
+
"nonpayable"
|
|
239
|
+
>;
|
|
240
|
+
getFunction(
|
|
241
|
+
nameOrSignature: "allowance"
|
|
242
|
+
): TypedContractMethod<
|
|
243
|
+
[_owner: AddressLike, _spender: AddressLike],
|
|
244
|
+
[bigint],
|
|
245
|
+
"view"
|
|
246
|
+
>;
|
|
247
|
+
|
|
248
|
+
getEvent(
|
|
249
|
+
key: "Approval"
|
|
250
|
+
): TypedContractEvent<
|
|
251
|
+
ApprovalEvent.InputTuple,
|
|
252
|
+
ApprovalEvent.OutputTuple,
|
|
253
|
+
ApprovalEvent.OutputObject
|
|
254
|
+
>;
|
|
255
|
+
getEvent(
|
|
256
|
+
key: "Transfer"
|
|
257
|
+
): TypedContractEvent<
|
|
258
|
+
TransferEvent.InputTuple,
|
|
259
|
+
TransferEvent.OutputTuple,
|
|
260
|
+
TransferEvent.OutputObject
|
|
261
|
+
>;
|
|
262
|
+
|
|
263
|
+
filters: {
|
|
264
|
+
"Approval(address,address,uint256)": TypedContractEvent<
|
|
265
|
+
ApprovalEvent.InputTuple,
|
|
266
|
+
ApprovalEvent.OutputTuple,
|
|
267
|
+
ApprovalEvent.OutputObject
|
|
268
|
+
>;
|
|
269
|
+
Approval: TypedContractEvent<
|
|
270
|
+
ApprovalEvent.InputTuple,
|
|
271
|
+
ApprovalEvent.OutputTuple,
|
|
272
|
+
ApprovalEvent.OutputObject
|
|
273
|
+
>;
|
|
274
|
+
|
|
275
|
+
"Transfer(address,address,uint256)": TypedContractEvent<
|
|
276
|
+
TransferEvent.InputTuple,
|
|
277
|
+
TransferEvent.OutputTuple,
|
|
278
|
+
TransferEvent.OutputObject
|
|
279
|
+
>;
|
|
280
|
+
Transfer: TypedContractEvent<
|
|
281
|
+
TransferEvent.InputTuple,
|
|
282
|
+
TransferEvent.OutputTuple,
|
|
283
|
+
TransferEvent.OutputObject
|
|
284
|
+
>;
|
|
285
|
+
};
|
|
286
|
+
}
|