@inco/js 0.5.2 → 0.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/dist/cjs/advancedacl/session-key.js +2 -2
- package/dist/cjs/attestedcompute/attested-compute.js +7 -4
- package/dist/{esm/generated/abis/addTwo.d.ts → cjs/generated/abis/add-two.d.ts} +27 -0
- package/dist/cjs/generated/abis/add-two.js +67 -0
- package/dist/cjs/generated/abis/lightning-preview.d.ts +346 -293
- package/dist/cjs/generated/abis/lightning-preview.js +192 -214
- package/dist/cjs/generated/abis/lightning.d.ts +339 -5
- package/dist/cjs/generated/abis/lightning.js +266 -7
- package/dist/cjs/generated/abis/{TestElist.d.ts → test-elist.d.ts} +29 -12
- package/dist/cjs/generated/abis/test-elist.js +161 -0
- package/dist/cjs/generated/abis/verifier.d.ts +127 -72
- package/dist/cjs/generated/abis/verifier.js +98 -56
- package/dist/cjs/generated/lightning.d.ts +28 -7
- package/dist/cjs/generated/lightning.js +30 -8
- package/dist/cjs/generated/local-node.d.ts +4 -4
- package/dist/cjs/generated/local-node.js +4 -4
- package/dist/cjs/local/local-node.js +3 -7
- package/dist/cjs/retry.d.ts +2 -1
- package/dist/cjs/retry.js +4 -3
- package/dist/esm/advancedacl/session-key.js +3 -3
- package/dist/esm/attestedcompute/attested-compute.js +7 -4
- package/dist/{types/generated/abis/addTwo.d.ts → esm/generated/abis/add-two.d.ts} +27 -0
- package/dist/esm/generated/abis/add-two.js +64 -0
- package/dist/esm/generated/abis/lightning-preview.d.ts +346 -293
- package/dist/esm/generated/abis/lightning-preview.js +191 -213
- package/dist/esm/generated/abis/lightning.d.ts +339 -5
- package/dist/esm/generated/abis/lightning.js +265 -6
- package/dist/esm/generated/abis/{TestElist.d.ts → test-elist.d.ts} +29 -12
- package/dist/esm/generated/abis/test-elist.js +158 -0
- package/dist/esm/generated/abis/verifier.d.ts +127 -72
- package/dist/esm/generated/abis/verifier.js +98 -56
- package/dist/esm/generated/lightning.d.ts +28 -7
- package/dist/esm/generated/lightning.js +30 -8
- package/dist/esm/generated/local-node.d.ts +4 -4
- package/dist/esm/generated/local-node.js +4 -4
- package/dist/esm/local/local-node.js +3 -7
- package/dist/esm/retry.d.ts +2 -1
- package/dist/esm/retry.js +4 -3
- package/dist/{cjs/generated/abis/addTwo.d.ts → types/generated/abis/add-two.d.ts} +27 -0
- package/dist/types/generated/abis/lightning-preview.d.ts +346 -293
- package/dist/types/generated/abis/lightning.d.ts +339 -5
- package/dist/types/generated/abis/{TestElist.d.ts → test-elist.d.ts} +29 -12
- package/dist/types/generated/abis/verifier.d.ts +127 -72
- package/dist/types/generated/lightning.d.ts +28 -7
- package/dist/types/generated/local-node.d.ts +4 -4
- package/dist/types/retry.d.ts +2 -1
- package/package.json +2 -2
- package/dist/cjs/generated/abis/TestElist.js +0 -152
- package/dist/cjs/generated/abis/addTwo.js +0 -51
- package/dist/esm/generated/abis/TestElist.js +0 -149
- package/dist/esm/generated/abis/addTwo.js +0 -48
@@ -8,12 +8,16 @@ export declare const incoVerifierAbi: readonly [{
|
|
8
8
|
readonly stateMutability: "nonpayable";
|
9
9
|
}, {
|
10
10
|
readonly type: "function";
|
11
|
-
readonly inputs: readonly [
|
12
|
-
|
11
|
+
readonly inputs: readonly [{
|
12
|
+
readonly name: "";
|
13
|
+
readonly internalType: "uint256";
|
14
|
+
readonly type: "uint256";
|
15
|
+
}];
|
16
|
+
readonly name: "ApprovedTEEVersions";
|
13
17
|
readonly outputs: readonly [{
|
14
18
|
readonly name: "";
|
15
|
-
readonly internalType: "
|
16
|
-
readonly type: "
|
19
|
+
readonly internalType: "bytes32";
|
20
|
+
readonly type: "bytes32";
|
17
21
|
}];
|
18
22
|
readonly stateMutability: "view";
|
19
23
|
}, {
|
@@ -60,24 +64,6 @@ export declare const incoVerifierAbi: readonly [{
|
|
60
64
|
readonly type: "uint16";
|
61
65
|
}];
|
62
66
|
readonly stateMutability: "view";
|
63
|
-
}, {
|
64
|
-
readonly type: "function";
|
65
|
-
readonly inputs: readonly [{
|
66
|
-
readonly name: "";
|
67
|
-
readonly internalType: "uint256";
|
68
|
-
readonly type: "uint256";
|
69
|
-
}];
|
70
|
-
readonly name: "TEEVersionHistory";
|
71
|
-
readonly outputs: readonly [{
|
72
|
-
readonly name: "mrtd";
|
73
|
-
readonly internalType: "bytes";
|
74
|
-
readonly type: "bytes";
|
75
|
-
}, {
|
76
|
-
readonly name: "status";
|
77
|
-
readonly internalType: "enum TEEVersionStatus";
|
78
|
-
readonly type: "uint8";
|
79
|
-
}];
|
80
|
-
readonly stateMutability: "view";
|
81
67
|
}, {
|
82
68
|
readonly type: "function";
|
83
69
|
readonly inputs: readonly [];
|
@@ -91,11 +77,11 @@ export declare const incoVerifierAbi: readonly [{
|
|
91
77
|
}, {
|
92
78
|
readonly type: "function";
|
93
79
|
readonly inputs: readonly [];
|
94
|
-
readonly name: "
|
80
|
+
readonly name: "UpgradeResultStructHash";
|
95
81
|
readonly outputs: readonly [{
|
96
|
-
readonly name: "
|
97
|
-
readonly internalType: "
|
98
|
-
readonly type: "
|
82
|
+
readonly name: "";
|
83
|
+
readonly internalType: "bytes32";
|
84
|
+
readonly type: "bytes32";
|
99
85
|
}];
|
100
86
|
readonly stateMutability: "view";
|
101
87
|
}, {
|
@@ -152,9 +138,9 @@ export declare const incoVerifierAbi: readonly [{
|
|
152
138
|
}, {
|
153
139
|
readonly type: "function";
|
154
140
|
readonly inputs: readonly [{
|
155
|
-
readonly name: "
|
156
|
-
readonly internalType: "
|
157
|
-
readonly type: "
|
141
|
+
readonly name: "newMrAggregated";
|
142
|
+
readonly internalType: "bytes32";
|
143
|
+
readonly type: "bytes32";
|
158
144
|
}];
|
159
145
|
readonly name: "approveNewTEEVersion";
|
160
146
|
readonly outputs: readonly [];
|
@@ -178,6 +164,32 @@ export declare const incoVerifierAbi: readonly [{
|
|
178
164
|
readonly type: "bytes32";
|
179
165
|
}];
|
180
166
|
readonly stateMutability: "view";
|
167
|
+
}, {
|
168
|
+
readonly type: "function";
|
169
|
+
readonly inputs: readonly [{
|
170
|
+
readonly name: "mrTd";
|
171
|
+
readonly internalType: "bytes";
|
172
|
+
readonly type: "bytes";
|
173
|
+
}, {
|
174
|
+
readonly name: "rtMr0";
|
175
|
+
readonly internalType: "bytes";
|
176
|
+
readonly type: "bytes";
|
177
|
+
}, {
|
178
|
+
readonly name: "rtMr1";
|
179
|
+
readonly internalType: "bytes";
|
180
|
+
readonly type: "bytes";
|
181
|
+
}, {
|
182
|
+
readonly name: "rtMr2";
|
183
|
+
readonly internalType: "bytes";
|
184
|
+
readonly type: "bytes";
|
185
|
+
}];
|
186
|
+
readonly name: "computeMrAggregated";
|
187
|
+
readonly outputs: readonly [{
|
188
|
+
readonly name: "";
|
189
|
+
readonly internalType: "bytes32";
|
190
|
+
readonly type: "bytes32";
|
191
|
+
}];
|
192
|
+
readonly stateMutability: "pure";
|
181
193
|
}, {
|
182
194
|
readonly type: "function";
|
183
195
|
readonly inputs: readonly [{
|
@@ -501,8 +513,8 @@ export declare const incoVerifierAbi: readonly [{
|
|
501
513
|
readonly type: "address";
|
502
514
|
}, {
|
503
515
|
readonly name: "";
|
504
|
-
readonly internalType: "
|
505
|
-
readonly type: "
|
516
|
+
readonly internalType: "bytes32";
|
517
|
+
readonly type: "bytes32";
|
506
518
|
}];
|
507
519
|
readonly stateMutability: "pure";
|
508
520
|
}, {
|
@@ -632,6 +644,25 @@ export declare const incoVerifierAbi: readonly [{
|
|
632
644
|
readonly name: "updateActiveVouchersSessionNonce";
|
633
645
|
readonly outputs: readonly [];
|
634
646
|
readonly stateMutability: "nonpayable";
|
647
|
+
}, {
|
648
|
+
readonly type: "function";
|
649
|
+
readonly inputs: readonly [{
|
650
|
+
readonly name: "upgradeResult";
|
651
|
+
readonly internalType: "struct UpgradeResult";
|
652
|
+
readonly type: "tuple";
|
653
|
+
readonly components: readonly [{
|
654
|
+
readonly name: "network_pubkey";
|
655
|
+
readonly internalType: "bytes";
|
656
|
+
readonly type: "bytes";
|
657
|
+
}];
|
658
|
+
}];
|
659
|
+
readonly name: "upgradeResultDigest";
|
660
|
+
readonly outputs: readonly [{
|
661
|
+
readonly name: "";
|
662
|
+
readonly internalType: "bytes32";
|
663
|
+
readonly type: "bytes32";
|
664
|
+
}];
|
665
|
+
readonly stateMutability: "view";
|
635
666
|
}, {
|
636
667
|
readonly type: "function";
|
637
668
|
readonly inputs: readonly [{
|
@@ -701,6 +732,33 @@ export declare const incoVerifierAbi: readonly [{
|
|
701
732
|
readonly name: "verifyBootstrapResult";
|
702
733
|
readonly outputs: readonly [];
|
703
734
|
readonly stateMutability: "nonpayable";
|
735
|
+
}, {
|
736
|
+
readonly type: "function";
|
737
|
+
readonly inputs: readonly [{
|
738
|
+
readonly name: "newMrAggregated";
|
739
|
+
readonly internalType: "bytes32";
|
740
|
+
readonly type: "bytes32";
|
741
|
+
}, {
|
742
|
+
readonly name: "upgradeResult";
|
743
|
+
readonly internalType: "struct UpgradeResult";
|
744
|
+
readonly type: "tuple";
|
745
|
+
readonly components: readonly [{
|
746
|
+
readonly name: "network_pubkey";
|
747
|
+
readonly internalType: "bytes";
|
748
|
+
readonly type: "bytes";
|
749
|
+
}];
|
750
|
+
}, {
|
751
|
+
readonly name: "quote";
|
752
|
+
readonly internalType: "bytes";
|
753
|
+
readonly type: "bytes";
|
754
|
+
}, {
|
755
|
+
readonly name: "signature";
|
756
|
+
readonly internalType: "bytes";
|
757
|
+
readonly type: "bytes";
|
758
|
+
}];
|
759
|
+
readonly name: "verifyUpgradeResult";
|
760
|
+
readonly outputs: readonly [];
|
761
|
+
readonly stateMutability: "nonpayable";
|
704
762
|
}, {
|
705
763
|
readonly type: "event";
|
706
764
|
readonly anonymous: false;
|
@@ -736,6 +794,21 @@ export declare const incoVerifierAbi: readonly [{
|
|
736
794
|
readonly anonymous: false;
|
737
795
|
readonly inputs: readonly [];
|
738
796
|
readonly name: "EIP712DomainChanged";
|
797
|
+
}, {
|
798
|
+
readonly type: "event";
|
799
|
+
readonly anonymous: false;
|
800
|
+
readonly inputs: readonly [{
|
801
|
+
readonly name: "eoaSigner";
|
802
|
+
readonly internalType: "address";
|
803
|
+
readonly type: "address";
|
804
|
+
readonly indexed: true;
|
805
|
+
}, {
|
806
|
+
readonly name: "mrAggregated";
|
807
|
+
readonly internalType: "bytes32";
|
808
|
+
readonly type: "bytes32";
|
809
|
+
readonly indexed: true;
|
810
|
+
}];
|
811
|
+
readonly name: "EOAHasUpdatedTDX";
|
739
812
|
}, {
|
740
813
|
readonly type: "event";
|
741
814
|
readonly anonymous: false;
|
@@ -761,6 +834,21 @@ export declare const incoVerifierAbi: readonly [{
|
|
761
834
|
readonly indexed: false;
|
762
835
|
}];
|
763
836
|
readonly name: "NewCovalidatorAdded";
|
837
|
+
}, {
|
838
|
+
readonly type: "event";
|
839
|
+
readonly anonymous: false;
|
840
|
+
readonly inputs: readonly [{
|
841
|
+
readonly name: "version";
|
842
|
+
readonly internalType: "uint256";
|
843
|
+
readonly type: "uint256";
|
844
|
+
readonly indexed: true;
|
845
|
+
}, {
|
846
|
+
readonly name: "mrAggregated";
|
847
|
+
readonly internalType: "bytes32";
|
848
|
+
readonly type: "bytes32";
|
849
|
+
readonly indexed: true;
|
850
|
+
}];
|
851
|
+
readonly name: "NewTEEVersionApproved";
|
764
852
|
}, {
|
765
853
|
readonly type: "event";
|
766
854
|
readonly anonymous: false;
|
@@ -776,16 +864,6 @@ export declare const incoVerifierAbi: readonly [{
|
|
776
864
|
readonly indexed: true;
|
777
865
|
}];
|
778
866
|
readonly name: "OwnershipTransferred";
|
779
|
-
}, {
|
780
|
-
readonly type: "event";
|
781
|
-
readonly anonymous: false;
|
782
|
-
readonly inputs: readonly [{
|
783
|
-
readonly name: "version";
|
784
|
-
readonly internalType: "uint16";
|
785
|
-
readonly type: "uint16";
|
786
|
-
readonly indexed: true;
|
787
|
-
}];
|
788
|
-
readonly name: "QuoteVerifierUpdated";
|
789
867
|
}, {
|
790
868
|
readonly type: "event";
|
791
869
|
readonly anonymous: false;
|
@@ -796,25 +874,6 @@ export declare const incoVerifierAbi: readonly [{
|
|
796
874
|
readonly indexed: false;
|
797
875
|
}];
|
798
876
|
readonly name: "RemovedSignatureVerifier";
|
799
|
-
}, {
|
800
|
-
readonly type: "event";
|
801
|
-
readonly anonymous: false;
|
802
|
-
readonly inputs: readonly [{
|
803
|
-
readonly name: "teeVersion";
|
804
|
-
readonly internalType: "struct TEEVersion";
|
805
|
-
readonly type: "tuple";
|
806
|
-
readonly components: readonly [{
|
807
|
-
readonly name: "mrtd";
|
808
|
-
readonly internalType: "bytes";
|
809
|
-
readonly type: "bytes";
|
810
|
-
}, {
|
811
|
-
readonly name: "status";
|
812
|
-
readonly internalType: "enum TEEVersionStatus";
|
813
|
-
readonly type: "uint8";
|
814
|
-
}];
|
815
|
-
readonly indexed: false;
|
816
|
-
}];
|
817
|
-
readonly name: "TEEVersionUpdated";
|
818
877
|
}, {
|
819
878
|
readonly type: "event";
|
820
879
|
readonly anonymous: false;
|
@@ -865,6 +924,10 @@ export declare const incoVerifierAbi: readonly [{
|
|
865
924
|
readonly type: "error";
|
866
925
|
readonly inputs: readonly [];
|
867
926
|
readonly name: "EOASignerAlreadyInitialized";
|
927
|
+
}, {
|
928
|
+
readonly type: "error";
|
929
|
+
readonly inputs: readonly [];
|
930
|
+
readonly name: "EOASignerNotFound";
|
868
931
|
}, {
|
869
932
|
readonly type: "error";
|
870
933
|
readonly inputs: readonly [{
|
@@ -892,7 +955,7 @@ export declare const incoVerifierAbi: readonly [{
|
|
892
955
|
}, {
|
893
956
|
readonly type: "error";
|
894
957
|
readonly inputs: readonly [];
|
895
|
-
readonly name: "
|
958
|
+
readonly name: "InvalidEIP712Signature";
|
896
959
|
}, {
|
897
960
|
readonly type: "error";
|
898
961
|
readonly inputs: readonly [];
|
@@ -900,7 +963,7 @@ export declare const incoVerifierAbi: readonly [{
|
|
900
963
|
}, {
|
901
964
|
readonly type: "error";
|
902
965
|
readonly inputs: readonly [];
|
903
|
-
readonly name: "
|
966
|
+
readonly name: "InvalidNetworkPubkey";
|
904
967
|
}, {
|
905
968
|
readonly type: "error";
|
906
969
|
readonly inputs: readonly [{
|
@@ -920,7 +983,7 @@ export declare const incoVerifierAbi: readonly [{
|
|
920
983
|
}, {
|
921
984
|
readonly type: "error";
|
922
985
|
readonly inputs: readonly [];
|
923
|
-
readonly name: "
|
986
|
+
readonly name: "InvalidReportMrAggregated";
|
924
987
|
}, {
|
925
988
|
readonly type: "error";
|
926
989
|
readonly inputs: readonly [{
|
@@ -949,10 +1012,6 @@ export declare const incoVerifierAbi: readonly [{
|
|
949
1012
|
readonly type: "bytes";
|
950
1013
|
}];
|
951
1014
|
readonly name: "InvalidVoucherSignature";
|
952
|
-
}, {
|
953
|
-
readonly type: "error";
|
954
|
-
readonly inputs: readonly [];
|
955
|
-
readonly name: "MrtdInvalidLength";
|
956
1015
|
}, {
|
957
1016
|
readonly type: "error";
|
958
1017
|
readonly inputs: readonly [];
|
@@ -996,11 +1055,7 @@ export declare const incoVerifierAbi: readonly [{
|
|
996
1055
|
}, {
|
997
1056
|
readonly type: "error";
|
998
1057
|
readonly inputs: readonly [];
|
999
|
-
readonly name: "
|
1000
|
-
}, {
|
1001
|
-
readonly type: "error";
|
1002
|
-
readonly inputs: readonly [];
|
1003
|
-
readonly name: "TEEVersionHistoryStatusIsNotPending";
|
1058
|
+
readonly name: "TEEVersionNotFound";
|
1004
1059
|
}, {
|
1005
1060
|
readonly type: "error";
|
1006
1061
|
readonly inputs: readonly [];
|
@@ -1,23 +1,44 @@
|
|
1
1
|
export declare const lightningDeployments: readonly [{
|
2
|
-
readonly name: "
|
2
|
+
readonly name: "incoLightningPreview_1_0_2__904635675";
|
3
3
|
readonly majorVersion: 1;
|
4
4
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
5
5
|
readonly pepper: "devnet";
|
6
|
-
readonly executorAddress: "
|
7
|
-
readonly salt: "
|
6
|
+
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
7
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007d63c0fdca6698ac7cc51b";
|
8
|
+
readonly chainId: 9746;
|
9
|
+
readonly chainName: "Plasma Testnet";
|
10
|
+
readonly version: {
|
11
|
+
readonly major: 1;
|
12
|
+
readonly minor: 0;
|
13
|
+
readonly patch: 2;
|
14
|
+
readonly shortSalt: "904635675";
|
15
|
+
};
|
16
|
+
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
17
|
+
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
18
|
+
readonly blockNumber: 3696905;
|
19
|
+
readonly deployDate: "2025-10-03T13:24:44.682Z";
|
20
|
+
readonly commit: "v0.5.3-6-g8db0f27f-dirty";
|
21
|
+
readonly active: true;
|
22
|
+
}, {
|
23
|
+
readonly name: "incoLightningPreview_1_0_0__904635675";
|
24
|
+
readonly majorVersion: 1;
|
25
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
26
|
+
readonly pepper: "devnet";
|
27
|
+
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
28
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007d63c0fdca6698ac7cc51b";
|
8
29
|
readonly chainId: 9746;
|
9
30
|
readonly chainName: "Plasma Testnet";
|
10
31
|
readonly version: {
|
11
32
|
readonly major: 1;
|
12
33
|
readonly minor: 0;
|
13
34
|
readonly patch: 0;
|
14
|
-
readonly shortSalt: "
|
35
|
+
readonly shortSalt: "904635675";
|
15
36
|
};
|
16
37
|
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
17
38
|
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
18
|
-
readonly blockNumber:
|
19
|
-
readonly deployDate: "2025-09-
|
20
|
-
readonly commit: "v0.5.
|
39
|
+
readonly blockNumber: 3344310;
|
40
|
+
readonly deployDate: "2025-09-29T11:14:02.599Z";
|
41
|
+
readonly commit: "v0.5.1-5-g4135c790-dirty";
|
21
42
|
readonly active: true;
|
22
43
|
}, {
|
23
44
|
readonly name: "incoLightning_0_2_0__183408998";
|
@@ -8,12 +8,12 @@ export declare const localNodeLightningConfig: {
|
|
8
8
|
readonly senderPrivateKey: "0x78a25e2a0b5148290cc4d93ae12338dabd6ccd6dd98276514c4168dc4100df7c";
|
9
9
|
};
|
10
10
|
readonly devnet: {
|
11
|
-
readonly executorAddress: "
|
12
|
-
readonly eciesPublicKey: "
|
11
|
+
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
12
|
+
readonly eciesPublicKey: "0x0232aae7e5deffacd4e682821a95f4200d4327b7ac1e288d147cfa343f751e3f61";
|
13
13
|
readonly chainId: 31337;
|
14
14
|
readonly covalidatorUrl: "http://localhost:50055";
|
15
15
|
readonly hostChainRpcUrl: "http://localhost:8545";
|
16
|
-
readonly senderPrivateKey: "
|
16
|
+
readonly senderPrivateKey: "0x6f2539401f377d76bafd39b580e0f95b9bf7d39dec8fd3ada4abe41ad2ae1e18";
|
17
17
|
};
|
18
18
|
readonly alphanet: {
|
19
19
|
readonly executorAddress: "0x4651DfD7729aE5568092E7351fAaD872266d4CBd";
|
@@ -24,7 +24,7 @@ export declare const localNodeLightningConfig: {
|
|
24
24
|
readonly senderPrivateKey: "0x1a62c795e7b0442a106dd8017a00af4461727b88df8834b2fca65558011f968a";
|
25
25
|
};
|
26
26
|
readonly scratch: {
|
27
|
-
readonly executorAddress: "
|
27
|
+
readonly executorAddress: "0x195ec7fDf68fD835b9F78d6eb13E280cC2e25fdD";
|
28
28
|
readonly eciesPublicKey: "0x02516bda9e68a1c3dce74dc1b6ed7d91a91d51c1e1933947f06331cef59631e9eb";
|
29
29
|
readonly chainId: 31337;
|
30
30
|
readonly covalidatorUrl: "http://localhost:50055";
|
package/dist/types/retry.d.ts
CHANGED
@@ -5,6 +5,7 @@ export type BackoffConfig = {
|
|
5
5
|
maxRetries: number;
|
6
6
|
baseDelayInMs: number;
|
7
7
|
backoffFactor: number;
|
8
|
+
errHandler?: (error: Error, attempt: number) => 'stop' | 'continue';
|
8
9
|
};
|
9
10
|
/**
|
10
11
|
* Helper function to implement exponential backoff retry logic.
|
@@ -12,4 +13,4 @@ export type BackoffConfig = {
|
|
12
13
|
* @param config - Optional backoff configuration
|
13
14
|
* @returns Promise that resolves with the result of the function
|
14
15
|
*/
|
15
|
-
export declare function retryWithBackoff<T>(fn: () => Promise<T>, { maxRetries, baseDelayInMs, backoffFactor, }?: Partial<BackoffConfig>): Promise<T>;
|
16
|
+
export declare function retryWithBackoff<T>(fn: () => Promise<T>, { maxRetries, baseDelayInMs, backoffFactor, errHandler, }?: Partial<BackoffConfig>): Promise<T>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@inco/js",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.0",
|
4
4
|
"repository": "https://github.com/Inco-fhevm/inco-monorepo",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"sideEffects": false,
|
@@ -80,7 +80,7 @@
|
|
80
80
|
"publish:npm": "bun publish",
|
81
81
|
"test": "bun run lint && bun run test:tsc && bun run test:unit",
|
82
82
|
"test:coverage": "bun vitest run --project unit --coverage",
|
83
|
-
"test:e2e": "bun vitest run --project e2e",
|
83
|
+
"test:e2e": "bun vitest run --bail=1 --project e2e",
|
84
84
|
"test:tsc": "tsc --noEmit",
|
85
85
|
"test:unit": "bun vitest run --project unit",
|
86
86
|
"test:update-snapshots": "bun vitest run --project unit --update"
|
@@ -1,152 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
3
|
-
// ElistPreview
|
4
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.elistPreviewAbi = void 0;
|
7
|
-
exports.elistPreviewAbi = [
|
8
|
-
{
|
9
|
-
type: 'constructor',
|
10
|
-
inputs: [
|
11
|
-
{
|
12
|
-
name: '_inco',
|
13
|
-
internalType: 'contract IncoLightningPreview',
|
14
|
-
type: 'address',
|
15
|
-
},
|
16
|
-
],
|
17
|
-
stateMutability: 'nonpayable',
|
18
|
-
},
|
19
|
-
{
|
20
|
-
type: 'function',
|
21
|
-
inputs: [],
|
22
|
-
name: 'list',
|
23
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
24
|
-
stateMutability: 'view',
|
25
|
-
},
|
26
|
-
{
|
27
|
-
type: 'function',
|
28
|
-
inputs: [{ name: 'ctValue', internalType: 'bytes', type: 'bytes' }],
|
29
|
-
name: 'listAppend',
|
30
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
31
|
-
stateMutability: 'nonpayable',
|
32
|
-
},
|
33
|
-
{
|
34
|
-
type: 'function',
|
35
|
-
inputs: [
|
36
|
-
{ name: 'cts', internalType: 'bytes[]', type: 'bytes[]' },
|
37
|
-
{ name: 'listType', internalType: 'enum ETypes', type: 'uint8' },
|
38
|
-
{ name: 'user', internalType: 'address', type: 'address' },
|
39
|
-
],
|
40
|
-
name: 'listConcat',
|
41
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
42
|
-
stateMutability: 'nonpayable',
|
43
|
-
},
|
44
|
-
{
|
45
|
-
type: 'function',
|
46
|
-
inputs: [{ name: 'index', internalType: 'uint16', type: 'uint16' }],
|
47
|
-
name: 'listGet',
|
48
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
49
|
-
stateMutability: 'nonpayable',
|
50
|
-
},
|
51
|
-
{
|
52
|
-
type: 'function',
|
53
|
-
inputs: [
|
54
|
-
{ name: 'ctIndex', internalType: 'bytes', type: 'bytes' },
|
55
|
-
{ name: 'ctDefaultValue', internalType: 'bytes', type: 'bytes' },
|
56
|
-
],
|
57
|
-
name: 'listGetOr',
|
58
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
59
|
-
stateMutability: 'nonpayable',
|
60
|
-
},
|
61
|
-
{
|
62
|
-
type: 'function',
|
63
|
-
inputs: [{ name: 'index', internalType: 'uint16', type: 'uint16' }],
|
64
|
-
name: 'listGetRange',
|
65
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
66
|
-
stateMutability: 'nonpayable',
|
67
|
-
},
|
68
|
-
{
|
69
|
-
type: 'function',
|
70
|
-
inputs: [
|
71
|
-
{ name: 'ctIndex', internalType: 'bytes', type: 'bytes' },
|
72
|
-
{ name: 'ctValue', internalType: 'bytes', type: 'bytes' },
|
73
|
-
],
|
74
|
-
name: 'listInsert',
|
75
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
76
|
-
stateMutability: 'nonpayable',
|
77
|
-
},
|
78
|
-
{
|
79
|
-
type: 'function',
|
80
|
-
inputs: [
|
81
|
-
{ name: 'start', internalType: 'uint16', type: 'uint16' },
|
82
|
-
{ name: 'end', internalType: 'uint16', type: 'uint16' },
|
83
|
-
],
|
84
|
-
name: 'listRange',
|
85
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
86
|
-
stateMutability: 'nonpayable',
|
87
|
-
},
|
88
|
-
{
|
89
|
-
type: 'function',
|
90
|
-
inputs: [],
|
91
|
-
name: 'listReverse',
|
92
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
93
|
-
stateMutability: 'nonpayable',
|
94
|
-
},
|
95
|
-
{
|
96
|
-
type: 'function',
|
97
|
-
inputs: [
|
98
|
-
{ name: 'ctIndex', internalType: 'bytes', type: 'bytes' },
|
99
|
-
{ name: 'ctValue', internalType: 'bytes', type: 'bytes' },
|
100
|
-
],
|
101
|
-
name: 'listSet',
|
102
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
103
|
-
stateMutability: 'nonpayable',
|
104
|
-
},
|
105
|
-
{
|
106
|
-
type: 'function',
|
107
|
-
inputs: [],
|
108
|
-
name: 'listShuffle',
|
109
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
110
|
-
stateMutability: 'nonpayable',
|
111
|
-
},
|
112
|
-
{
|
113
|
-
type: 'function',
|
114
|
-
inputs: [
|
115
|
-
{ name: 'ctStart', internalType: 'bytes', type: 'bytes' },
|
116
|
-
{ name: 'len', internalType: 'uint16', type: 'uint16' },
|
117
|
-
{ name: 'ctDefaultValue', internalType: 'bytes', type: 'bytes' },
|
118
|
-
],
|
119
|
-
name: 'listSlice',
|
120
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
121
|
-
stateMutability: 'nonpayable',
|
122
|
-
},
|
123
|
-
{
|
124
|
-
type: 'function',
|
125
|
-
inputs: [
|
126
|
-
{ name: 'cts', internalType: 'bytes32[]', type: 'bytes32[]' },
|
127
|
-
{ name: 'listType', internalType: 'enum ETypes', type: 'uint8' },
|
128
|
-
],
|
129
|
-
name: 'newEList',
|
130
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
131
|
-
stateMutability: 'nonpayable',
|
132
|
-
},
|
133
|
-
{
|
134
|
-
type: 'function',
|
135
|
-
inputs: [
|
136
|
-
{ name: 'inputs', internalType: 'bytes[]', type: 'bytes[]' },
|
137
|
-
{ name: 'listType', internalType: 'enum ETypes', type: 'uint8' },
|
138
|
-
{ name: 'user', internalType: 'address', type: 'address' },
|
139
|
-
],
|
140
|
-
name: 'newEList',
|
141
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
142
|
-
stateMutability: 'nonpayable',
|
143
|
-
},
|
144
|
-
{
|
145
|
-
type: 'function',
|
146
|
-
inputs: [],
|
147
|
-
name: 'newRangeList',
|
148
|
-
outputs: [{ name: '', internalType: 'elist', type: 'bytes32' }],
|
149
|
-
stateMutability: 'view',
|
150
|
-
},
|
151
|
-
];
|
152
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGVzdEVsaXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9hYmlzL1Rlc3RFbGlzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0tBQXNLO0FBQ3RLLGVBQWU7QUFDZixzS0FBc0s7OztBQUV6SixRQUFBLGVBQWUsR0FBRztJQUM3QjtRQUNFLElBQUksRUFBRSxhQUFhO1FBQ25CLE1BQU0sRUFBRTtZQUNOO2dCQUNFLElBQUksRUFBRSxPQUFPO2dCQUNiLFlBQVksRUFBRSwrQkFBK0I7Z0JBQzdDLElBQUksRUFBRSxTQUFTO2FBQ2hCO1NBQ0Y7UUFDRCxlQUFlLEVBQUUsWUFBWTtLQUM5QjtJQUNEO1FBQ0UsSUFBSSxFQUFFLFVBQVU7UUFDaEIsTUFBTSxFQUFFLEVBQUU7UUFDVixJQUFJLEVBQUUsTUFBTTtRQUNaLE9BQU8sRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLEVBQUUsRUFBRSxZQUFZLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsQ0FBQztRQUMvRCxlQUFlLEVBQUUsTUFBTTtLQUN4QjtJQUNEO1FBQ0UsSUFBSSxFQUFFLFVBQVU7UUFDaEIsTUFBTSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLE9BQU8sRUFBRSxDQUFDO1FBQ25FLElBQUksRUFBRSxZQUFZO1FBQ2xCLE9BQU8sRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFF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RSxZQUFZLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsQ0FBQztRQUMvRCxlQUFlLEVBQUUsTUFBTTtLQUN4QjtDQUNPLENBQUEifQ==
|
@@ -1,51 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
3
|
-
// AddTwo
|
4
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.addTwoAbi = void 0;
|
7
|
-
exports.addTwoAbi = [
|
8
|
-
{
|
9
|
-
type: 'constructor',
|
10
|
-
inputs: [
|
11
|
-
{
|
12
|
-
name: '_inco',
|
13
|
-
internalType: 'contract IncoLightning',
|
14
|
-
type: 'address',
|
15
|
-
},
|
16
|
-
],
|
17
|
-
stateMutability: 'nonpayable',
|
18
|
-
},
|
19
|
-
{
|
20
|
-
type: 'function',
|
21
|
-
inputs: [{ name: 'a', internalType: 'euint256', type: 'bytes32' }],
|
22
|
-
name: 'addTwo',
|
23
|
-
outputs: [{ name: '', internalType: 'euint256', type: 'bytes32' }],
|
24
|
-
stateMutability: 'nonpayable',
|
25
|
-
},
|
26
|
-
{
|
27
|
-
type: 'function',
|
28
|
-
inputs: [{ name: 'a', internalType: 'euint256', type: 'bytes32' }],
|
29
|
-
name: 'addTwoAlt',
|
30
|
-
outputs: [{ name: '', internalType: 'euint256', type: 'bytes32' }],
|
31
|
-
stateMutability: 'nonpayable',
|
32
|
-
},
|
33
|
-
{
|
34
|
-
type: 'function',
|
35
|
-
inputs: [{ name: 'uint256EInput', internalType: 'bytes', type: 'bytes' }],
|
36
|
-
name: 'addTwoEOA',
|
37
|
-
outputs: [
|
38
|
-
{ name: 'result', internalType: 'euint256', type: 'bytes32' },
|
39
|
-
{ name: 'resultRevealed', internalType: 'euint256', type: 'bytes32' },
|
40
|
-
],
|
41
|
-
stateMutability: 'nonpayable',
|
42
|
-
},
|
43
|
-
{
|
44
|
-
type: 'function',
|
45
|
-
inputs: [],
|
46
|
-
name: 'lastResult',
|
47
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
48
|
-
stateMutability: 'view',
|
49
|
-
},
|
50
|
-
];
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkVHdvLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9hYmlzL2FkZFR3by50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0tBQXNLO0FBQ3RLLFNBQVM7QUFDVCxzS0FBc0s7OztBQUV6SixRQUFBLFNBQVMsR0FBRztJQUN2QjtRQUNFLElBQUksRUFBRSxhQUFhO1FBQ25CLE1BQU0sRUFBRTtZQUNOO2dCQUNFLElBQUksRUFBRSxPQUFPO2dCQUNiLFlBQVksRUFBRSx3QkFBd0I7Z0JBQ3RDLElBQUksRUFBRSxTQUFTO2FBQ2hCO1NBQ0Y7UUFDRCxlQUFlLEVBQUUsWUFBWTtLQUM5QjtJQUNEO1FBQ0UsSUFBSSxFQUFFLFVBQVU7UUFDaEIsTUFBTSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsR0FBRyxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFLFNBQVMsRUFBRSxDQUFDO1FBQ2xFLElBQUksRUFBRSxRQUFRO1FBQ2QsT0FBTyxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFLFNBQVMsRUFBRSxDQUFDO1FBQ2xFLGVBQWUsRUFBRSxZQUFZO0tBQzlCO0lBQ0Q7UUFDRSxJQUFJLEVBQUUsVUFBVTtRQUNoQixNQUFNLEVBQUUsQ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