@tokenops/sdk 2.0.0-alpha.3 → 2.0.0-alpha.4
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/CHANGELOG.md +53 -0
- package/README.md +71 -35
- package/SUPPORT.md +1 -1
- package/dist/{chunk-NGU4JYIR.js → chunk-2ND7US2I.js} +1 -1
- package/dist/{chunk-U3TBQRT7.js → chunk-3ZSPRHR3.js} +55 -12
- package/dist/{chunk-BXX5TETM.js → chunk-67Q6KSVV.js} +4114 -3267
- package/dist/{chunk-JVNJSDQ4.cjs → chunk-6AYJRUGP.cjs} +7 -50
- package/dist/{chunk-AHU2HMNE.cjs → chunk-6FUHF73F.cjs} +5 -5
- package/dist/{chunk-NWFMBLSQ.js → chunk-7KY4K4PH.js} +1 -1
- package/dist/{chunk-YABHXJNH.cjs → chunk-ARZ5C3FS.cjs} +7 -7
- package/dist/{chunk-4IB4IY5Y.js → chunk-AX6MQAWU.js} +2 -2
- package/dist/{chunk-BPIVVCSQ.js → chunk-BSXEX2SH.js} +3 -3
- package/dist/{chunk-PK6Q6J5F.js → chunk-CHGY6B7L.js} +34 -81
- package/dist/{chunk-GKYZQJGP.cjs → chunk-DFK5GCJP.cjs} +55 -72
- package/dist/{chunk-4AWQJQXY.cjs → chunk-E4IV4M4E.cjs} +4126 -3279
- package/dist/{chunk-6HCT4QIX.js → chunk-GHGF65LN.js} +16 -13
- package/dist/{chunk-TWT3STIX.js → chunk-K3R27WX4.js} +8 -46
- package/dist/{chunk-GCJFAY4X.js → chunk-KJUNBOJQ.js} +52 -71
- package/dist/{chunk-6XOAYDC6.cjs → chunk-PO3A2AQX.cjs} +4 -4
- package/dist/{chunk-TND5NDV7.cjs → chunk-QHDMPT7I.cjs} +64 -19
- package/dist/{chunk-IEKTGJ4J.cjs → chunk-S47IBDTA.cjs} +36 -83
- package/dist/{chunk-UG5RKLU2.cjs → chunk-SUYBAF27.cjs} +1 -1
- package/dist/{chunk-WRWRA4TN.js → chunk-TWU7L5H7.js} +5 -48
- package/dist/{chunk-WJLECC22.cjs → chunk-UUSSWOPR.cjs} +9 -47
- package/dist/{chunk-YTIYTV4K.cjs → chunk-VHKMWWBA.cjs} +319 -40
- package/dist/{chunk-PG3WXT3K.cjs → chunk-YAL6JSAZ.cjs} +16 -13
- package/dist/{chunk-LEYYG4RF.js → chunk-YMWMIWBP.js} +315 -42
- package/dist/core/addresses.d.ts +4 -4
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/pending.d.ts +57 -0
- package/dist/core/version.d.ts +1 -1
- package/dist/fhe/operators.d.ts +6 -5
- package/dist/fhe/types.d.ts +1 -1
- package/dist/fhe-airdrop/abis/airdrop-base.d.ts +81 -4
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +101 -4
- package/dist/fhe-airdrop/abis/factory.d.ts +222 -4
- package/dist/fhe-airdrop/abis/merkle.d.ts +100 -4
- package/dist/fhe-airdrop/advanced/index.cjs +8 -4
- package/dist/fhe-airdrop/advanced/index.d.cts +1 -0
- package/dist/fhe-airdrop/advanced/index.d.ts +1 -0
- package/dist/fhe-airdrop/advanced/index.js +1 -1
- package/dist/fhe-airdrop/advanced/react/index.cjs +121 -143
- package/dist/fhe-airdrop/advanced/react/index.js +55 -77
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +2 -4
- package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +7 -7
- package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +2 -1
- package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +5 -4
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +7 -3
- package/dist/fhe-airdrop/airdrop-base.d.ts +95 -10
- package/dist/fhe-airdrop/campaign.d.ts +37 -73
- package/dist/fhe-airdrop/compliance-clone.d.ts +21 -0
- package/dist/fhe-airdrop/constants.d.ts +3 -1
- package/dist/fhe-airdrop/ecdsa.d.ts +67 -27
- package/dist/fhe-airdrop/encryption.d.ts +19 -6
- package/dist/fhe-airdrop/errors.d.ts +77 -2
- package/dist/fhe-airdrop/factory-params.d.ts +2361 -0
- package/dist/fhe-airdrop/factory.d.ts +142 -68
- package/dist/fhe-airdrop/guards.d.ts +110 -31
- package/dist/fhe-airdrop/index.cjs +79 -59
- package/dist/fhe-airdrop/index.d.cts +11 -9
- package/dist/fhe-airdrop/index.d.ts +11 -9
- package/dist/fhe-airdrop/index.js +5 -5
- package/dist/fhe-airdrop/merkle-tree.d.ts +9 -9
- package/dist/fhe-airdrop/merkle.d.ts +32 -11
- package/dist/fhe-airdrop/react/_shared.d.ts +12 -6
- package/dist/fhe-airdrop/react/index.cjs +294 -258
- package/dist/fhe-airdrop/react/index.d.cts +16 -9
- package/dist/fhe-airdrop/react/index.d.ts +16 -9
- package/dist/fhe-airdrop/react/index.js +114 -110
- package/dist/fhe-airdrop/react/keys.d.ts +46 -7
- package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +6 -3
- package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +2 -2
- package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +8 -3
- package/dist/fhe-airdrop/react/useAirdropPause.d.ts +5 -0
- package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +4 -6
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +2 -2
- package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +1 -2
- package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +16 -11
- package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +23 -7
- package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +13 -8
- package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +27 -7
- package/dist/fhe-airdrop/react/useDedupMode.d.ts +16 -0
- package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +4 -3
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +6 -4
- package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +15 -8
- package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +1 -1
- package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +5 -7
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +4 -1
- package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +3 -4
- package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +2 -1
- package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +5 -4
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +4 -1
- package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +14 -3
- package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +18 -3
- package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +1 -1
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +34 -13
- package/dist/fhe-airdrop/react/useRescueERC20.d.ts +3 -3
- package/dist/fhe-airdrop/react/useRescueNativeToken.d.ts +23 -0
- package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +5 -2
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +4 -0
- package/dist/fhe-airdrop/react/useTokenOf.d.ts +29 -0
- package/dist/fhe-airdrop/react/useUnwrapRequest.d.ts +25 -0
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +4 -0
- package/dist/fhe-airdrop/roles.d.ts +82 -7
- package/dist/fhe-airdrop/types.d.ts +109 -14
- package/dist/fhe-disperse/errors.d.ts +3 -3
- package/dist/fhe-disperse/index.cjs +22 -22
- package/dist/fhe-disperse/index.d.cts +2 -1
- package/dist/fhe-disperse/index.d.ts +2 -1
- package/dist/fhe-disperse/index.js +3 -3
- package/dist/fhe-disperse/react/index.cjs +27 -25
- package/dist/fhe-disperse/react/index.d.cts +2 -1
- package/dist/fhe-disperse/react/index.d.ts +2 -1
- package/dist/fhe-disperse/react/index.js +8 -6
- package/dist/fhe-disperse/react/useDisperse.d.ts +6 -2
- package/dist/fhe-disperse/react/useRegister.d.ts +9 -3
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +7 -2
- package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +7 -2
- package/dist/fhe-disperse/singleton.d.ts +33 -19
- package/dist/fhe-disperse/types.d.ts +48 -8
- package/dist/fhe-vesting/advanced/index.cjs +6 -6
- package/dist/fhe-vesting/advanced/index.js +4 -4
- package/dist/fhe-vesting/advanced/react/index.cjs +9 -9
- package/dist/fhe-vesting/advanced/react/index.js +6 -6
- package/dist/fhe-vesting/factory.d.ts +31 -8
- package/dist/fhe-vesting/index.cjs +23 -23
- package/dist/fhe-vesting/index.d.cts +3 -2
- package/dist/fhe-vesting/index.d.ts +3 -2
- package/dist/fhe-vesting/index.js +4 -4
- package/dist/fhe-vesting/manager.d.ts +27 -2
- package/dist/fhe-vesting/react/index.cjs +126 -126
- package/dist/fhe-vesting/react/index.d.cts +3 -2
- package/dist/fhe-vesting/react/index.d.ts +3 -2
- package/dist/fhe-vesting/react/index.js +5 -5
- package/dist/fhe-vesting/react/useCreateManager.d.ts +16 -9
- package/dist/fhe-vesting/react/useCreateManagerAndGetAddress.d.ts +9 -5
- package/dist/fhe-vesting/react/useSplitVesting.d.ts +9 -3
- package/dist/index.cjs +18 -18
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/faucet.d.ts +3 -0
- package/dist/testnet-faucet/index.cjs +15 -15
- package/dist/testnet-faucet/index.js +3 -3
- package/dist/testnet-faucet/react/index.cjs +9 -9
- package/dist/testnet-faucet/react/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkDFK5GCJP_cjs = require('../chunk-DFK5GCJP.cjs');
|
|
4
|
+
var chunkE4IV4M4E_cjs = require('../chunk-E4IV4M4E.cjs');
|
|
5
|
+
var chunkVHKMWWBA_cjs = require('../chunk-VHKMWWBA.cjs');
|
|
6
6
|
var chunkKFRDLKMA_cjs = require('../chunk-KFRDLKMA.cjs');
|
|
7
7
|
require('../chunk-FAXIIH5R.cjs');
|
|
8
8
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-SUYBAF27.cjs');
|
|
10
10
|
require('../chunk-MVDQMV25.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-YAL6JSAZ.cjs');
|
|
12
12
|
require('../chunk-JK4XMMKM.cjs');
|
|
13
13
|
require('../chunk-66IHPTOK.cjs');
|
|
14
14
|
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
@@ -16,221 +16,241 @@ require('../chunk-VJKZWYYJ.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
Object.defineProperty(exports, "MERKLE_BATCH_LIMIT", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkDFK5GCJP_cjs.MERKLE_BATCH_LIMIT; }
|
|
22
|
+
});
|
|
19
23
|
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkDFK5GCJP_cjs.buildMerkleCampaign; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "buildMerkleTree", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkDFK5GCJP_cjs.buildMerkleTree; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "encodeInstanceRoleSplit", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkDFK5GCJP_cjs.encodeInstanceRoleSplit; }
|
|
26
34
|
});
|
|
27
35
|
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
28
36
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkDFK5GCJP_cjs.encryptCampaignAmounts; }
|
|
30
38
|
});
|
|
31
39
|
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
32
40
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkDFK5GCJP_cjs.grantInstanceRoles; }
|
|
34
42
|
});
|
|
35
43
|
Object.defineProperty(exports, "leafOf", {
|
|
36
44
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkDFK5GCJP_cjs.leafOf; }
|
|
38
46
|
});
|
|
39
47
|
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
40
48
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkDFK5GCJP_cjs.planInstanceRoleSplit; }
|
|
42
50
|
});
|
|
43
51
|
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
44
52
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkDFK5GCJP_cjs.planMerkleCampaign; }
|
|
46
54
|
});
|
|
47
55
|
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
48
56
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkDFK5GCJP_cjs.rotateMerkleRoot; }
|
|
50
58
|
});
|
|
51
59
|
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
52
60
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkDFK5GCJP_cjs.validateCampaignRecipients; }
|
|
54
62
|
});
|
|
55
63
|
Object.defineProperty(exports, "AirdropBaseClient", {
|
|
56
64
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkE4IV4M4E_cjs.AirdropBaseClient; }
|
|
58
66
|
});
|
|
59
67
|
Object.defineProperty(exports, "CLAIM_TYPEHASH", {
|
|
60
68
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkE4IV4M4E_cjs.CLAIM_TYPEHASH; }
|
|
62
70
|
});
|
|
63
71
|
Object.defineProperty(exports, "CLAIM_TYPES", {
|
|
64
72
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkE4IV4M4E_cjs.CLAIM_TYPES; }
|
|
66
74
|
});
|
|
67
75
|
Object.defineProperty(exports, "ComplianceManagerClient", {
|
|
68
76
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkE4IV4M4E_cjs.ComplianceManagerClient; }
|
|
70
78
|
});
|
|
71
79
|
Object.defineProperty(exports, "ConfidentialAirdropFactoryClient", {
|
|
72
80
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkE4IV4M4E_cjs.ConfidentialAirdropFactoryClient; }
|
|
74
82
|
});
|
|
75
83
|
Object.defineProperty(exports, "EIP712_DOMAIN_NAME", {
|
|
76
84
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkE4IV4M4E_cjs.EIP712_DOMAIN_NAME; }
|
|
78
86
|
});
|
|
79
87
|
Object.defineProperty(exports, "EIP712_DOMAIN_VERSION", {
|
|
80
88
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkE4IV4M4E_cjs.EIP712_DOMAIN_VERSION; }
|
|
82
90
|
});
|
|
83
91
|
Object.defineProperty(exports, "EcdsaAirdropClient", {
|
|
84
92
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkE4IV4M4E_cjs.EcdsaAirdropClient; }
|
|
86
94
|
});
|
|
87
95
|
Object.defineProperty(exports, "FACTORY_ROLE_CONCENTRATION_NOTE", {
|
|
88
96
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkE4IV4M4E_cjs.FACTORY_ROLE_CONCENTRATION_NOTE; }
|
|
90
98
|
});
|
|
91
99
|
Object.defineProperty(exports, "MerkleAirdropClient", {
|
|
92
100
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkE4IV4M4E_cjs.MerkleAirdropClient; }
|
|
94
102
|
});
|
|
95
103
|
Object.defineProperty(exports, "airdropFactoryAbi", {
|
|
96
104
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkE4IV4M4E_cjs.airdropFactoryAbi; }
|
|
98
106
|
});
|
|
99
107
|
Object.defineProperty(exports, "complianceRoleManagerAbi", {
|
|
100
108
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkE4IV4M4E_cjs.complianceRoleManagerAbi; }
|
|
102
110
|
});
|
|
103
111
|
Object.defineProperty(exports, "confidentialAirdropBaseAbi", {
|
|
104
112
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkE4IV4M4E_cjs.confidentialAirdropBaseAbi; }
|
|
106
114
|
});
|
|
107
115
|
Object.defineProperty(exports, "createAirdropBaseClient", {
|
|
108
116
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkE4IV4M4E_cjs.createAirdropBaseClient; }
|
|
110
118
|
});
|
|
111
119
|
Object.defineProperty(exports, "createComplianceManagerClient", {
|
|
112
120
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkE4IV4M4E_cjs.createComplianceManagerClient; }
|
|
114
122
|
});
|
|
115
123
|
Object.defineProperty(exports, "createConfidentialAirdropFactoryClient", {
|
|
116
124
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkE4IV4M4E_cjs.createConfidentialAirdropFactoryClient; }
|
|
118
126
|
});
|
|
119
127
|
Object.defineProperty(exports, "createEcdsaAirdropClient", {
|
|
120
128
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkE4IV4M4E_cjs.createEcdsaAirdropClient; }
|
|
122
130
|
});
|
|
123
131
|
Object.defineProperty(exports, "createMerkleAirdropClient", {
|
|
124
132
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkE4IV4M4E_cjs.createMerkleAirdropClient; }
|
|
126
134
|
});
|
|
127
135
|
Object.defineProperty(exports, "ecdsaConfidentialAirdropAbi", {
|
|
128
136
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkE4IV4M4E_cjs.ecdsaConfidentialAirdropAbi; }
|
|
130
138
|
});
|
|
131
139
|
Object.defineProperty(exports, "encryptUint64", {
|
|
132
140
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkE4IV4M4E_cjs.encryptUint64; }
|
|
134
142
|
});
|
|
135
143
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
136
144
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkE4IV4M4E_cjs.encryptUint64Batch; }
|
|
138
146
|
});
|
|
139
147
|
Object.defineProperty(exports, "isAclPropagationError", {
|
|
140
148
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkE4IV4M4E_cjs.isAclPropagationError; }
|
|
142
150
|
});
|
|
143
151
|
Object.defineProperty(exports, "merkleConfidentialAirdropAbi", {
|
|
144
152
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkE4IV4M4E_cjs.merkleConfidentialAirdropAbi; }
|
|
146
154
|
});
|
|
147
155
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
148
156
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkE4IV4M4E_cjs.resolveEncryptor; }
|
|
150
158
|
});
|
|
151
159
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
152
160
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkE4IV4M4E_cjs.signClaimAuthorization; }
|
|
154
162
|
});
|
|
155
163
|
Object.defineProperty(exports, "AIRDROP_CONTRACTS_COMMIT", {
|
|
156
164
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkVHKMWWBA_cjs.AIRDROP_CONTRACTS_COMMIT; }
|
|
158
166
|
});
|
|
159
167
|
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
160
168
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkVHKMWWBA_cjs.AlreadyClaimedError; }
|
|
162
170
|
});
|
|
163
171
|
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
164
172
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkVHKMWWBA_cjs.ClaimNotStartedError; }
|
|
166
174
|
});
|
|
167
175
|
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
168
176
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkVHKMWWBA_cjs.ClaimWindowClosedError; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "ClawbackRequiresPauseError", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunkVHKMWWBA_cjs.ClawbackRequiresPauseError; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "CreateCommitmentMismatchError", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkVHKMWWBA_cjs.CreateCommitmentMismatchError; }
|
|
170
186
|
});
|
|
171
187
|
Object.defineProperty(exports, "DEDUP_MODE", {
|
|
172
188
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkVHKMWWBA_cjs.DEDUP_MODE; }
|
|
174
190
|
});
|
|
175
191
|
Object.defineProperty(exports, "DEPLOYMENT_MODE", {
|
|
176
192
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkVHKMWWBA_cjs.DEPLOYMENT_MODE; }
|
|
178
194
|
});
|
|
179
195
|
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
180
196
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkVHKMWWBA_cjs.DedupIdConsumedError; }
|
|
182
198
|
});
|
|
183
199
|
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
184
200
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkVHKMWWBA_cjs.FeeCollectorSelfAdministeredError; }
|
|
186
202
|
});
|
|
187
203
|
Object.defineProperty(exports, "GasFeeNotAcceptedError", {
|
|
188
204
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkVHKMWWBA_cjs.GasFeeNotAcceptedError; }
|
|
190
206
|
});
|
|
191
207
|
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
192
208
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkVHKMWWBA_cjs.MerkleUupsUnsupportedError; }
|
|
210
|
+
});
|
|
211
|
+
Object.defineProperty(exports, "NativeRescueRequiresZeroFeeError", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: function () { return chunkVHKMWWBA_cjs.NativeRescueRequiresZeroFeeError; }
|
|
194
214
|
});
|
|
195
215
|
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
196
216
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkVHKMWWBA_cjs.NonStockWrapperError; }
|
|
198
218
|
});
|
|
199
219
|
Object.defineProperty(exports, "PredictionDriftError", {
|
|
200
220
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkVHKMWWBA_cjs.PredictionDriftError; }
|
|
202
222
|
});
|
|
203
223
|
Object.defineProperty(exports, "SaltCollisionError", {
|
|
204
224
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkVHKMWWBA_cjs.SaltCollisionError; }
|
|
206
226
|
});
|
|
207
227
|
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
208
228
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkVHKMWWBA_cjs.SignatureExpiredError; }
|
|
210
230
|
});
|
|
211
231
|
Object.defineProperty(exports, "UINT96_MAX", {
|
|
212
232
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkVHKMWWBA_cjs.UINT96_MAX; }
|
|
214
234
|
});
|
|
215
235
|
Object.defineProperty(exports, "UnauthorizedRedirectError", {
|
|
216
236
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkVHKMWWBA_cjs.UnauthorizedRedirectError; }
|
|
218
238
|
});
|
|
219
239
|
Object.defineProperty(exports, "UnrecognisedAirdropError", {
|
|
220
240
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkVHKMWWBA_cjs.UnrecognisedAirdropError; }
|
|
222
242
|
});
|
|
223
243
|
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
224
244
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkVHKMWWBA_cjs.UpgradeabilityNotAllowedError; }
|
|
226
246
|
});
|
|
227
247
|
Object.defineProperty(exports, "preflightClaim", {
|
|
228
248
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkVHKMWWBA_cjs.preflightClaim; }
|
|
230
250
|
});
|
|
231
251
|
Object.defineProperty(exports, "preflightCreate", {
|
|
232
252
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkVHKMWWBA_cjs.preflightCreate; }
|
|
234
254
|
});
|
|
235
255
|
Object.defineProperty(exports, "ERC7984_OPERATOR_MAX_DEADLINE", {
|
|
236
256
|
enumerable: true,
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* `@tokenops/sdk/fhe-airdrop` - confidential airdrop campaigns on the
|
|
3
3
|
* TokenOps airdrop v2 contracts.
|
|
4
4
|
*
|
|
5
|
-
* **
|
|
6
|
-
* targets `tokenops-fhe-airdrop-v2
|
|
7
|
-
* intended for the `alpha` npm
|
|
5
|
+
* **Alpha software. No stability promise.**
|
|
6
|
+
* This module targets `tokenops-fhe-airdrop-v2` at `AIRDROP_CONTRACTS_COMMIT`, through
|
|
7
|
+
* the Sepolia deployment in `DEPLOYED_ADDRESSES`. It is intended for the `alpha` npm
|
|
8
|
+
* dist-tag only, and must not be published to
|
|
8
9
|
* `latest`: the release that first ships this module is the one that sets
|
|
9
10
|
* that tag. Two contract
|
|
10
11
|
* behaviours would otherwise produce a wrong result rather than a revert,
|
|
@@ -29,20 +30,21 @@
|
|
|
29
30
|
*/
|
|
30
31
|
export { AIRDROP_CONTRACTS_COMMIT, DEDUP_MODE, DEPLOYMENT_MODE, UINT96_MAX, type DedupMode, type DeploymentMode, } from "./constants.js";
|
|
31
32
|
export { ConfidentialAirdropFactoryClient, createConfidentialAirdropFactoryClient, FACTORY_ROLE_CONCENTRATION_NOTE, type CompliancePolicy, type ConfidentialAirdropFactoryClientConfig, type CustomFee, type FundInput, type UpgradeabilityPolicy, } from "./factory.js";
|
|
32
|
-
export { AirdropBaseClient, createAirdropBaseClient, type AirdropBaseClientConfig, type WriteAccountOverride, } from "./airdrop-base.js";
|
|
33
|
+
export { AirdropBaseClient, createAirdropBaseClient, type AirdropBaseClientConfig, type UnwrapRequest, type UnwrapRequestSource, type WriteAccountOverride, } from "./airdrop-base.js";
|
|
33
34
|
export { CLAIM_TYPEHASH, CLAIM_TYPES, createEcdsaAirdropClient, EcdsaAirdropClient, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, type Eip712Domain, type EcdsaAirdropClientConfig, type EcdsaClaimArgs, type GetClaimAmountArgs as EcdsaGetClaimAmountArgs, type IsSignatureValidArgs, } from "./ecdsa.js";
|
|
34
35
|
export { createMerkleAirdropClient, MerkleAirdropClient, type GetClaimAmountArgs as MerkleGetClaimAmountArgs, type MerkleClaimArgs, } from "./merkle.js";
|
|
35
36
|
export { buildMerkleTree, leafOf, type BuildMerkleTreeArgs, type BuiltMerkleTree, type LeafOfArgs, type MerkleLeafInput, } from "./merkle-tree.js";
|
|
36
37
|
export { ComplianceManagerClient, createComplianceManagerClient, isAclPropagationError, type ComplianceManagerClientConfig, } from "./compliance.js";
|
|
37
|
-
export type { BuiltCampaign, CampaignEntry, CampaignRecipient, CommonAirdropParams, CreateAirdropArgs, CreateAirdropResult, EcdsaAirdropParams, MerkleAirdropParams, } from "./types.js";
|
|
38
|
+
export type { AirdropVariantParams, BuiltCampaign, CampaignEntry, CampaignRecipient, CommonAirdropParams, CreateAirdropArgs, CreateAirdropResult, CreateCommitments, CreateMerkleAirdropArgs, EcdsaAirdropParams, MerkleAirdropParams, PendingCreateAirdropResult, } from "./types.js";
|
|
39
|
+
export type { MinedWrite, PendingWrite, ReceiptMode } from "../core/pending.js";
|
|
38
40
|
export type { EncryptedInput, EncryptedInputs, EncryptedViewResult } from "../fhe/types.js";
|
|
39
|
-
export { buildMerkleCampaign, encryptCampaignAmounts, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients, type BuildMerkleCampaignArgs, type
|
|
40
|
-
export { grantInstanceRoles, planInstanceRoleSplit, type InstanceRoleAssignment, type RoleGrantOutcome, type RoleGrantStep, type RoleName, } from "./roles.js";
|
|
41
|
+
export { buildMerkleCampaign, encryptCampaignAmounts, MERKLE_BATCH_LIMIT, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients, type BuildMerkleCampaignArgs, type EncryptCampaignAmountsArgs, type EncryptedCampaignLeaf, type PlanMerkleCampaignArgs, type PlannedCampaign, type RotatedCampaign, type RotateMerkleRootArgs, } from "./campaign.js";
|
|
42
|
+
export { encodeInstanceRoleSplit, grantInstanceRoles, planInstanceRoleSplit, type InstanceRoleAssignment, type InstanceRoleCall, type InstanceRoleConstants, type RoleGrantOutcome, type RoleGrantStep, type RoleName, } from "./roles.js";
|
|
41
43
|
export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "./encryption.js";
|
|
42
|
-
export { preflightClaim, preflightCreate, type AirdropRegistry, type ClaimPreflightTarget, type EcdsaClaimPreflightSignature, type PreflightClaimArgs, type PreflightCreateArgs, } from "./guards.js";
|
|
44
|
+
export { preflightClaim, preflightCreate, type AirdropRegistry, type ClaimPreflightTarget, type EcdsaClaimPreflightSignature, type PreflightClaimArgs, type PreflightCreateArgs, type PreflightCreateResult, } from "./guards.js";
|
|
43
45
|
export { type PreflightResult } from "../core/preflight.js";
|
|
44
46
|
export { airdropFactoryAbi, complianceRoleManagerAbi, confidentialAirdropBaseAbi, ecdsaConfidentialAirdropAbi, merkleConfidentialAirdropAbi, } from "./abis/index.js";
|
|
45
|
-
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, DedupIdConsumedError, FeeCollectorSelfAdministeredError, GasFeeNotAcceptedError, MerkleUupsUnsupportedError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UnauthorizedRedirectError, UnrecognisedAirdropError, UpgradeabilityNotAllowedError, type AirdropVariant, } from "./errors.js";
|
|
47
|
+
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, ClawbackRequiresPauseError, CreateCommitmentMismatchError, DedupIdConsumedError, FeeCollectorSelfAdministeredError, GasFeeNotAcceptedError, MerkleUupsUnsupportedError, NativeRescueRequiresZeroFeeError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UnauthorizedRedirectError, UnrecognisedAirdropError, UpgradeabilityNotAllowedError, type AirdropVariant, } from "./errors.js";
|
|
46
48
|
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, OperatorNotApprovedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../core/errors.js";
|
|
47
49
|
export { ERC7984_OPERATOR_MAX_DEADLINE, revokeOperator, setOperator, type RevokeOperatorArgs, type SetOperatorArgs, } from "../fhe/operators.js";
|
|
48
50
|
export { erc7984OperatorAbi } from "../fhe/erc7984-abi.js";
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* `@tokenops/sdk/fhe-airdrop` - confidential airdrop campaigns on the
|
|
3
3
|
* TokenOps airdrop v2 contracts.
|
|
4
4
|
*
|
|
5
|
-
* **
|
|
6
|
-
* targets `tokenops-fhe-airdrop-v2
|
|
7
|
-
* intended for the `alpha` npm
|
|
5
|
+
* **Alpha software. No stability promise.**
|
|
6
|
+
* This module targets `tokenops-fhe-airdrop-v2` at `AIRDROP_CONTRACTS_COMMIT`, through
|
|
7
|
+
* the Sepolia deployment in `DEPLOYED_ADDRESSES`. It is intended for the `alpha` npm
|
|
8
|
+
* dist-tag only, and must not be published to
|
|
8
9
|
* `latest`: the release that first ships this module is the one that sets
|
|
9
10
|
* that tag. Two contract
|
|
10
11
|
* behaviours would otherwise produce a wrong result rather than a revert,
|
|
@@ -29,20 +30,21 @@
|
|
|
29
30
|
*/
|
|
30
31
|
export { AIRDROP_CONTRACTS_COMMIT, DEDUP_MODE, DEPLOYMENT_MODE, UINT96_MAX, type DedupMode, type DeploymentMode, } from "./constants.js";
|
|
31
32
|
export { ConfidentialAirdropFactoryClient, createConfidentialAirdropFactoryClient, FACTORY_ROLE_CONCENTRATION_NOTE, type CompliancePolicy, type ConfidentialAirdropFactoryClientConfig, type CustomFee, type FundInput, type UpgradeabilityPolicy, } from "./factory.js";
|
|
32
|
-
export { AirdropBaseClient, createAirdropBaseClient, type AirdropBaseClientConfig, type WriteAccountOverride, } from "./airdrop-base.js";
|
|
33
|
+
export { AirdropBaseClient, createAirdropBaseClient, type AirdropBaseClientConfig, type UnwrapRequest, type UnwrapRequestSource, type WriteAccountOverride, } from "./airdrop-base.js";
|
|
33
34
|
export { CLAIM_TYPEHASH, CLAIM_TYPES, createEcdsaAirdropClient, EcdsaAirdropClient, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, type Eip712Domain, type EcdsaAirdropClientConfig, type EcdsaClaimArgs, type GetClaimAmountArgs as EcdsaGetClaimAmountArgs, type IsSignatureValidArgs, } from "./ecdsa.js";
|
|
34
35
|
export { createMerkleAirdropClient, MerkleAirdropClient, type GetClaimAmountArgs as MerkleGetClaimAmountArgs, type MerkleClaimArgs, } from "./merkle.js";
|
|
35
36
|
export { buildMerkleTree, leafOf, type BuildMerkleTreeArgs, type BuiltMerkleTree, type LeafOfArgs, type MerkleLeafInput, } from "./merkle-tree.js";
|
|
36
37
|
export { ComplianceManagerClient, createComplianceManagerClient, isAclPropagationError, type ComplianceManagerClientConfig, } from "./compliance.js";
|
|
37
|
-
export type { BuiltCampaign, CampaignEntry, CampaignRecipient, CommonAirdropParams, CreateAirdropArgs, CreateAirdropResult, EcdsaAirdropParams, MerkleAirdropParams, } from "./types.js";
|
|
38
|
+
export type { AirdropVariantParams, BuiltCampaign, CampaignEntry, CampaignRecipient, CommonAirdropParams, CreateAirdropArgs, CreateAirdropResult, CreateCommitments, CreateMerkleAirdropArgs, EcdsaAirdropParams, MerkleAirdropParams, PendingCreateAirdropResult, } from "./types.js";
|
|
39
|
+
export type { MinedWrite, PendingWrite, ReceiptMode } from "../core/pending.js";
|
|
38
40
|
export type { EncryptedInput, EncryptedInputs, EncryptedViewResult } from "../fhe/types.js";
|
|
39
|
-
export { buildMerkleCampaign, encryptCampaignAmounts, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients, type BuildMerkleCampaignArgs, type
|
|
40
|
-
export { grantInstanceRoles, planInstanceRoleSplit, type InstanceRoleAssignment, type RoleGrantOutcome, type RoleGrantStep, type RoleName, } from "./roles.js";
|
|
41
|
+
export { buildMerkleCampaign, encryptCampaignAmounts, MERKLE_BATCH_LIMIT, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients, type BuildMerkleCampaignArgs, type EncryptCampaignAmountsArgs, type EncryptedCampaignLeaf, type PlanMerkleCampaignArgs, type PlannedCampaign, type RotatedCampaign, type RotateMerkleRootArgs, } from "./campaign.js";
|
|
42
|
+
export { encodeInstanceRoleSplit, grantInstanceRoles, planInstanceRoleSplit, type InstanceRoleAssignment, type InstanceRoleCall, type InstanceRoleConstants, type RoleGrantOutcome, type RoleGrantStep, type RoleName, } from "./roles.js";
|
|
41
43
|
export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "./encryption.js";
|
|
42
|
-
export { preflightClaim, preflightCreate, type AirdropRegistry, type ClaimPreflightTarget, type EcdsaClaimPreflightSignature, type PreflightClaimArgs, type PreflightCreateArgs, } from "./guards.js";
|
|
44
|
+
export { preflightClaim, preflightCreate, type AirdropRegistry, type ClaimPreflightTarget, type EcdsaClaimPreflightSignature, type PreflightClaimArgs, type PreflightCreateArgs, type PreflightCreateResult, } from "./guards.js";
|
|
43
45
|
export { type PreflightResult } from "../core/preflight.js";
|
|
44
46
|
export { airdropFactoryAbi, complianceRoleManagerAbi, confidentialAirdropBaseAbi, ecdsaConfidentialAirdropAbi, merkleConfidentialAirdropAbi, } from "./abis/index.js";
|
|
45
|
-
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, DedupIdConsumedError, FeeCollectorSelfAdministeredError, GasFeeNotAcceptedError, MerkleUupsUnsupportedError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UnauthorizedRedirectError, UnrecognisedAirdropError, UpgradeabilityNotAllowedError, type AirdropVariant, } from "./errors.js";
|
|
47
|
+
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, ClawbackRequiresPauseError, CreateCommitmentMismatchError, DedupIdConsumedError, FeeCollectorSelfAdministeredError, GasFeeNotAcceptedError, MerkleUupsUnsupportedError, NativeRescueRequiresZeroFeeError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UnauthorizedRedirectError, UnrecognisedAirdropError, UpgradeabilityNotAllowedError, type AirdropVariant, } from "./errors.js";
|
|
46
48
|
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, OperatorNotApprovedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../core/errors.js";
|
|
47
49
|
export { ERC7984_OPERATOR_MAX_DEADLINE, revokeOperator, setOperator, type RevokeOperatorArgs, type SetOperatorArgs, } from "../fhe/operators.js";
|
|
48
50
|
export { erc7984OperatorAbi } from "../fhe/erc7984-abi.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { buildMerkleCampaign, buildMerkleTree, encryptCampaignAmounts, grantInstanceRoles, leafOf, planInstanceRoleSplit, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients } from '../chunk-
|
|
2
|
-
export { AirdropBaseClient, CLAIM_TYPEHASH, CLAIM_TYPES, ComplianceManagerClient, ConfidentialAirdropFactoryClient, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EcdsaAirdropClient, FACTORY_ROLE_CONCENTRATION_NOTE, MerkleAirdropClient, airdropFactoryAbi, complianceRoleManagerAbi, confidentialAirdropBaseAbi, createAirdropBaseClient, createComplianceManagerClient, createConfidentialAirdropFactoryClient, createEcdsaAirdropClient, createMerkleAirdropClient, ecdsaConfidentialAirdropAbi, encryptUint64, encryptUint64Batch, isAclPropagationError, merkleConfidentialAirdropAbi, resolveEncryptor, signClaimAuthorization } from '../chunk-
|
|
3
|
-
export { AIRDROP_CONTRACTS_COMMIT, AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, DEDUP_MODE, DEPLOYMENT_MODE, DedupIdConsumedError, FeeCollectorSelfAdministeredError, GasFeeNotAcceptedError, MerkleUupsUnsupportedError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UINT96_MAX, UnauthorizedRedirectError, UnrecognisedAirdropError, UpgradeabilityNotAllowedError, preflightClaim, preflightCreate } from '../chunk-
|
|
1
|
+
export { MERKLE_BATCH_LIMIT, buildMerkleCampaign, buildMerkleTree, encodeInstanceRoleSplit, encryptCampaignAmounts, grantInstanceRoles, leafOf, planInstanceRoleSplit, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients } from '../chunk-KJUNBOJQ.js';
|
|
2
|
+
export { AirdropBaseClient, CLAIM_TYPEHASH, CLAIM_TYPES, ComplianceManagerClient, ConfidentialAirdropFactoryClient, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EcdsaAirdropClient, FACTORY_ROLE_CONCENTRATION_NOTE, MerkleAirdropClient, airdropFactoryAbi, complianceRoleManagerAbi, confidentialAirdropBaseAbi, createAirdropBaseClient, createComplianceManagerClient, createConfidentialAirdropFactoryClient, createEcdsaAirdropClient, createMerkleAirdropClient, ecdsaConfidentialAirdropAbi, encryptUint64, encryptUint64Batch, isAclPropagationError, merkleConfidentialAirdropAbi, resolveEncryptor, signClaimAuthorization } from '../chunk-67Q6KSVV.js';
|
|
3
|
+
export { AIRDROP_CONTRACTS_COMMIT, AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, ClawbackRequiresPauseError, CreateCommitmentMismatchError, DEDUP_MODE, DEPLOYMENT_MODE, DedupIdConsumedError, FeeCollectorSelfAdministeredError, GasFeeNotAcceptedError, MerkleUupsUnsupportedError, NativeRescueRequiresZeroFeeError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UINT96_MAX, UnauthorizedRedirectError, UnrecognisedAirdropError, UpgradeabilityNotAllowedError, preflightClaim, preflightCreate } from '../chunk-YMWMIWBP.js';
|
|
4
4
|
export { ERC7984_OPERATOR_MAX_DEADLINE, revokeOperator, setOperator } from '../chunk-4TSDNZQ3.js';
|
|
5
5
|
import '../chunk-ZWXJTBZO.js';
|
|
6
6
|
export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-7KY4K4PH.js';
|
|
8
8
|
import '../chunk-4RAAATVY.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-GHGF65LN.js';
|
|
10
10
|
import '../chunk-ZA673I3O.js';
|
|
11
11
|
import '../chunk-KWFFIJYX.js';
|
|
12
12
|
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-QBJ7O2B4.js';
|
|
@@ -23,9 +23,9 @@ export declare function leafOf(args: LeafOfArgs): Hex;
|
|
|
23
23
|
* The minimum a leaf must carry. `buildMerkleTree` is generic over anything wider, so a
|
|
24
24
|
* caller's own fields ride along onto the entry.
|
|
25
25
|
*
|
|
26
|
-
* Deliberately does NOT include `
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Deliberately does NOT include `inputProof`: the tree does not commit it, so it is not
|
|
27
|
+
* needed to build one. Pass it anyway and it rides through to the entry, which is what
|
|
28
|
+
* makes the result assignable to {@link CampaignEntry}.
|
|
29
29
|
*
|
|
30
30
|
* @alpha
|
|
31
31
|
*/
|
|
@@ -62,15 +62,15 @@ export interface BuiltMerkleTree<L extends MerkleLeafInput> {
|
|
|
62
62
|
*
|
|
63
63
|
* **Pure.** No relayer, no chain access, no encryptor — same leaves in, same root out.
|
|
64
64
|
*
|
|
65
|
-
* **The tree commits to the handle, not the amount
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* **The tree commits to the handle, not the amount.** `_leafOf` hashes
|
|
66
|
+
* `(instance, account, handle)`, so whoever encrypted must have bound each input to
|
|
67
|
+
* `(instance, instance)`. This function cannot check that: it will
|
|
68
68
|
* happily build a tree over wrongly-bound handles, and the failure surfaces at claim time
|
|
69
69
|
* inside the coprocessor.
|
|
70
70
|
*
|
|
71
71
|
* **Extra fields ride along.** Whatever a leaf carries beyond `account` and `handle` —
|
|
72
|
-
*
|
|
73
|
-
*
|
|
72
|
+
* an `inputProof`, your own row id - comes back on the entry, still aligned with its
|
|
73
|
+
* proof. Passing `{ account, handle, inputProof }` therefore yields a
|
|
74
74
|
* value structurally assignable to {@link CampaignEntry}.
|
|
75
75
|
*
|
|
76
76
|
* @param args The instance the leaves are scoped to, and the leaves.
|
|
@@ -80,7 +80,7 @@ export interface BuiltMerkleTree<L extends MerkleLeafInput> {
|
|
|
80
80
|
* @example
|
|
81
81
|
* const { root, entries } = buildMerkleTree({
|
|
82
82
|
* instance: airdrop,
|
|
83
|
-
* leaves: [{ account: alice,
|
|
83
|
+
* leaves: [{ account: alice, handle, inputProof }],
|
|
84
84
|
* });
|
|
85
85
|
* await merkle.setMerkleRoot({ newRoot: root });
|
|
86
86
|
*
|
|
@@ -23,9 +23,15 @@ export interface MerkleClaimArgs extends WriteAccountOverride {
|
|
|
23
23
|
* The proof-bearing claim entry, built by a campaign builder (`campaign.ts`).
|
|
24
24
|
*
|
|
25
25
|
* `entry.account` is submitted as the claim identity and selects the leaf.
|
|
26
|
-
*
|
|
27
|
-
* the input proof
|
|
28
|
-
*
|
|
26
|
+
*
|
|
27
|
+
* Anyone may submit an entry - the input proof is bound to the instance itself, not to a
|
|
28
|
+
* caller. The contract pays `entry.account` (or `to`, when `entry.account` is the sender)
|
|
29
|
+
* and advances `entry.account`'s delivered total. A submission by someone else therefore
|
|
30
|
+
* settles the recipient's leaf on their behalf; the recipient's own later claim pays an
|
|
31
|
+
* encrypted zero and still costs the fee, so check
|
|
32
|
+
* {@link MerkleAirdropClient.getClaimedAmount} first. A stranger who submits first settles
|
|
33
|
+
* the leaf to `entry.account` confidentially, so a redirect or unwrap the recipient
|
|
34
|
+
* intended no longer happens.
|
|
29
35
|
*/
|
|
30
36
|
entry: CampaignEntry;
|
|
31
37
|
}
|
|
@@ -36,9 +42,9 @@ export interface MerkleClaimArgs extends WriteAccountOverride {
|
|
|
36
42
|
*/
|
|
37
43
|
export interface GetClaimAmountArgs extends WriteAccountOverride {
|
|
38
44
|
/**
|
|
39
|
-
* Same
|
|
40
|
-
*
|
|
41
|
-
*
|
|
45
|
+
* Same entry as {@link MerkleClaimArgs.entry}, and any address may submit it. The
|
|
46
|
+
* preview's result is ACL'd to `entry.account`, so a relayer can confirm a leaf verifies
|
|
47
|
+
* without being able to read the amount.
|
|
42
48
|
*/
|
|
43
49
|
entry: CampaignEntry;
|
|
44
50
|
}
|
|
@@ -80,6 +86,10 @@ export declare class MerkleAirdropClient extends AirdropBaseClient {
|
|
|
80
86
|
* Requires `msg.value == gasFee()` exactly — handled for you; see the
|
|
81
87
|
* class TSDoc.
|
|
82
88
|
*
|
|
89
|
+
* Anyone may submit an entry, and a stranger who submits first settles the recipient's
|
|
90
|
+
* leaf on their behalf; see {@link MerkleClaimArgs.entry} for what that costs the
|
|
91
|
+
* recipient, and check {@link getClaimedAmount} before offering a claim.
|
|
92
|
+
*
|
|
83
93
|
* @remarks
|
|
84
94
|
* There is no per-leaf consumption on this variant — replay safety is the
|
|
85
95
|
* accounting itself, not a spent-flag. Re-presenting an already-settled
|
|
@@ -92,8 +102,7 @@ export declare class MerkleAirdropClient extends AirdropBaseClient {
|
|
|
92
102
|
*
|
|
93
103
|
* @throws {@link ClaimNotStartedError} before `startTime`.
|
|
94
104
|
* @throws {@link ClaimWindowClosedError} after `endTime`.
|
|
95
|
-
* @throws {@link InvalidArgumentError} (`argument: "
|
|
96
|
-
* another address, or (`argument: "merkleProof"`) when the proof does not verify against the current root.
|
|
105
|
+
* @throws {@link InvalidArgumentError} (`argument: "merkleProof"`) when the proof does not verify against the current root.
|
|
97
106
|
* @throws {@link UnauthorizedRedirectError} when a third-party submitter passes a `to` other than `entry.account`.
|
|
98
107
|
* @returns The transaction hash.
|
|
99
108
|
*/
|
|
@@ -115,9 +124,18 @@ export declare class MerkleAirdropClient extends AirdropBaseClient {
|
|
|
115
124
|
* refused before the write. A third party can still submit a confidential
|
|
116
125
|
* {@link claim}.
|
|
117
126
|
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
127
|
+
* **Discloses the amount immediately.** With the stock wrapper the unwrapped amount is
|
|
128
|
+
* publicly decryptable from this claim transaction (the emitted `unwrapRequestId` is its
|
|
129
|
+
* handle), so anyone can learn it at once; `finalizeUnwrap` only releases the ERC-20.
|
|
130
|
+
*
|
|
131
|
+
* Anyone may still settle this entry first through {@link claim}, after which an unwrap
|
|
132
|
+
* pays an encrypted zero; see {@link MerkleClaimArgs.entry}.
|
|
133
|
+
*
|
|
134
|
+
* @returns The transaction hash. It is only the unwrap request: the underlying
|
|
135
|
+
* ERC-20 is released later by the wrapper's permissionless `finalizeUnwrap`. Read
|
|
136
|
+
* its `unwrapRequestId` with {@link AirdropBaseClient.readUnwrapRequest} (or
|
|
137
|
+
* {@link AirdropBaseClient.parseUnwrapRequest} over a receipt you hold), then
|
|
138
|
+
* finalize with Zama's `sdk.createToken(wrapper).finalizeUnwrap(unwrapRequestId)`.
|
|
121
139
|
*/
|
|
122
140
|
claimAndUnwrap(args: MerkleClaimArgs): Promise<Hex>;
|
|
123
141
|
/**
|
|
@@ -133,6 +151,9 @@ export declare class MerkleAirdropClient extends AirdropBaseClient {
|
|
|
133
151
|
* someone's behalf gets a valid handle it cannot read — that is the contract's intent,
|
|
134
152
|
* and it is what makes a blind relayed submission possible.
|
|
135
153
|
*
|
|
154
|
+
* A leaf someone else already settled previews as an encrypted zero; see
|
|
155
|
+
* {@link MerkleClaimArgs.entry}.
|
|
156
|
+
*
|
|
136
157
|
* @returns `{ handle, hash }` — pass `handle` to the Zama relayer's `userDecrypt`, as `entry.account`.
|
|
137
158
|
*/
|
|
138
159
|
getClaimAmount(args: GetClaimAmountArgs): Promise<EncryptedViewResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import type
|
|
1
|
+
import type { Query, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { type Address, type PublicClient, type WalletClient } from "viem";
|
|
3
3
|
import { DeploymentAddressUnavailableError } from "../../core/errors.js";
|
|
4
4
|
import type { SdkTelemetry } from "../../core/telemetry.js";
|
|
5
5
|
import { type AirdropBaseClient } from "../airdrop-base.js";
|
|
@@ -56,6 +56,12 @@ export declare function airdropQueryKeyPrefix(params: {
|
|
|
56
56
|
address: Address | undefined;
|
|
57
57
|
fn?: string;
|
|
58
58
|
}): unknown[];
|
|
59
|
+
/**
|
|
60
|
+
* Per-result `staleTime` for a factory mapping that is written once at create:
|
|
61
|
+
* fresh forever once non-zero, always stale while zero (the address may be created
|
|
62
|
+
* later on a path no hook invalidation reaches). The policy {@link useIsAirdrop} uses.
|
|
63
|
+
*/
|
|
64
|
+
export declare function staleUntilNonZeroAddress(query: Query<Address, Error>): number;
|
|
59
65
|
/**
|
|
60
66
|
* The client-construction subset of every hook's options — deliberately NOT
|
|
61
67
|
* generic over `TData`. Client-memo helpers (`useMemoAirdropBaseClient`,
|
|
@@ -168,13 +174,13 @@ export declare function useMemoComplianceManagerClient(opts: AirdropInstanceClie
|
|
|
168
174
|
chainId: number | undefined;
|
|
169
175
|
};
|
|
170
176
|
/**
|
|
171
|
-
* Per-hook overrides for {@link useMemoEcdsaAirdropClient}
|
|
177
|
+
* Per-hook overrides for {@link useMemoEcdsaAirdropClient} - `dedupMode` is optional; read it from the chain with `useDedupMode`.
|
|
172
178
|
*
|
|
173
179
|
* @alpha
|
|
174
180
|
*/
|
|
175
181
|
export type EcdsaAirdropInstanceHookOptions<TData = unknown> = AirdropInstanceHookOptions<TData> & {
|
|
176
|
-
/** @
|
|
177
|
-
dedupMode
|
|
182
|
+
/** @deprecated Read the policy from the chain with `useDedupMode`. */
|
|
183
|
+
dedupMode?: DedupMode | undefined;
|
|
178
184
|
};
|
|
179
185
|
/**
|
|
180
186
|
* Non-generic version of {@link EcdsaAirdropInstanceHookOptions}, for the memo helper.
|
|
@@ -182,7 +188,7 @@ export type EcdsaAirdropInstanceHookOptions<TData = unknown> = AirdropInstanceHo
|
|
|
182
188
|
* @alpha
|
|
183
189
|
*/
|
|
184
190
|
export type EcdsaAirdropInstanceClientOptions = AirdropInstanceClientOptions & {
|
|
185
|
-
dedupMode
|
|
191
|
+
dedupMode?: DedupMode | undefined;
|
|
186
192
|
};
|
|
187
193
|
/** Memoize an {@link EcdsaAirdropClient} for `opts.address`. */
|
|
188
194
|
export declare function useMemoEcdsaAirdropClient(opts: EcdsaAirdropInstanceClientOptions): {
|