@arcium-hq/client 0.6.5 → 0.7.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/README.md +1 -1
- package/build/index.cjs +275 -215
- package/build/index.d.ts +221 -201
- package/build/index.mjs +274 -217
- package/package.json +2 -1
package/build/index.d.ts
CHANGED
|
@@ -456,7 +456,7 @@ type Arcium = {
|
|
|
456
456
|
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
457
457
|
"metadata": {
|
|
458
458
|
"name": "arcium";
|
|
459
|
-
"version": "0.
|
|
459
|
+
"version": "0.7.0";
|
|
460
460
|
"spec": "0.1.0";
|
|
461
461
|
"description": "The Arcium program";
|
|
462
462
|
};
|
|
@@ -2711,6 +2711,29 @@ type Arcium = {
|
|
|
2711
2711
|
];
|
|
2712
2712
|
};
|
|
2713
2713
|
},
|
|
2714
|
+
{
|
|
2715
|
+
"name": "clusterAcc";
|
|
2716
|
+
"pda": {
|
|
2717
|
+
"seeds": [
|
|
2718
|
+
{
|
|
2719
|
+
"kind": "const";
|
|
2720
|
+
"value": [
|
|
2721
|
+
67,
|
|
2722
|
+
108,
|
|
2723
|
+
117,
|
|
2724
|
+
115,
|
|
2725
|
+
116,
|
|
2726
|
+
101,
|
|
2727
|
+
114
|
|
2728
|
+
];
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
"kind": "arg";
|
|
2732
|
+
"path": "clusterOffset";
|
|
2733
|
+
}
|
|
2734
|
+
];
|
|
2735
|
+
};
|
|
2736
|
+
},
|
|
2714
2737
|
{
|
|
2715
2738
|
"name": "executingPool";
|
|
2716
2739
|
"writable": true;
|
|
@@ -2799,6 +2822,17 @@ type Arcium = {
|
|
|
2799
2822
|
{
|
|
2800
2823
|
"name": "callbackTransactionIndex";
|
|
2801
2824
|
"type": "u8";
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
"name": "blsSig";
|
|
2828
|
+
"type": {
|
|
2829
|
+
"option": {
|
|
2830
|
+
"array": [
|
|
2831
|
+
"u8",
|
|
2832
|
+
64
|
|
2833
|
+
];
|
|
2834
|
+
};
|
|
2835
|
+
};
|
|
2802
2836
|
}
|
|
2803
2837
|
];
|
|
2804
2838
|
},
|
|
@@ -3890,6 +3924,17 @@ type Arcium = {
|
|
|
3890
3924
|
];
|
|
3891
3925
|
};
|
|
3892
3926
|
},
|
|
3927
|
+
{
|
|
3928
|
+
"name": "addressLookupTable";
|
|
3929
|
+
"docs": [
|
|
3930
|
+
"Seeds are checked in the CPI to LUT program, so no need to check them here."
|
|
3931
|
+
];
|
|
3932
|
+
"writable": true;
|
|
3933
|
+
},
|
|
3934
|
+
{
|
|
3935
|
+
"name": "lutProgram";
|
|
3936
|
+
"address": "AddressLookupTab1e1111111111111111111111111";
|
|
3937
|
+
},
|
|
3893
3938
|
{
|
|
3894
3939
|
"name": "compDefAcc";
|
|
3895
3940
|
"writable": true;
|
|
@@ -4004,6 +4049,11 @@ type Arcium = {
|
|
|
4004
4049
|
224
|
|
4005
4050
|
];
|
|
4006
4051
|
"accounts": [
|
|
4052
|
+
{
|
|
4053
|
+
"name": "authority";
|
|
4054
|
+
"writable": true;
|
|
4055
|
+
"signer": true;
|
|
4056
|
+
},
|
|
4007
4057
|
{
|
|
4008
4058
|
"name": "payer";
|
|
4009
4059
|
"writable": true;
|
|
@@ -4800,6 +4850,17 @@ type Arcium = {
|
|
|
4800
4850
|
];
|
|
4801
4851
|
};
|
|
4802
4852
|
},
|
|
4853
|
+
{
|
|
4854
|
+
"name": "addressLookupTable";
|
|
4855
|
+
"docs": [
|
|
4856
|
+
"Seeds are checked in the CPI to LUT program, so no need to check them here."
|
|
4857
|
+
];
|
|
4858
|
+
"writable": true;
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
"name": "lutProgram";
|
|
4862
|
+
"address": "AddressLookupTab1e1111111111111111111111111";
|
|
4863
|
+
},
|
|
4803
4864
|
{
|
|
4804
4865
|
"name": "clock";
|
|
4805
4866
|
"writable": true;
|
|
@@ -4855,6 +4916,10 @@ type Arcium = {
|
|
|
4855
4916
|
{
|
|
4856
4917
|
"name": "keyRecoveryInitOffset";
|
|
4857
4918
|
"type": "u64";
|
|
4919
|
+
},
|
|
4920
|
+
{
|
|
4921
|
+
"name": "recentOffset";
|
|
4922
|
+
"type": "u64";
|
|
4858
4923
|
}
|
|
4859
4924
|
];
|
|
4860
4925
|
},
|
|
@@ -5159,91 +5224,6 @@ type Arcium = {
|
|
|
5159
5224
|
}
|
|
5160
5225
|
];
|
|
5161
5226
|
},
|
|
5162
|
-
{
|
|
5163
|
-
"name": "leaveMxe";
|
|
5164
|
-
"discriminator": [
|
|
5165
|
-
225,
|
|
5166
|
-
222,
|
|
5167
|
-
68,
|
|
5168
|
-
9,
|
|
5169
|
-
96,
|
|
5170
|
-
160,
|
|
5171
|
-
126,
|
|
5172
|
-
211
|
|
5173
|
-
];
|
|
5174
|
-
"accounts": [
|
|
5175
|
-
{
|
|
5176
|
-
"name": "authority";
|
|
5177
|
-
"writable": true;
|
|
5178
|
-
"signer": true;
|
|
5179
|
-
},
|
|
5180
|
-
{
|
|
5181
|
-
"name": "clusterAcc";
|
|
5182
|
-
"writable": true;
|
|
5183
|
-
"pda": {
|
|
5184
|
-
"seeds": [
|
|
5185
|
-
{
|
|
5186
|
-
"kind": "const";
|
|
5187
|
-
"value": [
|
|
5188
|
-
67,
|
|
5189
|
-
108,
|
|
5190
|
-
117,
|
|
5191
|
-
115,
|
|
5192
|
-
116,
|
|
5193
|
-
101,
|
|
5194
|
-
114
|
|
5195
|
-
];
|
|
5196
|
-
},
|
|
5197
|
-
{
|
|
5198
|
-
"kind": "arg";
|
|
5199
|
-
"path": "id";
|
|
5200
|
-
}
|
|
5201
|
-
];
|
|
5202
|
-
};
|
|
5203
|
-
},
|
|
5204
|
-
{
|
|
5205
|
-
"name": "mxe";
|
|
5206
|
-
"writable": true;
|
|
5207
|
-
"pda": {
|
|
5208
|
-
"seeds": [
|
|
5209
|
-
{
|
|
5210
|
-
"kind": "const";
|
|
5211
|
-
"value": [
|
|
5212
|
-
77,
|
|
5213
|
-
88,
|
|
5214
|
-
69,
|
|
5215
|
-
65,
|
|
5216
|
-
99,
|
|
5217
|
-
99,
|
|
5218
|
-
111,
|
|
5219
|
-
117,
|
|
5220
|
-
110,
|
|
5221
|
-
116
|
|
5222
|
-
];
|
|
5223
|
-
},
|
|
5224
|
-
{
|
|
5225
|
-
"kind": "arg";
|
|
5226
|
-
"path": "mxeProgram";
|
|
5227
|
-
}
|
|
5228
|
-
];
|
|
5229
|
-
};
|
|
5230
|
-
},
|
|
5231
|
-
{
|
|
5232
|
-
"name": "systemProgram";
|
|
5233
|
-
"address": "11111111111111111111111111111111";
|
|
5234
|
-
}
|
|
5235
|
-
];
|
|
5236
|
-
"args": [
|
|
5237
|
-
{
|
|
5238
|
-
"name": "clusterOffset";
|
|
5239
|
-
"type": "u32";
|
|
5240
|
-
},
|
|
5241
|
-
{
|
|
5242
|
-
"name": "mxeProgram";
|
|
5243
|
-
"type": "pubkey";
|
|
5244
|
-
}
|
|
5245
|
-
];
|
|
5246
|
-
},
|
|
5247
5227
|
{
|
|
5248
5228
|
"name": "proposeFee";
|
|
5249
5229
|
"discriminator": [
|
|
@@ -5548,8 +5528,9 @@ type Arcium = {
|
|
|
5548
5528
|
];
|
|
5549
5529
|
},
|
|
5550
5530
|
{
|
|
5551
|
-
"kind": "
|
|
5552
|
-
"path": "
|
|
5531
|
+
"kind": "account";
|
|
5532
|
+
"path": "mxe.cluster.ok_or(ArciumError :: ClusterNotSet) ? ";
|
|
5533
|
+
"account": "mxeAccount";
|
|
5553
5534
|
},
|
|
5554
5535
|
{
|
|
5555
5536
|
"kind": "arg";
|
|
@@ -5603,8 +5584,9 @@ type Arcium = {
|
|
|
5603
5584
|
];
|
|
5604
5585
|
},
|
|
5605
5586
|
{
|
|
5606
|
-
"kind": "
|
|
5607
|
-
"path": "
|
|
5587
|
+
"kind": "account";
|
|
5588
|
+
"path": "mxe.cluster.ok_or(ArciumError :: ClusterNotSet) ? ";
|
|
5589
|
+
"account": "mxeAccount";
|
|
5608
5590
|
}
|
|
5609
5591
|
];
|
|
5610
5592
|
};
|
|
@@ -5627,8 +5609,9 @@ type Arcium = {
|
|
|
5627
5609
|
];
|
|
5628
5610
|
},
|
|
5629
5611
|
{
|
|
5630
|
-
"kind": "
|
|
5631
|
-
"path": "
|
|
5612
|
+
"kind": "account";
|
|
5613
|
+
"path": "mxe.cluster.ok_or(ArciumError :: ClusterNotSet) ? ";
|
|
5614
|
+
"account": "mxeAccount";
|
|
5632
5615
|
}
|
|
5633
5616
|
];
|
|
5634
5617
|
};
|
|
@@ -5699,8 +5682,9 @@ type Arcium = {
|
|
|
5699
5682
|
];
|
|
5700
5683
|
},
|
|
5701
5684
|
{
|
|
5702
|
-
"kind": "
|
|
5703
|
-
"path": "
|
|
5685
|
+
"kind": "account";
|
|
5686
|
+
"path": "mxe.cluster.ok_or(ArciumError :: ClusterNotSet) ? ";
|
|
5687
|
+
"account": "mxeAccount";
|
|
5704
5688
|
}
|
|
5705
5689
|
];
|
|
5706
5690
|
};
|
|
@@ -5764,12 +5748,6 @@ type Arcium = {
|
|
|
5764
5748
|
"name": "computationDefinitionOffset";
|
|
5765
5749
|
"type": "u32";
|
|
5766
5750
|
},
|
|
5767
|
-
{
|
|
5768
|
-
"name": "clusterIndex";
|
|
5769
|
-
"type": {
|
|
5770
|
-
"option": "u16";
|
|
5771
|
-
};
|
|
5772
|
-
},
|
|
5773
5751
|
{
|
|
5774
5752
|
"name": "args";
|
|
5775
5753
|
"type": {
|
|
@@ -5782,12 +5760,6 @@ type Arcium = {
|
|
|
5782
5760
|
"name": "mxeProgram";
|
|
5783
5761
|
"type": "pubkey";
|
|
5784
5762
|
},
|
|
5785
|
-
{
|
|
5786
|
-
"name": "callbackUrl";
|
|
5787
|
-
"type": {
|
|
5788
|
-
"option": "string";
|
|
5789
|
-
};
|
|
5790
|
-
},
|
|
5791
5763
|
{
|
|
5792
5764
|
"name": "customCallbackInstructions";
|
|
5793
5765
|
"type": {
|
|
@@ -6178,16 +6150,16 @@ type Arcium = {
|
|
|
6178
6150
|
];
|
|
6179
6151
|
},
|
|
6180
6152
|
{
|
|
6181
|
-
"name": "
|
|
6153
|
+
"name": "reclaimFailureRentIdempotent";
|
|
6182
6154
|
"discriminator": [
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6155
|
+
138,
|
|
6156
|
+
13,
|
|
6157
|
+
253,
|
|
6158
|
+
191,
|
|
6159
|
+
226,
|
|
6160
|
+
239,
|
|
6161
|
+
246,
|
|
6162
|
+
10
|
|
6191
6163
|
];
|
|
6192
6164
|
"accounts": [
|
|
6193
6165
|
{
|
|
@@ -6195,51 +6167,19 @@ type Arcium = {
|
|
|
6195
6167
|
"writable": true;
|
|
6196
6168
|
"signer": true;
|
|
6197
6169
|
},
|
|
6170
|
+
{
|
|
6171
|
+
"name": "recipient";
|
|
6172
|
+
"docs": [
|
|
6173
|
+
"failure PDA"
|
|
6174
|
+
];
|
|
6175
|
+
"writable": true;
|
|
6176
|
+
},
|
|
6198
6177
|
{
|
|
6199
6178
|
"name": "failureAcc";
|
|
6179
|
+
"docs": [
|
|
6180
|
+
"the checks and close by hand in the instruction handler."
|
|
6181
|
+
];
|
|
6200
6182
|
"writable": true;
|
|
6201
|
-
"pda": {
|
|
6202
|
-
"seeds": [
|
|
6203
|
-
{
|
|
6204
|
-
"kind": "const";
|
|
6205
|
-
"value": [
|
|
6206
|
-
70,
|
|
6207
|
-
97,
|
|
6208
|
-
105,
|
|
6209
|
-
108,
|
|
6210
|
-
117,
|
|
6211
|
-
114,
|
|
6212
|
-
101,
|
|
6213
|
-
67,
|
|
6214
|
-
108,
|
|
6215
|
-
97,
|
|
6216
|
-
105,
|
|
6217
|
-
109,
|
|
6218
|
-
65,
|
|
6219
|
-
99,
|
|
6220
|
-
99,
|
|
6221
|
-
111,
|
|
6222
|
-
117,
|
|
6223
|
-
110,
|
|
6224
|
-
116,
|
|
6225
|
-
72,
|
|
6226
|
-
101,
|
|
6227
|
-
97,
|
|
6228
|
-
100,
|
|
6229
|
-
101,
|
|
6230
|
-
114
|
|
6231
|
-
];
|
|
6232
|
-
},
|
|
6233
|
-
{
|
|
6234
|
-
"kind": "arg";
|
|
6235
|
-
"path": "mxeProgram";
|
|
6236
|
-
},
|
|
6237
|
-
{
|
|
6238
|
-
"kind": "arg";
|
|
6239
|
-
"path": "compOffset";
|
|
6240
|
-
}
|
|
6241
|
-
];
|
|
6242
|
-
};
|
|
6243
6183
|
}
|
|
6244
6184
|
];
|
|
6245
6185
|
"args": [
|
|
@@ -8335,6 +8275,19 @@ type Arcium = {
|
|
|
8335
8275
|
186
|
|
8336
8276
|
];
|
|
8337
8277
|
},
|
|
8278
|
+
{
|
|
8279
|
+
"name": "keyRecoveryEvent";
|
|
8280
|
+
"discriminator": [
|
|
8281
|
+
83,
|
|
8282
|
+
147,
|
|
8283
|
+
226,
|
|
8284
|
+
153,
|
|
8285
|
+
39,
|
|
8286
|
+
242,
|
|
8287
|
+
109,
|
|
8288
|
+
254
|
|
8289
|
+
];
|
|
8290
|
+
},
|
|
8338
8291
|
{
|
|
8339
8292
|
"name": "queueComputationEvent";
|
|
8340
8293
|
"discriminator": [
|
|
@@ -8475,6 +8428,11 @@ type Arcium = {
|
|
|
8475
8428
|
"name": "invalidCallbackIndex";
|
|
8476
8429
|
"msg": "Invalid callback transaction index";
|
|
8477
8430
|
},
|
|
8431
|
+
{
|
|
8432
|
+
"code": 6212;
|
|
8433
|
+
"name": "multiTxCallbacksDisabled";
|
|
8434
|
+
"msg": "Multi-transaction callbacks disabled";
|
|
8435
|
+
},
|
|
8478
8436
|
{
|
|
8479
8437
|
"code": 6300;
|
|
8480
8438
|
"name": "computationDefinitionNotCompleted";
|
|
@@ -8794,6 +8752,11 @@ type Arcium = {
|
|
|
8794
8752
|
"code": 6715;
|
|
8795
8753
|
"name": "arithmeticOverflow";
|
|
8796
8754
|
"msg": "Arithmetic overflow";
|
|
8755
|
+
},
|
|
8756
|
+
{
|
|
8757
|
+
"code": 6716;
|
|
8758
|
+
"name": "mxeInRecoveryState";
|
|
8759
|
+
"msg": "MXE is in recovery state, cannot queue new computations";
|
|
8797
8760
|
}
|
|
8798
8761
|
];
|
|
8799
8762
|
"types": [
|
|
@@ -9614,20 +9577,6 @@ type Arcium = {
|
|
|
9614
9577
|
};
|
|
9615
9578
|
};
|
|
9616
9579
|
},
|
|
9617
|
-
{
|
|
9618
|
-
"name": "clusterIndex";
|
|
9619
|
-
"docs": [
|
|
9620
|
-
"The MXE's cluster to be used for execution.",
|
|
9621
|
-
"",
|
|
9622
|
-
"# Notes",
|
|
9623
|
-
"",
|
|
9624
|
-
"- [None] represents the default cluster,",
|
|
9625
|
-
"- [Some] specifies the index of the fallback cluster."
|
|
9626
|
-
];
|
|
9627
|
-
"type": {
|
|
9628
|
-
"option": "u16";
|
|
9629
|
-
};
|
|
9630
|
-
},
|
|
9631
9580
|
{
|
|
9632
9581
|
"name": "arguments";
|
|
9633
9582
|
"type": {
|
|
@@ -9636,12 +9585,6 @@ type Arcium = {
|
|
|
9636
9585
|
};
|
|
9637
9586
|
};
|
|
9638
9587
|
},
|
|
9639
|
-
{
|
|
9640
|
-
"name": "callbackUrl";
|
|
9641
|
-
"type": {
|
|
9642
|
-
"option": "string";
|
|
9643
|
-
};
|
|
9644
|
-
},
|
|
9645
9588
|
{
|
|
9646
9589
|
"name": "customCallbackInstructions";
|
|
9647
9590
|
"type": {
|
|
@@ -9964,6 +9907,16 @@ type Arcium = {
|
|
|
9964
9907
|
};
|
|
9965
9908
|
}
|
|
9966
9909
|
];
|
|
9910
|
+
},
|
|
9911
|
+
{
|
|
9912
|
+
"name": "keyRecoveryFailure";
|
|
9913
|
+
"fields": [
|
|
9914
|
+
{
|
|
9915
|
+
"defined": {
|
|
9916
|
+
"name": "keyRecoveryFailureReason";
|
|
9917
|
+
};
|
|
9918
|
+
}
|
|
9919
|
+
];
|
|
9967
9920
|
}
|
|
9968
9921
|
];
|
|
9969
9922
|
};
|
|
@@ -10121,6 +10074,58 @@ type Arcium = {
|
|
|
10121
10074
|
];
|
|
10122
10075
|
};
|
|
10123
10076
|
},
|
|
10077
|
+
{
|
|
10078
|
+
"name": "keyRecoveryEvent";
|
|
10079
|
+
"type": {
|
|
10080
|
+
"kind": "struct";
|
|
10081
|
+
"fields": [
|
|
10082
|
+
{
|
|
10083
|
+
"name": "computationOffset";
|
|
10084
|
+
"type": "u64";
|
|
10085
|
+
},
|
|
10086
|
+
{
|
|
10087
|
+
"name": "mxeProgramId";
|
|
10088
|
+
"type": "pubkey";
|
|
10089
|
+
},
|
|
10090
|
+
{
|
|
10091
|
+
"name": "backupMxeProgramId";
|
|
10092
|
+
"type": "pubkey";
|
|
10093
|
+
}
|
|
10094
|
+
];
|
|
10095
|
+
};
|
|
10096
|
+
},
|
|
10097
|
+
{
|
|
10098
|
+
"name": "keyRecoveryFailureReason";
|
|
10099
|
+
"type": {
|
|
10100
|
+
"kind": "enum";
|
|
10101
|
+
"variants": [
|
|
10102
|
+
{
|
|
10103
|
+
"name": "keysDigestMismatch";
|
|
10104
|
+
},
|
|
10105
|
+
{
|
|
10106
|
+
"name": "x25519PubkeyMismatch";
|
|
10107
|
+
},
|
|
10108
|
+
{
|
|
10109
|
+
"name": "ed25519VerifyingKeyMismatch";
|
|
10110
|
+
},
|
|
10111
|
+
{
|
|
10112
|
+
"name": "elGamalPubkeyMismatch";
|
|
10113
|
+
},
|
|
10114
|
+
{
|
|
10115
|
+
"name": "tooManyCorruptPeers";
|
|
10116
|
+
},
|
|
10117
|
+
{
|
|
10118
|
+
"name": "serialization";
|
|
10119
|
+
},
|
|
10120
|
+
{
|
|
10121
|
+
"name": "noPubkeysSet";
|
|
10122
|
+
},
|
|
10123
|
+
{
|
|
10124
|
+
"name": "accountNotFound";
|
|
10125
|
+
}
|
|
10126
|
+
];
|
|
10127
|
+
};
|
|
10128
|
+
},
|
|
10124
10129
|
{
|
|
10125
10130
|
"name": "largeExecPool";
|
|
10126
10131
|
"serialization": "bytemuckunsafe";
|
|
@@ -10394,24 +10399,8 @@ type Arcium = {
|
|
|
10394
10399
|
};
|
|
10395
10400
|
},
|
|
10396
10401
|
{
|
|
10397
|
-
"name": "
|
|
10398
|
-
"
|
|
10399
|
-
"Fallback clusters that can execute this MXE as an alternative to the",
|
|
10400
|
-
"[MXEAccount::cluster]. There can be a maximum of [MAX_FALLBACK_CLUSTERS]",
|
|
10401
|
-
"fallback clusters."
|
|
10402
|
-
];
|
|
10403
|
-
"type": {
|
|
10404
|
-
"vec": "u32";
|
|
10405
|
-
};
|
|
10406
|
-
},
|
|
10407
|
-
{
|
|
10408
|
-
"name": "rejectedClusters";
|
|
10409
|
-
"docs": [
|
|
10410
|
-
"The clusters that have rejected this MXE."
|
|
10411
|
-
];
|
|
10412
|
-
"type": {
|
|
10413
|
-
"vec": "u32";
|
|
10414
|
-
};
|
|
10402
|
+
"name": "lutOffsetSlot";
|
|
10403
|
+
"type": "u64";
|
|
10415
10404
|
},
|
|
10416
10405
|
{
|
|
10417
10406
|
"name": "computationDefinitions";
|
|
@@ -11655,6 +11644,11 @@ type MempoolAccount = anchor.IdlTypes<Arcium>['tinyMempool'] | anchor.IdlTypes<A
|
|
|
11655
11644
|
* - Large: 100 parallel computations
|
|
11656
11645
|
*/
|
|
11657
11646
|
type ExecutingPoolAccount = anchor.IdlTypes<Arcium>['tinyExecPool'] | anchor.IdlTypes<Arcium>['smallExecPool'] | anchor.IdlTypes<Arcium>['mediumExecPool'] | anchor.IdlTypes<Arcium>['largeExecPool'];
|
|
11647
|
+
/**
|
|
11648
|
+
* IDL-generated type for circuit source location.
|
|
11649
|
+
* Discriminated union with variants: local, onChain, offChain.
|
|
11650
|
+
*/
|
|
11651
|
+
type CircuitSource = anchor.IdlTypes<Arcium>['circuitSource'];
|
|
11658
11652
|
/**
|
|
11659
11653
|
* Fetches and decodes the mempool account info for any mempool account size.
|
|
11660
11654
|
* @param provider - The Anchor provider to use for fetching accounts.
|
|
@@ -11715,6 +11709,18 @@ declare function getMXEPublicKey(provider: AnchorProvider, mxeProgramId: anchor.
|
|
|
11715
11709
|
* @returns The MXE's arcis ed25519 verifying key as a Uint8Array, or null if not set.
|
|
11716
11710
|
*/
|
|
11717
11711
|
declare function getMXEArcisEd25519VerifyingKey(provider: AnchorProvider, mxeProgramId: anchor.web3.PublicKey): Promise<Uint8Array | null>;
|
|
11712
|
+
/**
|
|
11713
|
+
* Represents the current state of a circuit's on-chain presence.
|
|
11714
|
+
* @internal Used by `uploadCircuit` - most users don't need this directly.
|
|
11715
|
+
*/
|
|
11716
|
+
type CircuitState = 'OnchainPending' | 'OnchainFinalized' | 'Offchain';
|
|
11717
|
+
/**
|
|
11718
|
+
* Determines the current state of a circuit based on its on-chain configuration.
|
|
11719
|
+
* @internal Called internally by `uploadCircuit` - most users don't need this directly.
|
|
11720
|
+
* @param circuitSource - The circuitSource field from ComputationDefinitionAccount.
|
|
11721
|
+
* @returns The current state of the circuit.
|
|
11722
|
+
*/
|
|
11723
|
+
declare function getCircuitState(circuitSource: CircuitSource): CircuitState;
|
|
11718
11724
|
/**
|
|
11719
11725
|
* Uploads a circuit to the blockchain, splitting it into multiple accounts if necessary.
|
|
11720
11726
|
* @param provider - The Anchor provider to use for transactions.
|
|
@@ -11785,15 +11791,15 @@ declare function initKeyRecoveryExecution(provider: AnchorProvider, originalMxeP
|
|
|
11785
11791
|
declare function submitKeyRecoveryShare(provider: AnchorProvider, originalMxeProgramId: anchor.web3.PublicKey, backupMxeProgramId: anchor.web3.PublicKey, nodeOffset: number, peerIndex: number, share: number[][] | Uint8Array[]): Promise<string>;
|
|
11786
11792
|
/**
|
|
11787
11793
|
* Finalizes key recovery execution after the submission threshold is met.
|
|
11788
|
-
* This queues the
|
|
11794
|
+
* This queues the key_recovery_finalize MPC computation on the backup cluster.
|
|
11789
11795
|
* @param provider - The Anchor provider to use for transactions.
|
|
11790
11796
|
* @param originalMxeProgramId - The public key of the original MXE program being recovered.
|
|
11791
11797
|
* @param backupMxeProgramId - The public key of the backup MXE program.
|
|
11792
11798
|
* @param clusterOffset - The cluster offset where the backup MXE is deployed.
|
|
11793
|
-
* @param
|
|
11799
|
+
* @param keyRecoveryFinalizeOffset - The computation offset for the key_recovery_finalize computation.
|
|
11794
11800
|
* @returns The transaction signature.
|
|
11795
11801
|
*/
|
|
11796
|
-
declare function finalizeKeyRecoveryExecution(provider: AnchorProvider, originalMxeProgramId: anchor.web3.PublicKey, backupMxeProgramId: anchor.web3.PublicKey, clusterOffset: number,
|
|
11802
|
+
declare function finalizeKeyRecoveryExecution(provider: AnchorProvider, originalMxeProgramId: anchor.web3.PublicKey, backupMxeProgramId: anchor.web3.PublicKey, clusterOffset: number, keyRecoveryFinalizeOffset: anchor.BN): Promise<string>;
|
|
11797
11803
|
/**
|
|
11798
11804
|
* Initializes an MXE (part 1). Due to Solana's 10KB per-instruction allocation limit,
|
|
11799
11805
|
* this only partially allocates recovery_cluster_acc.
|
|
@@ -11816,7 +11822,7 @@ declare function initMxePart1(provider: AnchorProvider, mxeProgramId: anchor.web
|
|
|
11816
11822
|
* @param mxeAuthority - Optional authority for the MXE (defaults to provider.publicKey).
|
|
11817
11823
|
* @returns The transaction signature.
|
|
11818
11824
|
*/
|
|
11819
|
-
declare function initMxePart2(provider: AnchorProvider, clusterOffset: number, mxeProgramId: anchor.web3.PublicKey, recoveryPeers: number[], keygenOffset: anchor.BN, keyRecoveryInitOffset: anchor.BN, mxeAuthority?: anchor.web3.PublicKey): Promise<string>;
|
|
11825
|
+
declare function initMxePart2(provider: AnchorProvider, clusterOffset: number, mxeProgramId: anchor.web3.PublicKey, recoveryPeers: number[], keygenOffset: anchor.BN, keyRecoveryInitOffset: anchor.BN, lutOffset: anchor.BN, mxeAuthority?: anchor.web3.PublicKey): Promise<string>;
|
|
11820
11826
|
|
|
11821
11827
|
/**
|
|
11822
11828
|
* Structure representing the local Arcium environment variables required for local development or testing.
|
|
@@ -11919,6 +11925,20 @@ declare function getRecoveryClusterAccAddress(mxeProgramId: PublicKey): PublicKe
|
|
|
11919
11925
|
* @returns The derived MXE recovery account public key.
|
|
11920
11926
|
*/
|
|
11921
11927
|
declare function getMxeRecoveryAccAddress(backupMxeProgramId: PublicKey, originalMxeProgramId: PublicKey): PublicKey;
|
|
11928
|
+
/**
|
|
11929
|
+
* Derives the raw circuit account address for a given computation definition and index.
|
|
11930
|
+
* @param compDefPubkey - The public key of the computation definition account.
|
|
11931
|
+
* @param rawCircuitIndex - The index of the raw circuit account (0-based).
|
|
11932
|
+
* @returns The derived raw circuit account public key.
|
|
11933
|
+
*/
|
|
11934
|
+
declare function getRawCircuitAccAddress(compDefPubkey: PublicKey, rawCircuitIndex: number): PublicKey;
|
|
11935
|
+
/**
|
|
11936
|
+
* Derives the address lookup table address for an MXE program.
|
|
11937
|
+
* @param mxeProgramId - The public key of the MXE program.
|
|
11938
|
+
* @param lutOffset - The index of the lookup table, to be fetched from the mxe account.
|
|
11939
|
+
* @returns The derived address lookup table public key.
|
|
11940
|
+
*/
|
|
11941
|
+
declare function getLookupTableAddress(mxeProgramId: PublicKey, lutOffset: anchor.BN): PublicKey;
|
|
11922
11942
|
|
|
11923
|
-
export { ARCIUM_ADDR, ARCIUM_IDL, Aes128Cipher, Aes192Cipher, Aes256Cipher, ArcisModule, ArcisType, ArcisValueField, CSplRescueCipher, CURVE25519_BASE_FIELD, CURVE25519_SCALAR_FIELD, CURVE25519_SCALAR_FIELD_MODULUS, IntegerInfo, Matrix, RescueCipher, RescueDesc, RescuePrimeHash, arcisEd25519, awaitComputationFinalization, buildFinalizeCompDefTx, createPacker, deserializeLE, finalizeKeyRecoveryExecution, generateRandomFieldElem, getArciumAccountBaseSeed, getArciumEnv, getArciumProgram, getArciumProgramId, getArxNodeAccAddress, getClockAccAddress, getClusterAccAddress, getCompDefAccAddress, getCompDefAccOffset, getComputationAccAddress, getComputationsInMempool, getExecutingPoolAccAddress, getExecutingPoolAccInfo, getFeePoolAccAddress, getMXEAccAddress, getMXEArcisEd25519VerifyingKey, getMXEPublicKey, getMempoolAccAddress, getMempoolAccInfo, getMempoolPriorityFeeStats, getMxeRecoveryAccAddress, getRecoveryClusterAccAddress, initKeyRecoveryExecution, initMxePart1, initMxePart2, isNullRef, positiveModulo, queueKeyRecoveryInit, randMatrix, recoverMxe, serializeLE, sha256, submitKeyRecoveryShare, toVec, uploadCircuit };
|
|
11924
|
-
export type { Arcium as ArciumIdlType, ArciumLocalEnv, ComputationErrorType, ComputationReference, ExecutingPoolAccount, FieldInfo, FpField, MempoolAccount, MempoolPriorityFeeStats, Packer };
|
|
11943
|
+
export { ARCIUM_ADDR, ARCIUM_IDL, Aes128Cipher, Aes192Cipher, Aes256Cipher, ArcisModule, ArcisType, ArcisValueField, CSplRescueCipher, CURVE25519_BASE_FIELD, CURVE25519_SCALAR_FIELD, CURVE25519_SCALAR_FIELD_MODULUS, IntegerInfo, Matrix, RescueCipher, RescueDesc, RescuePrimeHash, arcisEd25519, awaitComputationFinalization, buildFinalizeCompDefTx, createPacker, deserializeLE, finalizeKeyRecoveryExecution, generateRandomFieldElem, getArciumAccountBaseSeed, getArciumEnv, getArciumProgram, getArciumProgramId, getArxNodeAccAddress, getCircuitState, getClockAccAddress, getClusterAccAddress, getCompDefAccAddress, getCompDefAccOffset, getComputationAccAddress, getComputationsInMempool, getExecutingPoolAccAddress, getExecutingPoolAccInfo, getFeePoolAccAddress, getLookupTableAddress, getMXEAccAddress, getMXEArcisEd25519VerifyingKey, getMXEPublicKey, getMempoolAccAddress, getMempoolAccInfo, getMempoolPriorityFeeStats, getMxeRecoveryAccAddress, getRawCircuitAccAddress, getRecoveryClusterAccAddress, initKeyRecoveryExecution, initMxePart1, initMxePart2, isNullRef, positiveModulo, queueKeyRecoveryInit, randMatrix, recoverMxe, serializeLE, sha256, submitKeyRecoveryShare, toVec, uploadCircuit };
|
|
11944
|
+
export type { Arcium as ArciumIdlType, ArciumLocalEnv, CircuitSource, CircuitState, ComputationErrorType, ComputationReference, ExecutingPoolAccount, FieldInfo, FpField, MempoolAccount, MempoolPriorityFeeStats, Packer };
|