@arcium-hq/client 0.11.2 → 0.13.1
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 +110 -5
- package/build/index.mjs +110 -5
- package/build/types/idl/arcium.d.ts +30 -1
- package/build/types/idl/arcium.d.ts.map +1 -1
- package/build/types/idl/arcium_staking.d.ts +72 -0
- package/build/types/idl/arcium_staking.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/idl/arcium.json +30 -1
- package/src/idl/arcium.ts +30 -1
- package/src/idl/arcium_staking.json +72 -0
- package/src/idl/arcium_staking.ts +72 -0
package/src/idl/arcium.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type Arcium = {
|
|
|
8
8
|
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "arcium",
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.13.1",
|
|
12
12
|
"spec": "0.1.0",
|
|
13
13
|
"description": "The Arcium program"
|
|
14
14
|
},
|
|
@@ -7670,6 +7670,30 @@ export type Arcium = {
|
|
|
7670
7670
|
]
|
|
7671
7671
|
}
|
|
7672
7672
|
},
|
|
7673
|
+
{
|
|
7674
|
+
"name": "clusterAcc",
|
|
7675
|
+
"pda": {
|
|
7676
|
+
"seeds": [
|
|
7677
|
+
{
|
|
7678
|
+
"kind": "const",
|
|
7679
|
+
"value": [
|
|
7680
|
+
67,
|
|
7681
|
+
108,
|
|
7682
|
+
117,
|
|
7683
|
+
115,
|
|
7684
|
+
116,
|
|
7685
|
+
101,
|
|
7686
|
+
114
|
|
7687
|
+
]
|
|
7688
|
+
},
|
|
7689
|
+
{
|
|
7690
|
+
"kind": "account",
|
|
7691
|
+
"path": "mxe.cluster",
|
|
7692
|
+
"account": "mxeAccount"
|
|
7693
|
+
}
|
|
7694
|
+
]
|
|
7695
|
+
}
|
|
7696
|
+
},
|
|
7673
7697
|
{
|
|
7674
7698
|
"name": "comp",
|
|
7675
7699
|
"writable": true,
|
|
@@ -11141,6 +11165,11 @@ export type Arcium = {
|
|
|
11141
11165
|
"code": 6727,
|
|
11142
11166
|
"name": "insufficientPrimaryStake",
|
|
11143
11167
|
"msg": "Node's primary stake is below the minimum for this cluster's mempool size"
|
|
11168
|
+
},
|
|
11169
|
+
{
|
|
11170
|
+
"code": 6728,
|
|
11171
|
+
"name": "invalidRecoveryPeersArgument",
|
|
11172
|
+
"msg": "Invalid recovery peers argument"
|
|
11144
11173
|
}
|
|
11145
11174
|
],
|
|
11146
11175
|
"types": [
|
|
@@ -5340,6 +5340,20 @@
|
|
|
5340
5340
|
]
|
|
5341
5341
|
}
|
|
5342
5342
|
],
|
|
5343
|
+
"events": [
|
|
5344
|
+
{
|
|
5345
|
+
"name": "EmptyRewardClaim",
|
|
5346
|
+
"discriminator": [
|
|
5347
|
+
0
|
|
5348
|
+
]
|
|
5349
|
+
},
|
|
5350
|
+
{
|
|
5351
|
+
"name": "RewardClaimInserted",
|
|
5352
|
+
"discriminator": [
|
|
5353
|
+
1
|
|
5354
|
+
]
|
|
5355
|
+
}
|
|
5356
|
+
],
|
|
5343
5357
|
"errors": [
|
|
5344
5358
|
{
|
|
5345
5359
|
"code": 6000,
|
|
@@ -6063,6 +6077,12 @@
|
|
|
6063
6077
|
]
|
|
6064
6078
|
}
|
|
6065
6079
|
},
|
|
6080
|
+
{
|
|
6081
|
+
"name": "EmptyRewardClaim",
|
|
6082
|
+
"type": {
|
|
6083
|
+
"kind": "struct"
|
|
6084
|
+
}
|
|
6085
|
+
},
|
|
6066
6086
|
{
|
|
6067
6087
|
"name": "Epoch",
|
|
6068
6088
|
"docs": [
|
|
@@ -6963,6 +6983,38 @@
|
|
|
6963
6983
|
]
|
|
6964
6984
|
}
|
|
6965
6985
|
},
|
|
6986
|
+
{
|
|
6987
|
+
"name": "RewardClaimInserted",
|
|
6988
|
+
"type": {
|
|
6989
|
+
"kind": "struct",
|
|
6990
|
+
"fields": [
|
|
6991
|
+
{
|
|
6992
|
+
"name": "claim",
|
|
6993
|
+
"type": {
|
|
6994
|
+
"defined": {
|
|
6995
|
+
"name": "RewardClaim"
|
|
6996
|
+
}
|
|
6997
|
+
}
|
|
6998
|
+
},
|
|
6999
|
+
{
|
|
7000
|
+
"name": "root",
|
|
7001
|
+
"type": {
|
|
7002
|
+
"defined": {
|
|
7003
|
+
"name": "Hash"
|
|
7004
|
+
}
|
|
7005
|
+
}
|
|
7006
|
+
},
|
|
7007
|
+
{
|
|
7008
|
+
"name": "current_epoch",
|
|
7009
|
+
"type": {
|
|
7010
|
+
"defined": {
|
|
7011
|
+
"name": "Epoch"
|
|
7012
|
+
}
|
|
7013
|
+
}
|
|
7014
|
+
}
|
|
7015
|
+
]
|
|
7016
|
+
}
|
|
7017
|
+
},
|
|
6966
7018
|
{
|
|
6967
7019
|
"name": "SetUnset",
|
|
6968
7020
|
"docs": [
|
|
@@ -7156,5 +7208,25 @@
|
|
|
7156
7208
|
]
|
|
7157
7209
|
}
|
|
7158
7210
|
}
|
|
7211
|
+
],
|
|
7212
|
+
"constants": [
|
|
7213
|
+
{
|
|
7214
|
+
"name": "REWARDS_MT_HEIGHT_U32",
|
|
7215
|
+
"docs": [
|
|
7216
|
+
"IDL-exported mirror of [`REWARDS_MT_HEIGHT`]. Anchor's `#[constant]` macro",
|
|
7217
|
+
"doesn't support `usize` (its type isn't platform-stable), so off-chain",
|
|
7218
|
+
"consumers reading via the IDL import this `u32` and cast to `usize`."
|
|
7219
|
+
],
|
|
7220
|
+
"type": "u32",
|
|
7221
|
+
"value": "15"
|
|
7222
|
+
},
|
|
7223
|
+
{
|
|
7224
|
+
"name": "REWARD_BATCHING_RATE",
|
|
7225
|
+
"docs": [
|
|
7226
|
+
"How many rewards we batch together in a single MerkleTree leaf."
|
|
7227
|
+
],
|
|
7228
|
+
"type": "u8",
|
|
7229
|
+
"value": "1"
|
|
7230
|
+
}
|
|
7159
7231
|
]
|
|
7160
7232
|
}
|
|
@@ -5346,6 +5346,20 @@ export type ArciumStaking = {
|
|
|
5346
5346
|
]
|
|
5347
5347
|
}
|
|
5348
5348
|
],
|
|
5349
|
+
"events": [
|
|
5350
|
+
{
|
|
5351
|
+
"name": "emptyRewardClaim",
|
|
5352
|
+
"discriminator": [
|
|
5353
|
+
0
|
|
5354
|
+
]
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
"name": "rewardClaimInserted",
|
|
5358
|
+
"discriminator": [
|
|
5359
|
+
1
|
|
5360
|
+
]
|
|
5361
|
+
}
|
|
5362
|
+
],
|
|
5349
5363
|
"errors": [
|
|
5350
5364
|
{
|
|
5351
5365
|
"code": 6000,
|
|
@@ -6069,6 +6083,12 @@ export type ArciumStaking = {
|
|
|
6069
6083
|
]
|
|
6070
6084
|
}
|
|
6071
6085
|
},
|
|
6086
|
+
{
|
|
6087
|
+
"name": "emptyRewardClaim",
|
|
6088
|
+
"type": {
|
|
6089
|
+
"kind": "struct"
|
|
6090
|
+
}
|
|
6091
|
+
},
|
|
6072
6092
|
{
|
|
6073
6093
|
"name": "epoch",
|
|
6074
6094
|
"docs": [
|
|
@@ -6969,6 +6989,38 @@ export type ArciumStaking = {
|
|
|
6969
6989
|
]
|
|
6970
6990
|
}
|
|
6971
6991
|
},
|
|
6992
|
+
{
|
|
6993
|
+
"name": "rewardClaimInserted",
|
|
6994
|
+
"type": {
|
|
6995
|
+
"kind": "struct",
|
|
6996
|
+
"fields": [
|
|
6997
|
+
{
|
|
6998
|
+
"name": "claim",
|
|
6999
|
+
"type": {
|
|
7000
|
+
"defined": {
|
|
7001
|
+
"name": "rewardClaim"
|
|
7002
|
+
}
|
|
7003
|
+
}
|
|
7004
|
+
},
|
|
7005
|
+
{
|
|
7006
|
+
"name": "root",
|
|
7007
|
+
"type": {
|
|
7008
|
+
"defined": {
|
|
7009
|
+
"name": "hash"
|
|
7010
|
+
}
|
|
7011
|
+
}
|
|
7012
|
+
},
|
|
7013
|
+
{
|
|
7014
|
+
"name": "currentEpoch",
|
|
7015
|
+
"type": {
|
|
7016
|
+
"defined": {
|
|
7017
|
+
"name": "epoch"
|
|
7018
|
+
}
|
|
7019
|
+
}
|
|
7020
|
+
}
|
|
7021
|
+
]
|
|
7022
|
+
}
|
|
7023
|
+
},
|
|
6972
7024
|
{
|
|
6973
7025
|
"name": "setUnset",
|
|
6974
7026
|
"docs": [
|
|
@@ -7162,5 +7214,25 @@ export type ArciumStaking = {
|
|
|
7162
7214
|
]
|
|
7163
7215
|
}
|
|
7164
7216
|
}
|
|
7217
|
+
],
|
|
7218
|
+
"constants": [
|
|
7219
|
+
{
|
|
7220
|
+
"name": "rewardsMtHeightU32",
|
|
7221
|
+
"docs": [
|
|
7222
|
+
"IDL-exported mirror of [`REWARDS_MT_HEIGHT`]. Anchor's `#[constant]` macro",
|
|
7223
|
+
"doesn't support `usize` (its type isn't platform-stable), so off-chain",
|
|
7224
|
+
"consumers reading via the IDL import this `u32` and cast to `usize`."
|
|
7225
|
+
],
|
|
7226
|
+
"type": "u32",
|
|
7227
|
+
"value": "15"
|
|
7228
|
+
},
|
|
7229
|
+
{
|
|
7230
|
+
"name": "rewardBatchingRate",
|
|
7231
|
+
"docs": [
|
|
7232
|
+
"How many rewards we batch together in a single MerkleTree leaf."
|
|
7233
|
+
],
|
|
7234
|
+
"type": "u8",
|
|
7235
|
+
"value": "1"
|
|
7236
|
+
}
|
|
7165
7237
|
]
|
|
7166
7238
|
};
|