@arcium-hq/client 0.6.3 → 0.6.5
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 +120 -4
- package/build/index.d.ts +120 -4
- package/build/index.mjs +120 -4
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -1809,7 +1809,7 @@ function createPacker(fields, typeName = 'Packer') {
|
|
|
1809
1809
|
var address = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
1810
1810
|
var metadata = {
|
|
1811
1811
|
name: "arcium",
|
|
1812
|
-
version: "0.6.
|
|
1812
|
+
version: "0.6.5",
|
|
1813
1813
|
spec: "0.1.0",
|
|
1814
1814
|
description: "The Arcium program"
|
|
1815
1815
|
};
|
|
@@ -2904,6 +2904,107 @@ var instructions = [
|
|
|
2904
2904
|
}
|
|
2905
2905
|
]
|
|
2906
2906
|
},
|
|
2907
|
+
{
|
|
2908
|
+
name: "claim_node_fees",
|
|
2909
|
+
discriminator: [
|
|
2910
|
+
68,
|
|
2911
|
+
13,
|
|
2912
|
+
185,
|
|
2913
|
+
34,
|
|
2914
|
+
151,
|
|
2915
|
+
76,
|
|
2916
|
+
194,
|
|
2917
|
+
43
|
|
2918
|
+
],
|
|
2919
|
+
accounts: [
|
|
2920
|
+
{
|
|
2921
|
+
name: "node_authority",
|
|
2922
|
+
writable: true,
|
|
2923
|
+
signer: true
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
name: "recipient",
|
|
2927
|
+
writable: true
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
name: "cluster",
|
|
2931
|
+
writable: true,
|
|
2932
|
+
pda: {
|
|
2933
|
+
seeds: [
|
|
2934
|
+
{
|
|
2935
|
+
kind: "const",
|
|
2936
|
+
value: [
|
|
2937
|
+
67,
|
|
2938
|
+
108,
|
|
2939
|
+
117,
|
|
2940
|
+
115,
|
|
2941
|
+
116,
|
|
2942
|
+
101,
|
|
2943
|
+
114
|
|
2944
|
+
]
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
kind: "arg",
|
|
2948
|
+
path: "cluster_offset"
|
|
2949
|
+
}
|
|
2950
|
+
]
|
|
2951
|
+
}
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
name: "node",
|
|
2955
|
+
pda: {
|
|
2956
|
+
seeds: [
|
|
2957
|
+
{
|
|
2958
|
+
kind: "const",
|
|
2959
|
+
value: [
|
|
2960
|
+
65,
|
|
2961
|
+
114,
|
|
2962
|
+
120,
|
|
2963
|
+
78,
|
|
2964
|
+
111,
|
|
2965
|
+
100,
|
|
2966
|
+
101
|
|
2967
|
+
]
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
kind: "arg",
|
|
2971
|
+
path: "node_offset"
|
|
2972
|
+
}
|
|
2973
|
+
]
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
name: "pool",
|
|
2978
|
+
writable: true,
|
|
2979
|
+
pda: {
|
|
2980
|
+
seeds: [
|
|
2981
|
+
{
|
|
2982
|
+
kind: "const",
|
|
2983
|
+
value: [
|
|
2984
|
+
70,
|
|
2985
|
+
101,
|
|
2986
|
+
101,
|
|
2987
|
+
80,
|
|
2988
|
+
111,
|
|
2989
|
+
111,
|
|
2990
|
+
108
|
|
2991
|
+
]
|
|
2992
|
+
}
|
|
2993
|
+
]
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
],
|
|
2997
|
+
args: [
|
|
2998
|
+
{
|
|
2999
|
+
name: "cluster_offset",
|
|
3000
|
+
type: "u32"
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
name: "node_offset",
|
|
3004
|
+
type: "u32"
|
|
3005
|
+
}
|
|
3006
|
+
]
|
|
3007
|
+
},
|
|
2907
3008
|
{
|
|
2908
3009
|
name: "close_key_recovery",
|
|
2909
3010
|
docs: [
|
|
@@ -6715,7 +6816,7 @@ var instructions = [
|
|
|
6715
6816
|
name: "queue_computation",
|
|
6716
6817
|
docs: [
|
|
6717
6818
|
"Queues a computation.",
|
|
6718
|
-
"cu_price_micro: The priority price of a CU, in
|
|
6819
|
+
"cu_price_micro: The priority price of a CU, in micro-lamports. Used",
|
|
6719
6820
|
"to calculate the priority fee and rounded down."
|
|
6720
6821
|
],
|
|
6721
6822
|
discriminator: [
|
|
@@ -9960,6 +10061,16 @@ var errors = [
|
|
|
9960
10061
|
name: "MustNotBeCalledViaCpi",
|
|
9961
10062
|
msg: "This instruction must be called directly, not via CPI"
|
|
9962
10063
|
},
|
|
10064
|
+
{
|
|
10065
|
+
code: 6621,
|
|
10066
|
+
name: "FeePriceExceedsMax",
|
|
10067
|
+
msg: "Fee price exceeds maximum allowed"
|
|
10068
|
+
},
|
|
10069
|
+
{
|
|
10070
|
+
code: 6622,
|
|
10071
|
+
name: "NoFeesToClaim",
|
|
10072
|
+
msg: "No fees available to claim"
|
|
10073
|
+
},
|
|
9963
10074
|
{
|
|
9964
10075
|
code: 6700,
|
|
9965
10076
|
name: "MxeNotInRecoveryState",
|
|
@@ -10034,6 +10145,11 @@ var errors = [
|
|
|
10034
10145
|
code: 6714,
|
|
10035
10146
|
name: "ShareAlreadySubmitted",
|
|
10036
10147
|
msg: "Share already submitted"
|
|
10148
|
+
},
|
|
10149
|
+
{
|
|
10150
|
+
code: 6715,
|
|
10151
|
+
name: "ArithmeticOverflow",
|
|
10152
|
+
msg: "Arithmetic overflow"
|
|
10037
10153
|
}
|
|
10038
10154
|
];
|
|
10039
10155
|
var types = [
|
|
@@ -10704,14 +10820,14 @@ var types = [
|
|
|
10704
10820
|
{
|
|
10705
10821
|
name: "cu_price",
|
|
10706
10822
|
docs: [
|
|
10707
|
-
"The price of compute units in this cluster."
|
|
10823
|
+
"The price of compute units in this cluster, in micro-lamports (millionths of a lamport)."
|
|
10708
10824
|
],
|
|
10709
10825
|
type: "u64"
|
|
10710
10826
|
},
|
|
10711
10827
|
{
|
|
10712
10828
|
name: "cu_price_proposals",
|
|
10713
10829
|
docs: [
|
|
10714
|
-
"The proposals for the cu price proposals in the next epoch.",
|
|
10830
|
+
"The proposals for the cu price proposals in the next epoch, in micro-lamports.",
|
|
10715
10831
|
"Index 0 is always the current price, we allow `MAX_FEE_PROPS` at most."
|
|
10716
10832
|
],
|
|
10717
10833
|
type: {
|
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.6.
|
|
459
|
+
"version": "0.6.5";
|
|
460
460
|
"spec": "0.1.0";
|
|
461
461
|
"description": "The Arcium program";
|
|
462
462
|
};
|
|
@@ -1551,6 +1551,107 @@ type Arcium = {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
];
|
|
1553
1553
|
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "claimNodeFees";
|
|
1556
|
+
"discriminator": [
|
|
1557
|
+
68,
|
|
1558
|
+
13,
|
|
1559
|
+
185,
|
|
1560
|
+
34,
|
|
1561
|
+
151,
|
|
1562
|
+
76,
|
|
1563
|
+
194,
|
|
1564
|
+
43
|
|
1565
|
+
];
|
|
1566
|
+
"accounts": [
|
|
1567
|
+
{
|
|
1568
|
+
"name": "nodeAuthority";
|
|
1569
|
+
"writable": true;
|
|
1570
|
+
"signer": true;
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"name": "recipient";
|
|
1574
|
+
"writable": true;
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"name": "cluster";
|
|
1578
|
+
"writable": true;
|
|
1579
|
+
"pda": {
|
|
1580
|
+
"seeds": [
|
|
1581
|
+
{
|
|
1582
|
+
"kind": "const";
|
|
1583
|
+
"value": [
|
|
1584
|
+
67,
|
|
1585
|
+
108,
|
|
1586
|
+
117,
|
|
1587
|
+
115,
|
|
1588
|
+
116,
|
|
1589
|
+
101,
|
|
1590
|
+
114
|
|
1591
|
+
];
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"kind": "arg";
|
|
1595
|
+
"path": "clusterOffset";
|
|
1596
|
+
}
|
|
1597
|
+
];
|
|
1598
|
+
};
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "node";
|
|
1602
|
+
"pda": {
|
|
1603
|
+
"seeds": [
|
|
1604
|
+
{
|
|
1605
|
+
"kind": "const";
|
|
1606
|
+
"value": [
|
|
1607
|
+
65,
|
|
1608
|
+
114,
|
|
1609
|
+
120,
|
|
1610
|
+
78,
|
|
1611
|
+
111,
|
|
1612
|
+
100,
|
|
1613
|
+
101
|
|
1614
|
+
];
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"kind": "arg";
|
|
1618
|
+
"path": "nodeOffset";
|
|
1619
|
+
}
|
|
1620
|
+
];
|
|
1621
|
+
};
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"name": "pool";
|
|
1625
|
+
"writable": true;
|
|
1626
|
+
"pda": {
|
|
1627
|
+
"seeds": [
|
|
1628
|
+
{
|
|
1629
|
+
"kind": "const";
|
|
1630
|
+
"value": [
|
|
1631
|
+
70,
|
|
1632
|
+
101,
|
|
1633
|
+
101,
|
|
1634
|
+
80,
|
|
1635
|
+
111,
|
|
1636
|
+
111,
|
|
1637
|
+
108
|
|
1638
|
+
];
|
|
1639
|
+
}
|
|
1640
|
+
];
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
];
|
|
1644
|
+
"args": [
|
|
1645
|
+
{
|
|
1646
|
+
"name": "clusterOffset";
|
|
1647
|
+
"type": "u32";
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"name": "nodeOffset";
|
|
1651
|
+
"type": "u32";
|
|
1652
|
+
}
|
|
1653
|
+
];
|
|
1654
|
+
},
|
|
1554
1655
|
{
|
|
1555
1656
|
"name": "closeKeyRecovery";
|
|
1556
1657
|
"docs": [
|
|
@@ -5360,7 +5461,7 @@ type Arcium = {
|
|
|
5360
5461
|
"name": "queueComputation";
|
|
5361
5462
|
"docs": [
|
|
5362
5463
|
"Queues a computation.",
|
|
5363
|
-
"cu_price_micro: The priority price of a CU, in
|
|
5464
|
+
"cu_price_micro: The priority price of a CU, in micro-lamports. Used",
|
|
5364
5465
|
"to calculate the priority fee and rounded down."
|
|
5365
5466
|
];
|
|
5366
5467
|
"discriminator": [
|
|
@@ -8604,6 +8705,16 @@ type Arcium = {
|
|
|
8604
8705
|
"name": "mustNotBeCalledViaCpi";
|
|
8605
8706
|
"msg": "This instruction must be called directly, not via CPI";
|
|
8606
8707
|
},
|
|
8708
|
+
{
|
|
8709
|
+
"code": 6621;
|
|
8710
|
+
"name": "feePriceExceedsMax";
|
|
8711
|
+
"msg": "Fee price exceeds maximum allowed";
|
|
8712
|
+
},
|
|
8713
|
+
{
|
|
8714
|
+
"code": 6622;
|
|
8715
|
+
"name": "noFeesToClaim";
|
|
8716
|
+
"msg": "No fees available to claim";
|
|
8717
|
+
},
|
|
8607
8718
|
{
|
|
8608
8719
|
"code": 6700;
|
|
8609
8720
|
"name": "mxeNotInRecoveryState";
|
|
@@ -8678,6 +8789,11 @@ type Arcium = {
|
|
|
8678
8789
|
"code": 6714;
|
|
8679
8790
|
"name": "shareAlreadySubmitted";
|
|
8680
8791
|
"msg": "Share already submitted";
|
|
8792
|
+
},
|
|
8793
|
+
{
|
|
8794
|
+
"code": 6715;
|
|
8795
|
+
"name": "arithmeticOverflow";
|
|
8796
|
+
"msg": "Arithmetic overflow";
|
|
8681
8797
|
}
|
|
8682
8798
|
];
|
|
8683
8799
|
"types": [
|
|
@@ -9348,14 +9464,14 @@ type Arcium = {
|
|
|
9348
9464
|
{
|
|
9349
9465
|
"name": "cuPrice";
|
|
9350
9466
|
"docs": [
|
|
9351
|
-
"The price of compute units in this cluster."
|
|
9467
|
+
"The price of compute units in this cluster, in micro-lamports (millionths of a lamport)."
|
|
9352
9468
|
];
|
|
9353
9469
|
"type": "u64";
|
|
9354
9470
|
},
|
|
9355
9471
|
{
|
|
9356
9472
|
"name": "cuPriceProposals";
|
|
9357
9473
|
"docs": [
|
|
9358
|
-
"The proposals for the cu price proposals in the next epoch.",
|
|
9474
|
+
"The proposals for the cu price proposals in the next epoch, in micro-lamports.",
|
|
9359
9475
|
"Index 0 is always the current price, we allow `MAX_FEE_PROPS` at most."
|
|
9360
9476
|
];
|
|
9361
9477
|
"type": {
|
package/build/index.mjs
CHANGED
|
@@ -1790,7 +1790,7 @@ function createPacker(fields, typeName = 'Packer') {
|
|
|
1790
1790
|
var address = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
1791
1791
|
var metadata = {
|
|
1792
1792
|
name: "arcium",
|
|
1793
|
-
version: "0.6.
|
|
1793
|
+
version: "0.6.5",
|
|
1794
1794
|
spec: "0.1.0",
|
|
1795
1795
|
description: "The Arcium program"
|
|
1796
1796
|
};
|
|
@@ -2885,6 +2885,107 @@ var instructions = [
|
|
|
2885
2885
|
}
|
|
2886
2886
|
]
|
|
2887
2887
|
},
|
|
2888
|
+
{
|
|
2889
|
+
name: "claim_node_fees",
|
|
2890
|
+
discriminator: [
|
|
2891
|
+
68,
|
|
2892
|
+
13,
|
|
2893
|
+
185,
|
|
2894
|
+
34,
|
|
2895
|
+
151,
|
|
2896
|
+
76,
|
|
2897
|
+
194,
|
|
2898
|
+
43
|
|
2899
|
+
],
|
|
2900
|
+
accounts: [
|
|
2901
|
+
{
|
|
2902
|
+
name: "node_authority",
|
|
2903
|
+
writable: true,
|
|
2904
|
+
signer: true
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
name: "recipient",
|
|
2908
|
+
writable: true
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
name: "cluster",
|
|
2912
|
+
writable: true,
|
|
2913
|
+
pda: {
|
|
2914
|
+
seeds: [
|
|
2915
|
+
{
|
|
2916
|
+
kind: "const",
|
|
2917
|
+
value: [
|
|
2918
|
+
67,
|
|
2919
|
+
108,
|
|
2920
|
+
117,
|
|
2921
|
+
115,
|
|
2922
|
+
116,
|
|
2923
|
+
101,
|
|
2924
|
+
114
|
|
2925
|
+
]
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
kind: "arg",
|
|
2929
|
+
path: "cluster_offset"
|
|
2930
|
+
}
|
|
2931
|
+
]
|
|
2932
|
+
}
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
name: "node",
|
|
2936
|
+
pda: {
|
|
2937
|
+
seeds: [
|
|
2938
|
+
{
|
|
2939
|
+
kind: "const",
|
|
2940
|
+
value: [
|
|
2941
|
+
65,
|
|
2942
|
+
114,
|
|
2943
|
+
120,
|
|
2944
|
+
78,
|
|
2945
|
+
111,
|
|
2946
|
+
100,
|
|
2947
|
+
101
|
|
2948
|
+
]
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
kind: "arg",
|
|
2952
|
+
path: "node_offset"
|
|
2953
|
+
}
|
|
2954
|
+
]
|
|
2955
|
+
}
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
name: "pool",
|
|
2959
|
+
writable: true,
|
|
2960
|
+
pda: {
|
|
2961
|
+
seeds: [
|
|
2962
|
+
{
|
|
2963
|
+
kind: "const",
|
|
2964
|
+
value: [
|
|
2965
|
+
70,
|
|
2966
|
+
101,
|
|
2967
|
+
101,
|
|
2968
|
+
80,
|
|
2969
|
+
111,
|
|
2970
|
+
111,
|
|
2971
|
+
108
|
|
2972
|
+
]
|
|
2973
|
+
}
|
|
2974
|
+
]
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
],
|
|
2978
|
+
args: [
|
|
2979
|
+
{
|
|
2980
|
+
name: "cluster_offset",
|
|
2981
|
+
type: "u32"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
name: "node_offset",
|
|
2985
|
+
type: "u32"
|
|
2986
|
+
}
|
|
2987
|
+
]
|
|
2988
|
+
},
|
|
2888
2989
|
{
|
|
2889
2990
|
name: "close_key_recovery",
|
|
2890
2991
|
docs: [
|
|
@@ -6696,7 +6797,7 @@ var instructions = [
|
|
|
6696
6797
|
name: "queue_computation",
|
|
6697
6798
|
docs: [
|
|
6698
6799
|
"Queues a computation.",
|
|
6699
|
-
"cu_price_micro: The priority price of a CU, in
|
|
6800
|
+
"cu_price_micro: The priority price of a CU, in micro-lamports. Used",
|
|
6700
6801
|
"to calculate the priority fee and rounded down."
|
|
6701
6802
|
],
|
|
6702
6803
|
discriminator: [
|
|
@@ -9941,6 +10042,16 @@ var errors = [
|
|
|
9941
10042
|
name: "MustNotBeCalledViaCpi",
|
|
9942
10043
|
msg: "This instruction must be called directly, not via CPI"
|
|
9943
10044
|
},
|
|
10045
|
+
{
|
|
10046
|
+
code: 6621,
|
|
10047
|
+
name: "FeePriceExceedsMax",
|
|
10048
|
+
msg: "Fee price exceeds maximum allowed"
|
|
10049
|
+
},
|
|
10050
|
+
{
|
|
10051
|
+
code: 6622,
|
|
10052
|
+
name: "NoFeesToClaim",
|
|
10053
|
+
msg: "No fees available to claim"
|
|
10054
|
+
},
|
|
9944
10055
|
{
|
|
9945
10056
|
code: 6700,
|
|
9946
10057
|
name: "MxeNotInRecoveryState",
|
|
@@ -10015,6 +10126,11 @@ var errors = [
|
|
|
10015
10126
|
code: 6714,
|
|
10016
10127
|
name: "ShareAlreadySubmitted",
|
|
10017
10128
|
msg: "Share already submitted"
|
|
10129
|
+
},
|
|
10130
|
+
{
|
|
10131
|
+
code: 6715,
|
|
10132
|
+
name: "ArithmeticOverflow",
|
|
10133
|
+
msg: "Arithmetic overflow"
|
|
10018
10134
|
}
|
|
10019
10135
|
];
|
|
10020
10136
|
var types = [
|
|
@@ -10685,14 +10801,14 @@ var types = [
|
|
|
10685
10801
|
{
|
|
10686
10802
|
name: "cu_price",
|
|
10687
10803
|
docs: [
|
|
10688
|
-
"The price of compute units in this cluster."
|
|
10804
|
+
"The price of compute units in this cluster, in micro-lamports (millionths of a lamport)."
|
|
10689
10805
|
],
|
|
10690
10806
|
type: "u64"
|
|
10691
10807
|
},
|
|
10692
10808
|
{
|
|
10693
10809
|
name: "cu_price_proposals",
|
|
10694
10810
|
docs: [
|
|
10695
|
-
"The proposals for the cu price proposals in the next epoch.",
|
|
10811
|
+
"The proposals for the cu price proposals in the next epoch, in micro-lamports.",
|
|
10696
10812
|
"Index 0 is always the current price, we allow `MAX_FEE_PROPS` at most."
|
|
10697
10813
|
],
|
|
10698
10814
|
type: {
|