@pyratzlabs/react-fhevm-utils 1.0.4 → 1.0.5
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/dist/hooks/useEncryptedTransfer.js +1 -1
- package/dist/types/encryptedABI.d.ts +150 -113
- package/dist/types/encryptedABI.js +432 -99
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export const useEncryptedTransfer = ({ tokenAddress, }) => {
|
|
|
5
5
|
const { perform, isLoading, isFailed, isSuccess, error } = usePerformTransaction({
|
|
6
6
|
abi: encryptedABI,
|
|
7
7
|
address: tokenAddress,
|
|
8
|
-
functionName: "
|
|
8
|
+
functionName: "confidentialTransfer",
|
|
9
9
|
});
|
|
10
10
|
const transfer = (to, handles, inputProof) => {
|
|
11
11
|
if (handles.length === 0)
|
|
@@ -7,6 +7,10 @@ export declare const encryptedABI: readonly [{
|
|
|
7
7
|
readonly internalType: "string";
|
|
8
8
|
readonly name: "symbol_";
|
|
9
9
|
readonly type: "string";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "uint8";
|
|
12
|
+
readonly name: "decimals_";
|
|
13
|
+
readonly type: "uint8";
|
|
10
14
|
}, {
|
|
11
15
|
readonly internalType: "address";
|
|
12
16
|
readonly name: "admin_";
|
|
@@ -127,12 +131,37 @@ export declare const encryptedABI: readonly [{
|
|
|
127
131
|
readonly type: "address";
|
|
128
132
|
}, {
|
|
129
133
|
readonly indexed: false;
|
|
130
|
-
readonly internalType: "
|
|
134
|
+
readonly internalType: "uint256";
|
|
131
135
|
readonly name: "amount";
|
|
132
|
-
readonly type: "
|
|
136
|
+
readonly type: "uint256";
|
|
133
137
|
}];
|
|
134
138
|
readonly name: "Mint";
|
|
135
139
|
readonly type: "event";
|
|
140
|
+
}, {
|
|
141
|
+
readonly anonymous: false;
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly indexed: true;
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly name: "to";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
}, {
|
|
148
|
+
readonly indexed: false;
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly name: "amount";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}, {
|
|
153
|
+
readonly indexed: false;
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "mintId";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}, {
|
|
158
|
+
readonly indexed: false;
|
|
159
|
+
readonly internalType: "bool";
|
|
160
|
+
readonly name: "isRoyalty";
|
|
161
|
+
readonly type: "bool";
|
|
162
|
+
}];
|
|
163
|
+
readonly name: "MintInfo";
|
|
164
|
+
readonly type: "event";
|
|
136
165
|
}, {
|
|
137
166
|
readonly anonymous: false;
|
|
138
167
|
readonly inputs: readonly [{
|
|
@@ -197,12 +226,22 @@ export declare const encryptedABI: readonly [{
|
|
|
197
226
|
readonly type: "address";
|
|
198
227
|
}, {
|
|
199
228
|
readonly indexed: false;
|
|
200
|
-
readonly internalType: "
|
|
201
|
-
readonly name: "
|
|
229
|
+
readonly internalType: "euint256";
|
|
230
|
+
readonly name: "encryptedAmount";
|
|
202
231
|
readonly type: "uint256";
|
|
203
232
|
}];
|
|
204
233
|
readonly name: "TransferInfo";
|
|
205
234
|
readonly type: "event";
|
|
235
|
+
}, {
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "_decimals";
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly internalType: "uint8";
|
|
240
|
+
readonly name: "";
|
|
241
|
+
readonly type: "uint8";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
readonly type: "function";
|
|
206
245
|
}, {
|
|
207
246
|
readonly inputs: readonly [];
|
|
208
247
|
readonly name: "acceptOwnership";
|
|
@@ -221,7 +260,21 @@ export declare const encryptedABI: readonly [{
|
|
|
221
260
|
}];
|
|
222
261
|
readonly name: "allowance";
|
|
223
262
|
readonly outputs: readonly [{
|
|
224
|
-
readonly internalType: "
|
|
263
|
+
readonly internalType: "euint256";
|
|
264
|
+
readonly name: "";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}];
|
|
267
|
+
readonly stateMutability: "view";
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
}, {
|
|
270
|
+
readonly inputs: readonly [{
|
|
271
|
+
readonly internalType: "address";
|
|
272
|
+
readonly name: "account";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}];
|
|
275
|
+
readonly name: "balanceOf";
|
|
276
|
+
readonly outputs: readonly [{
|
|
277
|
+
readonly internalType: "euint256";
|
|
225
278
|
readonly name: "";
|
|
226
279
|
readonly type: "uint256";
|
|
227
280
|
}];
|
|
@@ -233,11 +286,11 @@ export declare const encryptedABI: readonly [{
|
|
|
233
286
|
readonly name: "spender";
|
|
234
287
|
readonly type: "address";
|
|
235
288
|
}, {
|
|
236
|
-
readonly internalType: "
|
|
289
|
+
readonly internalType: "euint256";
|
|
237
290
|
readonly name: "amount";
|
|
238
291
|
readonly type: "uint256";
|
|
239
292
|
}];
|
|
240
|
-
readonly name: "
|
|
293
|
+
readonly name: "confidentialApprove";
|
|
241
294
|
readonly outputs: readonly [{
|
|
242
295
|
readonly internalType: "bool";
|
|
243
296
|
readonly name: "";
|
|
@@ -259,7 +312,7 @@ export declare const encryptedABI: readonly [{
|
|
|
259
312
|
readonly name: "inputProof";
|
|
260
313
|
readonly type: "bytes";
|
|
261
314
|
}];
|
|
262
|
-
readonly name: "
|
|
315
|
+
readonly name: "confidentialApprove";
|
|
263
316
|
readonly outputs: readonly [{
|
|
264
317
|
readonly internalType: "bool";
|
|
265
318
|
readonly name: "";
|
|
@@ -270,48 +323,120 @@ export declare const encryptedABI: readonly [{
|
|
|
270
323
|
}, {
|
|
271
324
|
readonly inputs: readonly [{
|
|
272
325
|
readonly internalType: "address";
|
|
273
|
-
readonly name: "
|
|
326
|
+
readonly name: "to";
|
|
274
327
|
readonly type: "address";
|
|
328
|
+
}, {
|
|
329
|
+
readonly internalType: "einput";
|
|
330
|
+
readonly name: "encryptedAmount";
|
|
331
|
+
readonly type: "bytes32";
|
|
332
|
+
}, {
|
|
333
|
+
readonly internalType: "bytes";
|
|
334
|
+
readonly name: "inputProof";
|
|
335
|
+
readonly type: "bytes";
|
|
275
336
|
}];
|
|
276
|
-
readonly name: "
|
|
337
|
+
readonly name: "confidentialTransfer";
|
|
277
338
|
readonly outputs: readonly [{
|
|
278
|
-
readonly internalType: "
|
|
339
|
+
readonly internalType: "bool";
|
|
279
340
|
readonly name: "";
|
|
280
|
-
readonly type: "
|
|
341
|
+
readonly type: "bool";
|
|
281
342
|
}];
|
|
282
|
-
readonly stateMutability: "
|
|
343
|
+
readonly stateMutability: "nonpayable";
|
|
283
344
|
readonly type: "function";
|
|
284
345
|
}, {
|
|
285
|
-
readonly inputs: readonly [
|
|
286
|
-
|
|
346
|
+
readonly inputs: readonly [{
|
|
347
|
+
readonly internalType: "address";
|
|
348
|
+
readonly name: "to";
|
|
349
|
+
readonly type: "address";
|
|
350
|
+
}, {
|
|
351
|
+
readonly internalType: "euint256";
|
|
352
|
+
readonly name: "amount";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
}];
|
|
355
|
+
readonly name: "confidentialTransfer";
|
|
287
356
|
readonly outputs: readonly [{
|
|
288
|
-
readonly internalType: "
|
|
357
|
+
readonly internalType: "bool";
|
|
289
358
|
readonly name: "";
|
|
290
|
-
readonly type: "
|
|
359
|
+
readonly type: "bool";
|
|
291
360
|
}];
|
|
292
|
-
readonly stateMutability: "
|
|
361
|
+
readonly stateMutability: "nonpayable";
|
|
293
362
|
readonly type: "function";
|
|
294
363
|
}, {
|
|
295
364
|
readonly inputs: readonly [{
|
|
365
|
+
readonly internalType: "address";
|
|
366
|
+
readonly name: "from";
|
|
367
|
+
readonly type: "address";
|
|
368
|
+
}, {
|
|
296
369
|
readonly internalType: "address";
|
|
297
370
|
readonly name: "to";
|
|
298
371
|
readonly type: "address";
|
|
299
372
|
}, {
|
|
300
|
-
readonly internalType: "
|
|
373
|
+
readonly internalType: "euint256";
|
|
301
374
|
readonly name: "amount";
|
|
302
|
-
readonly type: "
|
|
375
|
+
readonly type: "uint256";
|
|
376
|
+
}];
|
|
377
|
+
readonly name: "confidentialTransferFrom";
|
|
378
|
+
readonly outputs: readonly [{
|
|
379
|
+
readonly internalType: "bool";
|
|
380
|
+
readonly name: "";
|
|
381
|
+
readonly type: "bool";
|
|
303
382
|
}];
|
|
304
|
-
readonly name: "mint";
|
|
305
|
-
readonly outputs: readonly [];
|
|
306
383
|
readonly stateMutability: "nonpayable";
|
|
307
384
|
readonly type: "function";
|
|
308
385
|
}, {
|
|
309
386
|
readonly inputs: readonly [{
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
readonly name: "from";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}, {
|
|
310
391
|
readonly internalType: "address";
|
|
311
392
|
readonly name: "to";
|
|
312
393
|
readonly type: "address";
|
|
394
|
+
}, {
|
|
395
|
+
readonly internalType: "einput";
|
|
396
|
+
readonly name: "encryptedAmount";
|
|
397
|
+
readonly type: "bytes32";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "bytes";
|
|
400
|
+
readonly name: "inputProof";
|
|
401
|
+
readonly type: "bytes";
|
|
313
402
|
}];
|
|
314
|
-
readonly name: "
|
|
403
|
+
readonly name: "confidentialTransferFrom";
|
|
404
|
+
readonly outputs: readonly [{
|
|
405
|
+
readonly internalType: "bool";
|
|
406
|
+
readonly name: "";
|
|
407
|
+
readonly type: "bool";
|
|
408
|
+
}];
|
|
409
|
+
readonly stateMutability: "nonpayable";
|
|
410
|
+
readonly type: "function";
|
|
411
|
+
}, {
|
|
412
|
+
readonly inputs: readonly [];
|
|
413
|
+
readonly name: "decimals";
|
|
414
|
+
readonly outputs: readonly [{
|
|
415
|
+
readonly internalType: "uint8";
|
|
416
|
+
readonly name: "";
|
|
417
|
+
readonly type: "uint8";
|
|
418
|
+
}];
|
|
419
|
+
readonly stateMutability: "view";
|
|
420
|
+
readonly type: "function";
|
|
421
|
+
}, {
|
|
422
|
+
readonly inputs: readonly [{
|
|
423
|
+
readonly internalType: "address";
|
|
424
|
+
readonly name: "to";
|
|
425
|
+
readonly type: "address";
|
|
426
|
+
}, {
|
|
427
|
+
readonly internalType: "uint256";
|
|
428
|
+
readonly name: "amount";
|
|
429
|
+
readonly type: "uint256";
|
|
430
|
+
}, {
|
|
431
|
+
readonly internalType: "uint256";
|
|
432
|
+
readonly name: "mintId";
|
|
433
|
+
readonly type: "uint256";
|
|
434
|
+
}, {
|
|
435
|
+
readonly internalType: "bool";
|
|
436
|
+
readonly name: "isRoyalty";
|
|
437
|
+
readonly type: "bool";
|
|
438
|
+
}];
|
|
439
|
+
readonly name: "mint";
|
|
315
440
|
readonly outputs: readonly [];
|
|
316
441
|
readonly stateMutability: "nonpayable";
|
|
317
442
|
readonly type: "function";
|
|
@@ -365,99 +490,11 @@ export declare const encryptedABI: readonly [{
|
|
|
365
490
|
readonly inputs: readonly [];
|
|
366
491
|
readonly name: "totalSupply";
|
|
367
492
|
readonly outputs: readonly [{
|
|
368
|
-
readonly internalType: "
|
|
369
|
-
readonly name: "";
|
|
370
|
-
readonly type: "uint64";
|
|
371
|
-
}];
|
|
372
|
-
readonly stateMutability: "view";
|
|
373
|
-
readonly type: "function";
|
|
374
|
-
}, {
|
|
375
|
-
readonly inputs: readonly [{
|
|
376
|
-
readonly internalType: "address";
|
|
377
|
-
readonly name: "to";
|
|
378
|
-
readonly type: "address";
|
|
379
|
-
}, {
|
|
380
|
-
readonly internalType: "einput";
|
|
381
|
-
readonly name: "encryptedAmount";
|
|
382
|
-
readonly type: "bytes32";
|
|
383
|
-
}, {
|
|
384
|
-
readonly internalType: "bytes";
|
|
385
|
-
readonly name: "inputProof";
|
|
386
|
-
readonly type: "bytes";
|
|
387
|
-
}];
|
|
388
|
-
readonly name: "transfer";
|
|
389
|
-
readonly outputs: readonly [{
|
|
390
|
-
readonly internalType: "bool";
|
|
391
|
-
readonly name: "";
|
|
392
|
-
readonly type: "bool";
|
|
393
|
-
}];
|
|
394
|
-
readonly stateMutability: "nonpayable";
|
|
395
|
-
readonly type: "function";
|
|
396
|
-
}, {
|
|
397
|
-
readonly inputs: readonly [{
|
|
398
|
-
readonly internalType: "address";
|
|
399
|
-
readonly name: "to";
|
|
400
|
-
readonly type: "address";
|
|
401
|
-
}, {
|
|
402
|
-
readonly internalType: "euint64";
|
|
403
|
-
readonly name: "amount";
|
|
404
|
-
readonly type: "uint256";
|
|
405
|
-
}];
|
|
406
|
-
readonly name: "transfer";
|
|
407
|
-
readonly outputs: readonly [{
|
|
408
|
-
readonly internalType: "bool";
|
|
493
|
+
readonly internalType: "uint256";
|
|
409
494
|
readonly name: "";
|
|
410
|
-
readonly type: "bool";
|
|
411
|
-
}];
|
|
412
|
-
readonly stateMutability: "nonpayable";
|
|
413
|
-
readonly type: "function";
|
|
414
|
-
}, {
|
|
415
|
-
readonly inputs: readonly [{
|
|
416
|
-
readonly internalType: "address";
|
|
417
|
-
readonly name: "from";
|
|
418
|
-
readonly type: "address";
|
|
419
|
-
}, {
|
|
420
|
-
readonly internalType: "address";
|
|
421
|
-
readonly name: "to";
|
|
422
|
-
readonly type: "address";
|
|
423
|
-
}, {
|
|
424
|
-
readonly internalType: "euint64";
|
|
425
|
-
readonly name: "amount";
|
|
426
495
|
readonly type: "uint256";
|
|
427
496
|
}];
|
|
428
|
-
readonly
|
|
429
|
-
readonly outputs: readonly [{
|
|
430
|
-
readonly internalType: "bool";
|
|
431
|
-
readonly name: "";
|
|
432
|
-
readonly type: "bool";
|
|
433
|
-
}];
|
|
434
|
-
readonly stateMutability: "nonpayable";
|
|
435
|
-
readonly type: "function";
|
|
436
|
-
}, {
|
|
437
|
-
readonly inputs: readonly [{
|
|
438
|
-
readonly internalType: "address";
|
|
439
|
-
readonly name: "from";
|
|
440
|
-
readonly type: "address";
|
|
441
|
-
}, {
|
|
442
|
-
readonly internalType: "address";
|
|
443
|
-
readonly name: "to";
|
|
444
|
-
readonly type: "address";
|
|
445
|
-
}, {
|
|
446
|
-
readonly internalType: "einput";
|
|
447
|
-
readonly name: "encryptedAmount";
|
|
448
|
-
readonly type: "bytes32";
|
|
449
|
-
}, {
|
|
450
|
-
readonly internalType: "bytes";
|
|
451
|
-
readonly name: "inputProof";
|
|
452
|
-
readonly type: "bytes";
|
|
453
|
-
}];
|
|
454
|
-
readonly name: "transferFrom";
|
|
455
|
-
readonly outputs: readonly [{
|
|
456
|
-
readonly internalType: "bool";
|
|
457
|
-
readonly name: "";
|
|
458
|
-
readonly type: "bool";
|
|
459
|
-
}];
|
|
460
|
-
readonly stateMutability: "nonpayable";
|
|
497
|
+
readonly stateMutability: "view";
|
|
461
498
|
readonly type: "function";
|
|
462
499
|
}, {
|
|
463
500
|
readonly inputs: readonly [{
|
|
@@ -1,62 +1,143 @@
|
|
|
1
1
|
export const encryptedABI = [
|
|
2
2
|
{
|
|
3
3
|
inputs: [
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
{
|
|
5
|
+
internalType: "string",
|
|
6
|
+
name: "name_",
|
|
7
|
+
type: "string",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
internalType: "string",
|
|
11
|
+
name: "symbol_",
|
|
12
|
+
type: "string",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
internalType: "uint8",
|
|
16
|
+
name: "decimals_",
|
|
17
|
+
type: "uint8",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "admin_",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
7
24
|
],
|
|
8
25
|
stateMutability: "nonpayable",
|
|
9
26
|
type: "constructor",
|
|
10
27
|
},
|
|
11
28
|
{
|
|
12
29
|
inputs: [
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
{
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "spender",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
name: "allowance",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
internalType: "uint256",
|
|
42
|
+
name: "needed",
|
|
43
|
+
type: "uint256",
|
|
44
|
+
},
|
|
16
45
|
],
|
|
17
46
|
name: "ERC20InsufficientAllowance",
|
|
18
47
|
type: "error",
|
|
19
48
|
},
|
|
20
49
|
{
|
|
21
50
|
inputs: [
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
51
|
+
{
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "sender",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "balance",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "needed",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
25
66
|
],
|
|
26
67
|
name: "ERC20InsufficientBalance",
|
|
27
68
|
type: "error",
|
|
28
69
|
},
|
|
29
70
|
{
|
|
30
|
-
inputs: [
|
|
71
|
+
inputs: [
|
|
72
|
+
{
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "approver",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
31
78
|
name: "ERC20InvalidApprover",
|
|
32
79
|
type: "error",
|
|
33
80
|
},
|
|
34
81
|
{
|
|
35
|
-
inputs: [
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "receiver",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
36
89
|
name: "ERC20InvalidReceiver",
|
|
37
90
|
type: "error",
|
|
38
91
|
},
|
|
39
92
|
{
|
|
40
|
-
inputs: [
|
|
93
|
+
inputs: [
|
|
94
|
+
{
|
|
95
|
+
internalType: "address",
|
|
96
|
+
name: "sender",
|
|
97
|
+
type: "address",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
41
100
|
name: "ERC20InvalidSender",
|
|
42
101
|
type: "error",
|
|
43
102
|
},
|
|
44
103
|
{
|
|
45
|
-
inputs: [
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "spender",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
46
111
|
name: "ERC20InvalidSpender",
|
|
47
112
|
type: "error",
|
|
48
113
|
},
|
|
49
114
|
{
|
|
50
|
-
inputs: [
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "owner",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
51
122
|
name: "OwnableInvalidOwner",
|
|
52
123
|
type: "error",
|
|
53
124
|
},
|
|
54
125
|
{
|
|
55
|
-
inputs: [
|
|
126
|
+
inputs: [
|
|
127
|
+
{
|
|
128
|
+
internalType: "address",
|
|
129
|
+
name: "account",
|
|
130
|
+
type: "address",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
56
133
|
name: "OwnableUnauthorizedAccount",
|
|
57
134
|
type: "error",
|
|
58
135
|
},
|
|
59
|
-
{
|
|
136
|
+
{
|
|
137
|
+
inputs: [],
|
|
138
|
+
name: "TFHESenderNotAllowed",
|
|
139
|
+
type: "error",
|
|
140
|
+
},
|
|
60
141
|
{
|
|
61
142
|
anonymous: false,
|
|
62
143
|
inputs: [
|
|
@@ -85,17 +166,53 @@ export const encryptedABI = [
|
|
|
85
166
|
{
|
|
86
167
|
anonymous: false,
|
|
87
168
|
inputs: [
|
|
88
|
-
{
|
|
169
|
+
{
|
|
170
|
+
indexed: true,
|
|
171
|
+
internalType: "address",
|
|
172
|
+
name: "to",
|
|
173
|
+
type: "address",
|
|
174
|
+
},
|
|
89
175
|
{
|
|
90
176
|
indexed: false,
|
|
91
|
-
internalType: "
|
|
177
|
+
internalType: "uint256",
|
|
92
178
|
name: "amount",
|
|
93
|
-
type: "
|
|
179
|
+
type: "uint256",
|
|
94
180
|
},
|
|
95
181
|
],
|
|
96
182
|
name: "Mint",
|
|
97
183
|
type: "event",
|
|
98
184
|
},
|
|
185
|
+
{
|
|
186
|
+
anonymous: false,
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
indexed: true,
|
|
190
|
+
internalType: "address",
|
|
191
|
+
name: "to",
|
|
192
|
+
type: "address",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
indexed: false,
|
|
196
|
+
internalType: "uint256",
|
|
197
|
+
name: "amount",
|
|
198
|
+
type: "uint256",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
indexed: false,
|
|
202
|
+
internalType: "uint256",
|
|
203
|
+
name: "mintId",
|
|
204
|
+
type: "uint256",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
indexed: false,
|
|
208
|
+
internalType: "bool",
|
|
209
|
+
name: "isRoyalty",
|
|
210
|
+
type: "bool",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
name: "MintInfo",
|
|
214
|
+
type: "event",
|
|
215
|
+
},
|
|
99
216
|
{
|
|
100
217
|
anonymous: false,
|
|
101
218
|
inputs: [
|
|
@@ -137,8 +254,18 @@ export const encryptedABI = [
|
|
|
137
254
|
{
|
|
138
255
|
anonymous: false,
|
|
139
256
|
inputs: [
|
|
140
|
-
{
|
|
141
|
-
|
|
257
|
+
{
|
|
258
|
+
indexed: true,
|
|
259
|
+
internalType: "address",
|
|
260
|
+
name: "from",
|
|
261
|
+
type: "address",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
indexed: true,
|
|
265
|
+
internalType: "address",
|
|
266
|
+
name: "to",
|
|
267
|
+
type: "address",
|
|
268
|
+
},
|
|
142
269
|
{
|
|
143
270
|
indexed: false,
|
|
144
271
|
internalType: "uint256",
|
|
@@ -152,18 +279,41 @@ export const encryptedABI = [
|
|
|
152
279
|
{
|
|
153
280
|
anonymous: false,
|
|
154
281
|
inputs: [
|
|
155
|
-
{
|
|
156
|
-
|
|
282
|
+
{
|
|
283
|
+
indexed: true,
|
|
284
|
+
internalType: "address",
|
|
285
|
+
name: "from",
|
|
286
|
+
type: "address",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
indexed: true,
|
|
290
|
+
internalType: "address",
|
|
291
|
+
name: "to",
|
|
292
|
+
type: "address",
|
|
293
|
+
},
|
|
157
294
|
{
|
|
158
295
|
indexed: false,
|
|
159
|
-
internalType: "
|
|
160
|
-
name: "
|
|
296
|
+
internalType: "euint256",
|
|
297
|
+
name: "encryptedAmount",
|
|
161
298
|
type: "uint256",
|
|
162
299
|
},
|
|
163
300
|
],
|
|
164
301
|
name: "TransferInfo",
|
|
165
302
|
type: "event",
|
|
166
303
|
},
|
|
304
|
+
{
|
|
305
|
+
inputs: [],
|
|
306
|
+
name: "_decimals",
|
|
307
|
+
outputs: [
|
|
308
|
+
{
|
|
309
|
+
internalType: "uint8",
|
|
310
|
+
name: "",
|
|
311
|
+
type: "uint8",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
stateMutability: "view",
|
|
315
|
+
type: "function",
|
|
316
|
+
},
|
|
167
317
|
{
|
|
168
318
|
inputs: [],
|
|
169
319
|
name: "acceptOwnership",
|
|
@@ -173,62 +323,253 @@ export const encryptedABI = [
|
|
|
173
323
|
},
|
|
174
324
|
{
|
|
175
325
|
inputs: [
|
|
176
|
-
{
|
|
177
|
-
|
|
326
|
+
{
|
|
327
|
+
internalType: "address",
|
|
328
|
+
name: "owner",
|
|
329
|
+
type: "address",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
internalType: "address",
|
|
333
|
+
name: "spender",
|
|
334
|
+
type: "address",
|
|
335
|
+
},
|
|
178
336
|
],
|
|
179
337
|
name: "allowance",
|
|
180
|
-
outputs: [
|
|
338
|
+
outputs: [
|
|
339
|
+
{
|
|
340
|
+
internalType: "euint256",
|
|
341
|
+
name: "",
|
|
342
|
+
type: "uint256",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
181
345
|
stateMutability: "view",
|
|
182
346
|
type: "function",
|
|
183
347
|
},
|
|
184
348
|
{
|
|
185
349
|
inputs: [
|
|
186
|
-
{
|
|
187
|
-
|
|
350
|
+
{
|
|
351
|
+
internalType: "address",
|
|
352
|
+
name: "account",
|
|
353
|
+
type: "address",
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
name: "balanceOf",
|
|
357
|
+
outputs: [
|
|
358
|
+
{
|
|
359
|
+
internalType: "euint256",
|
|
360
|
+
name: "",
|
|
361
|
+
type: "uint256",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
stateMutability: "view",
|
|
365
|
+
type: "function",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
inputs: [
|
|
369
|
+
{
|
|
370
|
+
internalType: "address",
|
|
371
|
+
name: "spender",
|
|
372
|
+
type: "address",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
internalType: "euint256",
|
|
376
|
+
name: "amount",
|
|
377
|
+
type: "uint256",
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
name: "confidentialApprove",
|
|
381
|
+
outputs: [
|
|
382
|
+
{
|
|
383
|
+
internalType: "bool",
|
|
384
|
+
name: "",
|
|
385
|
+
type: "bool",
|
|
386
|
+
},
|
|
188
387
|
],
|
|
189
|
-
name: "approve",
|
|
190
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
191
388
|
stateMutability: "nonpayable",
|
|
192
389
|
type: "function",
|
|
193
390
|
},
|
|
194
391
|
{
|
|
195
392
|
inputs: [
|
|
196
|
-
{
|
|
197
|
-
|
|
198
|
-
|
|
393
|
+
{
|
|
394
|
+
internalType: "address",
|
|
395
|
+
name: "spender",
|
|
396
|
+
type: "address",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
internalType: "einput",
|
|
400
|
+
name: "encryptedAmount",
|
|
401
|
+
type: "bytes32",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
internalType: "bytes",
|
|
405
|
+
name: "inputProof",
|
|
406
|
+
type: "bytes",
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
name: "confidentialApprove",
|
|
410
|
+
outputs: [
|
|
411
|
+
{
|
|
412
|
+
internalType: "bool",
|
|
413
|
+
name: "",
|
|
414
|
+
type: "bool",
|
|
415
|
+
},
|
|
199
416
|
],
|
|
200
|
-
name: "approve",
|
|
201
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
202
417
|
stateMutability: "nonpayable",
|
|
203
418
|
type: "function",
|
|
204
419
|
},
|
|
205
420
|
{
|
|
206
|
-
inputs: [
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
421
|
+
inputs: [
|
|
422
|
+
{
|
|
423
|
+
internalType: "address",
|
|
424
|
+
name: "to",
|
|
425
|
+
type: "address",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
internalType: "einput",
|
|
429
|
+
name: "encryptedAmount",
|
|
430
|
+
type: "bytes32",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
internalType: "bytes",
|
|
434
|
+
name: "inputProof",
|
|
435
|
+
type: "bytes",
|
|
436
|
+
},
|
|
437
|
+
],
|
|
438
|
+
name: "confidentialTransfer",
|
|
439
|
+
outputs: [
|
|
440
|
+
{
|
|
441
|
+
internalType: "bool",
|
|
442
|
+
name: "",
|
|
443
|
+
type: "bool",
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
stateMutability: "nonpayable",
|
|
210
447
|
type: "function",
|
|
211
448
|
},
|
|
212
449
|
{
|
|
213
|
-
inputs: [
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
450
|
+
inputs: [
|
|
451
|
+
{
|
|
452
|
+
internalType: "address",
|
|
453
|
+
name: "to",
|
|
454
|
+
type: "address",
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
internalType: "euint256",
|
|
458
|
+
name: "amount",
|
|
459
|
+
type: "uint256",
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
name: "confidentialTransfer",
|
|
463
|
+
outputs: [
|
|
464
|
+
{
|
|
465
|
+
internalType: "bool",
|
|
466
|
+
name: "",
|
|
467
|
+
type: "bool",
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
stateMutability: "nonpayable",
|
|
217
471
|
type: "function",
|
|
218
472
|
},
|
|
219
473
|
{
|
|
220
474
|
inputs: [
|
|
221
|
-
{
|
|
222
|
-
|
|
475
|
+
{
|
|
476
|
+
internalType: "address",
|
|
477
|
+
name: "from",
|
|
478
|
+
type: "address",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
internalType: "address",
|
|
482
|
+
name: "to",
|
|
483
|
+
type: "address",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
internalType: "euint256",
|
|
487
|
+
name: "amount",
|
|
488
|
+
type: "uint256",
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
name: "confidentialTransferFrom",
|
|
492
|
+
outputs: [
|
|
493
|
+
{
|
|
494
|
+
internalType: "bool",
|
|
495
|
+
name: "",
|
|
496
|
+
type: "bool",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
stateMutability: "nonpayable",
|
|
500
|
+
type: "function",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
inputs: [
|
|
504
|
+
{
|
|
505
|
+
internalType: "address",
|
|
506
|
+
name: "from",
|
|
507
|
+
type: "address",
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
internalType: "address",
|
|
511
|
+
name: "to",
|
|
512
|
+
type: "address",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
internalType: "einput",
|
|
516
|
+
name: "encryptedAmount",
|
|
517
|
+
type: "bytes32",
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
internalType: "bytes",
|
|
521
|
+
name: "inputProof",
|
|
522
|
+
type: "bytes",
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
name: "confidentialTransferFrom",
|
|
526
|
+
outputs: [
|
|
527
|
+
{
|
|
528
|
+
internalType: "bool",
|
|
529
|
+
name: "",
|
|
530
|
+
type: "bool",
|
|
531
|
+
},
|
|
223
532
|
],
|
|
224
|
-
name: "mint",
|
|
225
|
-
outputs: [],
|
|
226
533
|
stateMutability: "nonpayable",
|
|
227
534
|
type: "function",
|
|
228
535
|
},
|
|
229
536
|
{
|
|
230
|
-
inputs: [
|
|
231
|
-
name: "
|
|
537
|
+
inputs: [],
|
|
538
|
+
name: "decimals",
|
|
539
|
+
outputs: [
|
|
540
|
+
{
|
|
541
|
+
internalType: "uint8",
|
|
542
|
+
name: "",
|
|
543
|
+
type: "uint8",
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
stateMutability: "view",
|
|
547
|
+
type: "function",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
inputs: [
|
|
551
|
+
{
|
|
552
|
+
internalType: "address",
|
|
553
|
+
name: "to",
|
|
554
|
+
type: "address",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
internalType: "uint256",
|
|
558
|
+
name: "amount",
|
|
559
|
+
type: "uint256",
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
internalType: "uint256",
|
|
563
|
+
name: "mintId",
|
|
564
|
+
type: "uint256",
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
internalType: "bool",
|
|
568
|
+
name: "isRoyalty",
|
|
569
|
+
type: "bool",
|
|
570
|
+
},
|
|
571
|
+
],
|
|
572
|
+
name: "mint",
|
|
232
573
|
outputs: [],
|
|
233
574
|
stateMutability: "nonpayable",
|
|
234
575
|
type: "function",
|
|
@@ -236,21 +577,39 @@ export const encryptedABI = [
|
|
|
236
577
|
{
|
|
237
578
|
inputs: [],
|
|
238
579
|
name: "name",
|
|
239
|
-
outputs: [
|
|
580
|
+
outputs: [
|
|
581
|
+
{
|
|
582
|
+
internalType: "string",
|
|
583
|
+
name: "",
|
|
584
|
+
type: "string",
|
|
585
|
+
},
|
|
586
|
+
],
|
|
240
587
|
stateMutability: "view",
|
|
241
588
|
type: "function",
|
|
242
589
|
},
|
|
243
590
|
{
|
|
244
591
|
inputs: [],
|
|
245
592
|
name: "owner",
|
|
246
|
-
outputs: [
|
|
593
|
+
outputs: [
|
|
594
|
+
{
|
|
595
|
+
internalType: "address",
|
|
596
|
+
name: "",
|
|
597
|
+
type: "address",
|
|
598
|
+
},
|
|
599
|
+
],
|
|
247
600
|
stateMutability: "view",
|
|
248
601
|
type: "function",
|
|
249
602
|
},
|
|
250
603
|
{
|
|
251
604
|
inputs: [],
|
|
252
605
|
name: "pendingOwner",
|
|
253
|
-
outputs: [
|
|
606
|
+
outputs: [
|
|
607
|
+
{
|
|
608
|
+
internalType: "address",
|
|
609
|
+
name: "",
|
|
610
|
+
type: "address",
|
|
611
|
+
},
|
|
612
|
+
],
|
|
254
613
|
stateMutability: "view",
|
|
255
614
|
type: "function",
|
|
256
615
|
},
|
|
@@ -264,63 +623,37 @@ export const encryptedABI = [
|
|
|
264
623
|
{
|
|
265
624
|
inputs: [],
|
|
266
625
|
name: "symbol",
|
|
267
|
-
outputs: [
|
|
626
|
+
outputs: [
|
|
627
|
+
{
|
|
628
|
+
internalType: "string",
|
|
629
|
+
name: "",
|
|
630
|
+
type: "string",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
268
633
|
stateMutability: "view",
|
|
269
634
|
type: "function",
|
|
270
635
|
},
|
|
271
636
|
{
|
|
272
637
|
inputs: [],
|
|
273
638
|
name: "totalSupply",
|
|
274
|
-
outputs: [
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
{ internalType: "address", name: "to", type: "address" },
|
|
281
|
-
{ internalType: "einput", name: "encryptedAmount", type: "bytes32" },
|
|
282
|
-
{ internalType: "bytes", name: "inputProof", type: "bytes" },
|
|
283
|
-
],
|
|
284
|
-
name: "transfer",
|
|
285
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
286
|
-
stateMutability: "nonpayable",
|
|
287
|
-
type: "function",
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
inputs: [
|
|
291
|
-
{ internalType: "address", name: "to", type: "address" },
|
|
292
|
-
{ internalType: "euint64", name: "amount", type: "uint256" },
|
|
293
|
-
],
|
|
294
|
-
name: "transfer",
|
|
295
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
296
|
-
stateMutability: "nonpayable",
|
|
297
|
-
type: "function",
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
inputs: [
|
|
301
|
-
{ internalType: "address", name: "from", type: "address" },
|
|
302
|
-
{ internalType: "address", name: "to", type: "address" },
|
|
303
|
-
{ internalType: "euint64", name: "amount", type: "uint256" },
|
|
639
|
+
outputs: [
|
|
640
|
+
{
|
|
641
|
+
internalType: "uint256",
|
|
642
|
+
name: "",
|
|
643
|
+
type: "uint256",
|
|
644
|
+
},
|
|
304
645
|
],
|
|
305
|
-
|
|
306
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
307
|
-
stateMutability: "nonpayable",
|
|
646
|
+
stateMutability: "view",
|
|
308
647
|
type: "function",
|
|
309
648
|
},
|
|
310
649
|
{
|
|
311
650
|
inputs: [
|
|
312
|
-
{
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
651
|
+
{
|
|
652
|
+
internalType: "address",
|
|
653
|
+
name: "newOwner",
|
|
654
|
+
type: "address",
|
|
655
|
+
},
|
|
316
656
|
],
|
|
317
|
-
name: "transferFrom",
|
|
318
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
319
|
-
stateMutability: "nonpayable",
|
|
320
|
-
type: "function",
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
324
657
|
name: "transferOwnership",
|
|
325
658
|
outputs: [],
|
|
326
659
|
stateMutability: "nonpayable",
|