@tokenops/sdk 2.0.0-alpha.2 → 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 +92 -3
- package/README.md +76 -34
- package/SUPPORT.md +1 -1
- package/dist/{chunk-PYYSB5ZN.js → chunk-2ND7US2I.js} +1 -1
- package/dist/{chunk-EYDA6Q6C.js → chunk-3ZSPRHR3.js} +63 -12
- package/dist/{chunk-X7WBPCEU.js → chunk-67Q6KSVV.js} +4578 -3383
- package/dist/{chunk-UHHMVBLU.cjs → chunk-6AYJRUGP.cjs} +7 -50
- package/dist/{chunk-FEDX7B6T.cjs → chunk-6FUHF73F.cjs} +5 -5
- package/dist/{chunk-NWFMBLSQ.js → chunk-7KY4K4PH.js} +1 -1
- package/dist/{chunk-FHWSBGWE.cjs → chunk-ARZ5C3FS.cjs} +7 -7
- package/dist/{chunk-SPLNGUFF.js → chunk-AX6MQAWU.js} +2 -2
- package/dist/{chunk-IGO5XSPS.js → chunk-BSXEX2SH.js} +3 -3
- package/dist/{chunk-44YJPMQC.js → chunk-CHGY6B7L.js} +34 -81
- package/dist/{chunk-IUKKNJ2R.cjs → chunk-DFK5GCJP.cjs} +55 -72
- package/dist/{chunk-PZZK3O3S.cjs → chunk-E4IV4M4E.cjs} +4598 -3403
- package/dist/{chunk-A4DCEE33.js → chunk-GHGF65LN.js} +16 -12
- package/dist/{chunk-TWT3STIX.js → chunk-K3R27WX4.js} +8 -46
- package/dist/{chunk-GADGBQJO.js → chunk-KJUNBOJQ.js} +52 -71
- package/dist/{chunk-MM5BV5CS.cjs → chunk-PO3A2AQX.cjs} +4 -4
- package/dist/{chunk-EBLBPUPI.cjs → chunk-QHDMPT7I.cjs} +72 -19
- package/dist/{chunk-3YHBO2DL.cjs → chunk-S47IBDTA.cjs} +36 -83
- package/dist/{chunk-UG5RKLU2.cjs → chunk-SUYBAF27.cjs} +1 -1
- package/dist/{chunk-WJMEBBU7.js → chunk-TWU7L5H7.js} +5 -48
- package/dist/{chunk-WJLECC22.cjs → chunk-UUSSWOPR.cjs} +9 -47
- package/dist/{chunk-AREQJHKA.cjs → chunk-VHKMWWBA.cjs} +428 -22
- package/dist/{chunk-FT5H2Q7Y.cjs → chunk-YAL6JSAZ.cjs} +16 -12
- package/dist/{chunk-VW356KR3.js → chunk-YMWMIWBP.js} +421 -25
- 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 +97 -1
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +117 -1
- package/dist/fhe-airdrop/abis/factory.d.ts +332 -1
- package/dist/fhe-airdrop/abis/merkle.d.ts +116 -1
- 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 +145 -137
- package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -0
- package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -0
- package/dist/fhe-airdrop/advanced/react/index.js +85 -78
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +4 -1
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +2 -4
- package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +4 -3
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +9 -7
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +6 -5
- 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 +4 -1
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +5 -4
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +7 -3
- package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +37 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +142 -18
- 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 +11 -1
- package/dist/fhe-airdrop/ecdsa.d.ts +79 -26
- package/dist/fhe-airdrop/encryption.d.ts +19 -6
- package/dist/fhe-airdrop/errors.d.ts +136 -2
- package/dist/fhe-airdrop/factory-params.d.ts +2361 -0
- package/dist/fhe-airdrop/factory.d.ts +189 -75
- package/dist/fhe-airdrop/guards.d.ts +183 -19
- package/dist/fhe-airdrop/index.cjs +88 -56
- package/dist/fhe-airdrop/index.d.cts +12 -10
- package/dist/fhe-airdrop/index.d.ts +12 -10
- 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 +336 -240
- package/dist/fhe-airdrop/react/index.d.cts +19 -9
- package/dist/fhe-airdrop/react/index.d.ts +19 -9
- package/dist/fhe-airdrop/react/index.js +158 -97
- package/dist/fhe-airdrop/react/keys.d.ts +54 -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/useFactoryFees.d.ts +11 -4
- 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/useIsAirdrop.d.ts +44 -0
- 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/useRefreshComplianceBalance.d.ts +36 -0
- 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/useResolveGasFee.d.ts +30 -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 +122 -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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marks a write result returned before its transaction was observed executing, because the
|
|
3
|
+
* write was sent with `waitForReceipt: false` (a Safe / multisig signer whose submission is a
|
|
4
|
+
* `safeTxHash` that never mines until threshold owners co-sign).
|
|
5
|
+
*
|
|
6
|
+
* Every receipt-free result in the SDK extends this, and every mined counterpart extends
|
|
7
|
+
* {@link MinedWrite}, so one check narrows a result from any product:
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* const result = await factory.createManager({ token, userSalt, waitForReceipt });
|
|
11
|
+
* if (result.pending) return trackSafeTx(result.hash);
|
|
12
|
+
* openManager(result.manager); // `Address`
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface PendingWrite {
|
|
17
|
+
/** The transaction has not been observed executing. */
|
|
18
|
+
pending: true;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The mined counterpart of {@link PendingWrite}: the receipt was read and every receipt-derived
|
|
22
|
+
* field is set. `pending` is never present; it is declared so `if (result.pending)` compiles on
|
|
23
|
+
* the union.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export interface MinedWrite {
|
|
28
|
+
/** Never set on a mined result. */
|
|
29
|
+
pending?: never;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The `waitForReceipt` option of every receipt-free write. It is kept off the base `*Args`
|
|
33
|
+
* types, so a value typed as one of them still resolves to the mined overload; the methods
|
|
34
|
+
* take `Args & ReceiptMode<...>` instead.
|
|
35
|
+
*
|
|
36
|
+
* - `ReceiptMode<true>`: omitted or `true`. The SDK waits for the receipt and returns the
|
|
37
|
+
* mined result ({@link MinedWrite}) with every receipt-derived field set.
|
|
38
|
+
* - `ReceiptMode<false>`: `false`, for a Safe / multisig signer whose submission returns a
|
|
39
|
+
* `safeTxHash` that never mines until threshold owners co-sign. The call returns on
|
|
40
|
+
* submission with a {@link PendingWrite} result; read the executed transaction's logs for
|
|
41
|
+
* anything the receipt would have supplied.
|
|
42
|
+
* - `ReceiptMode` (`boolean`): a runtime value, as hooks and dynamic callers pass. The result
|
|
43
|
+
* is the union of the two, narrowed by `pending`.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* async function deploy(args: CreateManagerArgs & ReceiptMode) {
|
|
47
|
+
* const result = await factory.createManager(args);
|
|
48
|
+
* return result.pending ? undefined : result.manager;
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export type ReceiptMode<W extends boolean = boolean> = [W] extends [false] ? {
|
|
54
|
+
waitForReceipt: false;
|
|
55
|
+
} : {
|
|
56
|
+
waitForReceipt?: W | undefined;
|
|
57
|
+
};
|
package/dist/core/version.d.ts
CHANGED
package/dist/fhe/operators.d.ts
CHANGED
|
@@ -73,9 +73,10 @@ export interface SetOperatorArgs {
|
|
|
73
73
|
/** ERC-7984 token contract address. */
|
|
74
74
|
token: Address;
|
|
75
75
|
/**
|
|
76
|
-
* Address being authorized to pull tokens
|
|
77
|
-
* (`/fhe-vesting`),
|
|
78
|
-
*
|
|
76
|
+
* Address being authorized to pull tokens - typically a manager clone
|
|
77
|
+
* (`/fhe-vesting`), the airdrop FACTORY (`/fhe-airdrop`, which pulls the pool on
|
|
78
|
+
* every create-and-fund and `fundAirdrop`), or the disperse singleton
|
|
79
|
+
* (`/fhe-disperse`).
|
|
79
80
|
*/
|
|
80
81
|
spender: Address;
|
|
81
82
|
/**
|
|
@@ -147,7 +148,7 @@ export interface RevokeOperatorArgs {
|
|
|
147
148
|
token: Address;
|
|
148
149
|
/**
|
|
149
150
|
* Address whose operator authorization should be revoked — typically a
|
|
150
|
-
* stale manager clone (`/fhe-vesting`), a
|
|
151
|
+
* stale manager clone (`/fhe-vesting`), a factory you no longer fund through
|
|
151
152
|
* (`/fhe-airdrop`), or a singleton no longer in use (`/fhe-disperse`).
|
|
152
153
|
*/
|
|
153
154
|
spender: Address;
|
|
@@ -208,7 +209,7 @@ export interface IsOperatorArgs {
|
|
|
208
209
|
holder: Address;
|
|
209
210
|
/**
|
|
210
211
|
* Address whose operator status is being checked — typically a manager
|
|
211
|
-
* clone (`/fhe-vesting`),
|
|
212
|
+
* clone (`/fhe-vesting`), the airdrop factory (`/fhe-airdrop`), or
|
|
212
213
|
* the disperse singleton (`/fhe-disperse`).
|
|
213
214
|
*/
|
|
214
215
|
spender: Address;
|
package/dist/fhe/types.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface EncryptedInputs {
|
|
|
36
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 sender (any address may submit a Merkle entry) 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
|
|
@@ -31,6 +31,10 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
31
31
|
readonly inputs: readonly [];
|
|
32
32
|
readonly name: "ClaimsPaused";
|
|
33
33
|
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [];
|
|
36
|
+
readonly name: "ClawbackRequiresPause";
|
|
37
|
+
readonly type: "error";
|
|
34
38
|
}, {
|
|
35
39
|
readonly inputs: readonly [];
|
|
36
40
|
readonly name: "EmptyBatch";
|
|
@@ -115,6 +119,10 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
115
119
|
readonly inputs: readonly [];
|
|
116
120
|
readonly name: "LastFeeCollector";
|
|
117
121
|
readonly type: "error";
|
|
122
|
+
}, {
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly name: "NativeRescueRequiresZeroFee";
|
|
125
|
+
readonly type: "error";
|
|
118
126
|
}, {
|
|
119
127
|
readonly inputs: readonly [];
|
|
120
128
|
readonly name: "TokenNotAWrapper";
|
|
@@ -123,6 +131,10 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
123
131
|
readonly inputs: readonly [];
|
|
124
132
|
readonly name: "TokenNotUnwrappable";
|
|
125
133
|
readonly type: "error";
|
|
134
|
+
}, {
|
|
135
|
+
readonly inputs: readonly [];
|
|
136
|
+
readonly name: "UninitializedHandle";
|
|
137
|
+
readonly type: "error";
|
|
126
138
|
}, {
|
|
127
139
|
readonly inputs: readonly [];
|
|
128
140
|
readonly name: "ZeroAdminGrant";
|
|
@@ -151,6 +163,10 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
151
163
|
readonly inputs: readonly [];
|
|
152
164
|
readonly name: "ZeroToken";
|
|
153
165
|
readonly type: "error";
|
|
166
|
+
}, {
|
|
167
|
+
readonly inputs: readonly [];
|
|
168
|
+
readonly name: "ZeroUnwrapRequestId";
|
|
169
|
+
readonly type: "error";
|
|
154
170
|
}, {
|
|
155
171
|
readonly anonymous: false;
|
|
156
172
|
readonly inputs: readonly [{
|
|
@@ -176,8 +192,33 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
176
192
|
}, {
|
|
177
193
|
readonly indexed: false;
|
|
178
194
|
readonly internalType: "uint256";
|
|
179
|
-
readonly name: "
|
|
195
|
+
readonly name: "gasFee";
|
|
180
196
|
readonly type: "uint256";
|
|
197
|
+
}, {
|
|
198
|
+
readonly indexed: false;
|
|
199
|
+
readonly internalType: "uint32";
|
|
200
|
+
readonly name: "startTime";
|
|
201
|
+
readonly type: "uint32";
|
|
202
|
+
}, {
|
|
203
|
+
readonly indexed: false;
|
|
204
|
+
readonly internalType: "uint32";
|
|
205
|
+
readonly name: "endTime";
|
|
206
|
+
readonly type: "uint32";
|
|
207
|
+
}, {
|
|
208
|
+
readonly indexed: false;
|
|
209
|
+
readonly internalType: "bool";
|
|
210
|
+
readonly name: "canExtendClaimWindow";
|
|
211
|
+
readonly type: "bool";
|
|
212
|
+
}, {
|
|
213
|
+
readonly indexed: false;
|
|
214
|
+
readonly internalType: "bool";
|
|
215
|
+
readonly name: "unwrappable";
|
|
216
|
+
readonly type: "bool";
|
|
217
|
+
}, {
|
|
218
|
+
readonly indexed: false;
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
readonly name: "complianceManager";
|
|
221
|
+
readonly type: "address";
|
|
181
222
|
}];
|
|
182
223
|
readonly name: "AirdropInitialized";
|
|
183
224
|
readonly type: "event";
|
|
@@ -311,6 +352,21 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
311
352
|
}];
|
|
312
353
|
readonly name: "HandleDisclosedToParty";
|
|
313
354
|
readonly type: "event";
|
|
355
|
+
}, {
|
|
356
|
+
readonly anonymous: false;
|
|
357
|
+
readonly inputs: readonly [{
|
|
358
|
+
readonly indexed: true;
|
|
359
|
+
readonly internalType: "address";
|
|
360
|
+
readonly name: "recipient";
|
|
361
|
+
readonly type: "address";
|
|
362
|
+
}, {
|
|
363
|
+
readonly indexed: false;
|
|
364
|
+
readonly internalType: "uint256";
|
|
365
|
+
readonly name: "amount";
|
|
366
|
+
readonly type: "uint256";
|
|
367
|
+
}];
|
|
368
|
+
readonly name: "NativeTokenRescued";
|
|
369
|
+
readonly type: "event";
|
|
314
370
|
}, {
|
|
315
371
|
readonly anonymous: false;
|
|
316
372
|
readonly inputs: readonly [{
|
|
@@ -458,6 +514,16 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
458
514
|
readonly outputs: readonly [];
|
|
459
515
|
readonly stateMutability: "nonpayable";
|
|
460
516
|
readonly type: "function";
|
|
517
|
+
}, {
|
|
518
|
+
readonly inputs: readonly [];
|
|
519
|
+
readonly name: "canExtendClaimWindow";
|
|
520
|
+
readonly outputs: readonly [{
|
|
521
|
+
readonly internalType: "bool";
|
|
522
|
+
readonly name: "";
|
|
523
|
+
readonly type: "bool";
|
|
524
|
+
}];
|
|
525
|
+
readonly stateMutability: "view";
|
|
526
|
+
readonly type: "function";
|
|
461
527
|
}, {
|
|
462
528
|
readonly inputs: readonly [];
|
|
463
529
|
readonly name: "complianceManager";
|
|
@@ -468,6 +534,16 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
468
534
|
}];
|
|
469
535
|
readonly stateMutability: "view";
|
|
470
536
|
readonly type: "function";
|
|
537
|
+
}, {
|
|
538
|
+
readonly inputs: readonly [];
|
|
539
|
+
readonly name: "deploymentBlockNumber";
|
|
540
|
+
readonly outputs: readonly [{
|
|
541
|
+
readonly internalType: "uint256";
|
|
542
|
+
readonly name: "";
|
|
543
|
+
readonly type: "uint256";
|
|
544
|
+
}];
|
|
545
|
+
readonly stateMutability: "view";
|
|
546
|
+
readonly type: "function";
|
|
471
547
|
}, {
|
|
472
548
|
readonly inputs: readonly [{
|
|
473
549
|
readonly internalType: "euint64";
|
|
@@ -548,6 +624,16 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
548
624
|
readonly outputs: readonly [];
|
|
549
625
|
readonly stateMutability: "nonpayable";
|
|
550
626
|
readonly type: "function";
|
|
627
|
+
}, {
|
|
628
|
+
readonly inputs: readonly [];
|
|
629
|
+
readonly name: "refreshComplianceBalance";
|
|
630
|
+
readonly outputs: readonly [{
|
|
631
|
+
readonly internalType: "euint64";
|
|
632
|
+
readonly name: "balance";
|
|
633
|
+
readonly type: "bytes32";
|
|
634
|
+
}];
|
|
635
|
+
readonly stateMutability: "nonpayable";
|
|
636
|
+
readonly type: "function";
|
|
551
637
|
}, {
|
|
552
638
|
readonly inputs: readonly [{
|
|
553
639
|
readonly internalType: "address";
|
|
@@ -562,6 +648,16 @@ export declare const confidentialAirdropBaseAbi: readonly [{
|
|
|
562
648
|
readonly outputs: readonly [];
|
|
563
649
|
readonly stateMutability: "nonpayable";
|
|
564
650
|
readonly type: "function";
|
|
651
|
+
}, {
|
|
652
|
+
readonly inputs: readonly [{
|
|
653
|
+
readonly internalType: "address";
|
|
654
|
+
readonly name: "recipient";
|
|
655
|
+
readonly type: "address";
|
|
656
|
+
}];
|
|
657
|
+
readonly name: "rescueNativeToken";
|
|
658
|
+
readonly outputs: readonly [];
|
|
659
|
+
readonly stateMutability: "nonpayable";
|
|
660
|
+
readonly type: "function";
|
|
565
661
|
}, {
|
|
566
662
|
readonly inputs: readonly [{
|
|
567
663
|
readonly internalType: "address";
|
|
@@ -59,6 +59,10 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
59
59
|
readonly inputs: readonly [];
|
|
60
60
|
readonly name: "ClaimsPaused";
|
|
61
61
|
readonly type: "error";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "ClawbackRequiresPause";
|
|
65
|
+
readonly type: "error";
|
|
62
66
|
}, {
|
|
63
67
|
readonly inputs: readonly [];
|
|
64
68
|
readonly name: "DedupIdAlreadyClaimed";
|
|
@@ -179,6 +183,10 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
179
183
|
readonly inputs: readonly [];
|
|
180
184
|
readonly name: "LastFeeCollector";
|
|
181
185
|
readonly type: "error";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [];
|
|
188
|
+
readonly name: "NativeRescueRequiresZeroFee";
|
|
189
|
+
readonly type: "error";
|
|
182
190
|
}, {
|
|
183
191
|
readonly inputs: readonly [];
|
|
184
192
|
readonly name: "NotInitializing";
|
|
@@ -243,6 +251,10 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
243
251
|
}];
|
|
244
252
|
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
245
253
|
readonly type: "error";
|
|
254
|
+
}, {
|
|
255
|
+
readonly inputs: readonly [];
|
|
256
|
+
readonly name: "UninitializedHandle";
|
|
257
|
+
readonly type: "error";
|
|
246
258
|
}, {
|
|
247
259
|
readonly inputs: readonly [];
|
|
248
260
|
readonly name: "ZamaProtocolUnsupported";
|
|
@@ -279,6 +291,10 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
279
291
|
readonly inputs: readonly [];
|
|
280
292
|
readonly name: "ZeroToken";
|
|
281
293
|
readonly type: "error";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [];
|
|
296
|
+
readonly name: "ZeroUnwrapRequestId";
|
|
297
|
+
readonly type: "error";
|
|
282
298
|
}, {
|
|
283
299
|
readonly anonymous: false;
|
|
284
300
|
readonly inputs: readonly [{
|
|
@@ -304,8 +320,33 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
304
320
|
}, {
|
|
305
321
|
readonly indexed: false;
|
|
306
322
|
readonly internalType: "uint256";
|
|
307
|
-
readonly name: "
|
|
323
|
+
readonly name: "gasFee";
|
|
308
324
|
readonly type: "uint256";
|
|
325
|
+
}, {
|
|
326
|
+
readonly indexed: false;
|
|
327
|
+
readonly internalType: "uint32";
|
|
328
|
+
readonly name: "startTime";
|
|
329
|
+
readonly type: "uint32";
|
|
330
|
+
}, {
|
|
331
|
+
readonly indexed: false;
|
|
332
|
+
readonly internalType: "uint32";
|
|
333
|
+
readonly name: "endTime";
|
|
334
|
+
readonly type: "uint32";
|
|
335
|
+
}, {
|
|
336
|
+
readonly indexed: false;
|
|
337
|
+
readonly internalType: "bool";
|
|
338
|
+
readonly name: "canExtendClaimWindow";
|
|
339
|
+
readonly type: "bool";
|
|
340
|
+
}, {
|
|
341
|
+
readonly indexed: false;
|
|
342
|
+
readonly internalType: "bool";
|
|
343
|
+
readonly name: "unwrappable";
|
|
344
|
+
readonly type: "bool";
|
|
345
|
+
}, {
|
|
346
|
+
readonly indexed: false;
|
|
347
|
+
readonly internalType: "address";
|
|
348
|
+
readonly name: "complianceManager";
|
|
349
|
+
readonly type: "address";
|
|
309
350
|
}];
|
|
310
351
|
readonly name: "AirdropInitialized";
|
|
311
352
|
readonly type: "event";
|
|
@@ -404,6 +445,16 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
404
445
|
}];
|
|
405
446
|
readonly name: "ComplianceBalanceDisclosed";
|
|
406
447
|
readonly type: "event";
|
|
448
|
+
}, {
|
|
449
|
+
readonly anonymous: false;
|
|
450
|
+
readonly inputs: readonly [{
|
|
451
|
+
readonly indexed: false;
|
|
452
|
+
readonly internalType: "enum IECDSAConfidentialAirdropTypes.DedupMode";
|
|
453
|
+
readonly name: "dedupMode";
|
|
454
|
+
readonly type: "uint8";
|
|
455
|
+
}];
|
|
456
|
+
readonly name: "ECDSAAirdropInitialized";
|
|
457
|
+
readonly type: "event";
|
|
407
458
|
}, {
|
|
408
459
|
readonly anonymous: false;
|
|
409
460
|
readonly inputs: readonly [];
|
|
@@ -454,6 +505,21 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
454
505
|
}];
|
|
455
506
|
readonly name: "Initialized";
|
|
456
507
|
readonly type: "event";
|
|
508
|
+
}, {
|
|
509
|
+
readonly anonymous: false;
|
|
510
|
+
readonly inputs: readonly [{
|
|
511
|
+
readonly indexed: true;
|
|
512
|
+
readonly internalType: "address";
|
|
513
|
+
readonly name: "recipient";
|
|
514
|
+
readonly type: "address";
|
|
515
|
+
}, {
|
|
516
|
+
readonly indexed: false;
|
|
517
|
+
readonly internalType: "uint256";
|
|
518
|
+
readonly name: "amount";
|
|
519
|
+
readonly type: "uint256";
|
|
520
|
+
}];
|
|
521
|
+
readonly name: "NativeTokenRescued";
|
|
522
|
+
readonly type: "event";
|
|
457
523
|
}, {
|
|
458
524
|
readonly anonymous: false;
|
|
459
525
|
readonly inputs: readonly [{
|
|
@@ -741,6 +807,16 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
741
807
|
readonly outputs: readonly [];
|
|
742
808
|
readonly stateMutability: "nonpayable";
|
|
743
809
|
readonly type: "function";
|
|
810
|
+
}, {
|
|
811
|
+
readonly inputs: readonly [];
|
|
812
|
+
readonly name: "canExtendClaimWindow";
|
|
813
|
+
readonly outputs: readonly [{
|
|
814
|
+
readonly internalType: "bool";
|
|
815
|
+
readonly name: "";
|
|
816
|
+
readonly type: "bool";
|
|
817
|
+
}];
|
|
818
|
+
readonly stateMutability: "view";
|
|
819
|
+
readonly type: "function";
|
|
744
820
|
}, {
|
|
745
821
|
readonly inputs: readonly [{
|
|
746
822
|
readonly internalType: "address";
|
|
@@ -819,6 +895,26 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
819
895
|
}];
|
|
820
896
|
readonly stateMutability: "view";
|
|
821
897
|
readonly type: "function";
|
|
898
|
+
}, {
|
|
899
|
+
readonly inputs: readonly [];
|
|
900
|
+
readonly name: "dedupMode";
|
|
901
|
+
readonly outputs: readonly [{
|
|
902
|
+
readonly internalType: "enum IECDSAConfidentialAirdropTypes.DedupMode";
|
|
903
|
+
readonly name: "";
|
|
904
|
+
readonly type: "uint8";
|
|
905
|
+
}];
|
|
906
|
+
readonly stateMutability: "view";
|
|
907
|
+
readonly type: "function";
|
|
908
|
+
}, {
|
|
909
|
+
readonly inputs: readonly [];
|
|
910
|
+
readonly name: "deploymentBlockNumber";
|
|
911
|
+
readonly outputs: readonly [{
|
|
912
|
+
readonly internalType: "uint256";
|
|
913
|
+
readonly name: "";
|
|
914
|
+
readonly type: "uint256";
|
|
915
|
+
}];
|
|
916
|
+
readonly stateMutability: "view";
|
|
917
|
+
readonly type: "function";
|
|
822
918
|
}, {
|
|
823
919
|
readonly inputs: readonly [{
|
|
824
920
|
readonly internalType: "euint64";
|
|
@@ -1169,6 +1265,16 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
1169
1265
|
}];
|
|
1170
1266
|
readonly stateMutability: "view";
|
|
1171
1267
|
readonly type: "function";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly inputs: readonly [];
|
|
1270
|
+
readonly name: "refreshComplianceBalance";
|
|
1271
|
+
readonly outputs: readonly [{
|
|
1272
|
+
readonly internalType: "euint64";
|
|
1273
|
+
readonly name: "balance";
|
|
1274
|
+
readonly type: "bytes32";
|
|
1275
|
+
}];
|
|
1276
|
+
readonly stateMutability: "nonpayable";
|
|
1277
|
+
readonly type: "function";
|
|
1172
1278
|
}, {
|
|
1173
1279
|
readonly inputs: readonly [{
|
|
1174
1280
|
readonly internalType: "bytes32";
|
|
@@ -1197,6 +1303,16 @@ export declare const ecdsaConfidentialAirdropAbi: readonly [{
|
|
|
1197
1303
|
readonly outputs: readonly [];
|
|
1198
1304
|
readonly stateMutability: "nonpayable";
|
|
1199
1305
|
readonly type: "function";
|
|
1306
|
+
}, {
|
|
1307
|
+
readonly inputs: readonly [{
|
|
1308
|
+
readonly internalType: "address";
|
|
1309
|
+
readonly name: "recipient";
|
|
1310
|
+
readonly type: "address";
|
|
1311
|
+
}];
|
|
1312
|
+
readonly name: "rescueNativeToken";
|
|
1313
|
+
readonly outputs: readonly [];
|
|
1314
|
+
readonly stateMutability: "nonpayable";
|
|
1315
|
+
readonly type: "function";
|
|
1200
1316
|
}, {
|
|
1201
1317
|
readonly inputs: readonly [{
|
|
1202
1318
|
readonly internalType: "address";
|