thirdweb 5.88.2-nightly-0c1bb6ccaec9dc4edf596dac7f7623d0ad90f757-20250212000327 → 5.88.3
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/dist/cjs/exports/extensions/erc1155.js +4 -2
- package/dist/cjs/exports/extensions/erc1155.js.map +1 -1
- package/dist/cjs/exports/extensions/erc20.js +3 -1
- package/dist/cjs/exports/extensions/erc20.js.map +1 -1
- package/dist/cjs/exports/extensions/erc721.js +4 -2
- package/dist/cjs/exports/extensions/erc721.js.map +1 -1
- package/dist/cjs/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.js +191 -0
- package/dist/cjs/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.js.map +1 -0
- package/dist/cjs/extensions/erc1155/drops/read/canClaim.js +63 -0
- package/dist/cjs/extensions/erc1155/drops/read/canClaim.js.map +1 -0
- package/dist/cjs/extensions/erc20/__generated__/DropERC20/read/verifyClaim.js +182 -0
- package/dist/cjs/extensions/erc20/__generated__/DropERC20/read/verifyClaim.js.map +1 -0
- package/dist/cjs/extensions/erc20/drops/read/canClaim.js +68 -0
- package/dist/cjs/extensions/erc20/drops/read/canClaim.js.map +1 -0
- package/dist/cjs/extensions/erc721/__generated__/DropERC721/read/verifyClaim.js +182 -0
- package/dist/cjs/extensions/erc721/__generated__/DropERC721/read/verifyClaim.js.map +1 -0
- package/dist/cjs/extensions/erc721/drops/read/canClaim.js +59 -0
- package/dist/cjs/extensions/erc721/drops/read/canClaim.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +12 -5
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js +9 -4
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js +3 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.js +1 -3
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.js +7 -3
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.js.map +1 -1
- package/dist/cjs/react/web/utils/errors.js +6 -1
- package/dist/cjs/react/web/utils/errors.js.map +1 -1
- package/dist/cjs/transaction/extract-error.js +11 -4
- package/dist/cjs/transaction/extract-error.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/exports/extensions/erc1155.js +1 -0
- package/dist/esm/exports/extensions/erc1155.js.map +1 -1
- package/dist/esm/exports/extensions/erc20.js +1 -0
- package/dist/esm/exports/extensions/erc20.js.map +1 -1
- package/dist/esm/exports/extensions/erc721.js +1 -0
- package/dist/esm/exports/extensions/erc721.js.map +1 -1
- package/dist/esm/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.js +183 -0
- package/dist/esm/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.js.map +1 -0
- package/dist/esm/extensions/erc1155/drops/read/canClaim.js +60 -0
- package/dist/esm/extensions/erc1155/drops/read/canClaim.js.map +1 -0
- package/dist/esm/extensions/erc20/__generated__/DropERC20/read/verifyClaim.js +174 -0
- package/dist/esm/extensions/erc20/__generated__/DropERC20/read/verifyClaim.js.map +1 -0
- package/dist/esm/extensions/erc20/drops/read/canClaim.js +65 -0
- package/dist/esm/extensions/erc20/drops/read/canClaim.js.map +1 -0
- package/dist/esm/extensions/erc721/__generated__/DropERC721/read/verifyClaim.js +174 -0
- package/dist/esm/extensions/erc721/__generated__/DropERC721/read/verifyClaim.js.map +1 -0
- package/dist/esm/extensions/erc721/drops/read/canClaim.js +56 -0
- package/dist/esm/extensions/erc721/drops/read/canClaim.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +12 -5
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js +9 -4
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js +3 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.js +2 -4
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.js +7 -3
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.js.map +1 -1
- package/dist/esm/react/web/utils/errors.js +6 -1
- package/dist/esm/react/web/utils/errors.js.map +1 -1
- package/dist/esm/transaction/extract-error.js +11 -5
- package/dist/esm/transaction/extract-error.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/exports/extensions/erc1155.d.ts +1 -0
- package/dist/types/exports/extensions/erc1155.d.ts.map +1 -1
- package/dist/types/exports/extensions/erc20.d.ts +1 -0
- package/dist/types/exports/extensions/erc20.d.ts.map +1 -1
- package/dist/types/exports/extensions/erc721.d.ts +1 -0
- package/dist/types/exports/extensions/erc721.d.ts.map +1 -1
- package/dist/types/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.d.ts +143 -0
- package/dist/types/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.d.ts.map +1 -0
- package/dist/types/extensions/erc1155/drops/read/canClaim.d.ts +31 -0
- package/dist/types/extensions/erc1155/drops/read/canClaim.d.ts.map +1 -0
- package/dist/types/extensions/erc20/__generated__/DropERC20/read/verifyClaim.d.ts +136 -0
- package/dist/types/extensions/erc20/__generated__/DropERC20/read/verifyClaim.d.ts.map +1 -0
- package/dist/types/extensions/erc20/drops/read/canClaim.d.ts +32 -0
- package/dist/types/extensions/erc20/drops/read/canClaim.d.ts.map +1 -0
- package/dist/types/extensions/erc721/__generated__/DropERC721/read/verifyClaim.d.ts +136 -0
- package/dist/types/extensions/erc721/__generated__/DropERC721/read/verifyClaim.d.ts.map +1 -0
- package/dist/types/extensions/erc721/drops/read/canClaim.d.ts +29 -0
- package/dist/types/extensions/erc721/drops/read/canClaim.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.d.ts.map +1 -1
- package/dist/types/react/web/utils/errors.d.ts.map +1 -1
- package/dist/types/transaction/extract-error.d.ts +4 -0
- package/dist/types/transaction/extract-error.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/exports/extensions/erc1155.ts +5 -0
- package/src/exports/extensions/erc20.ts +5 -0
- package/src/exports/extensions/erc721.ts +5 -0
- package/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +223 -0
- package/src/extensions/erc1155/drop1155.test.ts +42 -0
- package/src/extensions/erc1155/drops/read/canClaim.ts +75 -0
- package/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +213 -0
- package/src/extensions/erc20/drop20.test.ts +38 -0
- package/src/extensions/erc20/drops/read/canClaim.ts +82 -0
- package/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +213 -0
- package/src/extensions/erc721/drop721.test.ts +39 -0
- package/src/extensions/erc721/drops/read/canClaim.ts +70 -0
- package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +16 -3
- package/src/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.tsx +40 -19
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +1 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx +7 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.tsx +3 -7
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.tsx +28 -16
- package/src/react/web/utils/errors.ts +6 -1
- package/src/transaction/actions/gasless/providers/engine.test.ts +1 -1
- package/src/transaction/actions/gasless/providers/openzeppelin.test.ts +1 -1
- package/src/transaction/extract-error.ts +15 -13
- package/src/version.ts +1 -1
@@ -0,0 +1,136 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
3
|
+
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
4
|
+
/**
|
5
|
+
* Represents the parameters for the "verifyClaim" function.
|
6
|
+
*/
|
7
|
+
export type VerifyClaimParams = {
|
8
|
+
conditionId: AbiParameterToPrimitiveType<{
|
9
|
+
type: "uint256";
|
10
|
+
name: "_conditionId";
|
11
|
+
}>;
|
12
|
+
claimer: AbiParameterToPrimitiveType<{
|
13
|
+
type: "address";
|
14
|
+
name: "_claimer";
|
15
|
+
}>;
|
16
|
+
quantity: AbiParameterToPrimitiveType<{
|
17
|
+
type: "uint256";
|
18
|
+
name: "_quantity";
|
19
|
+
}>;
|
20
|
+
currency: AbiParameterToPrimitiveType<{
|
21
|
+
type: "address";
|
22
|
+
name: "_currency";
|
23
|
+
}>;
|
24
|
+
pricePerToken: AbiParameterToPrimitiveType<{
|
25
|
+
type: "uint256";
|
26
|
+
name: "_pricePerToken";
|
27
|
+
}>;
|
28
|
+
allowlistProof: AbiParameterToPrimitiveType<{
|
29
|
+
type: "tuple";
|
30
|
+
name: "_allowlistProof";
|
31
|
+
components: [
|
32
|
+
{
|
33
|
+
type: "bytes32[]";
|
34
|
+
name: "proof";
|
35
|
+
},
|
36
|
+
{
|
37
|
+
type: "uint256";
|
38
|
+
name: "quantityLimitPerWallet";
|
39
|
+
},
|
40
|
+
{
|
41
|
+
type: "uint256";
|
42
|
+
name: "pricePerToken";
|
43
|
+
},
|
44
|
+
{
|
45
|
+
type: "address";
|
46
|
+
name: "currency";
|
47
|
+
}
|
48
|
+
];
|
49
|
+
}>;
|
50
|
+
};
|
51
|
+
export declare const FN_SELECTOR: "0x23a2902b";
|
52
|
+
/**
|
53
|
+
* Checks if the `verifyClaim` method is supported by the given contract.
|
54
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
55
|
+
* @returns A boolean indicating if the `verifyClaim` method is supported.
|
56
|
+
* @extension ERC20
|
57
|
+
* @example
|
58
|
+
* ```ts
|
59
|
+
* import { isVerifyClaimSupported } from "thirdweb/extensions/erc20";
|
60
|
+
* const supported = isVerifyClaimSupported(["0x..."]);
|
61
|
+
* ```
|
62
|
+
*/
|
63
|
+
export declare function isVerifyClaimSupported(availableSelectors: string[]): boolean;
|
64
|
+
/**
|
65
|
+
* Encodes the parameters for the "verifyClaim" function.
|
66
|
+
* @param options - The options for the verifyClaim function.
|
67
|
+
* @returns The encoded ABI parameters.
|
68
|
+
* @extension ERC20
|
69
|
+
* @example
|
70
|
+
* ```ts
|
71
|
+
* import { encodeVerifyClaimParams } from "thirdweb/extensions/erc20";
|
72
|
+
* const result = encodeVerifyClaimParams({
|
73
|
+
* conditionId: ...,
|
74
|
+
* claimer: ...,
|
75
|
+
* quantity: ...,
|
76
|
+
* currency: ...,
|
77
|
+
* pricePerToken: ...,
|
78
|
+
* allowlistProof: ...,
|
79
|
+
* });
|
80
|
+
* ```
|
81
|
+
*/
|
82
|
+
export declare function encodeVerifyClaimParams(options: VerifyClaimParams): `0x${string}`;
|
83
|
+
/**
|
84
|
+
* Encodes the "verifyClaim" function into a Hex string with its parameters.
|
85
|
+
* @param options - The options for the verifyClaim function.
|
86
|
+
* @returns The encoded hexadecimal string.
|
87
|
+
* @extension ERC20
|
88
|
+
* @example
|
89
|
+
* ```ts
|
90
|
+
* import { encodeVerifyClaim } from "thirdweb/extensions/erc20";
|
91
|
+
* const result = encodeVerifyClaim({
|
92
|
+
* conditionId: ...,
|
93
|
+
* claimer: ...,
|
94
|
+
* quantity: ...,
|
95
|
+
* currency: ...,
|
96
|
+
* pricePerToken: ...,
|
97
|
+
* allowlistProof: ...,
|
98
|
+
* });
|
99
|
+
* ```
|
100
|
+
*/
|
101
|
+
export declare function encodeVerifyClaim(options: VerifyClaimParams): `${typeof FN_SELECTOR}${string}`;
|
102
|
+
/**
|
103
|
+
* Decodes the result of the verifyClaim function call.
|
104
|
+
* @param result - The hexadecimal result to decode.
|
105
|
+
* @returns The decoded result as per the FN_OUTPUTS definition.
|
106
|
+
* @extension ERC20
|
107
|
+
* @example
|
108
|
+
* ```ts
|
109
|
+
* import { decodeVerifyClaimResult } from "thirdweb/extensions/erc20";
|
110
|
+
* const result = decodeVerifyClaimResultResult("...");
|
111
|
+
* ```
|
112
|
+
*/
|
113
|
+
export declare function decodeVerifyClaimResult(result: Hex): boolean;
|
114
|
+
/**
|
115
|
+
* Calls the "verifyClaim" function on the contract.
|
116
|
+
* @param options - The options for the verifyClaim function.
|
117
|
+
* @returns The parsed result of the function call.
|
118
|
+
* @extension ERC20
|
119
|
+
* @example
|
120
|
+
* ```ts
|
121
|
+
* import { verifyClaim } from "thirdweb/extensions/erc20";
|
122
|
+
*
|
123
|
+
* const result = await verifyClaim({
|
124
|
+
* contract,
|
125
|
+
* conditionId: ...,
|
126
|
+
* claimer: ...,
|
127
|
+
* quantity: ...,
|
128
|
+
* currency: ...,
|
129
|
+
* pricePerToken: ...,
|
130
|
+
* allowlistProof: ...,
|
131
|
+
* });
|
132
|
+
*
|
133
|
+
* ```
|
134
|
+
*/
|
135
|
+
export declare function verifyClaim(options: BaseTransactionOptions<VerifyClaimParams>): Promise<boolean>;
|
136
|
+
//# sourceMappingURL=verifyClaim.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"verifyClaim.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,2BAA2B,CAAC;QACvC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,cAAc,CAAC;KACtB,CAAC,CAAC;IACH,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC5E,QAAQ,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,WAAW,CAAA;KAAE,CAAC,CAAC;IAC9E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
1
|
+
import type { BaseTransactionOptions } from "../../../../transaction/types.js";
|
2
|
+
export type CanClaimParams = {
|
3
|
+
claimer: string;
|
4
|
+
from?: string;
|
5
|
+
} & ({
|
6
|
+
quantityInWei: bigint;
|
7
|
+
} | {
|
8
|
+
quantity: string;
|
9
|
+
});
|
10
|
+
export type CanClaimResult = {
|
11
|
+
result: boolean;
|
12
|
+
reason?: string;
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* Check if a user can claim a drop.
|
16
|
+
*
|
17
|
+
* @param options - The options for the transaction.
|
18
|
+
* @returns Whether the user can claim the drop.
|
19
|
+
*
|
20
|
+
* @example
|
21
|
+
* ```ts
|
22
|
+
* const claimResult = await canClaim({
|
23
|
+
* contract: contract,
|
24
|
+
* claimer: "0x1234567890123456789012345678901234567890",
|
25
|
+
* quantity: "1",
|
26
|
+
* });
|
27
|
+
* ```
|
28
|
+
*
|
29
|
+
* @extension ERC20
|
30
|
+
*/
|
31
|
+
export declare function canClaim(options: BaseTransactionOptions<CanClaimParams>): Promise<CanClaimResult>;
|
32
|
+
//# sourceMappingURL=canClaim.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"canClaim.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc20/drops/read/canClaim.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAM/E,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,CAAC;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,GAC9C,OAAO,CAAC,cAAc,CAAC,CA6CzB"}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
3
|
+
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
4
|
+
/**
|
5
|
+
* Represents the parameters for the "verifyClaim" function.
|
6
|
+
*/
|
7
|
+
export type VerifyClaimParams = {
|
8
|
+
conditionId: AbiParameterToPrimitiveType<{
|
9
|
+
type: "uint256";
|
10
|
+
name: "_conditionId";
|
11
|
+
}>;
|
12
|
+
claimer: AbiParameterToPrimitiveType<{
|
13
|
+
type: "address";
|
14
|
+
name: "_claimer";
|
15
|
+
}>;
|
16
|
+
quantity: AbiParameterToPrimitiveType<{
|
17
|
+
type: "uint256";
|
18
|
+
name: "_quantity";
|
19
|
+
}>;
|
20
|
+
currency: AbiParameterToPrimitiveType<{
|
21
|
+
type: "address";
|
22
|
+
name: "_currency";
|
23
|
+
}>;
|
24
|
+
pricePerToken: AbiParameterToPrimitiveType<{
|
25
|
+
type: "uint256";
|
26
|
+
name: "_pricePerToken";
|
27
|
+
}>;
|
28
|
+
allowlistProof: AbiParameterToPrimitiveType<{
|
29
|
+
type: "tuple";
|
30
|
+
name: "_allowlistProof";
|
31
|
+
components: [
|
32
|
+
{
|
33
|
+
type: "bytes32[]";
|
34
|
+
name: "proof";
|
35
|
+
},
|
36
|
+
{
|
37
|
+
type: "uint256";
|
38
|
+
name: "quantityLimitPerWallet";
|
39
|
+
},
|
40
|
+
{
|
41
|
+
type: "uint256";
|
42
|
+
name: "pricePerToken";
|
43
|
+
},
|
44
|
+
{
|
45
|
+
type: "address";
|
46
|
+
name: "currency";
|
47
|
+
}
|
48
|
+
];
|
49
|
+
}>;
|
50
|
+
};
|
51
|
+
export declare const FN_SELECTOR: "0x23a2902b";
|
52
|
+
/**
|
53
|
+
* Checks if the `verifyClaim` method is supported by the given contract.
|
54
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
55
|
+
* @returns A boolean indicating if the `verifyClaim` method is supported.
|
56
|
+
* @extension ERC721
|
57
|
+
* @example
|
58
|
+
* ```ts
|
59
|
+
* import { isVerifyClaimSupported } from "thirdweb/extensions/erc721";
|
60
|
+
* const supported = isVerifyClaimSupported(["0x..."]);
|
61
|
+
* ```
|
62
|
+
*/
|
63
|
+
export declare function isVerifyClaimSupported(availableSelectors: string[]): boolean;
|
64
|
+
/**
|
65
|
+
* Encodes the parameters for the "verifyClaim" function.
|
66
|
+
* @param options - The options for the verifyClaim function.
|
67
|
+
* @returns The encoded ABI parameters.
|
68
|
+
* @extension ERC721
|
69
|
+
* @example
|
70
|
+
* ```ts
|
71
|
+
* import { encodeVerifyClaimParams } from "thirdweb/extensions/erc721";
|
72
|
+
* const result = encodeVerifyClaimParams({
|
73
|
+
* conditionId: ...,
|
74
|
+
* claimer: ...,
|
75
|
+
* quantity: ...,
|
76
|
+
* currency: ...,
|
77
|
+
* pricePerToken: ...,
|
78
|
+
* allowlistProof: ...,
|
79
|
+
* });
|
80
|
+
* ```
|
81
|
+
*/
|
82
|
+
export declare function encodeVerifyClaimParams(options: VerifyClaimParams): `0x${string}`;
|
83
|
+
/**
|
84
|
+
* Encodes the "verifyClaim" function into a Hex string with its parameters.
|
85
|
+
* @param options - The options for the verifyClaim function.
|
86
|
+
* @returns The encoded hexadecimal string.
|
87
|
+
* @extension ERC721
|
88
|
+
* @example
|
89
|
+
* ```ts
|
90
|
+
* import { encodeVerifyClaim } from "thirdweb/extensions/erc721";
|
91
|
+
* const result = encodeVerifyClaim({
|
92
|
+
* conditionId: ...,
|
93
|
+
* claimer: ...,
|
94
|
+
* quantity: ...,
|
95
|
+
* currency: ...,
|
96
|
+
* pricePerToken: ...,
|
97
|
+
* allowlistProof: ...,
|
98
|
+
* });
|
99
|
+
* ```
|
100
|
+
*/
|
101
|
+
export declare function encodeVerifyClaim(options: VerifyClaimParams): `${typeof FN_SELECTOR}${string}`;
|
102
|
+
/**
|
103
|
+
* Decodes the result of the verifyClaim function call.
|
104
|
+
* @param result - The hexadecimal result to decode.
|
105
|
+
* @returns The decoded result as per the FN_OUTPUTS definition.
|
106
|
+
* @extension ERC721
|
107
|
+
* @example
|
108
|
+
* ```ts
|
109
|
+
* import { decodeVerifyClaimResult } from "thirdweb/extensions/erc721";
|
110
|
+
* const result = decodeVerifyClaimResultResult("...");
|
111
|
+
* ```
|
112
|
+
*/
|
113
|
+
export declare function decodeVerifyClaimResult(result: Hex): boolean;
|
114
|
+
/**
|
115
|
+
* Calls the "verifyClaim" function on the contract.
|
116
|
+
* @param options - The options for the verifyClaim function.
|
117
|
+
* @returns The parsed result of the function call.
|
118
|
+
* @extension ERC721
|
119
|
+
* @example
|
120
|
+
* ```ts
|
121
|
+
* import { verifyClaim } from "thirdweb/extensions/erc721";
|
122
|
+
*
|
123
|
+
* const result = await verifyClaim({
|
124
|
+
* contract,
|
125
|
+
* conditionId: ...,
|
126
|
+
* claimer: ...,
|
127
|
+
* quantity: ...,
|
128
|
+
* currency: ...,
|
129
|
+
* pricePerToken: ...,
|
130
|
+
* allowlistProof: ...,
|
131
|
+
* });
|
132
|
+
*
|
133
|
+
* ```
|
134
|
+
*/
|
135
|
+
export declare function verifyClaim(options: BaseTransactionOptions<VerifyClaimParams>): Promise<boolean>;
|
136
|
+
//# sourceMappingURL=verifyClaim.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"verifyClaim.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,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E,WAKlE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,iBAAiB,iBASjE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAMlD,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,WAElD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,oBAcnD"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import type { BaseTransactionOptions } from "../../../../transaction/types.js";
|
2
|
+
export type CanClaimParams = {
|
3
|
+
claimer: string;
|
4
|
+
quantity: bigint;
|
5
|
+
from?: string;
|
6
|
+
};
|
7
|
+
export type CanClaimResult = {
|
8
|
+
result: boolean;
|
9
|
+
reason?: string;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* Check if a user can claim a drop.
|
13
|
+
*
|
14
|
+
* @param options - The options for the transaction.
|
15
|
+
* @returns Whether the user can claim the drop.
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* ```ts
|
19
|
+
* const claimResult = await canClaim({
|
20
|
+
* contract: contract,
|
21
|
+
* claimer: "0x1234567890123456789012345678901234567890",
|
22
|
+
* quantity: "1",
|
23
|
+
* });
|
24
|
+
* ```
|
25
|
+
*
|
26
|
+
* @extension ERC721
|
27
|
+
*/
|
28
|
+
export declare function canClaim(options: BaseTransactionOptions<CanClaimParams>): Promise<CanClaimResult>;
|
29
|
+
//# sourceMappingURL=canClaim.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"canClaim.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/erc721/drops/read/canClaim.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAK/E,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,GAC9C,OAAO,CAAC,cAAc,CAAC,CAiCzB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WalletSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WalletSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,EACL,KAAK,QAAQ,EACb,QAAQ,EAGT,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAW5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAErE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACnE,8CAsDA;AAwDD,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,8CAoDA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BuyTokenInput.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAgB5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI/D;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,
|
1
|
+
{"version":3,"file":"BuyTokenInput.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAgB5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI/D;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,8CAqKA"}
|
@@ -7,5 +7,5 @@ export declare function FiatValue(props: {
|
|
7
7
|
token: ERC20OrNativeToken;
|
8
8
|
chain: Chain;
|
9
9
|
client: ThirdwebClient;
|
10
|
-
} & TextProps): import("react/jsx-runtime.js").JSX.Element;
|
10
|
+
} & TextProps): import("react/jsx-runtime.js").JSX.Element | null;
|
11
11
|
//# sourceMappingURL=FiatValue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FiatValue.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAM5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,wBAAgB,SAAS,CACvB,KAAK,EAAE;IACL,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,SAAS,
|
1
|
+
{"version":3,"file":"FiatValue.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/swap/FiatValue.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAM5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,wBAAgB,SAAS,CACvB,KAAK,EAAE;IACL,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,SAAS,qDA2Bd"}
|
package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaymentSelectionScreen.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8CAA8C,CAAC;AAO7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAIlG,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACV,MAAM,+CAA+C,CAAC;AAOvD,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,sBAAsB,CAAC;AAG9E,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,sBAAsB,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,EAAE,eAAe,GAAG,SAAS,CAAC;IACnD,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,kBAAkB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACnE,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;CAC7B,
|
1
|
+
{"version":3,"file":"PaymentSelectionScreen.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/swap/PaymentSelectionScreen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,KAAK,EAAE,MAAM,EAAE,MA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AG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QACL,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAE1D,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,QAAQ,
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/react/web/utils/errors.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QACL,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAE1D,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,QAAQ,CAalD"}
|
@@ -7,4 +7,8 @@ export declare function extractError<abi extends Abi>(args: {
|
|
7
7
|
error: unknown;
|
8
8
|
contract?: ThirdwebContract<abi>;
|
9
9
|
}): Promise<unknown>;
|
10
|
+
export declare function extractErrorResult<abi extends Abi>(args: {
|
11
|
+
error: unknown;
|
12
|
+
contract?: ThirdwebContract<abi>;
|
13
|
+
}): Promise<string | undefined>;
|
10
14
|
//# sourceMappingURL=extract-error.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extract-error.d.ts","sourceRoot":"","sources":["../../../src/transaction/extract-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"extract-error.d.ts","sourceRoot":"","sources":["../../../src/transaction/extract-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIhE;;GAEG;AACH,wBAAsB,YAAY,CAAC,GAAG,SAAS,GAAG,EAAE,IAAI,EAAE;IACxD,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;CAClC,oBAOA;AAED,wBAAsB,kBAAkB,CAAC,GAAG,SAAS,GAAG,EAAE,IAAI,EAAE;IAC9D,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;CAClC,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAwB9B"}
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.88.
|
1
|
+
export declare const version = "5.88.3";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/package.json
CHANGED
@@ -107,6 +107,11 @@ export {
|
|
107
107
|
type GetClaimConditionsParams,
|
108
108
|
isGetClaimConditionsSupported,
|
109
109
|
} from "../../extensions/erc1155/drops/read/getClaimConditions.js";
|
110
|
+
export {
|
111
|
+
canClaim,
|
112
|
+
type CanClaimParams,
|
113
|
+
type CanClaimResult,
|
114
|
+
} from "../../extensions/erc1155/drops/read/canClaim.js";
|
110
115
|
|
111
116
|
// WRITE
|
112
117
|
export {
|
@@ -75,6 +75,11 @@ export {
|
|
75
75
|
getActiveClaimCondition,
|
76
76
|
isGetActiveClaimConditionSupported,
|
77
77
|
} from "../../extensions/erc20/drops/read/getActiveClaimCondition.js";
|
78
|
+
export {
|
79
|
+
canClaim,
|
80
|
+
type CanClaimParams,
|
81
|
+
type CanClaimResult,
|
82
|
+
} from "../../extensions/erc20/drops/read/canClaim.js";
|
78
83
|
|
79
84
|
// WRITE
|
80
85
|
export {
|
@@ -109,6 +109,11 @@ export {
|
|
109
109
|
getActiveClaimCondition,
|
110
110
|
isGetActiveClaimConditionSupported,
|
111
111
|
} from "../../extensions/erc721/drops/read/getActiveClaimCondition.js";
|
112
|
+
export {
|
113
|
+
canClaim,
|
114
|
+
type CanClaimParams,
|
115
|
+
type CanClaimResult,
|
116
|
+
} from "../../extensions/erc721/drops/read/canClaim.js";
|
112
117
|
|
113
118
|
// WRITE
|
114
119
|
export {
|