@tokenops/sdk 1.0.0 → 1.5.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/README.md +120 -26
- package/dist/{chunk-5SGMJADP.cjs → chunk-2NCLOQ56.cjs} +9 -9
- package/dist/{chunk-QIHZVLIK.js → chunk-2PWNH3UE.js} +35 -6
- package/dist/{chunk-T5LVV3KY.cjs → chunk-4WPGQSNT.cjs} +3 -3
- package/dist/{chunk-SUOG3BQS.cjs → chunk-5X5WL5CU.cjs} +266 -103
- package/dist/{chunk-56UI7LUR.cjs → chunk-67OV5CX2.cjs} +19 -0
- package/dist/{chunk-WRCUDSUJ.js → chunk-6BMP4ICG.js} +2 -2
- package/dist/{chunk-XXXDQSHE.js → chunk-6R4KNAPK.js} +5 -3
- package/dist/{chunk-XSNLAS5M.js → chunk-AOP6HMPW.js} +1 -1
- package/dist/{chunk-62DF53UQ.cjs → chunk-C7BRZXJA.cjs} +19 -21
- package/dist/{chunk-UOG4PJL5.js → chunk-DUZIIRPF.js} +181 -14
- package/dist/{chunk-Q7ARQSUH.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/chunk-FT4LNBOS.js +11 -0
- package/dist/chunk-IJFQ5L4I.js +2171 -0
- package/dist/{chunk-52TC6BF7.js → chunk-IXLO7GO5.js} +210 -47
- package/dist/{chunk-CQIPRNS7.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-ITQ7WKVC.cjs → chunk-JYOTGRSO.cjs} +8 -8
- package/dist/{chunk-VDXVNZCO.cjs → chunk-KLKI352M.cjs} +85 -29
- package/dist/{chunk-5SA2HF2W.cjs → chunk-MCRBVJGZ.cjs} +24 -22
- package/dist/{chunk-ECT3NL2L.js → chunk-NTZY6IB7.js} +4 -4
- package/dist/{chunk-ZHFLRKFY.js → chunk-ODLTEGHB.js} +1 -1
- package/dist/{chunk-HGXNRR25.js → chunk-ORFTDNFZ.js} +4 -4
- package/dist/{chunk-72YGZEQE.js → chunk-OXTLPTO3.js} +9 -11
- package/dist/{chunk-HTOMTEA3.cjs → chunk-PFXURMBZ.cjs} +77 -48
- package/dist/{chunk-OLDGMKW2.cjs → chunk-PUPKNW3R.cjs} +35 -2
- package/dist/{chunk-IVE3QEGD.js → chunk-QBJ7O2B4.js} +18 -1
- package/dist/{chunk-JFLEEXKP.js → chunk-SG65XWH7.js} +58 -2
- package/dist/{chunk-K6MFFDBJ.cjs → chunk-T46YXSBP.cjs} +11 -11
- package/dist/{chunk-NS44KBV5.cjs → chunk-TEBM66WA.cjs} +12 -12
- package/dist/{chunk-6ECAHP5O.cjs → chunk-TIUKIY5V.cjs} +200 -33
- package/dist/{chunk-QCA7O2Q5.cjs → chunk-V2PXZVBF.cjs} +4 -4
- package/dist/{chunk-JFR5J4FL.cjs → chunk-W7IGCOVL.cjs} +11 -11
- package/dist/chunk-WENHUPZC.cjs +2180 -0
- package/dist/{chunk-ZXCOJY2Z.js → chunk-WMACINXO.js} +1 -1
- package/dist/{chunk-COPFW5Z4.js → chunk-XGGTQQFH.js} +31 -2
- package/dist/{chunk-CMRETRZO.js → chunk-YQIBBEFJ.js} +1 -1
- package/dist/{chunk-BE2AIZ3K.js → chunk-ZA673I3O.js} +1 -1
- package/dist/chunk-ZQUE2B3Q.cjs +33 -0
- package/dist/{chunk-FYQ2UW4T.js → chunk-ZWXJTBZO.js} +1 -1
- package/dist/core/addresses.d.ts +22 -0
- package/dist/core/errors.d.ts +41 -1
- package/dist/core/revert-mapper.d.ts +77 -0
- package/dist/core/telemetry.d.ts +0 -3
- package/dist/core/wagmi-compat.d.ts +40 -0
- package/dist/fhe/index.cjs +112 -66
- package/dist/fhe/index.d.cts +1 -1
- package/dist/fhe/index.d.ts +1 -1
- package/dist/fhe/index.js +50 -8
- package/dist/fhe/operators.d.ts +1 -1
- package/dist/fhe/react/index.cjs +7 -7
- package/dist/fhe/react/index.js +2 -2
- package/dist/fhe/sepolia-encryptor-web.d.ts +27 -1
- package/dist/fhe/sepolia-encryptor.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +3 -3
- package/dist/fhe-airdrop/advanced/index.cjs +9 -8
- package/dist/fhe-airdrop/advanced/index.d.cts +2 -2
- package/dist/fhe-airdrop/advanced/index.d.ts +2 -2
- package/dist/fhe-airdrop/advanced/index.js +7 -6
- package/dist/fhe-airdrop/advanced/react/index.cjs +14 -13
- package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -1
- package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -1
- package/dist/fhe-airdrop/advanced/react/index.js +10 -9
- package/dist/fhe-airdrop/airdrop.d.ts +2 -0
- package/dist/fhe-airdrop/encryption.d.ts +8 -0
- package/dist/fhe-airdrop/factory.d.ts +94 -11
- package/dist/fhe-airdrop/index.cjs +61 -57
- 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 -7
- package/dist/fhe-airdrop/react/index.cjs +163 -133
- package/dist/fhe-airdrop/react/index.d.cts +4 -3
- package/dist/fhe-airdrop/react/index.d.ts +4 -3
- package/dist/fhe-airdrop/react/index.js +38 -13
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +2 -0
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +3 -2
- package/dist/fhe-airdrop/react/useClaim.d.ts +2 -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/types.d.ts +45 -0
- package/dist/fhe-disperse/encryption.d.ts +8 -0
- package/dist/fhe-disperse/index.cjs +69 -65
- package/dist/fhe-disperse/index.d.cts +1 -1
- package/dist/fhe-disperse/index.d.ts +1 -1
- package/dist/fhe-disperse/index.js +8 -8
- package/dist/fhe-disperse/react/index.cjs +90 -86
- package/dist/fhe-disperse/react/index.d.cts +1 -1
- package/dist/fhe-disperse/react/index.d.ts +1 -1
- package/dist/fhe-disperse/react/index.js +10 -10
- 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 +8 -2
- 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/factory-advanced.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.cjs +8 -8
- package/dist/fhe-vesting/advanced/index.d.cts +2 -2
- package/dist/fhe-vesting/advanced/index.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.js +6 -6
- package/dist/fhe-vesting/advanced/react/index.cjs +15 -14
- package/dist/fhe-vesting/advanced/react/index.d.cts +1 -1
- package/dist/fhe-vesting/advanced/react/index.d.ts +1 -1
- package/dist/fhe-vesting/advanced/react/index.js +12 -11
- package/dist/fhe-vesting/encryption.d.ts +8 -0
- package/dist/fhe-vesting/factory.d.ts +6 -8
- package/dist/fhe-vesting/index.cjs +79 -75
- 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 -9
- package/dist/fhe-vesting/manager.d.ts +101 -3
- package/dist/fhe-vesting/react/index.cjs +241 -219
- 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 +29 -12
- package/dist/fhe-vesting/react/useAdminClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useBatchCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +7 -1
- package/dist/fhe-vesting/react/usePartialClaim.d.ts +8 -0
- 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/useWithdrawAdmin.d.ts +6 -0
- package/dist/fhe-vesting/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-vesting/types.d.ts +34 -2
- package/dist/index.cjs +73 -49
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/testnet-faucet/abis/confidential-test-token.d.ts +1039 -0
- package/dist/testnet-faucet/abis/index.d.ts +2 -0
- package/dist/testnet-faucet/abis/test-token.d.ts +253 -0
- package/dist/testnet-faucet/errors.d.ts +21 -0
- package/dist/testnet-faucet/faucet.d.ts +173 -0
- package/dist/testnet-faucet/index.cjs +212 -0
- package/dist/testnet-faucet/index.d.cts +8 -0
- package/dist/testnet-faucet/index.d.ts +8 -0
- package/dist/testnet-faucet/index.js +7 -0
- package/dist/testnet-faucet/react/_shared.d.ts +61 -0
- package/dist/testnet-faucet/react/index.cjs +384 -0
- package/dist/testnet-faucet/react/index.d.cts +39 -0
- package/dist/testnet-faucet/react/index.d.ts +39 -0
- package/dist/testnet-faucet/react/index.js +220 -0
- package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +25 -0
- package/dist/testnet-faucet/react/useFaucetDecimals.d.ts +9 -0
- package/dist/testnet-faucet/react/useFaucetMetadata.d.ts +14 -0
- package/dist/testnet-faucet/react/useFaucetRate.d.ts +11 -0
- package/dist/testnet-faucet/react/useInferredTotalSupply.d.ts +11 -0
- package/dist/testnet-faucet/react/useMaxTotalSupply.d.ts +10 -0
- package/dist/testnet-faucet/react/useMintConfidential.d.ts +35 -0
- package/dist/testnet-faucet/react/useMintUnderlying.d.ts +31 -0
- package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +19 -0
- package/dist/testnet-faucet/react/useUnderlyingDecimals.d.ts +9 -0
- package/dist/testnet-faucet/react/useUnderlyingTokenAddress.d.ts +12 -0
- package/dist/testnet-faucet/types.d.ts +92 -0
- package/dist/testnet-faucet/validate.d.ts +44 -0
- package/package.json +79 -30
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export declare const tokenopsTestTokenAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly stateMutability: "nonpayable";
|
|
4
|
+
readonly type: "constructor";
|
|
5
|
+
}, {
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "spender";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "uint256";
|
|
12
|
+
readonly name: "allowance";
|
|
13
|
+
readonly type: "uint256";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "uint256";
|
|
16
|
+
readonly name: "needed";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
readonly name: "sender";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "uint256";
|
|
28
|
+
readonly name: "balance";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "uint256";
|
|
32
|
+
readonly name: "needed";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "ERC20InsufficientBalance";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "approver";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "ERC20InvalidApprover";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
readonly name: "receiver";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "ERC20InvalidReceiver";
|
|
52
|
+
readonly type: "error";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "sender";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "ERC20InvalidSender";
|
|
60
|
+
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
readonly name: "spender";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "ERC20InvalidSpender";
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
}, {
|
|
70
|
+
readonly anonymous: false;
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly indexed: true;
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
readonly name: "owner";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly indexed: true;
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly name: "spender";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly indexed: false;
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
readonly name: "value";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "Approval";
|
|
88
|
+
readonly type: "event";
|
|
89
|
+
}, {
|
|
90
|
+
readonly anonymous: false;
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "from";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: true;
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
readonly name: "to";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly indexed: false;
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "value";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
readonly name: "Transfer";
|
|
108
|
+
readonly type: "event";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly name: "owner";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
readonly name: "spender";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}];
|
|
119
|
+
readonly name: "allowance";
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly stateMutability: "view";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
readonly name: "spender";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
readonly name: "value";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
}];
|
|
137
|
+
readonly name: "approve";
|
|
138
|
+
readonly outputs: readonly [{
|
|
139
|
+
readonly internalType: "bool";
|
|
140
|
+
readonly name: "";
|
|
141
|
+
readonly type: "bool";
|
|
142
|
+
}];
|
|
143
|
+
readonly stateMutability: "nonpayable";
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
}, {
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly internalType: "address";
|
|
148
|
+
readonly name: "account";
|
|
149
|
+
readonly type: "address";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "balanceOf";
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}];
|
|
157
|
+
readonly stateMutability: "view";
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
readonly name: "decimals";
|
|
162
|
+
readonly outputs: readonly [{
|
|
163
|
+
readonly internalType: "uint8";
|
|
164
|
+
readonly name: "";
|
|
165
|
+
readonly type: "uint8";
|
|
166
|
+
}];
|
|
167
|
+
readonly stateMutability: "view";
|
|
168
|
+
readonly type: "function";
|
|
169
|
+
}, {
|
|
170
|
+
readonly inputs: readonly [{
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly name: "to";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
readonly name: "amount";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
}];
|
|
179
|
+
readonly name: "mint";
|
|
180
|
+
readonly outputs: readonly [];
|
|
181
|
+
readonly stateMutability: "nonpayable";
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
}, {
|
|
184
|
+
readonly inputs: readonly [];
|
|
185
|
+
readonly name: "name";
|
|
186
|
+
readonly outputs: readonly [{
|
|
187
|
+
readonly internalType: "string";
|
|
188
|
+
readonly name: "";
|
|
189
|
+
readonly type: "string";
|
|
190
|
+
}];
|
|
191
|
+
readonly stateMutability: "view";
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
}, {
|
|
194
|
+
readonly inputs: readonly [];
|
|
195
|
+
readonly name: "symbol";
|
|
196
|
+
readonly outputs: readonly [{
|
|
197
|
+
readonly internalType: "string";
|
|
198
|
+
readonly name: "";
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
}];
|
|
201
|
+
readonly stateMutability: "view";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [];
|
|
205
|
+
readonly name: "totalSupply";
|
|
206
|
+
readonly outputs: readonly [{
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
}];
|
|
211
|
+
readonly stateMutability: "view";
|
|
212
|
+
readonly type: "function";
|
|
213
|
+
}, {
|
|
214
|
+
readonly inputs: readonly [{
|
|
215
|
+
readonly internalType: "address";
|
|
216
|
+
readonly name: "to";
|
|
217
|
+
readonly type: "address";
|
|
218
|
+
}, {
|
|
219
|
+
readonly internalType: "uint256";
|
|
220
|
+
readonly name: "value";
|
|
221
|
+
readonly type: "uint256";
|
|
222
|
+
}];
|
|
223
|
+
readonly name: "transfer";
|
|
224
|
+
readonly outputs: readonly [{
|
|
225
|
+
readonly internalType: "bool";
|
|
226
|
+
readonly name: "";
|
|
227
|
+
readonly type: "bool";
|
|
228
|
+
}];
|
|
229
|
+
readonly stateMutability: "nonpayable";
|
|
230
|
+
readonly type: "function";
|
|
231
|
+
}, {
|
|
232
|
+
readonly inputs: readonly [{
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "from";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "address";
|
|
238
|
+
readonly name: "to";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "value";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}];
|
|
245
|
+
readonly name: "transferFrom";
|
|
246
|
+
readonly outputs: readonly [{
|
|
247
|
+
readonly internalType: "bool";
|
|
248
|
+
readonly name: "";
|
|
249
|
+
readonly type: "bool";
|
|
250
|
+
}];
|
|
251
|
+
readonly stateMutability: "nonpayable";
|
|
252
|
+
readonly type: "function";
|
|
253
|
+
}];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Address } from "viem";
|
|
2
|
+
import { TokenOpsSdkError } from "../core/errors.js";
|
|
3
|
+
/**
|
|
4
|
+
* The confidential faucet's backing is saturated — `inferredTotalSupply` has
|
|
5
|
+
* reached `maxTotalSupply` (`type(uint64).max`), so `mint` / `wrap` revert
|
|
6
|
+
* with `ERC7984TotalSupplyOverflow` until existing CTTT is unwrapped to free
|
|
7
|
+
* capacity. This is a shared, anyone-can-hit ceiling on a public faucet, not a
|
|
8
|
+
* per-caller balance problem.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FaucetSupplyExhaustedError extends TokenOpsSdkError {
|
|
11
|
+
readonly name = "FaucetSupplyExhaustedError";
|
|
12
|
+
readonly context: {
|
|
13
|
+
method: string;
|
|
14
|
+
contractAddress: Address;
|
|
15
|
+
};
|
|
16
|
+
constructor(args: {
|
|
17
|
+
method: string;
|
|
18
|
+
contractAddress: Address;
|
|
19
|
+
cause?: unknown;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { Address, Hex, PublicClient, WalletClient } from "viem";
|
|
2
|
+
import { type RevertNameMapper } from "../core/revert-mapper.js";
|
|
3
|
+
import { type SdkTelemetry } from "../core/telemetry.js";
|
|
4
|
+
import type { FaucetMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* Maps faucet-specific contract error names to typed SDK errors. Runs BEFORE
|
|
7
|
+
* the cross-product default mapper. Covers both tokens (the mapper switches on
|
|
8
|
+
* the decoded error name, not the contract).
|
|
9
|
+
*/
|
|
10
|
+
export declare const faucetProductMapper: RevertNameMapper;
|
|
11
|
+
export interface TestnetFaucetClientConfig {
|
|
12
|
+
/** viem public client for read calls. */
|
|
13
|
+
publicClient: PublicClient;
|
|
14
|
+
/** viem wallet client for the faucet mint write calls. Optional for read-only usage. */
|
|
15
|
+
walletClient?: WalletClient | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Override the `ConfidentialTokenopsTestToken` (CTTT) UUPS proxy address.
|
|
18
|
+
* Falls back to `DEPLOYED_ADDRESSES.testnetFaucet.confidentialTestToken[chainId]`.
|
|
19
|
+
* Required on chains without a registry entry (e.g. local Anvil `31337`,
|
|
20
|
+
* where the SDK's own test fixture deploys the pair at test time).
|
|
21
|
+
*
|
|
22
|
+
* This is the single deployment knob, mirroring `/fhe-disperse`'s singleton
|
|
23
|
+
* `address`. The backing TTT is never supplied separately — it is always the
|
|
24
|
+
* token this CTTT wrapper reports via its own `underlying()` getter (see
|
|
25
|
+
* {@link TestnetFaucetClient.underlyingToken}). A faucet client therefore
|
|
26
|
+
* always operates on our token pair, never an arbitrary consumer-assembled one.
|
|
27
|
+
*/
|
|
28
|
+
address?: Address | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Chain id used to look up default addresses and to enforce the testnet-only
|
|
31
|
+
* guard. Defaults to `publicClient.chain?.id`.
|
|
32
|
+
*/
|
|
33
|
+
chainId?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Optional telemetry sink. Emits a `testnet-faucet.client.init` event on
|
|
36
|
+
* construction and brackets the mint writes with named spans. Defaults to a
|
|
37
|
+
* no-op.
|
|
38
|
+
*/
|
|
39
|
+
telemetry?: SdkTelemetry | undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Typed SDK client for the **testnet-only** TokenOps faucet token pair.
|
|
43
|
+
*
|
|
44
|
+
* Lets any consumer mint test tokens at will on a testnet:
|
|
45
|
+
* - {@link mintConfidential} — open, fully-backed faucet mint on the
|
|
46
|
+
* confidential ERC-7984 wrapper (`ConfidentialTokenopsTestToken`, CTTT).
|
|
47
|
+
* - {@link mintUnderlying} — open mint on the standard ERC-20
|
|
48
|
+
* (`TokenopsTestToken`, TTT).
|
|
49
|
+
*
|
|
50
|
+
* Plus read helpers for confidential / underlying balances and token metadata.
|
|
51
|
+
*
|
|
52
|
+
* **Testnet-only by construction.** The client throws `UnsupportedChainError`
|
|
53
|
+
* on mainnet (and any chain outside {@link TESTNET_FAUCET_SUPPORTED_CHAIN_IDS}).
|
|
54
|
+
* The faucet mints value-less test tokens to anyone — it must never run on a
|
|
55
|
+
* value-bearing network.
|
|
56
|
+
*
|
|
57
|
+
* There is no factory and no deploy step: the client wires to the chain's
|
|
58
|
+
* pre-deployed CTTT proxy (and discovers the TTT backing token from it), exactly
|
|
59
|
+
* like the other deployed-only SDK products.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* // On Sepolia the addresses auto-resolve from DEPLOYED_ADDRESSES.
|
|
63
|
+
* const faucet = new TestnetFaucetClient({ publicClient, walletClient });
|
|
64
|
+
*
|
|
65
|
+
* // Mint 1,000 CTTT (6-decimal units) to myself, fully backed by TTT.
|
|
66
|
+
* const { handle } = await faucet.mintConfidential({ amount: 1_000_000_000n });
|
|
67
|
+
*
|
|
68
|
+
* // Read my (encrypted) confidential balance handle, then user-decrypt it with
|
|
69
|
+
* // your own @zama-fhe/sdk relayer instance.
|
|
70
|
+
* const balanceHandle = await faucet.confidentialBalanceOf();
|
|
71
|
+
*/
|
|
72
|
+
export declare class TestnetFaucetClient {
|
|
73
|
+
#private;
|
|
74
|
+
readonly publicClient: PublicClient;
|
|
75
|
+
readonly walletClient?: WalletClient;
|
|
76
|
+
/** The `ConfidentialTokenopsTestToken` (CTTT) proxy address this client targets. */
|
|
77
|
+
readonly address: Address;
|
|
78
|
+
constructor(config: TestnetFaucetClientConfig);
|
|
79
|
+
/**
|
|
80
|
+
* Resolve the underlying `TokenopsTestToken` (TTT) address.
|
|
81
|
+
*
|
|
82
|
+
* Resolution order: registry entry for the chain → the wrapper's own
|
|
83
|
+
* `underlying()` getter (read once, cached). The wrapper is the authoritative
|
|
84
|
+
* source, so this works even on a local deployment where only the CTTT
|
|
85
|
+
* address was supplied.
|
|
86
|
+
*
|
|
87
|
+
* The registry shortcut is only taken for the canonical (registry) CTTT. If
|
|
88
|
+
* the CTTT `address` was overridden, the registry is skipped and the custom
|
|
89
|
+
* wrapper's own authoritative `underlying()` is read — otherwise a custom
|
|
90
|
+
* CTTT on a registry chain would silently pair with the canonical TTT. The
|
|
91
|
+
* backing token is never consumer-supplied: a faucet client always pairs the
|
|
92
|
+
* CTTT with the TTT that the CTTT itself reports.
|
|
93
|
+
*/
|
|
94
|
+
underlyingToken(): Promise<Address>;
|
|
95
|
+
/**
|
|
96
|
+
* Read the encrypted confidential balance handle for `account` (defaults to
|
|
97
|
+
* the wallet's account).
|
|
98
|
+
*
|
|
99
|
+
* Returns the `euint64` ciphertext handle. The account holds persistent ACL
|
|
100
|
+
* on its own balance, so pass this handle — together with the CTTT contract
|
|
101
|
+
* address ({@link address}) and the account's signer — to the Zama relayer's
|
|
102
|
+
* `userDecrypt` to obtain the plaintext. The SDK is the producer side only;
|
|
103
|
+
* it does not call `userDecrypt`.
|
|
104
|
+
*
|
|
105
|
+
* @returns the `bytes32` balance handle (an {@link EncryptedHandle}). A
|
|
106
|
+
* never-credited account reads back the zero handle.
|
|
107
|
+
*/
|
|
108
|
+
confidentialBalanceOf(account?: Address): Promise<Hex>;
|
|
109
|
+
/**
|
|
110
|
+
* Read the plaintext underlying `TokenopsTestToken` (TTT) balance for
|
|
111
|
+
* `account` (defaults to the wallet's account), in TTT 18-decimal base units.
|
|
112
|
+
*/
|
|
113
|
+
underlyingBalanceOf(account?: Address): Promise<bigint>;
|
|
114
|
+
/**
|
|
115
|
+
* Decimal-conversion rate between underlying and confidential units:
|
|
116
|
+
* `1` CTTT 6-decimal unit is backed by `rate` TTT 18-decimal base units
|
|
117
|
+
* (`10^(18-6) = 10^12`).
|
|
118
|
+
*/
|
|
119
|
+
rate(): Promise<bigint>;
|
|
120
|
+
/** Decimals of the confidential token (CTTT) — `6`. */
|
|
121
|
+
decimals(): Promise<number>;
|
|
122
|
+
/** Decimals of the underlying token (TTT) — `18`. */
|
|
123
|
+
underlyingDecimals(): Promise<number>;
|
|
124
|
+
/**
|
|
125
|
+
* The wrapper's inferred total supply: underlying held in custody divided by
|
|
126
|
+
* `rate`, an upper bound on the confidential total supply. In CTTT 6-decimal
|
|
127
|
+
* units.
|
|
128
|
+
*/
|
|
129
|
+
inferredTotalSupply(): Promise<bigint>;
|
|
130
|
+
/** Max confidential total supply the wrapper supports (`type(uint64).max`). */
|
|
131
|
+
maxTotalSupply(): Promise<bigint>;
|
|
132
|
+
/**
|
|
133
|
+
* Consolidated faucet metadata — both tokens' name/symbol/decimals/address,
|
|
134
|
+
* the conversion `rate`, and the `maxTotalSupply` ceiling — in a single
|
|
135
|
+
* parallel read. Handy for rendering a faucet panel.
|
|
136
|
+
*/
|
|
137
|
+
getMetadata(): Promise<FaucetMetadata>;
|
|
138
|
+
/**
|
|
139
|
+
* Mint confidential test tokens (CTTT) to `to`, fully backed by freshly
|
|
140
|
+
* minted underlying TTT held in custody.
|
|
141
|
+
*
|
|
142
|
+
* **This is the confidential faucet.** Open and permissionless — anyone can
|
|
143
|
+
* mint any `uint64` amount. The amount is PUBLIC (plaintext calldata +
|
|
144
|
+
* `ConfidentialMint` event); only the recipient's aggregated balance and
|
|
145
|
+
* later confidential transfers are private.
|
|
146
|
+
*
|
|
147
|
+
* @returns `{ hash, to, amount, underlyingMinted, handle }` decoded from the
|
|
148
|
+
* `ConfidentialMint` event. To read the recipient's plaintext balance,
|
|
149
|
+
* call {@link confidentialBalanceOf} and user-decrypt it.
|
|
150
|
+
* @throws {InvalidArgumentError} for a zero recipient or out-of-range amount.
|
|
151
|
+
* @throws {FaucetSupplyExhaustedError} if the wrapper's backing ceiling is reached.
|
|
152
|
+
* @throws {ReceiptEventNotFoundError} if no `ConfidentialMint` event is found.
|
|
153
|
+
*/
|
|
154
|
+
mintConfidential(args: MintConfidentialArgs): Promise<MintConfidentialResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Mint standard (non-confidential) ERC-20 test tokens (TTT) to `to`.
|
|
157
|
+
*
|
|
158
|
+
* Open and permissionless. Use this when you want plain TTT — e.g. to then
|
|
159
|
+
* `approve` + `wrap` it into CTTT through the standard ERC-7984 flow.
|
|
160
|
+
*
|
|
161
|
+
* @returns `{ hash, to, amount }`.
|
|
162
|
+
* @throws {InvalidArgumentError} for a zero recipient or out-of-range amount.
|
|
163
|
+
*/
|
|
164
|
+
mintUnderlying(args: MintUnderlyingArgs): Promise<MintUnderlyingResult>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Create a {@link TestnetFaucetClient}. Mirrors viem's `create*` convention.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* const faucet = createTestnetFaucetClient({ publicClient, walletClient });
|
|
171
|
+
* await faucet.mintConfidential({ amount: 1_000_000_000n });
|
|
172
|
+
*/
|
|
173
|
+
export declare function createTestnetFaucetClient(config: TestnetFaucetClientConfig): TestnetFaucetClient;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWENHUPZC_cjs = require('../chunk-WENHUPZC.cjs');
|
|
4
|
+
require('../chunk-KLKI352M.cjs');
|
|
5
|
+
var chunkPUPKNW3R_cjs = require('../chunk-PUPKNW3R.cjs');
|
|
6
|
+
require('../chunk-JK4XMMKM.cjs');
|
|
7
|
+
require('../chunk-VJKZWYYJ.cjs');
|
|
8
|
+
require('../chunk-66IHPTOK.cjs');
|
|
9
|
+
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "FaucetSupplyExhaustedError", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkWENHUPZC_cjs.FaucetSupplyExhaustedError; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "TESTNET_FAUCET_SUPPORTED_CHAIN_IDS", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkWENHUPZC_cjs.TESTNET_FAUCET_SUPPORTED_CHAIN_IDS; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "TestnetFaucetClient", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkWENHUPZC_cjs.TestnetFaucetClient; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "assertTestnetFaucetChain", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkWENHUPZC_cjs.assertTestnetFaucetChain; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "confidentialTokenopsTestTokenAbi", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkWENHUPZC_cjs.confidentialTokenopsTestTokenAbi; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "createTestnetFaucetClient", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkWENHUPZC_cjs.createTestnetFaucetClient; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "isTestnetFaucetChainId", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkWENHUPZC_cjs.isTestnetFaucetChainId; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "tokenopsTestTokenAbi", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkWENHUPZC_cjs.tokenopsTestTokenAbi; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "getConfidentialTestTokenAddress", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return chunkPUPKNW3R_cjs.getConfidentialTestTokenAddress; }
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "getTestTokenAddress", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () { return chunkPUPKNW3R_cjs.getTestTokenAddress; }
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "requireConfidentialTestTokenAddress", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return chunkPUPKNW3R_cjs.requireConfidentialTestTokenAddress; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "requireTestTokenAddress", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkPUPKNW3R_cjs.requireTestTokenAddress; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "AccessDeniedError", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, "ContractRevertError", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "MissingAccountError", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, "MissingClientError", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "NetworkError", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "PausedError", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "ReentrancyError", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, "SigningFailedError", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsContractError; }
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsValidationError; }
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(exports, "TransferFailedError", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(exports, "WalletRejectedError", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
210
|
+
enumerable: true,
|
|
211
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
212
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { TestnetFaucetClient, createTestnetFaucetClient, type TestnetFaucetClientConfig, } from "./faucet.js";
|
|
2
|
+
export { TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, isTestnetFaucetChainId, assertTestnetFaucetChain, } from "./validate.js";
|
|
3
|
+
export type { FaucetMetadata, FaucetTokenMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult, } from "./types.js";
|
|
4
|
+
export { confidentialTokenopsTestTokenAbi, tokenopsTestTokenAbi } from "./abis/index.js";
|
|
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, 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
|
+
export { type PreflightResult } from "../core/preflight.js";
|
|
8
|
+
export { FaucetSupplyExhaustedError } from "./errors.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { TestnetFaucetClient, createTestnetFaucetClient, type TestnetFaucetClientConfig, } from "./faucet.js";
|
|
2
|
+
export { TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, isTestnetFaucetChainId, assertTestnetFaucetChain, } from "./validate.js";
|
|
3
|
+
export type { FaucetMetadata, FaucetTokenMetadata, MintConfidentialArgs, MintConfidentialResult, MintUnderlyingArgs, MintUnderlyingResult, } from "./types.js";
|
|
4
|
+
export { confidentialTokenopsTestTokenAbi, tokenopsTestTokenAbi } from "./abis/index.js";
|
|
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, 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
|
+
export { type PreflightResult } from "../core/preflight.js";
|
|
8
|
+
export { FaucetSupplyExhaustedError } from "./errors.js";
|