@arcium-hq/client 0.6.1 → 0.6.2
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/build/index.cjs +89 -68
- package/build/index.d.ts +88 -67
- package/build/index.mjs +89 -68
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -1720,7 +1720,7 @@ function createPacker(fields, typeName = 'Packer') {
|
|
|
1720
1720
|
var address = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
1721
1721
|
var metadata = {
|
|
1722
1722
|
name: "arcium",
|
|
1723
|
-
version: "0.6.
|
|
1723
|
+
version: "0.6.2",
|
|
1724
1724
|
spec: "0.1.0",
|
|
1725
1725
|
description: "The Arcium program"
|
|
1726
1726
|
};
|
|
@@ -2893,18 +2893,24 @@ var instructions = [
|
|
|
2893
2893
|
{
|
|
2894
2894
|
kind: "const",
|
|
2895
2895
|
value: [
|
|
2896
|
-
|
|
2896
|
+
77,
|
|
2897
2897
|
120,
|
|
2898
2898
|
101,
|
|
2899
|
-
|
|
2900
|
-
114,
|
|
2899
|
+
82,
|
|
2901
2900
|
101,
|
|
2902
2901
|
99,
|
|
2903
2902
|
111,
|
|
2904
2903
|
118,
|
|
2905
2904
|
101,
|
|
2906
2905
|
114,
|
|
2907
|
-
121
|
|
2906
|
+
121,
|
|
2907
|
+
65,
|
|
2908
|
+
99,
|
|
2909
|
+
99,
|
|
2910
|
+
111,
|
|
2911
|
+
117,
|
|
2912
|
+
110,
|
|
2913
|
+
116
|
|
2908
2914
|
]
|
|
2909
2915
|
},
|
|
2910
2916
|
{
|
|
@@ -3670,18 +3676,24 @@ var instructions = [
|
|
|
3670
3676
|
{
|
|
3671
3677
|
kind: "const",
|
|
3672
3678
|
value: [
|
|
3673
|
-
|
|
3679
|
+
77,
|
|
3674
3680
|
120,
|
|
3675
3681
|
101,
|
|
3676
|
-
|
|
3677
|
-
114,
|
|
3682
|
+
82,
|
|
3678
3683
|
101,
|
|
3679
3684
|
99,
|
|
3680
3685
|
111,
|
|
3681
3686
|
118,
|
|
3682
3687
|
101,
|
|
3683
3688
|
114,
|
|
3684
|
-
121
|
|
3689
|
+
121,
|
|
3690
|
+
65,
|
|
3691
|
+
99,
|
|
3692
|
+
99,
|
|
3693
|
+
111,
|
|
3694
|
+
117,
|
|
3695
|
+
110,
|
|
3696
|
+
116
|
|
3685
3697
|
]
|
|
3686
3698
|
},
|
|
3687
3699
|
{
|
|
@@ -4025,18 +4037,24 @@ var instructions = [
|
|
|
4025
4037
|
{
|
|
4026
4038
|
kind: "const",
|
|
4027
4039
|
value: [
|
|
4028
|
-
|
|
4040
|
+
77,
|
|
4029
4041
|
120,
|
|
4030
4042
|
101,
|
|
4031
|
-
|
|
4032
|
-
114,
|
|
4043
|
+
82,
|
|
4033
4044
|
101,
|
|
4034
4045
|
99,
|
|
4035
4046
|
111,
|
|
4036
4047
|
118,
|
|
4037
4048
|
101,
|
|
4038
4049
|
114,
|
|
4039
|
-
121
|
|
4050
|
+
121,
|
|
4051
|
+
65,
|
|
4052
|
+
99,
|
|
4053
|
+
99,
|
|
4054
|
+
111,
|
|
4055
|
+
117,
|
|
4056
|
+
110,
|
|
4057
|
+
116
|
|
4040
4058
|
]
|
|
4041
4059
|
},
|
|
4042
4060
|
{
|
|
@@ -5139,18 +5157,24 @@ var instructions = [
|
|
|
5139
5157
|
{
|
|
5140
5158
|
kind: "const",
|
|
5141
5159
|
value: [
|
|
5142
|
-
|
|
5160
|
+
77,
|
|
5143
5161
|
120,
|
|
5144
5162
|
101,
|
|
5145
|
-
|
|
5146
|
-
114,
|
|
5163
|
+
82,
|
|
5147
5164
|
101,
|
|
5148
5165
|
99,
|
|
5149
5166
|
111,
|
|
5150
5167
|
118,
|
|
5151
5168
|
101,
|
|
5152
5169
|
114,
|
|
5153
|
-
121
|
|
5170
|
+
121,
|
|
5171
|
+
65,
|
|
5172
|
+
99,
|
|
5173
|
+
99,
|
|
5174
|
+
111,
|
|
5175
|
+
117,
|
|
5176
|
+
110,
|
|
5177
|
+
116
|
|
5154
5178
|
]
|
|
5155
5179
|
},
|
|
5156
5180
|
{
|
|
@@ -5312,18 +5336,24 @@ var instructions = [
|
|
|
5312
5336
|
{
|
|
5313
5337
|
kind: "const",
|
|
5314
5338
|
value: [
|
|
5315
|
-
|
|
5339
|
+
77,
|
|
5316
5340
|
120,
|
|
5317
5341
|
101,
|
|
5318
|
-
|
|
5319
|
-
114,
|
|
5342
|
+
82,
|
|
5320
5343
|
101,
|
|
5321
5344
|
99,
|
|
5322
5345
|
111,
|
|
5323
5346
|
118,
|
|
5324
5347
|
101,
|
|
5325
5348
|
114,
|
|
5326
|
-
121
|
|
5349
|
+
121,
|
|
5350
|
+
65,
|
|
5351
|
+
99,
|
|
5352
|
+
99,
|
|
5353
|
+
111,
|
|
5354
|
+
117,
|
|
5355
|
+
110,
|
|
5356
|
+
116
|
|
5327
5357
|
]
|
|
5328
5358
|
},
|
|
5329
5359
|
{
|
|
@@ -7480,18 +7510,24 @@ var instructions = [
|
|
|
7480
7510
|
{
|
|
7481
7511
|
kind: "const",
|
|
7482
7512
|
value: [
|
|
7483
|
-
|
|
7513
|
+
77,
|
|
7484
7514
|
120,
|
|
7485
7515
|
101,
|
|
7486
|
-
|
|
7487
|
-
114,
|
|
7516
|
+
82,
|
|
7488
7517
|
101,
|
|
7489
7518
|
99,
|
|
7490
7519
|
111,
|
|
7491
7520
|
118,
|
|
7492
7521
|
101,
|
|
7493
7522
|
114,
|
|
7494
|
-
121
|
|
7523
|
+
121,
|
|
7524
|
+
65,
|
|
7525
|
+
99,
|
|
7526
|
+
99,
|
|
7527
|
+
111,
|
|
7528
|
+
117,
|
|
7529
|
+
110,
|
|
7530
|
+
116
|
|
7495
7531
|
]
|
|
7496
7532
|
},
|
|
7497
7533
|
{
|
|
@@ -8720,18 +8756,24 @@ var instructions = [
|
|
|
8720
8756
|
{
|
|
8721
8757
|
kind: "const",
|
|
8722
8758
|
value: [
|
|
8723
|
-
|
|
8759
|
+
77,
|
|
8724
8760
|
120,
|
|
8725
8761
|
101,
|
|
8726
|
-
|
|
8727
|
-
114,
|
|
8762
|
+
82,
|
|
8728
8763
|
101,
|
|
8729
8764
|
99,
|
|
8730
8765
|
111,
|
|
8731
8766
|
118,
|
|
8732
8767
|
101,
|
|
8733
8768
|
114,
|
|
8734
|
-
121
|
|
8769
|
+
121,
|
|
8770
|
+
65,
|
|
8771
|
+
99,
|
|
8772
|
+
99,
|
|
8773
|
+
111,
|
|
8774
|
+
117,
|
|
8775
|
+
110,
|
|
8776
|
+
116
|
|
8735
8777
|
]
|
|
8736
8778
|
},
|
|
8737
8779
|
{
|
|
@@ -9845,6 +9887,11 @@ var errors = [
|
|
|
9845
9887
|
code: 6713,
|
|
9846
9888
|
name: "BackupClusterNotSet",
|
|
9847
9889
|
msg: "Backup MXE cluster is not set"
|
|
9890
|
+
},
|
|
9891
|
+
{
|
|
9892
|
+
code: 6714,
|
|
9893
|
+
name: "ShareAlreadySubmitted",
|
|
9894
|
+
msg: "Share already submitted"
|
|
9848
9895
|
}
|
|
9849
9896
|
];
|
|
9850
9897
|
var types = [
|
|
@@ -11705,17 +11752,11 @@ var types = [
|
|
|
11705
11752
|
kind: "struct",
|
|
11706
11753
|
fields: [
|
|
11707
11754
|
{
|
|
11708
|
-
name: "
|
|
11755
|
+
name: "key_recovery_finalize_offset",
|
|
11709
11756
|
docs: [
|
|
11710
|
-
"
|
|
11711
|
-
"Bit index corresponds to the index in the original MXE's recovery_peers array."
|
|
11757
|
+
"The computation offset for the queued key_recovery_finalize circuit."
|
|
11712
11758
|
],
|
|
11713
|
-
type:
|
|
11714
|
-
array: [
|
|
11715
|
-
"u8",
|
|
11716
|
-
13
|
|
11717
|
-
]
|
|
11718
|
-
}
|
|
11759
|
+
type: "u64"
|
|
11719
11760
|
},
|
|
11720
11761
|
{
|
|
11721
11762
|
name: "shares",
|
|
@@ -11741,52 +11782,32 @@ var types = [
|
|
|
11741
11782
|
}
|
|
11742
11783
|
},
|
|
11743
11784
|
{
|
|
11744
|
-
name: "
|
|
11745
|
-
|
|
11746
|
-
"Whether the recovery has been finalized (threshold met and marked ready)."
|
|
11747
|
-
],
|
|
11748
|
-
type: "u8"
|
|
11785
|
+
name: "original_mxe_pubkey",
|
|
11786
|
+
type: "pubkey"
|
|
11749
11787
|
},
|
|
11750
11788
|
{
|
|
11751
|
-
name: "
|
|
11752
|
-
|
|
11753
|
-
"Padding for u64 alignment (need 5 bytes to align key_recovery_final_offset at 8-byte",
|
|
11754
|
-
"boundary)"
|
|
11755
|
-
],
|
|
11756
|
-
type: {
|
|
11757
|
-
array: [
|
|
11758
|
-
"u8",
|
|
11759
|
-
2
|
|
11760
|
-
]
|
|
11761
|
-
}
|
|
11789
|
+
name: "backup_mxe_pubkey",
|
|
11790
|
+
type: "pubkey"
|
|
11762
11791
|
},
|
|
11763
11792
|
{
|
|
11764
|
-
name: "
|
|
11793
|
+
name: "is_finalized",
|
|
11765
11794
|
docs: [
|
|
11766
|
-
"
|
|
11795
|
+
"Whether the recovery has been finalized (threshold met and marked ready)."
|
|
11767
11796
|
],
|
|
11768
|
-
type: "
|
|
11797
|
+
type: "u8"
|
|
11769
11798
|
},
|
|
11770
11799
|
{
|
|
11771
11800
|
name: "_padding2",
|
|
11772
11801
|
docs: [
|
|
11773
|
-
"Padding to ensure struct size is
|
|
11802
|
+
"Padding to ensure struct size is u64 aligned (6 bytes)"
|
|
11774
11803
|
],
|
|
11775
11804
|
type: {
|
|
11776
11805
|
array: [
|
|
11777
11806
|
"u8",
|
|
11778
|
-
|
|
11807
|
+
6
|
|
11779
11808
|
]
|
|
11780
11809
|
}
|
|
11781
11810
|
},
|
|
11782
|
-
{
|
|
11783
|
-
name: "original_mxe_pubkey",
|
|
11784
|
-
type: "pubkey"
|
|
11785
|
-
},
|
|
11786
|
-
{
|
|
11787
|
-
name: "backup_mxe_pubkey",
|
|
11788
|
-
type: "pubkey"
|
|
11789
|
-
},
|
|
11790
11811
|
{
|
|
11791
11812
|
name: "bump",
|
|
11792
11813
|
type: "u8"
|
|
@@ -12775,7 +12796,7 @@ const RECOVERY_CLUSTER_ACC_SEED = 'RecoveryClusterAccount';
|
|
|
12775
12796
|
* Seed for MxeRecoveryAccount PDA
|
|
12776
12797
|
* @constant {string}
|
|
12777
12798
|
*/
|
|
12778
|
-
const MXE_RECOVERY_ACC_SEED = '
|
|
12799
|
+
const MXE_RECOVERY_ACC_SEED = 'MxeRecoveryAccount';
|
|
12779
12800
|
/**
|
|
12780
12801
|
* Maximum number of bytes that can be reallocated per instruction.
|
|
12781
12802
|
* @constant {number}
|
package/build/index.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ type Arcium = {
|
|
|
396
396
|
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
397
397
|
"metadata": {
|
|
398
398
|
"name": "arcium";
|
|
399
|
-
"version": "0.6.
|
|
399
|
+
"version": "0.6.2";
|
|
400
400
|
"spec": "0.1.0";
|
|
401
401
|
"description": "The Arcium program";
|
|
402
402
|
};
|
|
@@ -1569,18 +1569,24 @@ type Arcium = {
|
|
|
1569
1569
|
{
|
|
1570
1570
|
"kind": "const";
|
|
1571
1571
|
"value": [
|
|
1572
|
-
|
|
1572
|
+
77,
|
|
1573
1573
|
120,
|
|
1574
1574
|
101,
|
|
1575
|
-
|
|
1576
|
-
114,
|
|
1575
|
+
82,
|
|
1577
1576
|
101,
|
|
1578
1577
|
99,
|
|
1579
1578
|
111,
|
|
1580
1579
|
118,
|
|
1581
1580
|
101,
|
|
1582
1581
|
114,
|
|
1583
|
-
121
|
|
1582
|
+
121,
|
|
1583
|
+
65,
|
|
1584
|
+
99,
|
|
1585
|
+
99,
|
|
1586
|
+
111,
|
|
1587
|
+
117,
|
|
1588
|
+
110,
|
|
1589
|
+
116
|
|
1584
1590
|
];
|
|
1585
1591
|
},
|
|
1586
1592
|
{
|
|
@@ -2345,18 +2351,24 @@ type Arcium = {
|
|
|
2345
2351
|
{
|
|
2346
2352
|
"kind": "const";
|
|
2347
2353
|
"value": [
|
|
2348
|
-
|
|
2354
|
+
77,
|
|
2349
2355
|
120,
|
|
2350
2356
|
101,
|
|
2351
|
-
|
|
2352
|
-
114,
|
|
2357
|
+
82,
|
|
2353
2358
|
101,
|
|
2354
2359
|
99,
|
|
2355
2360
|
111,
|
|
2356
2361
|
118,
|
|
2357
2362
|
101,
|
|
2358
2363
|
114,
|
|
2359
|
-
121
|
|
2364
|
+
121,
|
|
2365
|
+
65,
|
|
2366
|
+
99,
|
|
2367
|
+
99,
|
|
2368
|
+
111,
|
|
2369
|
+
117,
|
|
2370
|
+
110,
|
|
2371
|
+
116
|
|
2360
2372
|
];
|
|
2361
2373
|
},
|
|
2362
2374
|
{
|
|
@@ -2700,18 +2712,24 @@ type Arcium = {
|
|
|
2700
2712
|
{
|
|
2701
2713
|
"kind": "const";
|
|
2702
2714
|
"value": [
|
|
2703
|
-
|
|
2715
|
+
77,
|
|
2704
2716
|
120,
|
|
2705
2717
|
101,
|
|
2706
|
-
|
|
2707
|
-
114,
|
|
2718
|
+
82,
|
|
2708
2719
|
101,
|
|
2709
2720
|
99,
|
|
2710
2721
|
111,
|
|
2711
2722
|
118,
|
|
2712
2723
|
101,
|
|
2713
2724
|
114,
|
|
2714
|
-
121
|
|
2725
|
+
121,
|
|
2726
|
+
65,
|
|
2727
|
+
99,
|
|
2728
|
+
99,
|
|
2729
|
+
111,
|
|
2730
|
+
117,
|
|
2731
|
+
110,
|
|
2732
|
+
116
|
|
2715
2733
|
];
|
|
2716
2734
|
},
|
|
2717
2735
|
{
|
|
@@ -3814,18 +3832,24 @@ type Arcium = {
|
|
|
3814
3832
|
{
|
|
3815
3833
|
"kind": "const";
|
|
3816
3834
|
"value": [
|
|
3817
|
-
|
|
3835
|
+
77,
|
|
3818
3836
|
120,
|
|
3819
3837
|
101,
|
|
3820
|
-
|
|
3821
|
-
114,
|
|
3838
|
+
82,
|
|
3822
3839
|
101,
|
|
3823
3840
|
99,
|
|
3824
3841
|
111,
|
|
3825
3842
|
118,
|
|
3826
3843
|
101,
|
|
3827
3844
|
114,
|
|
3828
|
-
121
|
|
3845
|
+
121,
|
|
3846
|
+
65,
|
|
3847
|
+
99,
|
|
3848
|
+
99,
|
|
3849
|
+
111,
|
|
3850
|
+
117,
|
|
3851
|
+
110,
|
|
3852
|
+
116
|
|
3829
3853
|
];
|
|
3830
3854
|
},
|
|
3831
3855
|
{
|
|
@@ -3987,18 +4011,24 @@ type Arcium = {
|
|
|
3987
4011
|
{
|
|
3988
4012
|
"kind": "const";
|
|
3989
4013
|
"value": [
|
|
3990
|
-
|
|
4014
|
+
77,
|
|
3991
4015
|
120,
|
|
3992
4016
|
101,
|
|
3993
|
-
|
|
3994
|
-
114,
|
|
4017
|
+
82,
|
|
3995
4018
|
101,
|
|
3996
4019
|
99,
|
|
3997
4020
|
111,
|
|
3998
4021
|
118,
|
|
3999
4022
|
101,
|
|
4000
4023
|
114,
|
|
4001
|
-
121
|
|
4024
|
+
121,
|
|
4025
|
+
65,
|
|
4026
|
+
99,
|
|
4027
|
+
99,
|
|
4028
|
+
111,
|
|
4029
|
+
117,
|
|
4030
|
+
110,
|
|
4031
|
+
116
|
|
4002
4032
|
];
|
|
4003
4033
|
},
|
|
4004
4034
|
{
|
|
@@ -6154,18 +6184,24 @@ type Arcium = {
|
|
|
6154
6184
|
{
|
|
6155
6185
|
"kind": "const";
|
|
6156
6186
|
"value": [
|
|
6157
|
-
|
|
6187
|
+
77,
|
|
6158
6188
|
120,
|
|
6159
6189
|
101,
|
|
6160
|
-
|
|
6161
|
-
114,
|
|
6190
|
+
82,
|
|
6162
6191
|
101,
|
|
6163
6192
|
99,
|
|
6164
6193
|
111,
|
|
6165
6194
|
118,
|
|
6166
6195
|
101,
|
|
6167
6196
|
114,
|
|
6168
|
-
121
|
|
6197
|
+
121,
|
|
6198
|
+
65,
|
|
6199
|
+
99,
|
|
6200
|
+
99,
|
|
6201
|
+
111,
|
|
6202
|
+
117,
|
|
6203
|
+
110,
|
|
6204
|
+
116
|
|
6169
6205
|
];
|
|
6170
6206
|
},
|
|
6171
6207
|
{
|
|
@@ -7394,18 +7430,24 @@ type Arcium = {
|
|
|
7394
7430
|
{
|
|
7395
7431
|
"kind": "const";
|
|
7396
7432
|
"value": [
|
|
7397
|
-
|
|
7433
|
+
77,
|
|
7398
7434
|
120,
|
|
7399
7435
|
101,
|
|
7400
|
-
|
|
7401
|
-
114,
|
|
7436
|
+
82,
|
|
7402
7437
|
101,
|
|
7403
7438
|
99,
|
|
7404
7439
|
111,
|
|
7405
7440
|
118,
|
|
7406
7441
|
101,
|
|
7407
7442
|
114,
|
|
7408
|
-
121
|
|
7443
|
+
121,
|
|
7444
|
+
65,
|
|
7445
|
+
99,
|
|
7446
|
+
99,
|
|
7447
|
+
111,
|
|
7448
|
+
117,
|
|
7449
|
+
110,
|
|
7450
|
+
116
|
|
7409
7451
|
];
|
|
7410
7452
|
},
|
|
7411
7453
|
{
|
|
@@ -8518,6 +8560,11 @@ type Arcium = {
|
|
|
8518
8560
|
"code": 6713;
|
|
8519
8561
|
"name": "backupClusterNotSet";
|
|
8520
8562
|
"msg": "Backup MXE cluster is not set";
|
|
8563
|
+
},
|
|
8564
|
+
{
|
|
8565
|
+
"code": 6714;
|
|
8566
|
+
"name": "shareAlreadySubmitted";
|
|
8567
|
+
"msg": "Share already submitted";
|
|
8521
8568
|
}
|
|
8522
8569
|
];
|
|
8523
8570
|
"types": [
|
|
@@ -10378,17 +10425,11 @@ type Arcium = {
|
|
|
10378
10425
|
"kind": "struct";
|
|
10379
10426
|
"fields": [
|
|
10380
10427
|
{
|
|
10381
|
-
"name": "
|
|
10428
|
+
"name": "keyRecoveryFinalizeOffset";
|
|
10382
10429
|
"docs": [
|
|
10383
|
-
"
|
|
10384
|
-
"Bit index corresponds to the index in the original MXE's recovery_peers array."
|
|
10430
|
+
"The computation offset for the queued key_recovery_finalize circuit."
|
|
10385
10431
|
];
|
|
10386
|
-
"type":
|
|
10387
|
-
"array": [
|
|
10388
|
-
"u8",
|
|
10389
|
-
13
|
|
10390
|
-
];
|
|
10391
|
-
};
|
|
10432
|
+
"type": "u64";
|
|
10392
10433
|
},
|
|
10393
10434
|
{
|
|
10394
10435
|
"name": "shares";
|
|
@@ -10414,52 +10455,32 @@ type Arcium = {
|
|
|
10414
10455
|
};
|
|
10415
10456
|
},
|
|
10416
10457
|
{
|
|
10417
|
-
"name": "
|
|
10418
|
-
"
|
|
10419
|
-
"Whether the recovery has been finalized (threshold met and marked ready)."
|
|
10420
|
-
];
|
|
10421
|
-
"type": "u8";
|
|
10458
|
+
"name": "originalMxePubkey";
|
|
10459
|
+
"type": "pubkey";
|
|
10422
10460
|
},
|
|
10423
10461
|
{
|
|
10424
|
-
"name": "
|
|
10425
|
-
"
|
|
10426
|
-
"Padding for u64 alignment (need 5 bytes to align key_recovery_final_offset at 8-byte",
|
|
10427
|
-
"boundary)"
|
|
10428
|
-
];
|
|
10429
|
-
"type": {
|
|
10430
|
-
"array": [
|
|
10431
|
-
"u8",
|
|
10432
|
-
2
|
|
10433
|
-
];
|
|
10434
|
-
};
|
|
10462
|
+
"name": "backupMxePubkey";
|
|
10463
|
+
"type": "pubkey";
|
|
10435
10464
|
},
|
|
10436
10465
|
{
|
|
10437
|
-
"name": "
|
|
10466
|
+
"name": "isFinalized";
|
|
10438
10467
|
"docs": [
|
|
10439
|
-
"
|
|
10468
|
+
"Whether the recovery has been finalized (threshold met and marked ready)."
|
|
10440
10469
|
];
|
|
10441
|
-
"type": "
|
|
10470
|
+
"type": "u8";
|
|
10442
10471
|
},
|
|
10443
10472
|
{
|
|
10444
10473
|
"name": "padding2";
|
|
10445
10474
|
"docs": [
|
|
10446
|
-
"Padding to ensure struct size is
|
|
10475
|
+
"Padding to ensure struct size is u64 aligned (6 bytes)"
|
|
10447
10476
|
];
|
|
10448
10477
|
"type": {
|
|
10449
10478
|
"array": [
|
|
10450
10479
|
"u8",
|
|
10451
|
-
|
|
10480
|
+
6
|
|
10452
10481
|
];
|
|
10453
10482
|
};
|
|
10454
10483
|
},
|
|
10455
|
-
{
|
|
10456
|
-
"name": "originalMxePubkey";
|
|
10457
|
-
"type": "pubkey";
|
|
10458
|
-
},
|
|
10459
|
-
{
|
|
10460
|
-
"name": "backupMxePubkey";
|
|
10461
|
-
"type": "pubkey";
|
|
10462
|
-
},
|
|
10463
10484
|
{
|
|
10464
10485
|
"name": "bump";
|
|
10465
10486
|
"type": "u8";
|
package/build/index.mjs
CHANGED
|
@@ -1701,7 +1701,7 @@ function createPacker(fields, typeName = 'Packer') {
|
|
|
1701
1701
|
var address = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
1702
1702
|
var metadata = {
|
|
1703
1703
|
name: "arcium",
|
|
1704
|
-
version: "0.6.
|
|
1704
|
+
version: "0.6.2",
|
|
1705
1705
|
spec: "0.1.0",
|
|
1706
1706
|
description: "The Arcium program"
|
|
1707
1707
|
};
|
|
@@ -2874,18 +2874,24 @@ var instructions = [
|
|
|
2874
2874
|
{
|
|
2875
2875
|
kind: "const",
|
|
2876
2876
|
value: [
|
|
2877
|
-
|
|
2877
|
+
77,
|
|
2878
2878
|
120,
|
|
2879
2879
|
101,
|
|
2880
|
-
|
|
2881
|
-
114,
|
|
2880
|
+
82,
|
|
2882
2881
|
101,
|
|
2883
2882
|
99,
|
|
2884
2883
|
111,
|
|
2885
2884
|
118,
|
|
2886
2885
|
101,
|
|
2887
2886
|
114,
|
|
2888
|
-
121
|
|
2887
|
+
121,
|
|
2888
|
+
65,
|
|
2889
|
+
99,
|
|
2890
|
+
99,
|
|
2891
|
+
111,
|
|
2892
|
+
117,
|
|
2893
|
+
110,
|
|
2894
|
+
116
|
|
2889
2895
|
]
|
|
2890
2896
|
},
|
|
2891
2897
|
{
|
|
@@ -3651,18 +3657,24 @@ var instructions = [
|
|
|
3651
3657
|
{
|
|
3652
3658
|
kind: "const",
|
|
3653
3659
|
value: [
|
|
3654
|
-
|
|
3660
|
+
77,
|
|
3655
3661
|
120,
|
|
3656
3662
|
101,
|
|
3657
|
-
|
|
3658
|
-
114,
|
|
3663
|
+
82,
|
|
3659
3664
|
101,
|
|
3660
3665
|
99,
|
|
3661
3666
|
111,
|
|
3662
3667
|
118,
|
|
3663
3668
|
101,
|
|
3664
3669
|
114,
|
|
3665
|
-
121
|
|
3670
|
+
121,
|
|
3671
|
+
65,
|
|
3672
|
+
99,
|
|
3673
|
+
99,
|
|
3674
|
+
111,
|
|
3675
|
+
117,
|
|
3676
|
+
110,
|
|
3677
|
+
116
|
|
3666
3678
|
]
|
|
3667
3679
|
},
|
|
3668
3680
|
{
|
|
@@ -4006,18 +4018,24 @@ var instructions = [
|
|
|
4006
4018
|
{
|
|
4007
4019
|
kind: "const",
|
|
4008
4020
|
value: [
|
|
4009
|
-
|
|
4021
|
+
77,
|
|
4010
4022
|
120,
|
|
4011
4023
|
101,
|
|
4012
|
-
|
|
4013
|
-
114,
|
|
4024
|
+
82,
|
|
4014
4025
|
101,
|
|
4015
4026
|
99,
|
|
4016
4027
|
111,
|
|
4017
4028
|
118,
|
|
4018
4029
|
101,
|
|
4019
4030
|
114,
|
|
4020
|
-
121
|
|
4031
|
+
121,
|
|
4032
|
+
65,
|
|
4033
|
+
99,
|
|
4034
|
+
99,
|
|
4035
|
+
111,
|
|
4036
|
+
117,
|
|
4037
|
+
110,
|
|
4038
|
+
116
|
|
4021
4039
|
]
|
|
4022
4040
|
},
|
|
4023
4041
|
{
|
|
@@ -5120,18 +5138,24 @@ var instructions = [
|
|
|
5120
5138
|
{
|
|
5121
5139
|
kind: "const",
|
|
5122
5140
|
value: [
|
|
5123
|
-
|
|
5141
|
+
77,
|
|
5124
5142
|
120,
|
|
5125
5143
|
101,
|
|
5126
|
-
|
|
5127
|
-
114,
|
|
5144
|
+
82,
|
|
5128
5145
|
101,
|
|
5129
5146
|
99,
|
|
5130
5147
|
111,
|
|
5131
5148
|
118,
|
|
5132
5149
|
101,
|
|
5133
5150
|
114,
|
|
5134
|
-
121
|
|
5151
|
+
121,
|
|
5152
|
+
65,
|
|
5153
|
+
99,
|
|
5154
|
+
99,
|
|
5155
|
+
111,
|
|
5156
|
+
117,
|
|
5157
|
+
110,
|
|
5158
|
+
116
|
|
5135
5159
|
]
|
|
5136
5160
|
},
|
|
5137
5161
|
{
|
|
@@ -5293,18 +5317,24 @@ var instructions = [
|
|
|
5293
5317
|
{
|
|
5294
5318
|
kind: "const",
|
|
5295
5319
|
value: [
|
|
5296
|
-
|
|
5320
|
+
77,
|
|
5297
5321
|
120,
|
|
5298
5322
|
101,
|
|
5299
|
-
|
|
5300
|
-
114,
|
|
5323
|
+
82,
|
|
5301
5324
|
101,
|
|
5302
5325
|
99,
|
|
5303
5326
|
111,
|
|
5304
5327
|
118,
|
|
5305
5328
|
101,
|
|
5306
5329
|
114,
|
|
5307
|
-
121
|
|
5330
|
+
121,
|
|
5331
|
+
65,
|
|
5332
|
+
99,
|
|
5333
|
+
99,
|
|
5334
|
+
111,
|
|
5335
|
+
117,
|
|
5336
|
+
110,
|
|
5337
|
+
116
|
|
5308
5338
|
]
|
|
5309
5339
|
},
|
|
5310
5340
|
{
|
|
@@ -7461,18 +7491,24 @@ var instructions = [
|
|
|
7461
7491
|
{
|
|
7462
7492
|
kind: "const",
|
|
7463
7493
|
value: [
|
|
7464
|
-
|
|
7494
|
+
77,
|
|
7465
7495
|
120,
|
|
7466
7496
|
101,
|
|
7467
|
-
|
|
7468
|
-
114,
|
|
7497
|
+
82,
|
|
7469
7498
|
101,
|
|
7470
7499
|
99,
|
|
7471
7500
|
111,
|
|
7472
7501
|
118,
|
|
7473
7502
|
101,
|
|
7474
7503
|
114,
|
|
7475
|
-
121
|
|
7504
|
+
121,
|
|
7505
|
+
65,
|
|
7506
|
+
99,
|
|
7507
|
+
99,
|
|
7508
|
+
111,
|
|
7509
|
+
117,
|
|
7510
|
+
110,
|
|
7511
|
+
116
|
|
7476
7512
|
]
|
|
7477
7513
|
},
|
|
7478
7514
|
{
|
|
@@ -8701,18 +8737,24 @@ var instructions = [
|
|
|
8701
8737
|
{
|
|
8702
8738
|
kind: "const",
|
|
8703
8739
|
value: [
|
|
8704
|
-
|
|
8740
|
+
77,
|
|
8705
8741
|
120,
|
|
8706
8742
|
101,
|
|
8707
|
-
|
|
8708
|
-
114,
|
|
8743
|
+
82,
|
|
8709
8744
|
101,
|
|
8710
8745
|
99,
|
|
8711
8746
|
111,
|
|
8712
8747
|
118,
|
|
8713
8748
|
101,
|
|
8714
8749
|
114,
|
|
8715
|
-
121
|
|
8750
|
+
121,
|
|
8751
|
+
65,
|
|
8752
|
+
99,
|
|
8753
|
+
99,
|
|
8754
|
+
111,
|
|
8755
|
+
117,
|
|
8756
|
+
110,
|
|
8757
|
+
116
|
|
8716
8758
|
]
|
|
8717
8759
|
},
|
|
8718
8760
|
{
|
|
@@ -9826,6 +9868,11 @@ var errors = [
|
|
|
9826
9868
|
code: 6713,
|
|
9827
9869
|
name: "BackupClusterNotSet",
|
|
9828
9870
|
msg: "Backup MXE cluster is not set"
|
|
9871
|
+
},
|
|
9872
|
+
{
|
|
9873
|
+
code: 6714,
|
|
9874
|
+
name: "ShareAlreadySubmitted",
|
|
9875
|
+
msg: "Share already submitted"
|
|
9829
9876
|
}
|
|
9830
9877
|
];
|
|
9831
9878
|
var types = [
|
|
@@ -11686,17 +11733,11 @@ var types = [
|
|
|
11686
11733
|
kind: "struct",
|
|
11687
11734
|
fields: [
|
|
11688
11735
|
{
|
|
11689
|
-
name: "
|
|
11736
|
+
name: "key_recovery_finalize_offset",
|
|
11690
11737
|
docs: [
|
|
11691
|
-
"
|
|
11692
|
-
"Bit index corresponds to the index in the original MXE's recovery_peers array."
|
|
11738
|
+
"The computation offset for the queued key_recovery_finalize circuit."
|
|
11693
11739
|
],
|
|
11694
|
-
type:
|
|
11695
|
-
array: [
|
|
11696
|
-
"u8",
|
|
11697
|
-
13
|
|
11698
|
-
]
|
|
11699
|
-
}
|
|
11740
|
+
type: "u64"
|
|
11700
11741
|
},
|
|
11701
11742
|
{
|
|
11702
11743
|
name: "shares",
|
|
@@ -11722,52 +11763,32 @@ var types = [
|
|
|
11722
11763
|
}
|
|
11723
11764
|
},
|
|
11724
11765
|
{
|
|
11725
|
-
name: "
|
|
11726
|
-
|
|
11727
|
-
"Whether the recovery has been finalized (threshold met and marked ready)."
|
|
11728
|
-
],
|
|
11729
|
-
type: "u8"
|
|
11766
|
+
name: "original_mxe_pubkey",
|
|
11767
|
+
type: "pubkey"
|
|
11730
11768
|
},
|
|
11731
11769
|
{
|
|
11732
|
-
name: "
|
|
11733
|
-
|
|
11734
|
-
"Padding for u64 alignment (need 5 bytes to align key_recovery_final_offset at 8-byte",
|
|
11735
|
-
"boundary)"
|
|
11736
|
-
],
|
|
11737
|
-
type: {
|
|
11738
|
-
array: [
|
|
11739
|
-
"u8",
|
|
11740
|
-
2
|
|
11741
|
-
]
|
|
11742
|
-
}
|
|
11770
|
+
name: "backup_mxe_pubkey",
|
|
11771
|
+
type: "pubkey"
|
|
11743
11772
|
},
|
|
11744
11773
|
{
|
|
11745
|
-
name: "
|
|
11774
|
+
name: "is_finalized",
|
|
11746
11775
|
docs: [
|
|
11747
|
-
"
|
|
11776
|
+
"Whether the recovery has been finalized (threshold met and marked ready)."
|
|
11748
11777
|
],
|
|
11749
|
-
type: "
|
|
11778
|
+
type: "u8"
|
|
11750
11779
|
},
|
|
11751
11780
|
{
|
|
11752
11781
|
name: "_padding2",
|
|
11753
11782
|
docs: [
|
|
11754
|
-
"Padding to ensure struct size is
|
|
11783
|
+
"Padding to ensure struct size is u64 aligned (6 bytes)"
|
|
11755
11784
|
],
|
|
11756
11785
|
type: {
|
|
11757
11786
|
array: [
|
|
11758
11787
|
"u8",
|
|
11759
|
-
|
|
11788
|
+
6
|
|
11760
11789
|
]
|
|
11761
11790
|
}
|
|
11762
11791
|
},
|
|
11763
|
-
{
|
|
11764
|
-
name: "original_mxe_pubkey",
|
|
11765
|
-
type: "pubkey"
|
|
11766
|
-
},
|
|
11767
|
-
{
|
|
11768
|
-
name: "backup_mxe_pubkey",
|
|
11769
|
-
type: "pubkey"
|
|
11770
|
-
},
|
|
11771
11792
|
{
|
|
11772
11793
|
name: "bump",
|
|
11773
11794
|
type: "u8"
|
|
@@ -12756,7 +12777,7 @@ const RECOVERY_CLUSTER_ACC_SEED = 'RecoveryClusterAccount';
|
|
|
12756
12777
|
* Seed for MxeRecoveryAccount PDA
|
|
12757
12778
|
* @constant {string}
|
|
12758
12779
|
*/
|
|
12759
|
-
const MXE_RECOVERY_ACC_SEED = '
|
|
12780
|
+
const MXE_RECOVERY_ACC_SEED = 'MxeRecoveryAccount';
|
|
12760
12781
|
/**
|
|
12761
12782
|
* Maximum number of bytes that can be reallocated per instruction.
|
|
12762
12783
|
* @constant {number}
|