@tokenops/sdk 1.1.1 → 1.6.0
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 +158 -2
- package/README.md +18 -8
- package/SECURITY.md +7 -1
- package/dist/{chunk-56UI7LUR.cjs → chunk-2RNW4MIJ.cjs} +37 -0
- package/dist/{chunk-VDXVNZCO.cjs → chunk-43RFBQ73.cjs} +85 -29
- package/dist/{chunk-BE2AIZ3K.js → chunk-46T67CE2.js} +1 -1
- package/dist/{chunk-WRCUDSUJ.js → chunk-4KJ66YRH.js} +61 -3
- package/dist/{chunk-ITQ7WKVC.cjs → chunk-4ZCXK4VI.cjs} +68 -8
- package/dist/{chunk-JFLEEXKP.js → chunk-6WSNS3UV.js} +58 -2
- package/dist/{chunk-W7JHOK7G.cjs → chunk-7G7UOQV4.cjs} +4 -4
- package/dist/{chunk-5KHIQG7Y.cjs → chunk-AYGRYDBX.cjs} +35 -36
- package/dist/{chunk-5SGMJADP.cjs → chunk-BD4LZBVF.cjs} +85 -9
- package/dist/{chunk-OYLZEEHF.cjs → chunk-BK7YIVLK.cjs} +304 -179
- package/dist/{chunk-SEKC7H5Y.cjs → chunk-CBRL2PJA.cjs} +12 -11
- package/dist/{chunk-XWDVPV42.js → chunk-CNP4L3GF.js} +4 -4
- package/dist/{chunk-IVE3QEGD.js → chunk-DRSPMIZ7.js} +28 -1
- package/dist/{chunk-SAGJIEQK.cjs → chunk-EUKPOXWR.cjs} +15 -16
- package/dist/chunk-FT4LNBOS.js +11 -0
- package/dist/{chunk-ITQBDRWX.js → chunk-HETNKZEE.js} +1 -1
- package/dist/{chunk-JJ4R5QXF.js → chunk-KSDSXJ34.js} +1 -1
- package/dist/{chunk-SYHXDHWX.cjs → chunk-LBWRFZR3.cjs} +218 -31
- package/dist/{chunk-ZXCOJY2Z.js → chunk-NFW7AUEX.js} +1 -1
- package/dist/{chunk-FPQBFIUW.cjs → chunk-OL6SHN3D.cjs} +3 -3
- package/dist/{chunk-XSNLAS5M.js → chunk-PD7ME2BT.js} +75 -2
- package/dist/{chunk-FXCW7LVB.js → chunk-QET3Q4JP.js} +94 -9
- package/dist/{chunk-M7V2EDPB.js → chunk-QKKBBH7I.js} +2 -2
- package/dist/{chunk-XXXDQSHE.js → chunk-S2XD75JM.js} +12 -3
- package/dist/{chunk-5SA2HF2W.cjs → chunk-SPGSO5SO.cjs} +31 -22
- package/dist/{chunk-Q7ARQSUH.cjs → chunk-SYHNZSZZ.cjs} +3 -3
- package/dist/{chunk-X56UVEXS.js → chunk-TN65XNTI.js} +248 -120
- package/dist/chunk-U57COLUE.js +56 -0
- package/dist/{chunk-OQZAZIAS.js → chunk-UE5XK2SY.js} +193 -6
- package/dist/{chunk-NS44KBV5.cjs → chunk-UJS4N2XM.cjs} +12 -12
- package/dist/{chunk-IR5AK5U5.js → chunk-V5D7BHW3.js} +4 -5
- package/dist/{chunk-3PQ2RFPC.js → chunk-VHSNYUYV.js} +5 -4
- package/dist/{chunk-CQIPRNS7.cjs → chunk-VR3FREBX.cjs} +3 -3
- package/dist/{chunk-G7G75C46.cjs → chunk-WO72UBQD.cjs} +11 -11
- package/dist/chunk-WOEETTH7.cjs +59 -0
- package/dist/{chunk-QE7ZONJ2.js → chunk-WTK6JDSI.js} +4 -5
- package/dist/{chunk-3ZRHDTEX.cjs → chunk-WUXUWTFW.cjs} +3 -3
- package/dist/{chunk-23F7JIK5.cjs → chunk-YFIWCYHC.cjs} +141 -54
- package/dist/{chunk-FYQ2UW4T.js → chunk-YPYCWLYP.js} +1 -1
- package/dist/chunk-ZQUE2B3Q.cjs +33 -0
- package/dist/core/addresses.d.ts +1 -1
- package/dist/core/errors.d.ts +41 -1
- package/dist/core/revert-mapper.d.ts +77 -0
- package/dist/core/wagmi-compat.d.ts +40 -0
- package/dist/fhe/index.cjs +134 -68
- package/dist/fhe/index.d.cts +2 -1
- package/dist/fhe/index.d.ts +2 -1
- package/dist/fhe/index.js +64 -10
- package/dist/fhe/mock-erc7984.d.ts +4 -4
- package/dist/fhe/operators.d.ts +142 -2
- package/dist/fhe/react/index.cjs +21 -8
- package/dist/fhe/react/index.d.cts +2 -0
- package/dist/fhe/react/index.d.ts +2 -0
- package/dist/fhe/react/index.js +8 -3
- package/dist/fhe/react/useEnsureOperator.d.ts +56 -0
- package/dist/fhe/react/useIsOperator.d.ts +54 -0
- package/dist/fhe/sepolia-encryptor-web.d.ts +45 -4
- package/dist/fhe/sepolia-encryptor.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/index.cjs +9 -9
- package/dist/fhe-airdrop/advanced/index.js +7 -7
- package/dist/fhe-airdrop/advanced/react/index.cjs +14 -14
- package/dist/fhe-airdrop/advanced/react/index.js +10 -10
- package/dist/fhe-airdrop/airdrop.d.ts +9 -0
- package/dist/fhe-airdrop/encryption.d.ts +8 -0
- package/dist/fhe-airdrop/factory.d.ts +86 -1
- package/dist/fhe-airdrop/index.cjs +69 -66
- package/dist/fhe-airdrop/index.d.cts +3 -3
- package/dist/fhe-airdrop/index.d.ts +3 -3
- package/dist/fhe-airdrop/index.js +7 -8
- package/dist/fhe-airdrop/react/index.cjs +176 -135
- package/dist/fhe-airdrop/react/index.d.cts +7 -4
- package/dist/fhe-airdrop/react/index.d.ts +7 -4
- package/dist/fhe-airdrop/react/index.js +43 -16
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +17 -11
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +3 -2
- package/dist/fhe-airdrop/react/useClaim.d.ts +10 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +8 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +8 -0
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +8 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +1 -1
- package/dist/fhe-airdrop/types.d.ts +56 -0
- package/dist/fhe-disperse/encryption.d.ts +8 -0
- package/dist/fhe-disperse/errors.d.ts +55 -0
- package/dist/fhe-disperse/index.cjs +77 -66
- package/dist/fhe-disperse/index.d.cts +2 -2
- package/dist/fhe-disperse/index.d.ts +2 -2
- package/dist/fhe-disperse/index.js +8 -9
- package/dist/fhe-disperse/react/index.cjs +108 -87
- package/dist/fhe-disperse/react/index.d.cts +4 -2
- package/dist/fhe-disperse/react/index.d.ts +4 -2
- package/dist/fhe-disperse/react/index.js +12 -11
- package/dist/fhe-disperse/react/useCalculateFee.d.ts +7 -0
- package/dist/fhe-disperse/react/useDisperse.d.ts +9 -0
- package/dist/fhe-disperse/react/usePreflightDisperse.d.ts +7 -0
- package/dist/fhe-disperse/react/useSingletonCalculateFee.d.ts +7 -0
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-disperse/singleton.d.ts +29 -0
- package/dist/fhe-disperse/subtotals.d.ts +6 -0
- package/dist/fhe-vesting/advanced/index.cjs +8 -9
- package/dist/fhe-vesting/advanced/index.js +6 -7
- package/dist/fhe-vesting/advanced/react/index.cjs +15 -15
- package/dist/fhe-vesting/advanced/react/index.js +12 -12
- package/dist/fhe-vesting/encryption.d.ts +8 -0
- package/dist/fhe-vesting/index.cjs +82 -79
- package/dist/fhe-vesting/index.d.cts +2 -2
- package/dist/fhe-vesting/index.d.ts +2 -2
- package/dist/fhe-vesting/index.js +9 -10
- package/dist/fhe-vesting/manager.d.ts +119 -1
- package/dist/fhe-vesting/react/index.cjs +264 -224
- package/dist/fhe-vesting/react/index.d.cts +9 -6
- package/dist/fhe-vesting/react/index.d.ts +9 -6
- package/dist/fhe-vesting/react/index.js +44 -21
- package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAdminClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +10 -0
- package/dist/fhe-vesting/react/useBatchCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useClaim.d.ts +3 -1
- package/dist/fhe-vesting/react/useCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
- package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-vesting/react/usePartialClaim.d.ts +9 -1
- package/dist/fhe-vesting/react/usePreflightCreateVesting.d.ts +37 -0
- package/dist/fhe-vesting/react/useVestingClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
- package/dist/fhe-vesting/react/useWithdrawAdmin.d.ts +6 -0
- package/dist/fhe-vesting/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-vesting/types.d.ts +45 -0
- package/dist/index.cjs +93 -86
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/testnet-faucet/index.cjs +58 -55
- package/dist/testnet-faucet/index.d.cts +1 -1
- package/dist/testnet-faucet/index.d.ts +1 -1
- package/dist/testnet-faucet/index.js +5 -6
- package/dist/testnet-faucet/react/index.cjs +60 -56
- package/dist/testnet-faucet/react/index.d.cts +3 -2
- package/dist/testnet-faucet/react/index.d.ts +3 -2
- package/dist/testnet-faucet/react/index.js +11 -11
- package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +3 -2
- package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +2 -2
- package/package.json +14 -8
- package/dist/chunk-66IHPTOK.cjs +0 -20
- package/dist/chunk-KWFFIJYX.js +0 -11
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -25
- package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
- package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
- package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
- package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
- package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
|
@@ -1,208 +1,211 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkAYGRYDBX_cjs = require('../chunk-AYGRYDBX.cjs');
|
|
4
|
+
require('../chunk-43RFBQ73.cjs');
|
|
5
|
+
var chunkWUXUWTFW_cjs = require('../chunk-WUXUWTFW.cjs');
|
|
6
|
+
require('../chunk-VR3FREBX.cjs');
|
|
7
|
+
var chunk2RNW4MIJ_cjs = require('../chunk-2RNW4MIJ.cjs');
|
|
7
8
|
require('../chunk-VJKZWYYJ.cjs');
|
|
8
|
-
require('../chunk-66IHPTOK.cjs');
|
|
9
|
-
var chunk56UI7LUR_cjs = require('../chunk-56UI7LUR.cjs');
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
Object.defineProperty(exports, "FaucetSupplyExhaustedError", {
|
|
14
13
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkAYGRYDBX_cjs.FaucetSupplyExhaustedError; }
|
|
16
15
|
});
|
|
17
16
|
Object.defineProperty(exports, "TESTNET_FAUCET_SUPPORTED_CHAIN_IDS", {
|
|
18
17
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkAYGRYDBX_cjs.TESTNET_FAUCET_SUPPORTED_CHAIN_IDS; }
|
|
20
19
|
});
|
|
21
20
|
Object.defineProperty(exports, "TestnetFaucetClient", {
|
|
22
21
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkAYGRYDBX_cjs.TestnetFaucetClient; }
|
|
24
23
|
});
|
|
25
24
|
Object.defineProperty(exports, "assertTestnetFaucetChain", {
|
|
26
25
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkAYGRYDBX_cjs.assertTestnetFaucetChain; }
|
|
28
27
|
});
|
|
29
28
|
Object.defineProperty(exports, "confidentialTokenopsTestTokenAbi", {
|
|
30
29
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkAYGRYDBX_cjs.confidentialTokenopsTestTokenAbi; }
|
|
32
31
|
});
|
|
33
32
|
Object.defineProperty(exports, "createTestnetFaucetClient", {
|
|
34
33
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkAYGRYDBX_cjs.createTestnetFaucetClient; }
|
|
36
35
|
});
|
|
37
36
|
Object.defineProperty(exports, "isTestnetFaucetChainId", {
|
|
38
37
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkAYGRYDBX_cjs.isTestnetFaucetChainId; }
|
|
40
39
|
});
|
|
41
40
|
Object.defineProperty(exports, "tokenopsTestTokenAbi", {
|
|
42
41
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkAYGRYDBX_cjs.tokenopsTestTokenAbi; }
|
|
44
43
|
});
|
|
45
44
|
Object.defineProperty(exports, "getConfidentialTestTokenAddress", {
|
|
46
45
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkWUXUWTFW_cjs.getConfidentialTestTokenAddress; }
|
|
48
47
|
});
|
|
49
48
|
Object.defineProperty(exports, "getTestTokenAddress", {
|
|
50
49
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkWUXUWTFW_cjs.getTestTokenAddress; }
|
|
52
51
|
});
|
|
53
52
|
Object.defineProperty(exports, "requireConfidentialTestTokenAddress", {
|
|
54
53
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkWUXUWTFW_cjs.requireConfidentialTestTokenAddress; }
|
|
56
55
|
});
|
|
57
56
|
Object.defineProperty(exports, "requireTestTokenAddress", {
|
|
58
57
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkWUXUWTFW_cjs.requireTestTokenAddress; }
|
|
60
59
|
});
|
|
61
60
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
62
61
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
|
|
64
63
|
});
|
|
65
64
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
66
65
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
|
|
68
67
|
});
|
|
69
68
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
70
69
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
|
|
72
71
|
});
|
|
73
72
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
74
73
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
|
|
76
75
|
});
|
|
77
76
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
78
77
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
|
|
80
79
|
});
|
|
81
80
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
82
81
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
|
|
84
83
|
});
|
|
85
84
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
86
85
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
|
|
88
87
|
});
|
|
89
88
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
90
89
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
|
|
92
91
|
});
|
|
93
92
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
94
93
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
|
|
96
95
|
});
|
|
97
96
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
98
97
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
|
|
100
99
|
});
|
|
101
100
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
102
101
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
|
|
104
103
|
});
|
|
105
104
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
106
105
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
|
|
108
107
|
});
|
|
109
108
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
110
109
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
|
|
112
111
|
});
|
|
113
112
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
114
113
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
|
|
116
115
|
});
|
|
117
116
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
118
117
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
|
|
120
119
|
});
|
|
121
120
|
Object.defineProperty(exports, "MissingClientError", {
|
|
122
121
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
|
|
124
123
|
});
|
|
125
124
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
126
125
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
|
|
128
127
|
});
|
|
129
128
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
130
129
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
|
|
132
131
|
});
|
|
133
132
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
134
133
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
|
|
136
135
|
});
|
|
137
136
|
Object.defineProperty(exports, "NetworkError", {
|
|
138
137
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
|
|
140
143
|
});
|
|
141
144
|
Object.defineProperty(exports, "PausedError", {
|
|
142
145
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
|
|
144
147
|
});
|
|
145
148
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
146
149
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
|
|
148
151
|
});
|
|
149
152
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
150
153
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
|
|
152
155
|
});
|
|
153
156
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
154
157
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
|
|
156
159
|
});
|
|
157
160
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
158
161
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
|
|
160
163
|
});
|
|
161
164
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
162
165
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
|
|
164
167
|
});
|
|
165
168
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
166
169
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsContractError; }
|
|
168
171
|
});
|
|
169
172
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
170
173
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
|
|
172
175
|
});
|
|
173
176
|
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
174
177
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsValidationError; }
|
|
176
179
|
});
|
|
177
180
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
178
181
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
|
|
180
183
|
});
|
|
181
184
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
182
185
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
|
|
184
187
|
});
|
|
185
188
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
186
189
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
|
|
188
191
|
});
|
|
189
192
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
190
193
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
|
|
192
195
|
});
|
|
193
196
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
194
197
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
|
|
196
199
|
});
|
|
197
200
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
198
201
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
|
|
200
203
|
});
|
|
201
204
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
202
205
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
|
|
204
207
|
});
|
|
205
208
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
206
209
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
|
|
208
211
|
});
|
|
@@ -3,6 +3,6 @@ export { TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, isTestnetFaucetChainId, assertTestn
|
|
|
3
3
|
export type { FaucetMetadata, FaucetTokenMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult, } from "./types.js";
|
|
4
4
|
export { confidentialTokenopsTestTokenAbi, tokenopsTestTokenAbi } from "./abis/index.js";
|
|
5
5
|
export { getConfidentialTestTokenAddress, requireConfidentialTestTokenAddress, getTestTokenAddress, requireTestTokenAddress, } from "../core/addresses.js";
|
|
6
|
-
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, 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";
|
|
6
|
+
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";
|
|
7
7
|
export { type PreflightResult } from "../core/preflight.js";
|
|
8
8
|
export { FaucetSupplyExhaustedError } from "./errors.js";
|
|
@@ -3,6 +3,6 @@ export { TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, isTestnetFaucetChainId, assertTestn
|
|
|
3
3
|
export type { FaucetMetadata, FaucetTokenMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult, } from "./types.js";
|
|
4
4
|
export { confidentialTokenopsTestTokenAbi, tokenopsTestTokenAbi } from "./abis/index.js";
|
|
5
5
|
export { getConfidentialTestTokenAddress, requireConfidentialTestTokenAddress, getTestTokenAddress, requireTestTokenAddress, } from "../core/addresses.js";
|
|
6
|
-
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, 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";
|
|
6
|
+
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";
|
|
7
7
|
export { type PreflightResult } from "../core/preflight.js";
|
|
8
8
|
export { FaucetSupplyExhaustedError } from "./errors.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { FaucetSupplyExhaustedError, TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, TestnetFaucetClient, assertTestnetFaucetChain, confidentialTokenopsTestTokenAbi, createTestnetFaucetClient, isTestnetFaucetChainId, tokenopsTestTokenAbi } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
export { getConfidentialTestTokenAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireTestTokenAddress } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { FaucetSupplyExhaustedError, TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, TestnetFaucetClient, assertTestnetFaucetChain, confidentialTokenopsTestTokenAbi, createTestnetFaucetClient, isTestnetFaucetChainId, tokenopsTestTokenAbi } from '../chunk-WTK6JDSI.js';
|
|
2
|
+
import '../chunk-6WSNS3UV.js';
|
|
3
|
+
export { getConfidentialTestTokenAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireTestTokenAddress } from '../chunk-QKKBBH7I.js';
|
|
4
|
+
import '../chunk-46T67CE2.js';
|
|
5
|
+
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-DRSPMIZ7.js';
|
|
5
6
|
import '../chunk-Q2GP5UDC.js';
|
|
6
|
-
import '../chunk-KWFFIJYX.js';
|
|
7
|
-
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-IVE3QEGD.js';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
|
|
6
|
-
require('../../chunk-
|
|
3
|
+
var chunkAYGRYDBX_cjs = require('../../chunk-AYGRYDBX.cjs');
|
|
4
|
+
var chunkZQUE2B3Q_cjs = require('../../chunk-ZQUE2B3Q.cjs');
|
|
5
|
+
require('../../chunk-43RFBQ73.cjs');
|
|
6
|
+
var chunkWUXUWTFW_cjs = require('../../chunk-WUXUWTFW.cjs');
|
|
7
|
+
require('../../chunk-VR3FREBX.cjs');
|
|
8
|
+
var chunk2RNW4MIJ_cjs = require('../../chunk-2RNW4MIJ.cjs');
|
|
7
9
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
8
|
-
require('../../chunk-66IHPTOK.cjs');
|
|
9
|
-
var chunk56UI7LUR_cjs = require('../../chunk-56UI7LUR.cjs');
|
|
10
10
|
var reactQuery = require('@tanstack/react-query');
|
|
11
|
-
var wagmi = require('wagmi');
|
|
12
11
|
var react = require('react');
|
|
12
|
+
var wagmi = require('wagmi');
|
|
13
13
|
|
|
14
14
|
var TESTNET_FAUCET_KEY = "tokenops-sdk";
|
|
15
15
|
var TESTNET_FAUCET_NAMESPACE = "testnet-faucet";
|
|
16
16
|
function tryResolveSingletonAddress(override, chainId) {
|
|
17
|
-
if (chainId !== void 0 && !
|
|
17
|
+
if (chainId !== void 0 && !chunkAYGRYDBX_cjs.isTestnetFaucetChainId(chainId)) return void 0;
|
|
18
18
|
if (override) return override;
|
|
19
19
|
if (chainId === void 0) return void 0;
|
|
20
|
-
return
|
|
20
|
+
return chunkWUXUWTFW_cjs.getConfidentialTestTokenAddress(chainId);
|
|
21
21
|
}
|
|
22
22
|
function useMemoFaucetClient(opts = {}) {
|
|
23
23
|
const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
|
|
@@ -28,7 +28,7 @@ function useMemoFaucetClient(opts = {}) {
|
|
|
28
28
|
const client = react.useMemo(() => {
|
|
29
29
|
if (!publicClient) return void 0;
|
|
30
30
|
if (!resolvedAddress) return void 0;
|
|
31
|
-
return
|
|
31
|
+
return chunkAYGRYDBX_cjs.createTestnetFaucetClient({
|
|
32
32
|
publicClient,
|
|
33
33
|
...walletClient ? { walletClient } : {},
|
|
34
34
|
...opts.address ? { address: resolvedAddress } : {},
|
|
@@ -45,21 +45,21 @@ function useMemoFaucetClient(opts = {}) {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
function computeSingletonResolutionError(override, chainId) {
|
|
48
|
-
if (chainId !== void 0 && !
|
|
49
|
-
return new
|
|
48
|
+
if (chainId !== void 0 && !chunkAYGRYDBX_cjs.isTestnetFaucetChainId(chainId)) {
|
|
49
|
+
return new chunk2RNW4MIJ_cjs.UnsupportedChainError(chainId);
|
|
50
50
|
}
|
|
51
51
|
if (override) return void 0;
|
|
52
52
|
if (chainId === void 0) {
|
|
53
|
-
return new
|
|
53
|
+
return new chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError({
|
|
54
54
|
reason: "chain-id-missing",
|
|
55
55
|
product: "testnetFaucet",
|
|
56
56
|
contract: "confidentialTestToken",
|
|
57
57
|
clientLabel: "TestnetFaucetClient"
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
const resolved =
|
|
60
|
+
const resolved = chunkWUXUWTFW_cjs.getConfidentialTestTokenAddress(chainId);
|
|
61
61
|
if (!resolved) {
|
|
62
|
-
return new
|
|
62
|
+
return new chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError({
|
|
63
63
|
reason: "registry-not-deployed",
|
|
64
64
|
product: "testnetFaucet",
|
|
65
65
|
contract: "confidentialTestToken",
|
|
@@ -95,7 +95,7 @@ function normalizeKeyArg(value) {
|
|
|
95
95
|
function useConfidentialBalance(args = {}) {
|
|
96
96
|
const { account, ...base } = args;
|
|
97
97
|
const { client, chainId, resolvedAddress } = useMemoFaucetClient(base);
|
|
98
|
-
const { address: connected } =
|
|
98
|
+
const { address: connected } = chunkZQUE2B3Q_cjs.useWagmiAccount();
|
|
99
99
|
const resolvedAccount = account ?? connected;
|
|
100
100
|
return reactQuery.useQuery({
|
|
101
101
|
queryKey: buildQueryKey("confidentialBalanceOf", chainId, resolvedAddress, resolvedAccount),
|
|
@@ -107,7 +107,7 @@ function useConfidentialBalance(args = {}) {
|
|
|
107
107
|
function useUnderlyingBalance(args = {}) {
|
|
108
108
|
const { account, ...base } = args;
|
|
109
109
|
const { client, chainId, resolvedAddress } = useMemoFaucetClient(base);
|
|
110
|
-
const { address: connected } =
|
|
110
|
+
const { address: connected } = chunkZQUE2B3Q_cjs.useWagmiAccount();
|
|
111
111
|
const resolvedAccount = account ?? connected;
|
|
112
112
|
return reactQuery.useQuery({
|
|
113
113
|
// The TTT is derived from the CTTT, which is already keyed via
|
|
@@ -198,7 +198,7 @@ function useMintConfidential(options = {}) {
|
|
|
198
198
|
return reactQuery.useMutation({
|
|
199
199
|
mutationFn: async (args) => {
|
|
200
200
|
if (!client) {
|
|
201
|
-
throw resolutionError ?? new
|
|
201
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useMintConfidential", "testnet-faucet");
|
|
202
202
|
}
|
|
203
203
|
return client.mintConfidential(args);
|
|
204
204
|
}
|
|
@@ -209,7 +209,7 @@ function useMintUnderlying(options = {}) {
|
|
|
209
209
|
return reactQuery.useMutation({
|
|
210
210
|
mutationFn: async (args) => {
|
|
211
211
|
if (!client) {
|
|
212
|
-
throw resolutionError ?? new
|
|
212
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useMintUnderlying", "testnet-faucet");
|
|
213
213
|
}
|
|
214
214
|
return client.mintUnderlying(args);
|
|
215
215
|
}
|
|
@@ -218,151 +218,155 @@ function useMintUnderlying(options = {}) {
|
|
|
218
218
|
|
|
219
219
|
Object.defineProperty(exports, "FaucetSupplyExhaustedError", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkAYGRYDBX_cjs.FaucetSupplyExhaustedError; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "MissingClientError", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "NetworkError", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
|
|
302
|
+
});
|
|
303
|
+
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
304
|
+
enumerable: true,
|
|
305
|
+
get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
|
|
302
306
|
});
|
|
303
307
|
Object.defineProperty(exports, "PausedError", {
|
|
304
308
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
|
|
306
310
|
});
|
|
307
311
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
308
312
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
|
|
310
314
|
});
|
|
311
315
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
312
316
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
|
|
314
318
|
});
|
|
315
319
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
316
320
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
|
|
318
322
|
});
|
|
319
323
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
320
324
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
|
|
322
326
|
});
|
|
323
327
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
324
328
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
|
|
326
330
|
});
|
|
327
331
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
328
332
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsContractError; }
|
|
330
334
|
});
|
|
331
335
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
332
336
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
|
|
334
338
|
});
|
|
335
339
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
336
340
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
|
|
338
342
|
});
|
|
339
343
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
340
344
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
|
|
342
346
|
});
|
|
343
347
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
344
348
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
|
|
346
350
|
});
|
|
347
351
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
348
352
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
|
|
350
354
|
});
|
|
351
355
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
352
356
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
|
|
354
358
|
});
|
|
355
359
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
356
360
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
|
|
358
362
|
});
|
|
359
363
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
360
364
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
|
|
362
366
|
});
|
|
363
367
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
364
368
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
|
|
366
370
|
});
|
|
367
371
|
exports.TESTNET_FAUCET_KEY = TESTNET_FAUCET_KEY;
|
|
368
372
|
exports.TESTNET_FAUCET_NAMESPACE = TESTNET_FAUCET_NAMESPACE;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Every public method on the headless `TestnetFaucetClient` is wrapped as
|
|
5
5
|
* a hook here. Hooks compose with wagmi (`usePublicClient`, `useWalletClient`,
|
|
6
|
-
* `useAccount`
|
|
6
|
+
* and the account hook — v2 `useAccount` / v3 `useConnection`) and TanStack
|
|
7
|
+
* Query (`useQuery`, `useMutation`) — no extra
|
|
7
8
|
* provider needed beyond the standard wagmi `<WagmiProvider>` +
|
|
8
9
|
* `<QueryClientProvider>`.
|
|
9
10
|
*
|
|
@@ -34,5 +35,5 @@ export { useMintUnderlying, type UseMintUnderlyingArgs } from "./useMintUnderlyi
|
|
|
34
35
|
export type { BaseHookOptions } from "./_shared.js";
|
|
35
36
|
export { TESTNET_FAUCET_KEY, TESTNET_FAUCET_NAMESPACE } from "./_shared.js";
|
|
36
37
|
export type { FaucetMetadata, FaucetTokenMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult, } from "../types.js";
|
|
37
|
-
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, 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";
|
|
38
|
+
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, 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";
|
|
38
39
|
export { FaucetSupplyExhaustedError } from "../errors.js";
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Every public method on the headless `TestnetFaucetClient` is wrapped as
|
|
5
5
|
* a hook here. Hooks compose with wagmi (`usePublicClient`, `useWalletClient`,
|
|
6
|
-
* `useAccount`
|
|
6
|
+
* and the account hook — v2 `useAccount` / v3 `useConnection`) and TanStack
|
|
7
|
+
* Query (`useQuery`, `useMutation`) — no extra
|
|
7
8
|
* provider needed beyond the standard wagmi `<WagmiProvider>` +
|
|
8
9
|
* `<QueryClientProvider>`.
|
|
9
10
|
*
|
|
@@ -34,5 +35,5 @@ export { useMintUnderlying, type UseMintUnderlyingArgs } from "./useMintUnderlyi
|
|
|
34
35
|
export type { BaseHookOptions } from "./_shared.js";
|
|
35
36
|
export { TESTNET_FAUCET_KEY, TESTNET_FAUCET_NAMESPACE } from "./_shared.js";
|
|
36
37
|
export type { FaucetMetadata, FaucetTokenMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult, } from "../types.js";
|
|
37
|
-
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, 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";
|
|
38
|
+
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, 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";
|
|
38
39
|
export { FaucetSupplyExhaustedError } from "../errors.js";
|