@tokenops/sdk 2.0.0-alpha.1 → 2.0.0-alpha.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.
Files changed (155) hide show
  1. package/CHANGELOG.md +67 -2
  2. package/README.md +14 -8
  3. package/dist/{chunk-PUX5VXDB.cjs → chunk-4AWQJQXY.cjs} +1415 -69
  4. package/dist/{chunk-74QFZ5MK.js → chunk-4IB4IY5Y.js} +1 -1
  5. package/dist/{chunk-DZHYSUGY.js → chunk-6HCT4QIX.js} +12 -5
  6. package/dist/{chunk-FGEB7RMY.cjs → chunk-6XOAYDC6.cjs} +4 -4
  7. package/dist/{chunk-XAYGD4E4.cjs → chunk-AHU2HMNE.cjs} +3 -3
  8. package/dist/{chunk-6NAVMWZQ.js → chunk-BPIVVCSQ.js} +2 -2
  9. package/dist/{chunk-GKKDAW44.js → chunk-BXX5TETM.js} +1401 -59
  10. package/dist/{chunk-456VDDA3.js → chunk-GCJFAY4X.js} +78 -25
  11. package/dist/{chunk-CTED3MTR.cjs → chunk-GKYZQJGP.cjs} +82 -29
  12. package/dist/{chunk-JZLGCTGK.cjs → chunk-IEKTGJ4J.cjs} +2 -2
  13. package/dist/{chunk-6PXXGACR.cjs → chunk-JVNJSDQ4.cjs} +2 -2
  14. package/dist/{chunk-O5676ZWY.js → chunk-LEYYG4RF.js} +232 -6
  15. package/dist/{chunk-335Z2W67.js → chunk-NGU4JYIR.js} +1 -1
  16. package/dist/{chunk-5576FRT3.cjs → chunk-PG3WXT3K.cjs} +12 -5
  17. package/dist/{chunk-H5POPGOZ.js → chunk-PK6Q6J5F.js} +1 -1
  18. package/dist/chunk-TND5NDV7.cjs +263 -0
  19. package/dist/chunk-U3TBQRT7.js +253 -0
  20. package/dist/{chunk-EAJ7SYHE.js → chunk-WRWRA4TN.js} +1 -1
  21. package/dist/{chunk-JQYC66TO.cjs → chunk-YABHXJNH.cjs} +5 -5
  22. package/dist/{chunk-M4IT6DNJ.cjs → chunk-YTIYTV4K.cjs} +236 -4
  23. package/dist/core/addresses.d.ts +4 -4
  24. package/dist/core/errors.d.ts +1 -1
  25. package/dist/fhe/types.d.ts +2 -2
  26. package/dist/fhe-airdrop/abis/airdrop-base.d.ts +19 -0
  27. package/dist/fhe-airdrop/abis/ecdsa.d.ts +19 -0
  28. package/dist/fhe-airdrop/abis/factory.d.ts +113 -0
  29. package/dist/fhe-airdrop/abis/merkle.d.ts +43 -12
  30. package/dist/fhe-airdrop/advanced/index.cjs +4 -4
  31. package/dist/fhe-airdrop/advanced/index.js +1 -1
  32. package/dist/fhe-airdrop/advanced/react/index.cjs +620 -9
  33. package/dist/fhe-airdrop/advanced/react/index.d.cts +35 -0
  34. package/dist/fhe-airdrop/advanced/react/index.d.ts +35 -0
  35. package/dist/fhe-airdrop/advanced/react/index.js +590 -7
  36. package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +28 -0
  37. package/dist/fhe-airdrop/advanced/react/useClearUpgradeabilityPolicy.d.ts +26 -0
  38. package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +26 -0
  39. package/dist/fhe-airdrop/advanced/react/useEcdsaInitCodeHash.d.ts +30 -0
  40. package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +25 -0
  41. package/dist/fhe-airdrop/advanced/react/useFactoryCompliancePolicy.d.ts +38 -0
  42. package/dist/fhe-airdrop/advanced/react/useFactoryCustomFee.d.ts +24 -0
  43. package/dist/fhe-airdrop/advanced/react/useFactoryGrantRole.d.ts +32 -0
  44. package/dist/fhe-airdrop/advanced/react/useFactoryHasRole.d.ts +27 -0
  45. package/dist/fhe-airdrop/advanced/react/useFactoryImplementations.d.ts +33 -0
  46. package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +37 -0
  47. package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +37 -0
  48. package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
  49. package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +48 -0
  50. package/dist/fhe-airdrop/advanced/react/useFactoryUpgradeabilityPolicy.d.ts +39 -0
  51. package/dist/fhe-airdrop/advanced/react/useMerkleInitCodeHash.d.ts +24 -0
  52. package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +33 -0
  53. package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +27 -0
  54. package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +28 -0
  55. package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +29 -0
  56. package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
  57. package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +30 -0
  58. package/dist/fhe-airdrop/advanced/react/useSetDefaultUpgradeable.d.ts +27 -0
  59. package/dist/fhe-airdrop/advanced/react/useSetEcdsaImplementation.d.ts +34 -0
  60. package/dist/fhe-airdrop/advanced/react/useSetFeeCollector.d.ts +27 -0
  61. package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +33 -0
  62. package/dist/fhe-airdrop/advanced/react/useSetMerkleImplementation.d.ts +30 -0
  63. package/dist/fhe-airdrop/advanced/react/useSetUpgradeabilityPolicy.d.ts +31 -0
  64. package/dist/fhe-airdrop/airdrop-base.d.ts +55 -8
  65. package/dist/fhe-airdrop/campaign.d.ts +61 -20
  66. package/dist/fhe-airdrop/constants.d.ts +9 -1
  67. package/dist/fhe-airdrop/ecdsa.d.ts +13 -0
  68. package/dist/fhe-airdrop/errors.d.ts +87 -0
  69. package/dist/fhe-airdrop/factory.d.ts +62 -22
  70. package/dist/fhe-airdrop/guards.d.ts +133 -4
  71. package/dist/fhe-airdrop/index.cjs +86 -971
  72. package/dist/fhe-airdrop/index.d.cts +4 -4
  73. package/dist/fhe-airdrop/index.d.ts +4 -4
  74. package/dist/fhe-airdrop/index.js +8 -927
  75. package/dist/fhe-airdrop/merkle-tree.d.ts +32 -38
  76. package/dist/fhe-airdrop/merkle.d.ts +52 -31
  77. package/dist/fhe-airdrop/react/_shared.d.ts +13 -0
  78. package/dist/fhe-airdrop/react/index.cjs +997 -87
  79. package/dist/fhe-airdrop/react/index.d.cts +53 -4
  80. package/dist/fhe-airdrop/react/index.d.ts +53 -4
  81. package/dist/fhe-airdrop/react/index.js +887 -27
  82. package/dist/fhe-airdrop/react/keys.d.ts +98 -0
  83. package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +26 -0
  84. package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +27 -0
  85. package/dist/fhe-airdrop/react/useAddComplianceDelegate.d.ts +37 -0
  86. package/dist/fhe-airdrop/react/useAdminBatchDiscloseBalanceToParties.d.ts +36 -0
  87. package/dist/fhe-airdrop/react/useAdminDiscloseBalanceToParty.d.ts +31 -0
  88. package/dist/fhe-airdrop/react/useAdminGetCurrentBalance.d.ts +27 -0
  89. package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +49 -0
  90. package/dist/fhe-airdrop/react/useAirdropDeploymentMode.d.ts +28 -0
  91. package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +35 -0
  92. package/dist/fhe-airdrop/react/useAirdropRenounceRole.d.ts +36 -0
  93. package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +33 -0
  94. package/dist/fhe-airdrop/react/useAirdropRoleAdmin.d.ts +28 -0
  95. package/dist/fhe-airdrop/react/useAirdropRoleConstants.d.ts +67 -0
  96. package/dist/fhe-airdrop/react/useAirdropRoleMembers.d.ts +49 -0
  97. package/dist/fhe-airdrop/react/useAirdropUpgradeToAndCall.d.ts +45 -0
  98. package/dist/fhe-airdrop/react/useBatchDiscloseHandlesToParty.d.ts +32 -0
  99. package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +68 -0
  100. package/dist/fhe-airdrop/react/useComplianceGrantRole.d.ts +32 -0
  101. package/dist/fhe-airdrop/react/useComplianceHasRole.d.ts +37 -0
  102. package/dist/fhe-airdrop/react/useComplianceInfo.d.ts +50 -0
  103. package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +32 -0
  104. package/dist/fhe-airdrop/react/useComplianceRenounceRole.d.ts +38 -0
  105. package/dist/fhe-airdrop/react/useComplianceRevokeRole.d.ts +36 -0
  106. package/dist/fhe-airdrop/react/useComplianceRoleConstants.d.ts +41 -0
  107. package/dist/fhe-airdrop/react/useComplianceRoleMembers.d.ts +45 -0
  108. package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +55 -0
  109. package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +52 -0
  110. package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +35 -0
  111. package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +4 -3
  112. package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +27 -0
  113. package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +41 -0
  114. package/dist/fhe-airdrop/react/useEffectiveDelegateToCompliance.d.ts +26 -0
  115. package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +59 -0
  116. package/dist/fhe-airdrop/react/useFactoryFees.d.ts +11 -4
  117. package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
  118. package/dist/fhe-airdrop/react/useIsAirdrop.d.ts +44 -0
  119. package/dist/fhe-airdrop/react/useIsMerkleRootMutable.d.ts +21 -0
  120. package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +46 -0
  121. package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +7 -19
  122. package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +29 -0
  123. package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +53 -0
  124. package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +46 -0
  125. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +67 -0
  126. package/dist/fhe-airdrop/react/useRefreshComplianceBalance.d.ts +36 -0
  127. package/dist/fhe-airdrop/react/useRescueERC20.d.ts +30 -0
  128. package/dist/fhe-airdrop/react/useRescueOtherConfidentialToken.d.ts +34 -0
  129. package/dist/fhe-airdrop/react/useResolveGasFee.d.ts +30 -0
  130. package/dist/fhe-airdrop/react/useRevokeComplianceDelegate.d.ts +37 -0
  131. package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +52 -0
  132. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +42 -0
  133. package/dist/fhe-airdrop/react/useWithdrawGasFee.d.ts +37 -0
  134. package/dist/fhe-airdrop/types.d.ts +27 -1
  135. package/dist/fhe-disperse/index.cjs +21 -21
  136. package/dist/fhe-disperse/index.js +2 -2
  137. package/dist/fhe-disperse/react/index.cjs +22 -22
  138. package/dist/fhe-disperse/react/index.js +3 -3
  139. package/dist/fhe-vesting/advanced/index.cjs +5 -5
  140. package/dist/fhe-vesting/advanced/index.js +3 -3
  141. package/dist/fhe-vesting/advanced/react/index.cjs +7 -7
  142. package/dist/fhe-vesting/advanced/react/index.js +4 -4
  143. package/dist/fhe-vesting/index.cjs +8 -8
  144. package/dist/fhe-vesting/index.js +2 -2
  145. package/dist/fhe-vesting/react/index.cjs +114 -114
  146. package/dist/fhe-vesting/react/index.js +3 -3
  147. package/dist/index.cjs +18 -18
  148. package/dist/index.js +1 -1
  149. package/dist/testnet-faucet/index.cjs +14 -14
  150. package/dist/testnet-faucet/index.js +2 -2
  151. package/dist/testnet-faucet/react/index.cjs +8 -8
  152. package/dist/testnet-faucet/react/index.js +3 -3
  153. package/package.json +1 -1
  154. package/dist/chunk-NCVX3K2N.cjs +0 -161
  155. package/dist/chunk-VP2B4WM2.js +0 -154
