@tokenops/sdk 1.6.0 → 2.0.0-alpha.1
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 +48 -8
- package/CONTRIBUTING.md +4 -2
- package/README.md +146 -90
- package/SUPPORT.md +47 -0
- package/dist/{chunk-HETNKZEE.js → chunk-335Z2W67.js} +1 -1
- package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
- package/dist/chunk-456VDDA3.js +370 -0
- package/dist/{chunk-6WSNS3UV.js → chunk-4RAAATVY.js} +2 -4
- package/dist/{chunk-4KJ66YRH.js → chunk-4TSDNZQ3.js} +2 -2
- package/dist/{chunk-WUXUWTFW.cjs → chunk-5576FRT3.cjs} +31 -7
- package/dist/chunk-66IHPTOK.cjs +20 -0
- package/dist/{chunk-2RNW4MIJ.cjs → chunk-67OV5CX2.cjs} +0 -18
- package/dist/{chunk-PD7ME2BT.js → chunk-6GNR22OV.js} +2 -1
- package/dist/{chunk-VHSNYUYV.js → chunk-6NAVMWZQ.js} +5 -5
- package/dist/{chunk-EUKPOXWR.cjs → chunk-6PXXGACR.cjs} +17 -15
- package/dist/{chunk-WTK6JDSI.js → chunk-74QFZ5MK.js} +6 -4
- package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
- package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
- package/dist/chunk-CTED3MTR.cjs +380 -0
- package/dist/{chunk-QKKBBH7I.js → chunk-DZHYSUGY.js} +28 -7
- package/dist/{chunk-V5D7BHW3.js → chunk-EAJ7SYHE.js} +6 -4
- package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/{chunk-7G7UOQV4.cjs → chunk-FGEB7RMY.cjs} +4 -4
- package/dist/chunk-GKKDAW44.js +8823 -0
- package/dist/{chunk-QET3Q4JP.js → chunk-H5POPGOZ.js} +8 -6
- package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-CBRL2PJA.cjs → chunk-JQYC66TO.cjs} +12 -12
- package/dist/{chunk-YFIWCYHC.cjs → chunk-JZLGCTGK.cjs} +56 -54
- package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
- package/dist/chunk-KWFFIJYX.js +11 -0
- package/dist/chunk-M4IT6DNJ.cjs +608 -0
- package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
- package/dist/chunk-NCVX3K2N.cjs +161 -0
- package/dist/chunk-NWFMBLSQ.js +4 -0
- package/dist/chunk-O5676ZWY.js +585 -0
- package/dist/chunk-PUX5VXDB.cjs +8845 -0
- package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
- package/dist/{chunk-UJS4N2XM.cjs → chunk-TEBM66WA.cjs} +12 -12
- package/dist/{chunk-TN65XNTI.js → chunk-TWT3STIX.js} +8 -6
- package/dist/chunk-UG5RKLU2.cjs +6 -0
- package/dist/chunk-VP2B4WM2.js +154 -0
- package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
- package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
- package/dist/{chunk-AYGRYDBX.cjs → chunk-XAYGD4E4.cjs} +37 -35
- package/dist/{chunk-46T67CE2.js → chunk-ZA673I3O.js} +1 -1
- package/dist/{chunk-YPYCWLYP.js → chunk-ZWXJTBZO.js} +1 -1
- package/dist/core/addresses.d.ts +14 -2
- package/dist/core/brands.d.ts +8 -2
- package/dist/core/errors.d.ts +71 -10
- package/dist/core/preflight.d.ts +1 -0
- package/dist/fhe/erc7984-abi.d.ts +1 -0
- package/dist/fhe/index.cjs +64 -63
- package/dist/fhe/index.js +7 -6
- package/dist/fhe/operators.d.ts +22 -5
- package/dist/fhe/react/index.cjs +13 -12
- package/dist/fhe/react/index.js +6 -5
- package/dist/fhe/types.d.ts +6 -0
- package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
- package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
- package/dist/fhe-airdrop/abis/index.d.ts +5 -2
- package/dist/fhe-airdrop/abis/merkle.d.ts +1238 -0
- package/dist/fhe-airdrop/advanced/index.cjs +11 -12
- package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
- package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
- package/dist/fhe-airdrop/advanced/index.js +3 -8
- package/dist/fhe-airdrop/advanced/react/index.cjs +37 -50
- package/dist/fhe-airdrop/advanced/react/index.d.cts +9 -3
- package/dist/fhe-airdrop/advanced/react/index.d.ts +9 -3
- package/dist/fhe-airdrop/advanced/react/index.js +36 -50
- package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +600 -0
- package/dist/fhe-airdrop/campaign.d.ts +297 -0
- package/dist/fhe-airdrop/compliance.d.ts +302 -0
- package/dist/fhe-airdrop/constants.d.ts +33 -0
- package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
- package/dist/fhe-airdrop/encryption.d.ts +92 -14
- package/dist/fhe-airdrop/errors.d.ts +245 -15
- package/dist/fhe-airdrop/factory.d.ts +533 -274
- package/dist/fhe-airdrop/guards.d.ts +273 -0
- package/dist/fhe-airdrop/index.cjs +1131 -74
- package/dist/fhe-airdrop/index.d.cts +46 -8
- package/dist/fhe-airdrop/index.d.ts +46 -8
- package/dist/fhe-airdrop/index.js +931 -8
- package/dist/fhe-airdrop/merkle-tree.d.ts +103 -0
- package/dist/fhe-airdrop/merkle.d.ts +180 -0
- package/dist/fhe-airdrop/react/_shared.d.ts +144 -71
- package/dist/fhe-airdrop/react/index.cjs +399 -459
- package/dist/fhe-airdrop/react/index.d.cts +53 -74
- package/dist/fhe-airdrop/react/index.d.ts +53 -74
- package/dist/fhe-airdrop/react/index.js +261 -374
- package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
- package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
- package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
- package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
- package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
- package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
- package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
- package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +23 -0
- package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
- package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
- package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
- package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +34 -0
- package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
- package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
- package/dist/fhe-airdrop/roles.d.ts +147 -0
- package/dist/fhe-airdrop/types.d.ts +67 -65
- package/dist/fhe-disperse/index.cjs +70 -68
- package/dist/fhe-disperse/index.js +10 -8
- package/dist/fhe-disperse/react/index.cjs +94 -92
- package/dist/fhe-disperse/react/index.js +13 -11
- package/dist/fhe-vesting/advanced/index.cjs +10 -8
- package/dist/fhe-vesting/advanced/index.js +8 -6
- package/dist/fhe-vesting/advanced/react/index.cjs +16 -14
- package/dist/fhe-vesting/advanced/react/index.js +13 -11
- package/dist/fhe-vesting/index.cjs +74 -72
- package/dist/fhe-vesting/index.js +11 -9
- package/dist/fhe-vesting/react/index.cjs +228 -226
- package/dist/fhe-vesting/react/index.js +15 -13
- package/dist/index.cjs +100 -87
- package/dist/index.js +3 -2
- package/dist/testnet-faucet/index.cjs +57 -55
- package/dist/testnet-faucet/index.js +7 -5
- package/dist/testnet-faucet/react/index.cjs +55 -53
- package/dist/testnet-faucet/react/index.js +9 -7
- package/package.json +6 -2
- package/dist/chunk-CNP4L3GF.js +0 -105
- package/dist/chunk-KSDSXJ34.js +0 -41
- package/dist/chunk-LBWRFZR3.cjs +0 -1681
- package/dist/chunk-OL6SHN3D.cjs +0 -44
- package/dist/chunk-S2XD75JM.js +0 -1637
- package/dist/chunk-SPGSO5SO.cjs +0 -1644
- package/dist/chunk-UE5XK2SY.js +0 -1673
- package/dist/chunk-WO72UBQD.cjs +0 -109
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
- package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
- package/dist/fhe-airdrop/airdrop.d.ts +0 -317
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -37
- package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
- package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
- package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useClaim.d.ts +0 -39
- package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
- package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
- package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +0 -51
- package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
- package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +0 -31
- package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
- package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
- package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
export { useEnsureOperator, useIsOperator } from '../../chunk-
|
|
1
|
+
export { useEnsureOperator, useIsOperator } from '../../chunk-AXIPOR3C.js';
|
|
2
2
|
import '../../chunk-FT4LNBOS.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import { useMemoFactoryClient, buildQueryKey, useMemoManagerClient } from '../../chunk-
|
|
5
|
-
export { ClaimLockedError, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError } from '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
export { encryptUint64, encryptUint64Batch, resolveEncryptor, scaleRatio } from '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-4TSDNZQ3.js';
|
|
4
|
+
import { useMemoFactoryClient, buildQueryKey, useMemoManagerClient } from '../../chunk-6NAVMWZQ.js';
|
|
5
|
+
export { ClaimLockedError, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError } from '../../chunk-TWT3STIX.js';
|
|
6
|
+
import '../../chunk-WMACINXO.js';
|
|
7
|
+
export { encryptUint64, encryptUint64Batch, resolveEncryptor, scaleRatio } from '../../chunk-6GNR22OV.js';
|
|
8
|
+
import '../../chunk-ZWXJTBZO.js';
|
|
9
9
|
import '../../chunk-7VELUOMI.js';
|
|
10
|
-
export { DisclosureType, FeeType } from '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import
|
|
15
|
-
|
|
10
|
+
export { DisclosureType, FeeType } from '../../chunk-EAJ7SYHE.js';
|
|
11
|
+
import '../../chunk-NWFMBLSQ.js';
|
|
12
|
+
import '../../chunk-4RAAATVY.js';
|
|
13
|
+
import '../../chunk-DZHYSUGY.js';
|
|
14
|
+
import '../../chunk-ZA673I3O.js';
|
|
15
|
+
import '../../chunk-KWFFIJYX.js';
|
|
16
|
+
import { MissingClientError } from '../../chunk-QBJ7O2B4.js';
|
|
17
|
+
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, TokenOpsSdkError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../../chunk-QBJ7O2B4.js';
|
|
16
18
|
import '../../chunk-Q2GP5UDC.js';
|
|
17
19
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
18
20
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk5576FRT3_cjs = require('./chunk-5576FRT3.cjs');
|
|
4
|
+
var chunk66IHPTOK_cjs = require('./chunk-66IHPTOK.cjs');
|
|
5
|
+
var chunk67OV5CX2_cjs = require('./chunk-67OV5CX2.cjs');
|
|
5
6
|
var chains = require('viem/chains');
|
|
6
7
|
|
|
7
8
|
var SUPPORTED_CHAINS = {
|
|
@@ -14,247 +15,259 @@ function isSupportedChainId(chainId) {
|
|
|
14
15
|
|
|
15
16
|
Object.defineProperty(exports, "DEPLOYED_ADDRESSES", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk5576FRT3_cjs.DEPLOYED_ADDRESSES; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "chainsWithDeployment", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk5576FRT3_cjs.chainsWithDeployment; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "chainsWithKnownRegistryEntry", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk5576FRT3_cjs.chainsWithKnownRegistryEntry; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "getConfidentialTestTokenAddress", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk5576FRT3_cjs.getConfidentialTestTokenAddress; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "getDeployedAddress", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk5576FRT3_cjs.getDeployedAddress; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "getFheAirdropComplianceImplementationAddress", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunk5576FRT3_cjs.getFheAirdropComplianceImplementationAddress; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "getFheAirdropEcdsaImplementationAddress", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunk5576FRT3_cjs.getFheAirdropEcdsaImplementationAddress; }
|
|
34
43
|
});
|
|
35
44
|
Object.defineProperty(exports, "getFheAirdropFactoryAddress", {
|
|
36
45
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk5576FRT3_cjs.getFheAirdropFactoryAddress; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "getFheAirdropMerkleImplementationAddress", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunk5576FRT3_cjs.getFheAirdropMerkleImplementationAddress; }
|
|
38
51
|
});
|
|
39
52
|
Object.defineProperty(exports, "getFheDisperseSingletonAddress", {
|
|
40
53
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk5576FRT3_cjs.getFheDisperseSingletonAddress; }
|
|
42
55
|
});
|
|
43
56
|
Object.defineProperty(exports, "getFheVestingFactoryAddress", {
|
|
44
57
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk5576FRT3_cjs.getFheVestingFactoryAddress; }
|
|
46
59
|
});
|
|
47
60
|
Object.defineProperty(exports, "getTestTokenAddress", {
|
|
48
61
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk5576FRT3_cjs.getTestTokenAddress; }
|
|
50
63
|
});
|
|
51
64
|
Object.defineProperty(exports, "requireConfidentialTestTokenAddress", {
|
|
52
65
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk5576FRT3_cjs.requireConfidentialTestTokenAddress; }
|
|
54
67
|
});
|
|
55
68
|
Object.defineProperty(exports, "requireFheAirdropFactoryAddress", {
|
|
56
69
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk5576FRT3_cjs.requireFheAirdropFactoryAddress; }
|
|
58
71
|
});
|
|
59
72
|
Object.defineProperty(exports, "requireFheDisperseSingletonAddress", {
|
|
60
73
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk5576FRT3_cjs.requireFheDisperseSingletonAddress; }
|
|
62
75
|
});
|
|
63
76
|
Object.defineProperty(exports, "requireFheVestingFactoryAddress", {
|
|
64
77
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk5576FRT3_cjs.requireFheVestingFactoryAddress; }
|
|
66
79
|
});
|
|
67
80
|
Object.defineProperty(exports, "requireTestTokenAddress", {
|
|
68
81
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk5576FRT3_cjs.requireTestTokenAddress; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "asAirdropId", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunk66IHPTOK_cjs.asAirdropId; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "asDisperseId", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunk66IHPTOK_cjs.asDisperseId; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "asEncryptedHandle", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunk66IHPTOK_cjs.asEncryptedHandle; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "asExternalInputProof", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunk66IHPTOK_cjs.asExternalInputProof; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "asRole", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunk66IHPTOK_cjs.asRole; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "asSignature", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunk66IHPTOK_cjs.asSignature; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "asTxHash", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunk66IHPTOK_cjs.asTxHash; }
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "asVestingId", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () { return chunk66IHPTOK_cjs.asVestingId; }
|
|
70
115
|
});
|
|
71
116
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
72
117
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
74
119
|
});
|
|
75
120
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
76
121
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
78
123
|
});
|
|
79
124
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
80
125
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
82
127
|
});
|
|
83
128
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
84
129
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
86
131
|
});
|
|
87
132
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
88
133
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
90
135
|
});
|
|
91
136
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
92
137
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
94
139
|
});
|
|
95
140
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
96
141
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
98
143
|
});
|
|
99
144
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
100
145
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
102
147
|
});
|
|
103
148
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
104
149
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
106
151
|
});
|
|
107
152
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
108
153
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
110
155
|
});
|
|
111
156
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
112
157
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
114
159
|
});
|
|
115
160
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
116
161
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
118
163
|
});
|
|
119
164
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
120
165
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
122
167
|
});
|
|
123
168
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
124
169
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
126
171
|
});
|
|
127
172
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
128
173
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
130
175
|
});
|
|
131
176
|
Object.defineProperty(exports, "MissingClientError", {
|
|
132
177
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
134
179
|
});
|
|
135
180
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
136
181
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
138
183
|
});
|
|
139
184
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
140
185
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
142
187
|
});
|
|
143
188
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
144
189
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
146
191
|
});
|
|
147
192
|
Object.defineProperty(exports, "NetworkError", {
|
|
148
193
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
150
195
|
});
|
|
151
196
|
Object.defineProperty(exports, "OPERATOR_NOT_APPROVED_REMEDIATION", {
|
|
152
197
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk67OV5CX2_cjs.OPERATOR_NOT_APPROVED_REMEDIATION; }
|
|
154
199
|
});
|
|
155
200
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
156
201
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
158
203
|
});
|
|
159
204
|
Object.defineProperty(exports, "PausedError", {
|
|
160
205
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
162
207
|
});
|
|
163
208
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
164
209
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
166
211
|
});
|
|
167
212
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
168
213
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
170
215
|
});
|
|
171
216
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
172
217
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
174
219
|
});
|
|
175
220
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
176
221
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
178
223
|
});
|
|
179
224
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
180
225
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
182
227
|
});
|
|
183
228
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
184
229
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsContractError; }
|
|
186
231
|
});
|
|
187
232
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
188
233
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
190
235
|
});
|
|
191
236
|
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
192
237
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsValidationError; }
|
|
194
239
|
});
|
|
195
240
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
196
241
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
198
243
|
});
|
|
199
244
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
200
245
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
202
247
|
});
|
|
203
248
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
204
249
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
206
251
|
});
|
|
207
252
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
208
253
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
210
255
|
});
|
|
211
256
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
212
257
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
214
259
|
});
|
|
215
260
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
216
261
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
218
263
|
});
|
|
219
264
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
220
265
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
222
|
-
});
|
|
223
|
-
Object.defineProperty(exports, "asAirdropId", {
|
|
224
|
-
enumerable: true,
|
|
225
|
-
get: function () { return chunk2RNW4MIJ_cjs.asAirdropId; }
|
|
226
|
-
});
|
|
227
|
-
Object.defineProperty(exports, "asDisperseId", {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
get: function () { return chunk2RNW4MIJ_cjs.asDisperseId; }
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(exports, "asEncryptedHandle", {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
get: function () { return chunk2RNW4MIJ_cjs.asEncryptedHandle; }
|
|
234
|
-
});
|
|
235
|
-
Object.defineProperty(exports, "asExternalInputProof", {
|
|
236
|
-
enumerable: true,
|
|
237
|
-
get: function () { return chunk2RNW4MIJ_cjs.asExternalInputProof; }
|
|
238
|
-
});
|
|
239
|
-
Object.defineProperty(exports, "asRole", {
|
|
240
|
-
enumerable: true,
|
|
241
|
-
get: function () { return chunk2RNW4MIJ_cjs.asRole; }
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(exports, "asSignature", {
|
|
244
|
-
enumerable: true,
|
|
245
|
-
get: function () { return chunk2RNW4MIJ_cjs.asSignature; }
|
|
246
|
-
});
|
|
247
|
-
Object.defineProperty(exports, "asTxHash", {
|
|
248
|
-
enumerable: true,
|
|
249
|
-
get: function () { return chunk2RNW4MIJ_cjs.asTxHash; }
|
|
250
|
-
});
|
|
251
|
-
Object.defineProperty(exports, "asVestingId", {
|
|
252
|
-
enumerable: true,
|
|
253
|
-
get: function () { return chunk2RNW4MIJ_cjs.asVestingId; }
|
|
266
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
254
267
|
});
|
|
255
268
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
256
269
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
258
271
|
});
|
|
259
272
|
exports.SUPPORTED_CHAINS = SUPPORTED_CHAINS;
|
|
260
273
|
exports.isSupportedChainId = isSupportedChainId;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { DEPLOYED_ADDRESSES, chainsWithDeployment, chainsWithKnownRegistryEntry, getConfidentialTestTokenAddress, getDeployedAddress, getFheAirdropFactoryAddress, getFheDisperseSingletonAddress, getFheVestingFactoryAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireFheAirdropFactoryAddress, requireFheDisperseSingletonAddress, requireFheVestingFactoryAddress, requireTestTokenAddress } from './chunk-
|
|
2
|
-
export {
|
|
1
|
+
export { DEPLOYED_ADDRESSES, chainsWithDeployment, chainsWithKnownRegistryEntry, getConfidentialTestTokenAddress, getDeployedAddress, getFheAirdropComplianceImplementationAddress, getFheAirdropEcdsaImplementationAddress, getFheAirdropFactoryAddress, getFheAirdropMerkleImplementationAddress, getFheDisperseSingletonAddress, getFheVestingFactoryAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireFheAirdropFactoryAddress, requireFheDisperseSingletonAddress, requireFheVestingFactoryAddress, requireTestTokenAddress } from './chunk-DZHYSUGY.js';
|
|
2
|
+
export { asAirdropId, asDisperseId, asEncryptedHandle, asExternalInputProof, asRole, asSignature, asTxHash, asVestingId } from './chunk-KWFFIJYX.js';
|
|
3
|
+
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OPERATOR_NOT_APPROVED_REMEDIATION, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from './chunk-QBJ7O2B4.js';
|
|
3
4
|
import { sepolia, mainnet } from 'viem/chains';
|
|
4
5
|
|
|
5
6
|
var SUPPORTED_CHAINS = {
|