@skalenetwork/privacy-sdk 0.1.0-develop.0 → 0.1.0-develop.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/dist/actions/index.cjs +1672 -1572
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.js +1 -1
- package/dist/chunk-D3OIZD5L.js +2953 -0
- package/dist/chunk-D3OIZD5L.js.map +1 -0
- package/dist/index.cjs +1672 -1572
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -10
- package/dist/index.d.ts +86 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-YEII26VS.js +0 -2853
- package/dist/chunk-YEII26VS.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -45,6 +45,10 @@ declare class ConfidentialWrapper extends ConfidentialToken {
|
|
|
45
45
|
|
|
46
46
|
declare const confidentialWrapperAbi: readonly [{
|
|
47
47
|
readonly inputs: readonly [{
|
|
48
|
+
readonly internalType: "bool";
|
|
49
|
+
readonly name: "proxyMode";
|
|
50
|
+
readonly type: "bool";
|
|
51
|
+
}, {
|
|
48
52
|
readonly internalType: "contract IERC20Metadata";
|
|
49
53
|
readonly name: "underlyingToken";
|
|
50
54
|
readonly type: "address";
|
|
@@ -463,6 +467,10 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
463
467
|
}];
|
|
464
468
|
readonly name: "InvalidDataOffset";
|
|
465
469
|
readonly type: "error";
|
|
470
|
+
}, {
|
|
471
|
+
readonly inputs: readonly [];
|
|
472
|
+
readonly name: "InvalidInitialization";
|
|
473
|
+
readonly type: "error";
|
|
466
474
|
}, {
|
|
467
475
|
readonly inputs: readonly [];
|
|
468
476
|
readonly name: "InvalidPublicKey";
|
|
@@ -485,7 +493,7 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
485
493
|
readonly type: "error";
|
|
486
494
|
}, {
|
|
487
495
|
readonly inputs: readonly [];
|
|
488
|
-
readonly name: "
|
|
496
|
+
readonly name: "InvalidSaltForTransactionValue";
|
|
489
497
|
readonly type: "error";
|
|
490
498
|
}, {
|
|
491
499
|
readonly inputs: readonly [];
|
|
@@ -519,6 +527,10 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
519
527
|
}];
|
|
520
528
|
readonly name: "NoViewerRegisteredForHolder";
|
|
521
529
|
readonly type: "error";
|
|
530
|
+
}, {
|
|
531
|
+
readonly inputs: readonly [];
|
|
532
|
+
readonly name: "NotInitializing";
|
|
533
|
+
readonly type: "error";
|
|
522
534
|
}, {
|
|
523
535
|
readonly inputs: readonly [{
|
|
524
536
|
readonly internalType: "address";
|
|
@@ -547,14 +559,6 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
547
559
|
}];
|
|
548
560
|
readonly name: "SafeERC20FailedOperation";
|
|
549
561
|
readonly type: "error";
|
|
550
|
-
}, {
|
|
551
|
-
readonly inputs: readonly [{
|
|
552
|
-
readonly internalType: "string";
|
|
553
|
-
readonly name: "str";
|
|
554
|
-
readonly type: "string";
|
|
555
|
-
}];
|
|
556
|
-
readonly name: "StringTooLong";
|
|
557
|
-
readonly type: "error";
|
|
558
562
|
}, {
|
|
559
563
|
readonly inputs: readonly [{
|
|
560
564
|
readonly internalType: "uint256";
|
|
@@ -599,6 +603,10 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
599
603
|
readonly inputs: readonly [];
|
|
600
604
|
readonly name: "ValueWasNotEncryptedCorrectly";
|
|
601
605
|
readonly type: "error";
|
|
606
|
+
}, {
|
|
607
|
+
readonly inputs: readonly [];
|
|
608
|
+
readonly name: "WrongInitializer";
|
|
609
|
+
readonly type: "error";
|
|
602
610
|
}, {
|
|
603
611
|
readonly inputs: readonly [];
|
|
604
612
|
readonly name: "WrongPlaintextFormat";
|
|
@@ -881,6 +889,16 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
881
889
|
}];
|
|
882
890
|
readonly name: "HistoricViewTransferIdRevoked";
|
|
883
891
|
readonly type: "event";
|
|
892
|
+
}, {
|
|
893
|
+
readonly anonymous: false;
|
|
894
|
+
readonly inputs: readonly [{
|
|
895
|
+
readonly indexed: false;
|
|
896
|
+
readonly internalType: "uint64";
|
|
897
|
+
readonly name: "version";
|
|
898
|
+
readonly type: "uint64";
|
|
899
|
+
}];
|
|
900
|
+
readonly name: "Initialized";
|
|
901
|
+
readonly type: "event";
|
|
884
902
|
}, {
|
|
885
903
|
readonly anonymous: false;
|
|
886
904
|
readonly inputs: readonly [{
|
|
@@ -1370,6 +1388,24 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
1370
1388
|
}];
|
|
1371
1389
|
readonly stateMutability: "view";
|
|
1372
1390
|
readonly type: "function";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly inputs: readonly [{
|
|
1393
|
+
readonly internalType: "address";
|
|
1394
|
+
readonly name: "holder";
|
|
1395
|
+
readonly type: "address";
|
|
1396
|
+
}, {
|
|
1397
|
+
readonly internalType: "uint256";
|
|
1398
|
+
readonly name: "value";
|
|
1399
|
+
readonly type: "uint256";
|
|
1400
|
+
}];
|
|
1401
|
+
readonly name: "encryptValue";
|
|
1402
|
+
readonly outputs: readonly [{
|
|
1403
|
+
readonly internalType: "bytes";
|
|
1404
|
+
readonly name: "encryptedValue";
|
|
1405
|
+
readonly type: "bytes";
|
|
1406
|
+
}];
|
|
1407
|
+
readonly stateMutability: "view";
|
|
1408
|
+
readonly type: "function";
|
|
1373
1409
|
}, {
|
|
1374
1410
|
readonly inputs: readonly [{
|
|
1375
1411
|
readonly internalType: "address";
|
|
@@ -1424,7 +1460,7 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
1424
1460
|
}];
|
|
1425
1461
|
readonly name: "encryptedReceiveWithAuthorization";
|
|
1426
1462
|
readonly outputs: readonly [];
|
|
1427
|
-
readonly stateMutability: "
|
|
1463
|
+
readonly stateMutability: "payable";
|
|
1428
1464
|
readonly type: "function";
|
|
1429
1465
|
}, {
|
|
1430
1466
|
readonly inputs: readonly [{
|
|
@@ -1524,6 +1560,46 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
1524
1560
|
}];
|
|
1525
1561
|
readonly stateMutability: "view";
|
|
1526
1562
|
readonly type: "function";
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly inputs: readonly [{
|
|
1565
|
+
readonly internalType: "string";
|
|
1566
|
+
readonly name: "";
|
|
1567
|
+
readonly type: "string";
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly internalType: "string";
|
|
1570
|
+
readonly name: "";
|
|
1571
|
+
readonly type: "string";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly internalType: "string";
|
|
1574
|
+
readonly name: "";
|
|
1575
|
+
readonly type: "string";
|
|
1576
|
+
}, {
|
|
1577
|
+
readonly internalType: "address";
|
|
1578
|
+
readonly name: "";
|
|
1579
|
+
readonly type: "address";
|
|
1580
|
+
}];
|
|
1581
|
+
readonly name: "initialize";
|
|
1582
|
+
readonly outputs: readonly [];
|
|
1583
|
+
readonly stateMutability: "pure";
|
|
1584
|
+
readonly type: "function";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly inputs: readonly [{
|
|
1587
|
+
readonly internalType: "contract IERC20Metadata";
|
|
1588
|
+
readonly name: "underlyingToken";
|
|
1589
|
+
readonly type: "address";
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly internalType: "string";
|
|
1592
|
+
readonly name: "version_";
|
|
1593
|
+
readonly type: "string";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly internalType: "address";
|
|
1596
|
+
readonly name: "initialAuthority";
|
|
1597
|
+
readonly type: "address";
|
|
1598
|
+
}];
|
|
1599
|
+
readonly name: "initialize";
|
|
1600
|
+
readonly outputs: readonly [];
|
|
1601
|
+
readonly stateMutability: "nonpayable";
|
|
1602
|
+
readonly type: "function";
|
|
1527
1603
|
}, {
|
|
1528
1604
|
readonly inputs: readonly [];
|
|
1529
1605
|
readonly name: "isConsumingScheduledOp";
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,10 @@ declare class ConfidentialWrapper extends ConfidentialToken {
|
|
|
45
45
|
|
|
46
46
|
declare const confidentialWrapperAbi: readonly [{
|
|
47
47
|
readonly inputs: readonly [{
|
|
48
|
+
readonly internalType: "bool";
|
|
49
|
+
readonly name: "proxyMode";
|
|
50
|
+
readonly type: "bool";
|
|
51
|
+
}, {
|
|
48
52
|
readonly internalType: "contract IERC20Metadata";
|
|
49
53
|
readonly name: "underlyingToken";
|
|
50
54
|
readonly type: "address";
|
|
@@ -463,6 +467,10 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
463
467
|
}];
|
|
464
468
|
readonly name: "InvalidDataOffset";
|
|
465
469
|
readonly type: "error";
|
|
470
|
+
}, {
|
|
471
|
+
readonly inputs: readonly [];
|
|
472
|
+
readonly name: "InvalidInitialization";
|
|
473
|
+
readonly type: "error";
|
|
466
474
|
}, {
|
|
467
475
|
readonly inputs: readonly [];
|
|
468
476
|
readonly name: "InvalidPublicKey";
|
|
@@ -485,7 +493,7 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
485
493
|
readonly type: "error";
|
|
486
494
|
}, {
|
|
487
495
|
readonly inputs: readonly [];
|
|
488
|
-
readonly name: "
|
|
496
|
+
readonly name: "InvalidSaltForTransactionValue";
|
|
489
497
|
readonly type: "error";
|
|
490
498
|
}, {
|
|
491
499
|
readonly inputs: readonly [];
|
|
@@ -519,6 +527,10 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
519
527
|
}];
|
|
520
528
|
readonly name: "NoViewerRegisteredForHolder";
|
|
521
529
|
readonly type: "error";
|
|
530
|
+
}, {
|
|
531
|
+
readonly inputs: readonly [];
|
|
532
|
+
readonly name: "NotInitializing";
|
|
533
|
+
readonly type: "error";
|
|
522
534
|
}, {
|
|
523
535
|
readonly inputs: readonly [{
|
|
524
536
|
readonly internalType: "address";
|
|
@@ -547,14 +559,6 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
547
559
|
}];
|
|
548
560
|
readonly name: "SafeERC20FailedOperation";
|
|
549
561
|
readonly type: "error";
|
|
550
|
-
}, {
|
|
551
|
-
readonly inputs: readonly [{
|
|
552
|
-
readonly internalType: "string";
|
|
553
|
-
readonly name: "str";
|
|
554
|
-
readonly type: "string";
|
|
555
|
-
}];
|
|
556
|
-
readonly name: "StringTooLong";
|
|
557
|
-
readonly type: "error";
|
|
558
562
|
}, {
|
|
559
563
|
readonly inputs: readonly [{
|
|
560
564
|
readonly internalType: "uint256";
|
|
@@ -599,6 +603,10 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
599
603
|
readonly inputs: readonly [];
|
|
600
604
|
readonly name: "ValueWasNotEncryptedCorrectly";
|
|
601
605
|
readonly type: "error";
|
|
606
|
+
}, {
|
|
607
|
+
readonly inputs: readonly [];
|
|
608
|
+
readonly name: "WrongInitializer";
|
|
609
|
+
readonly type: "error";
|
|
602
610
|
}, {
|
|
603
611
|
readonly inputs: readonly [];
|
|
604
612
|
readonly name: "WrongPlaintextFormat";
|
|
@@ -881,6 +889,16 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
881
889
|
}];
|
|
882
890
|
readonly name: "HistoricViewTransferIdRevoked";
|
|
883
891
|
readonly type: "event";
|
|
892
|
+
}, {
|
|
893
|
+
readonly anonymous: false;
|
|
894
|
+
readonly inputs: readonly [{
|
|
895
|
+
readonly indexed: false;
|
|
896
|
+
readonly internalType: "uint64";
|
|
897
|
+
readonly name: "version";
|
|
898
|
+
readonly type: "uint64";
|
|
899
|
+
}];
|
|
900
|
+
readonly name: "Initialized";
|
|
901
|
+
readonly type: "event";
|
|
884
902
|
}, {
|
|
885
903
|
readonly anonymous: false;
|
|
886
904
|
readonly inputs: readonly [{
|
|
@@ -1370,6 +1388,24 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
1370
1388
|
}];
|
|
1371
1389
|
readonly stateMutability: "view";
|
|
1372
1390
|
readonly type: "function";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly inputs: readonly [{
|
|
1393
|
+
readonly internalType: "address";
|
|
1394
|
+
readonly name: "holder";
|
|
1395
|
+
readonly type: "address";
|
|
1396
|
+
}, {
|
|
1397
|
+
readonly internalType: "uint256";
|
|
1398
|
+
readonly name: "value";
|
|
1399
|
+
readonly type: "uint256";
|
|
1400
|
+
}];
|
|
1401
|
+
readonly name: "encryptValue";
|
|
1402
|
+
readonly outputs: readonly [{
|
|
1403
|
+
readonly internalType: "bytes";
|
|
1404
|
+
readonly name: "encryptedValue";
|
|
1405
|
+
readonly type: "bytes";
|
|
1406
|
+
}];
|
|
1407
|
+
readonly stateMutability: "view";
|
|
1408
|
+
readonly type: "function";
|
|
1373
1409
|
}, {
|
|
1374
1410
|
readonly inputs: readonly [{
|
|
1375
1411
|
readonly internalType: "address";
|
|
@@ -1424,7 +1460,7 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
1424
1460
|
}];
|
|
1425
1461
|
readonly name: "encryptedReceiveWithAuthorization";
|
|
1426
1462
|
readonly outputs: readonly [];
|
|
1427
|
-
readonly stateMutability: "
|
|
1463
|
+
readonly stateMutability: "payable";
|
|
1428
1464
|
readonly type: "function";
|
|
1429
1465
|
}, {
|
|
1430
1466
|
readonly inputs: readonly [{
|
|
@@ -1524,6 +1560,46 @@ declare const confidentialWrapperAbi: readonly [{
|
|
|
1524
1560
|
}];
|
|
1525
1561
|
readonly stateMutability: "view";
|
|
1526
1562
|
readonly type: "function";
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly inputs: readonly [{
|
|
1565
|
+
readonly internalType: "string";
|
|
1566
|
+
readonly name: "";
|
|
1567
|
+
readonly type: "string";
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly internalType: "string";
|
|
1570
|
+
readonly name: "";
|
|
1571
|
+
readonly type: "string";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly internalType: "string";
|
|
1574
|
+
readonly name: "";
|
|
1575
|
+
readonly type: "string";
|
|
1576
|
+
}, {
|
|
1577
|
+
readonly internalType: "address";
|
|
1578
|
+
readonly name: "";
|
|
1579
|
+
readonly type: "address";
|
|
1580
|
+
}];
|
|
1581
|
+
readonly name: "initialize";
|
|
1582
|
+
readonly outputs: readonly [];
|
|
1583
|
+
readonly stateMutability: "pure";
|
|
1584
|
+
readonly type: "function";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly inputs: readonly [{
|
|
1587
|
+
readonly internalType: "contract IERC20Metadata";
|
|
1588
|
+
readonly name: "underlyingToken";
|
|
1589
|
+
readonly type: "address";
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly internalType: "string";
|
|
1592
|
+
readonly name: "version_";
|
|
1593
|
+
readonly type: "string";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly internalType: "address";
|
|
1596
|
+
readonly name: "initialAuthority";
|
|
1597
|
+
readonly type: "address";
|
|
1598
|
+
}];
|
|
1599
|
+
readonly name: "initialize";
|
|
1600
|
+
readonly outputs: readonly [];
|
|
1601
|
+
readonly stateMutability: "nonpayable";
|
|
1602
|
+
readonly type: "function";
|
|
1527
1603
|
}, {
|
|
1528
1604
|
readonly inputs: readonly [];
|
|
1529
1605
|
readonly name: "isConsumingScheduledOp";
|
package/dist/index.js
CHANGED