@arcium-hq/client 0.11.0 → 0.11.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 +7503 -227
- package/build/index.mjs +7499 -228
- package/build/types/constants.d.ts +5 -0
- package/build/types/constants.d.ts.map +1 -1
- package/build/types/idl/arcium.d.ts +42 -1
- package/build/types/idl/arcium.d.ts.map +1 -1
- package/build/types/idl/arcium_staking.d.ts +166 -126
- package/build/types/idl/arcium_staking.d.ts.map +1 -1
- package/build/types/idl/index.d.ts +12 -2
- package/build/types/idl/index.d.ts.map +1 -1
- package/build/types/onchain.d.ts +7 -0
- package/build/types/onchain.d.ts.map +1 -1
- package/build/types/pda.d.ts +12 -0
- package/build/types/pda.d.ts.map +1 -1
- package/build/types/recoveryPeers.d.ts +1 -1
- package/package.json +1 -1
- package/src/constants.ts +5 -0
- package/src/idl/arcium.json +42 -1
- package/src/idl/arcium.ts +42 -1
- package/src/idl/arcium_staking.json +166 -126
- package/src/idl/arcium_staking.ts +166 -126
- package/src/idl/index.ts +15 -2
- package/src/onchain.ts +27 -1
- package/src/pda.ts +23 -1
- package/src/recoveryPeers.ts +1 -1
|
@@ -296,7 +296,7 @@ export type ArciumStaking = {
|
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"name": "mint";
|
|
299
|
-
"address": "
|
|
299
|
+
"address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs";
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"name": "poolAccount";
|
|
@@ -1136,7 +1136,7 @@ export type ArciumStaking = {
|
|
|
1136
1136
|
},
|
|
1137
1137
|
{
|
|
1138
1138
|
"name": "mint";
|
|
1139
|
-
"address": "
|
|
1139
|
+
"address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs";
|
|
1140
1140
|
},
|
|
1141
1141
|
{
|
|
1142
1142
|
"name": "poolAccount";
|
|
@@ -1852,38 +1852,38 @@ export type ArciumStaking = {
|
|
|
1852
1852
|
{
|
|
1853
1853
|
"kind": "const";
|
|
1854
1854
|
"value": [
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
200,
|
|
1858
|
-
55,
|
|
1859
|
-
211,
|
|
1860
|
-
178,
|
|
1861
|
-
66,
|
|
1855
|
+
140,
|
|
1856
|
+
2,
|
|
1862
1857
|
27,
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
171,
|
|
1858
|
+
73,
|
|
1859
|
+
195,
|
|
1860
|
+
17,
|
|
1861
|
+
0,
|
|
1862
|
+
246,
|
|
1863
|
+
183,
|
|
1870
1864
|
113,
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1865
|
+
43,
|
|
1866
|
+
241,
|
|
1867
|
+
63,
|
|
1868
|
+
58,
|
|
1869
|
+
114,
|
|
1870
|
+
3,
|
|
1871
|
+
95,
|
|
1872
|
+
72,
|
|
1873
|
+
247,
|
|
1874
|
+
95,
|
|
1875
|
+
41,
|
|
1876
|
+
87,
|
|
1877
|
+
67,
|
|
1878
|
+
226,
|
|
1879
|
+
103,
|
|
1880
|
+
238,
|
|
1881
|
+
224,
|
|
1882
|
+
193,
|
|
1883
|
+
5,
|
|
1884
|
+
200,
|
|
1885
|
+
127,
|
|
1886
|
+
194
|
|
1887
1887
|
];
|
|
1888
1888
|
}
|
|
1889
1889
|
];
|
|
@@ -2233,38 +2233,38 @@ export type ArciumStaking = {
|
|
|
2233
2233
|
{
|
|
2234
2234
|
"kind": "const";
|
|
2235
2235
|
"value": [
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
200,
|
|
2239
|
-
55,
|
|
2240
|
-
211,
|
|
2241
|
-
178,
|
|
2242
|
-
66,
|
|
2236
|
+
140,
|
|
2237
|
+
2,
|
|
2243
2238
|
27,
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
171,
|
|
2239
|
+
73,
|
|
2240
|
+
195,
|
|
2241
|
+
17,
|
|
2242
|
+
0,
|
|
2243
|
+
246,
|
|
2244
|
+
183,
|
|
2251
2245
|
113,
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2246
|
+
43,
|
|
2247
|
+
241,
|
|
2248
|
+
63,
|
|
2249
|
+
58,
|
|
2250
|
+
114,
|
|
2251
|
+
3,
|
|
2252
|
+
95,
|
|
2253
|
+
72,
|
|
2254
|
+
247,
|
|
2255
|
+
95,
|
|
2256
|
+
41,
|
|
2257
|
+
87,
|
|
2258
|
+
67,
|
|
2259
|
+
226,
|
|
2260
|
+
103,
|
|
2261
|
+
238,
|
|
2262
|
+
224,
|
|
2263
|
+
193,
|
|
2264
|
+
5,
|
|
2265
|
+
200,
|
|
2266
|
+
127,
|
|
2267
|
+
194
|
|
2268
2268
|
];
|
|
2269
2269
|
}
|
|
2270
2270
|
];
|
|
@@ -2502,38 +2502,38 @@ export type ArciumStaking = {
|
|
|
2502
2502
|
{
|
|
2503
2503
|
"kind": "const";
|
|
2504
2504
|
"value": [
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
200,
|
|
2508
|
-
55,
|
|
2509
|
-
211,
|
|
2510
|
-
178,
|
|
2511
|
-
66,
|
|
2505
|
+
140,
|
|
2506
|
+
2,
|
|
2512
2507
|
27,
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
171,
|
|
2508
|
+
73,
|
|
2509
|
+
195,
|
|
2510
|
+
17,
|
|
2511
|
+
0,
|
|
2512
|
+
246,
|
|
2513
|
+
183,
|
|
2520
2514
|
113,
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2515
|
+
43,
|
|
2516
|
+
241,
|
|
2517
|
+
63,
|
|
2518
|
+
58,
|
|
2519
|
+
114,
|
|
2520
|
+
3,
|
|
2521
|
+
95,
|
|
2522
|
+
72,
|
|
2523
|
+
247,
|
|
2524
|
+
95,
|
|
2525
|
+
41,
|
|
2526
|
+
87,
|
|
2527
|
+
67,
|
|
2528
|
+
226,
|
|
2529
|
+
103,
|
|
2530
|
+
238,
|
|
2531
|
+
224,
|
|
2532
|
+
193,
|
|
2533
|
+
5,
|
|
2534
|
+
200,
|
|
2535
|
+
127,
|
|
2536
|
+
194
|
|
2537
2537
|
];
|
|
2538
2538
|
}
|
|
2539
2539
|
];
|
|
@@ -2977,38 +2977,38 @@ export type ArciumStaking = {
|
|
|
2977
2977
|
{
|
|
2978
2978
|
"kind": "const";
|
|
2979
2979
|
"value": [
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
200,
|
|
2983
|
-
55,
|
|
2984
|
-
211,
|
|
2985
|
-
178,
|
|
2986
|
-
66,
|
|
2980
|
+
140,
|
|
2981
|
+
2,
|
|
2987
2982
|
27,
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
171,
|
|
2983
|
+
73,
|
|
2984
|
+
195,
|
|
2985
|
+
17,
|
|
2986
|
+
0,
|
|
2987
|
+
246,
|
|
2988
|
+
183,
|
|
2995
2989
|
113,
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
2990
|
+
43,
|
|
2991
|
+
241,
|
|
2992
|
+
63,
|
|
2993
|
+
58,
|
|
2994
|
+
114,
|
|
2995
|
+
3,
|
|
2996
|
+
95,
|
|
2997
|
+
72,
|
|
2998
|
+
247,
|
|
2999
|
+
95,
|
|
3000
|
+
41,
|
|
3001
|
+
87,
|
|
3002
|
+
67,
|
|
3003
|
+
226,
|
|
3004
|
+
103,
|
|
3005
|
+
238,
|
|
3006
|
+
224,
|
|
3007
|
+
193,
|
|
3008
|
+
5,
|
|
3009
|
+
200,
|
|
3010
|
+
127,
|
|
3011
|
+
194
|
|
3012
3012
|
];
|
|
3013
3013
|
}
|
|
3014
3014
|
];
|
|
@@ -3225,7 +3225,7 @@ export type ArciumStaking = {
|
|
|
3225
3225
|
},
|
|
3226
3226
|
{
|
|
3227
3227
|
"name": "mint";
|
|
3228
|
-
"address": "
|
|
3228
|
+
"address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs";
|
|
3229
3229
|
},
|
|
3230
3230
|
{
|
|
3231
3231
|
"name": "poolAta";
|
|
@@ -3500,7 +3500,7 @@ export type ArciumStaking = {
|
|
|
3500
3500
|
},
|
|
3501
3501
|
{
|
|
3502
3502
|
"name": "mint";
|
|
3503
|
-
"address": "
|
|
3503
|
+
"address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs";
|
|
3504
3504
|
},
|
|
3505
3505
|
{
|
|
3506
3506
|
"name": "poolAccount";
|
|
@@ -3868,7 +3868,7 @@ export type ArciumStaking = {
|
|
|
3868
3868
|
},
|
|
3869
3869
|
{
|
|
3870
3870
|
"name": "mint";
|
|
3871
|
-
"address": "
|
|
3871
|
+
"address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs";
|
|
3872
3872
|
},
|
|
3873
3873
|
{
|
|
3874
3874
|
"name": "poolAccount";
|
|
@@ -4398,7 +4398,7 @@ export type ArciumStaking = {
|
|
|
4398
4398
|
},
|
|
4399
4399
|
{
|
|
4400
4400
|
"name": "mint";
|
|
4401
|
-
"address": "
|
|
4401
|
+
"address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs";
|
|
4402
4402
|
},
|
|
4403
4403
|
{
|
|
4404
4404
|
"name": "poolAccount";
|
|
@@ -4588,6 +4588,26 @@ export type ArciumStaking = {
|
|
|
4588
4588
|
{
|
|
4589
4589
|
"name": "tokenProgram";
|
|
4590
4590
|
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
4591
|
+
},
|
|
4592
|
+
{
|
|
4593
|
+
"name": "arxNode";
|
|
4594
|
+
"docs": [
|
|
4595
|
+
"The `ArxNode` this stake is bound to. Required (and validated against the stored binding)",
|
|
4596
|
+
"on withdrawals when the stake's `binding` is `Node(..)`, so we can read the node's",
|
|
4597
|
+
"cluster and enforce that cluster's minimum primary stake. May be omitted for deposits,",
|
|
4598
|
+
"unbound stakes, or recovery-peer bindings. The `Account` wrapper enforces it's owned by",
|
|
4599
|
+
"the arcium program."
|
|
4600
|
+
];
|
|
4601
|
+
"optional": true;
|
|
4602
|
+
},
|
|
4603
|
+
{
|
|
4604
|
+
"name": "mempool";
|
|
4605
|
+
"docs": [
|
|
4606
|
+
"The mempool account of the cluster the bound node is seated in (or proposed to). Required",
|
|
4607
|
+
"alongside `arx_node` when that node belongs to a cluster. Only its discriminator (the",
|
|
4608
|
+
"mempool size) is read."
|
|
4609
|
+
];
|
|
4610
|
+
"optional": true;
|
|
4591
4611
|
}
|
|
4592
4612
|
];
|
|
4593
4613
|
"args": [
|
|
@@ -5477,6 +5497,26 @@ export type ArciumStaking = {
|
|
|
5477
5497
|
"code": 6034;
|
|
5478
5498
|
"name": "delegatedRemovalNotMatured";
|
|
5479
5499
|
"msg": "Delegated stake removal has not matured on the primary yet (finalize the primary first)";
|
|
5500
|
+
},
|
|
5501
|
+
{
|
|
5502
|
+
"code": 6035;
|
|
5503
|
+
"name": "insufficientPrimaryStake";
|
|
5504
|
+
"msg": "Resulting primary stake is below the minimum for the bound node's cluster mempool size";
|
|
5505
|
+
},
|
|
5506
|
+
{
|
|
5507
|
+
"code": 6036;
|
|
5508
|
+
"name": "missingNodeAccount";
|
|
5509
|
+
"msg": "Stake is bound to a node; the bound ArxNode account must be provided";
|
|
5510
|
+
},
|
|
5511
|
+
{
|
|
5512
|
+
"code": 6037;
|
|
5513
|
+
"name": "missingMempoolAccount";
|
|
5514
|
+
"msg": "Bound node is seated in a cluster; the cluster's mempool account must be provided";
|
|
5515
|
+
},
|
|
5516
|
+
{
|
|
5517
|
+
"code": 6038;
|
|
5518
|
+
"name": "invalidMempool";
|
|
5519
|
+
"msg": "Provided mempool account does not match the bound node's cluster";
|
|
5480
5520
|
}
|
|
5481
5521
|
];
|
|
5482
5522
|
"types": [
|