@@ -33,10 +33,10 @@ export interface EncryptedInputs {
33
33
  }
34
34
  /**
35
35
  * Return shape for SDK methods that perform an on-chain encrypted-view tx —
36
- * the contract emits `FHE.allow(handle, msg.sender)` and the SDK extracts
36
+ * the contract emits `FHE.allow(handle, grantee)` (usually `msg.sender`) and the SDK extracts
37
37
  * `handle` from the receipt's ACL `Allowed` event.
38
38
  *
39
- * Pass `handle` to the Zama relayer's `userDecrypt` to obtain the plaintext.
39
+ * Pass `handle` to the Zama relayer's `userDecrypt` to obtain the plaintext — AS THE GRANTEE. Most entrypoints grant the caller, but not all: `MerkleAirdropClient.getClaimAmount` grants the entry's `account`, so a third-party submitter receives a valid handle it is not authorised to read.
40
40
  * `hash` is the tx that committed the persistent ACL grant — surface it if
41
41
  * your UI needs to show the receipt.
42
42
  * @public
@@ -151,6 +151,10 @@ export declare const confidentialAirdropBaseAbi: readonly [{
151
151
  readonly inputs: readonly [];
152
152
  readonly name: "ZeroToken";
153
153
  readonly type: "error";
154
+ }, {
155
+ readonly inputs: readonly [];
156
+ readonly name: "ZeroUnwrapRequestId";
157
+ readonly type: "error";
154
158
  }, {
155
159
  readonly anonymous: false;
156
160
  readonly inputs: readonly [{
@@ -178,6 +182,11 @@ export declare const confidentialAirdropBaseAbi: readonly [{
178
182
  readonly internalType: "uint256";
179
183
  readonly name: "deploymentBlockNumber";
180
184
  readonly type: "uint256";
185
+ }, {
186
+ readonly indexed: false;
187
+ readonly internalType: "uint256";
188
+ readonly name: "gasFee";
189
+ readonly type: "uint256";
181
190
  }];
182
191
  readonly name: "AirdropInitialized";
183
192
  readonly type: "event";
@@ -548,6 +557,16 @@ export declare const confidentialAirdropBaseAbi: readonly [{
548
557
  readonly outputs: readonly [];
549
558
  readonly stateMutability: "nonpayable";
550
559
  readonly type: "function";
560
+ }, {
561
+ readonly inputs: readonly [];
562
+ readonly name: "refreshComplianceBalance";
563
+ readonly outputs: readonly [{
564
+ readonly internalType: "euint64";
565
+ readonly name: "balance";
566
+ readonly type: "bytes32";
567
+ }];
568
+ readonly stateMutability: "nonpayable";
569
+ readonly type: "function";
551
570
  }, {
552
571
  readonly inputs: readonly [{
553
572
  readonly internalType: "address";
@@ -279,6 +279,10 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
279
279
  readonly inputs: readonly [];
280
280
  readonly name: "ZeroToken";
281
281
  readonly type: "error";
282
+ }, {
283
+ readonly inputs: readonly [];
284
+ readonly name: "ZeroUnwrapRequestId";
285
+ readonly type: "error";
282
286
  }, {
283
287
  readonly anonymous: false;
284
288
  readonly inputs: readonly [{
@@ -306,6 +310,11 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
306
310
  readonly internalType: "uint256";
307
311
  readonly name: "deploymentBlockNumber";
308
312
  readonly type: "uint256";
313
+ }, {
314
+ readonly indexed: false;
315
+ readonly internalType: "uint256";
316
+ readonly name: "gasFee";
317
+ readonly type: "uint256";
309
318
  }];
310
319
  readonly name: "AirdropInitialized";
311
320
  readonly type: "event";
@@ -1169,6 +1178,16 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
1169
1178
  }];
1170
1179
  readonly stateMutability: "view";
1171
1180
  readonly type: "function";
1181
+ }, {
1182
+ readonly inputs: readonly [];
1183
+ readonly name: "refreshComplianceBalance";
1184
+ readonly outputs: readonly [{
1185
+ readonly internalType: "euint64";
1186
+ readonly name: "balance";
1187
+ readonly type: "bytes32";
1188
+ }];
1189
+ readonly stateMutability: "nonpayable";
1190
+ readonly type: "function";
1172
1191
  }, {
1173
1192
  readonly inputs: readonly [{
1174
1193
  readonly internalType: "bytes32";
@@ -45,6 +45,10 @@ export declare const airdropFactoryAbi: readonly [{
45
45
  readonly internalType: "uint96";
46
46
  readonly name: "defaultGasFee_";
47
47
  readonly type: "uint96";
48
+ }, {
49
+ readonly internalType: "uint96";
50
+ readonly name: "maxGasFee_";
51
+ readonly type: "uint96";
48
52
  }];
49
53
  readonly stateMutability: "nonpayable";
50
54
  readonly type: "constructor";
@@ -124,6 +128,30 @@ export declare const airdropFactoryAbi: readonly [{
124
128
  readonly inputs: readonly [];
125
129
  readonly name: "FailedDeployment";
126
130
  readonly type: "error";
131
+ }, {
132
+ readonly inputs: readonly [{
133
+ readonly internalType: "uint96";
134
+ readonly name: "gasFee";
135
+ readonly type: "uint96";
136
+ }, {
137
+ readonly internalType: "uint96";
138
+ readonly name: "maxGasFee";
139
+ readonly type: "uint96";
140
+ }];
141
+ readonly name: "GasFeeExceedsMaximum";
142
+ readonly type: "error";
143
+ }, {
144
+ readonly inputs: readonly [{
145
+ readonly internalType: "uint96";
146
+ readonly name: "resolvedFee";
147
+ readonly type: "uint96";
148
+ }, {
149
+ readonly internalType: "uint96";
150
+ readonly name: "maxAcceptedGasFee";
151
+ readonly type: "uint96";
152
+ }];
153
+ readonly name: "GasFeeNotAccepted";
154
+ readonly type: "error";
127
155
  }, {
128
156
  readonly inputs: readonly [{
129
157
  readonly internalType: "euint64";
@@ -292,6 +320,10 @@ export declare const airdropFactoryAbi: readonly [{
292
320
  readonly inputs: readonly [];
293
321
  readonly name: "ZeroToken";
294
322
  readonly type: "error";
323
+ }, {
324
+ readonly inputs: readonly [];
325
+ readonly name: "ZeroUnwrapRequestId";
326
+ readonly type: "error";
295
327
  }, {
296
328
  readonly anonymous: false;
297
329
  readonly inputs: readonly [{
@@ -319,6 +351,11 @@ export declare const airdropFactoryAbi: readonly [{
319
351
  readonly internalType: "uint256";
320
352
  readonly name: "deploymentBlockNumber";
321
353
  readonly type: "uint256";
354
+ }, {
355
+ readonly indexed: false;
356
+ readonly internalType: "uint256";
357
+ readonly name: "gasFee";
358
+ readonly type: "uint256";
322
359
  }];
323
360
  readonly name: "AirdropInitialized";
324
361
  readonly type: "event";
@@ -717,6 +754,16 @@ export declare const airdropFactoryAbi: readonly [{
717
754
  }];
718
755
  readonly name: "SetDefaultGasFee";
719
756
  readonly type: "event";
757
+ }, {
758
+ readonly anonymous: false;
759
+ readonly inputs: readonly [{
760
+ readonly indexed: false;
761
+ readonly internalType: "uint256";
762
+ readonly name: "maxGasFee";
763
+ readonly type: "uint256";
764
+ }];
765
+ readonly name: "SetMaxGasFee";
766
+ readonly type: "event";
720
767
  }, {
721
768
  readonly anonymous: false;
722
769
  readonly inputs: readonly [{
@@ -940,6 +987,10 @@ export declare const airdropFactoryAbi: readonly [{
940
987
  readonly internalType: "address";
941
988
  readonly name: "complianceAdmin";
942
989
  readonly type: "address";
990
+ }, {
991
+ readonly internalType: "uint96";
992
+ readonly name: "maxAcceptedGasFee";
993
+ readonly type: "uint96";
943
994
  }];
944
995
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
945
996
  readonly name: "common";
@@ -1008,6 +1059,10 @@ export declare const airdropFactoryAbi: readonly [{
1008
1059
  readonly internalType: "address";
1009
1060
  readonly name: "complianceAdmin";
1010
1061
  readonly type: "address";
1062
+ }, {
1063
+ readonly internalType: "uint96";
1064
+ readonly name: "maxAcceptedGasFee";
1065
+ readonly type: "uint96";
1011
1066
  }];
1012
1067
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1013
1068
  readonly name: "common";
@@ -1076,6 +1131,10 @@ export declare const airdropFactoryAbi: readonly [{
1076
1131
  readonly internalType: "address";
1077
1132
  readonly name: "complianceAdmin";
1078
1133
  readonly type: "address";
1134
+ }, {
1135
+ readonly internalType: "uint96";
1136
+ readonly name: "maxAcceptedGasFee";
1137
+ readonly type: "uint96";
1079
1138
  }];
1080
1139
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1081
1140
  readonly name: "common";
@@ -1136,6 +1195,10 @@ export declare const airdropFactoryAbi: readonly [{
1136
1195
  readonly internalType: "address";
1137
1196
  readonly name: "complianceAdmin";
1138
1197
  readonly type: "address";
1198
+ }, {
1199
+ readonly internalType: "uint96";
1200
+ readonly name: "maxAcceptedGasFee";
1201
+ readonly type: "uint96";
1139
1202
  }];
1140
1203
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1141
1204
  readonly name: "common";
@@ -1338,6 +1401,10 @@ export declare const airdropFactoryAbi: readonly [{
1338
1401
  readonly internalType: "address";
1339
1402
  readonly name: "complianceAdmin";
1340
1403
  readonly type: "address";
1404
+ }, {
1405
+ readonly internalType: "uint96";
1406
+ readonly name: "maxAcceptedGasFee";
1407
+ readonly type: "uint96";
1341
1408
  }];
1342
1409
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1343
1410
  readonly name: "common";
@@ -1394,6 +1461,10 @@ export declare const airdropFactoryAbi: readonly [{
1394
1461
  readonly internalType: "address";
1395
1462
  readonly name: "complianceAdmin";
1396
1463
  readonly type: "address";
1464
+ }, {
1465
+ readonly internalType: "uint96";
1466
+ readonly name: "maxAcceptedGasFee";
1467
+ readonly type: "uint96";
1397
1468
  }];
1398
1469
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1399
1470
  readonly name: "common";
@@ -1538,6 +1609,30 @@ export declare const airdropFactoryAbi: readonly [{
1538
1609
  }];
1539
1610
  readonly stateMutability: "view";
1540
1611
  readonly type: "function";
1612
+ }, {
1613
+ readonly inputs: readonly [{
1614
+ readonly internalType: "address";
1615
+ readonly name: "candidate";
1616
+ readonly type: "address";
1617
+ }];
1618
+ readonly name: "isAirdrop";
1619
+ readonly outputs: readonly [{
1620
+ readonly internalType: "bool";
1621
+ readonly name: "";
1622
+ readonly type: "bool";
1623
+ }];
1624
+ readonly stateMutability: "view";
1625
+ readonly type: "function";
1626
+ }, {
1627
+ readonly inputs: readonly [];
1628
+ readonly name: "maxGasFee";
1629
+ readonly outputs: readonly [{
1630
+ readonly internalType: "uint256";
1631
+ readonly name: "";
1632
+ readonly type: "uint256";
1633
+ }];
1634
+ readonly stateMutability: "view";
1635
+ readonly type: "function";
1541
1636
  }, {
1542
1637
  readonly inputs: readonly [];
1543
1638
  readonly name: "merkleImplementation";
@@ -1575,6 +1670,10 @@ export declare const airdropFactoryAbi: readonly [{
1575
1670
  readonly internalType: "address";
1576
1671
  readonly name: "complianceAdmin";
1577
1672
  readonly type: "address";
1673
+ }, {
1674
+ readonly internalType: "uint96";
1675
+ readonly name: "maxAcceptedGasFee";
1676
+ readonly type: "uint96";
1578
1677
  }];
1579
1678
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1580
1679
  readonly name: "common";
@@ -1639,6 +1738,10 @@ export declare const airdropFactoryAbi: readonly [{
1639
1738
  readonly internalType: "address";
1640
1739
  readonly name: "complianceAdmin";
1641
1740
  readonly type: "address";
1741
+ }, {
1742
+ readonly internalType: "uint96";
1743
+ readonly name: "maxAcceptedGasFee";
1744
+ readonly type: "uint96";
1642
1745
  }];
1643
1746
  readonly internalType: "struct IAirdropFactory.CommonAirdropParams";
1644
1747
  readonly name: "common";
@@ -1802,6 +1905,16 @@ export declare const airdropFactoryAbi: readonly [{
1802
1905
  readonly outputs: readonly [];
1803
1906
  readonly stateMutability: "nonpayable";
1804
1907
  readonly type: "function";
1908
+ }, {
1909
+ readonly inputs: readonly [{
1910
+ readonly internalType: "uint96";
1911
+ readonly name: "maxGasFee_";
1912
+ readonly type: "uint96";
1913
+ }];
1914
+ readonly name: "setMaxGasFee";
1915
+ readonly outputs: readonly [];
1916
+ readonly stateMutability: "nonpayable";
1917
+ readonly type: "function";
1805
1918
  }, {
1806
1919
  readonly inputs: readonly [{
1807
1920
  readonly internalType: "address";
@@ -199,18 +199,6 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
199
199
  }];
200
200
  readonly name: "SafeERC20FailedOperation";
201
201
  readonly type: "error";
202
- }, {
203
- readonly inputs: readonly [{
204
- readonly internalType: "bytes32";
205
- readonly name: "handle";
206
- readonly type: "bytes32";
207
- }, {
208
- readonly internalType: "address";
209
- readonly name: "sender";
210
- readonly type: "address";
211
- }];
212
- readonly name: "SenderNotAllowedToUseHandle";
213
- readonly type: "error";
214
202
  }, {
215
203
  readonly inputs: readonly [];
216
204
  readonly name: "TokenNotAWrapper";
@@ -231,10 +219,26 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
231
219
  }];
232
220
  readonly name: "UUPSUnsupportedProxiableUUID";
233
221
  readonly type: "error";
222
+ }, {
223
+ readonly inputs: readonly [{
224
+ readonly internalType: "address";
225
+ readonly name: "account";
226
+ readonly type: "address";
227
+ }, {
228
+ readonly internalType: "address";
229
+ readonly name: "to";
230
+ readonly type: "address";
231
+ }];
232
+ readonly name: "UnauthorizedRedirect";
233
+ readonly type: "error";
234
234
  }, {
235
235
  readonly inputs: readonly [];
236
236
  readonly name: "ZamaProtocolUnsupported";
237
237
  readonly type: "error";
238
+ }, {
239
+ readonly inputs: readonly [];
240
+ readonly name: "ZeroAccount";
241
+ readonly type: "error";
238
242
  }, {
239
243
  readonly inputs: readonly [];
240
244
  readonly name: "ZeroAdminGrant";
@@ -267,6 +271,10 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
267
271
  readonly inputs: readonly [];
268
272
  readonly name: "ZeroToken";
269
273
  readonly type: "error";
274
+ }, {
275
+ readonly inputs: readonly [];
276
+ readonly name: "ZeroUnwrapRequestId";
277
+ readonly type: "error";
270
278
  }, {
271
279
  readonly anonymous: false;
272
280
  readonly inputs: readonly [{
@@ -294,6 +302,11 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
294
302
  readonly internalType: "uint256";
295
303
  readonly name: "deploymentBlockNumber";
296
304
  readonly type: "uint256";
305
+ }, {
306
+ readonly indexed: false;
307
+ readonly internalType: "uint256";
308
+ readonly name: "gasFee";
309
+ readonly type: "uint256";
297
310
  }];
298
311
  readonly name: "AirdropInitialized";
299
312
  readonly type: "event";
@@ -721,6 +734,10 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
721
734
  readonly type: "function";
722
735
  }, {
723
736
  readonly inputs: readonly [{
737
+ readonly internalType: "address";
738
+ readonly name: "account";
739
+ readonly type: "address";
740
+ }, {
724
741
  readonly internalType: "address";
725
742
  readonly name: "to";
726
743
  readonly type: "address";
@@ -819,6 +836,10 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
819
836
  readonly type: "function";
820
837
  }, {
821
838
  readonly inputs: readonly [{
839
+ readonly internalType: "address";
840
+ readonly name: "account";
841
+ readonly type: "address";
842
+ }, {
822
843
  readonly internalType: "externalEuint64";
823
844
  readonly name: "inputAmount";
824
845
  readonly type: "bytes32";
@@ -1081,6 +1102,16 @@ export declare const merkleConfidentialAirdropAbi: readonly [{
1081
1102
  }];
1082
1103
  readonly stateMutability: "view";
1083
1104
  readonly type: "function";
1105
+ }, {
1106
+ readonly inputs: readonly [];
1107
+ readonly name: "refreshComplianceBalance";
1108
+ readonly outputs: readonly [{
1109
+ readonly internalType: "euint64";
1110
+ readonly name: "balance";
1111
+ readonly type: "bytes32";
1112
+ }];
1113
+ readonly stateMutability: "nonpayable";
1114
+ readonly type: "function";
1084
1115
  }, {
1085
1116
  readonly inputs: readonly [{
1086
1117
  readonly internalType: "bytes32";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkM4IT6DNJ_cjs = require('../../chunk-M4IT6DNJ.cjs');
3
+ var chunkYTIYTV4K_cjs = require('../../chunk-YTIYTV4K.cjs');
4
4
  require('../../chunk-MVDQMV25.cjs');
5
5
  require('../../chunk-67OV5CX2.cjs');
6
6
 
@@ -8,13 +8,13 @@ require('../../chunk-67OV5CX2.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "DEPLOYMENT_MODE", {
10
10
  enumerable: true,
11
- get: function () { return chunkM4IT6DNJ_cjs.DEPLOYMENT_MODE; }
11
+ get: function () { return chunkYTIYTV4K_cjs.DEPLOYMENT_MODE; }
12
12
  });
13
13
  Object.defineProperty(exports, "assertPredictionFresh", {
14
14
  enumerable: true,
15
- get: function () { return chunkM4IT6DNJ_cjs.assertPredictionFresh; }
15
+ get: function () { return chunkYTIYTV4K_cjs.assertPredictionFresh; }
16
16
  });
17
17
  Object.defineProperty(exports, "assertSaltAvailable", {
18
18
  enumerable: true,
19
- get: function () { return chunkM4IT6DNJ_cjs.assertSaltAvailable; }
19
+ get: function () { return chunkYTIYTV4K_cjs.assertSaltAvailable; }
20
20
  });
@@ -1,3 +1,3 @@
1
- export { DEPLOYMENT_MODE, assertPredictionFresh, assertSaltAvailable } from '../../chunk-O5676ZWY.js';
1
+ export { DEPLOYMENT_MODE, assertPredictionFresh, assertSaltAvailable } from '../../chunk-LEYYG4RF.js';
2
2
  import '../../chunk-4RAAATVY.js';
3
3
  import '../../chunk-QBJ7O2B4.js';