@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.
@@ -2,7 +2,7 @@
2
2
  "address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ",
3
3
  "metadata": {
4
4
  "name": "arcium",
5
- "version": "0.11.0",
5
+ "version": "0.11.2",
6
6
  "spec": "0.1.0",
7
7
  "description": "The Arcium program"
8
8
  },
@@ -6915,6 +6915,42 @@
6915
6915
  ]
6916
6916
  }
6917
6917
  },
6918
+ {
6919
+ "name": "mempool",
6920
+ "docs": [
6921
+ "The cluster's mempool account, used only to read its size (from the discriminator) so we",
6922
+ "know the minimum primary stake the invited node must hold.",
6923
+ "`mempool_size_of`."
6924
+ ],
6925
+ "pda": {
6926
+ "seeds": [
6927
+ {
6928
+ "kind": "const",
6929
+ "value": [
6930
+ 77,
6931
+ 101,
6932
+ 109,
6933
+ 112,
6934
+ 111,
6935
+ 111,
6936
+ 108
6937
+ ]
6938
+ },
6939
+ {
6940
+ "kind": "arg",
6941
+ "path": "cluster_offset"
6942
+ }
6943
+ ]
6944
+ }
6945
+ },
6946
+ {
6947
+ "name": "primary_stake_account",
6948
+ "docs": [
6949
+ "The `PrimaryStakingAccount` (owned by `arcium_staking`) bound to the invited node. We read",
6950
+ "its `primary_stake` (first field) to enforce the per-mempool-size minimum. Verified to be",
6951
+ "owned by the staking program and to match the node's recorded `primary_staking_account`."
6952
+ ]
6953
+ },
6918
6954
  {
6919
6955
  "name": "clock",
6920
6956
  "writable": true,
@@ -11094,6 +11130,11 @@
11094
11130
  "code": 6726,
11095
11131
  "name": "InvalidMigrationAccount",
11096
11132
  "msg": "Account is not a valid target for this migration (wrong owner or discriminator)"
11133
+ },
11134
+ {
11135
+ "code": 6727,
11136
+ "name": "InsufficientPrimaryStake",
11137
+ "msg": "Node's primary stake is below the minimum for this cluster's mempool size"
11097
11138
  }
11098
11139
  ],
11099
11140
  "types": [
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.0",
11
+ "version": "0.11.2",
12
12
  "spec": "0.1.0",
13
13
  "description": "The Arcium program"
14
14
  },
@@ -6921,6 +6921,42 @@ export type Arcium = {
6921
6921
  ]
6922
6922
  }
6923
6923
  },
6924
+ {
6925
+ "name": "mempool",
6926
+ "docs": [
6927
+ "The cluster's mempool account, used only to read its size (from the discriminator) so we",
6928
+ "know the minimum primary stake the invited node must hold.",
6929
+ "`mempool_size_of`."
6930
+ ],
6931
+ "pda": {
6932
+ "seeds": [
6933
+ {
6934
+ "kind": "const",
6935
+ "value": [
6936
+ 77,
6937
+ 101,
6938
+ 109,
6939
+ 112,
6940
+ 111,
6941
+ 111,
6942
+ 108
6943
+ ]
6944
+ },
6945
+ {
6946
+ "kind": "arg",
6947
+ "path": "clusterOffset"
6948
+ }
6949
+ ]
6950
+ }
6951
+ },
6952
+ {
6953
+ "name": "primaryStakeAccount",
6954
+ "docs": [
6955
+ "The `PrimaryStakingAccount` (owned by `arcium_staking`) bound to the invited node. We read",
6956
+ "its `primary_stake` (first field) to enforce the per-mempool-size minimum. Verified to be",
6957
+ "owned by the staking program and to match the node's recorded `primary_staking_account`."
6958
+ ]
6959
+ },
6924
6960
  {
6925
6961
  "name": "clock",
6926
6962
  "writable": true,
@@ -11100,6 +11136,11 @@ export type Arcium = {
11100
11136
  "code": 6726,
11101
11137
  "name": "invalidMigrationAccount",
11102
11138
  "msg": "Account is not a valid target for this migration (wrong owner or discriminator)"
11139
+ },
11140
+ {
11141
+ "code": 6727,
11142
+ "name": "insufficientPrimaryStake",
11143
+ "msg": "Node's primary stake is below the minimum for this cluster's mempool size"
11103
11144
  }
11104
11145
  ],
11105
11146
  "types": [
@@ -290,7 +290,7 @@
290
290
  },
291
291
  {
292
292
  "name": "mint",
293
- "address": "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
293
+ "address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs"
294
294
  },
295
295
  {
296
296
  "name": "pool_account",
@@ -1130,7 +1130,7 @@
1130
1130
  },
1131
1131
  {
1132
1132
  "name": "mint",
1133
- "address": "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
1133
+ "address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs"
1134
1134
  },
1135
1135
  {
1136
1136
  "name": "pool_account",
@@ -1846,38 +1846,38 @@
1846
1846
  {
1847
1847
  "kind": "const",
1848
1848
  "value": [
1849
- 160,
1850
- 125,
1851
- 200,
1852
- 55,
1853
- 211,
1854
- 178,
1855
- 66,
1849
+ 140,
1850
+ 2,
1856
1851
  27,
1857
- 149,
1858
- 22,
1859
- 219,
1860
- 191,
1861
- 28,
1862
- 218,
1863
- 171,
1852
+ 73,
1853
+ 195,
1854
+ 17,
1855
+ 0,
1856
+ 246,
1857
+ 183,
1864
1858
  113,
1865
- 92,
1866
- 216,
1867
- 236,
1868
- 165,
1869
- 124,
1870
- 20,
1871
- 89,
1872
- 205,
1873
- 119,
1874
- 106,
1875
- 175,
1876
- 166,
1877
- 185,
1878
- 155,
1879
- 69,
1880
- 242
1859
+ 43,
1860
+ 241,
1861
+ 63,
1862
+ 58,
1863
+ 114,
1864
+ 3,
1865
+ 95,
1866
+ 72,
1867
+ 247,
1868
+ 95,
1869
+ 41,
1870
+ 87,
1871
+ 67,
1872
+ 226,
1873
+ 103,
1874
+ 238,
1875
+ 224,
1876
+ 193,
1877
+ 5,
1878
+ 200,
1879
+ 127,
1880
+ 194
1881
1881
  ]
1882
1882
  }
1883
1883
  ],
@@ -2227,38 +2227,38 @@
2227
2227
  {
2228
2228
  "kind": "const",
2229
2229
  "value": [
2230
- 160,
2231
- 125,
2232
- 200,
2233
- 55,
2234
- 211,
2235
- 178,
2236
- 66,
2230
+ 140,
2231
+ 2,
2237
2232
  27,
2238
- 149,
2239
- 22,
2240
- 219,
2241
- 191,
2242
- 28,
2243
- 218,
2244
- 171,
2233
+ 73,
2234
+ 195,
2235
+ 17,
2236
+ 0,
2237
+ 246,
2238
+ 183,
2245
2239
  113,
2246
- 92,
2247
- 216,
2248
- 236,
2249
- 165,
2250
- 124,
2251
- 20,
2252
- 89,
2253
- 205,
2254
- 119,
2255
- 106,
2256
- 175,
2257
- 166,
2258
- 185,
2259
- 155,
2260
- 69,
2261
- 242
2240
+ 43,
2241
+ 241,
2242
+ 63,
2243
+ 58,
2244
+ 114,
2245
+ 3,
2246
+ 95,
2247
+ 72,
2248
+ 247,
2249
+ 95,
2250
+ 41,
2251
+ 87,
2252
+ 67,
2253
+ 226,
2254
+ 103,
2255
+ 238,
2256
+ 224,
2257
+ 193,
2258
+ 5,
2259
+ 200,
2260
+ 127,
2261
+ 194
2262
2262
  ]
2263
2263
  }
2264
2264
  ],
@@ -2496,38 +2496,38 @@
2496
2496
  {
2497
2497
  "kind": "const",
2498
2498
  "value": [
2499
- 160,
2500
- 125,
2501
- 200,
2502
- 55,
2503
- 211,
2504
- 178,
2505
- 66,
2499
+ 140,
2500
+ 2,
2506
2501
  27,
2507
- 149,
2508
- 22,
2509
- 219,
2510
- 191,
2511
- 28,
2512
- 218,
2513
- 171,
2502
+ 73,
2503
+ 195,
2504
+ 17,
2505
+ 0,
2506
+ 246,
2507
+ 183,
2514
2508
  113,
2515
- 92,
2516
- 216,
2517
- 236,
2518
- 165,
2519
- 124,
2520
- 20,
2521
- 89,
2522
- 205,
2523
- 119,
2524
- 106,
2525
- 175,
2526
- 166,
2527
- 185,
2528
- 155,
2529
- 69,
2530
- 242
2509
+ 43,
2510
+ 241,
2511
+ 63,
2512
+ 58,
2513
+ 114,
2514
+ 3,
2515
+ 95,
2516
+ 72,
2517
+ 247,
2518
+ 95,
2519
+ 41,
2520
+ 87,
2521
+ 67,
2522
+ 226,
2523
+ 103,
2524
+ 238,
2525
+ 224,
2526
+ 193,
2527
+ 5,
2528
+ 200,
2529
+ 127,
2530
+ 194
2531
2531
  ]
2532
2532
  }
2533
2533
  ],
@@ -2971,38 +2971,38 @@
2971
2971
  {
2972
2972
  "kind": "const",
2973
2973
  "value": [
2974
- 160,
2975
- 125,
2976
- 200,
2977
- 55,
2978
- 211,
2979
- 178,
2980
- 66,
2974
+ 140,
2975
+ 2,
2981
2976
  27,
2982
- 149,
2983
- 22,
2984
- 219,
2985
- 191,
2986
- 28,
2987
- 218,
2988
- 171,
2977
+ 73,
2978
+ 195,
2979
+ 17,
2980
+ 0,
2981
+ 246,
2982
+ 183,
2989
2983
  113,
2990
- 92,
2991
- 216,
2992
- 236,
2993
- 165,
2994
- 124,
2995
- 20,
2996
- 89,
2997
- 205,
2998
- 119,
2999
- 106,
3000
- 175,
3001
- 166,
3002
- 185,
3003
- 155,
3004
- 69,
3005
- 242
2984
+ 43,
2985
+ 241,
2986
+ 63,
2987
+ 58,
2988
+ 114,
2989
+ 3,
2990
+ 95,
2991
+ 72,
2992
+ 247,
2993
+ 95,
2994
+ 41,
2995
+ 87,
2996
+ 67,
2997
+ 226,
2998
+ 103,
2999
+ 238,
3000
+ 224,
3001
+ 193,
3002
+ 5,
3003
+ 200,
3004
+ 127,
3005
+ 194
3006
3006
  ]
3007
3007
  }
3008
3008
  ],
@@ -3219,7 +3219,7 @@
3219
3219
  },
3220
3220
  {
3221
3221
  "name": "mint",
3222
- "address": "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
3222
+ "address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs"
3223
3223
  },
3224
3224
  {
3225
3225
  "name": "pool_ata",
@@ -3494,7 +3494,7 @@
3494
3494
  },
3495
3495
  {
3496
3496
  "name": "mint",
3497
- "address": "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
3497
+ "address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs"
3498
3498
  },
3499
3499
  {
3500
3500
  "name": "pool_account",
@@ -3862,7 +3862,7 @@
3862
3862
  },
3863
3863
  {
3864
3864
  "name": "mint",
3865
- "address": "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
3865
+ "address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs"
3866
3866
  },
3867
3867
  {
3868
3868
  "name": "pool_account",
@@ -4392,7 +4392,7 @@
4392
4392
  },
4393
4393
  {
4394
4394
  "name": "mint",
4395
- "address": "BoVUVSJAhob2cvM5z4JZTdS6VWRSznh3bbzQD1TFjvDP"
4395
+ "address": "ARXwZkNAtzPfdcoqQiduJn8EPv9fKiDfGn2KyggyDrFs"
4396
4396
  },
4397
4397
  {
4398
4398
  "name": "pool_account",
@@ -4582,6 +4582,26 @@
4582
4582
  {
4583
4583
  "name": "token_program",
4584
4584
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
4585
+ },
4586
+ {
4587
+ "name": "arx_node",
4588
+ "docs": [
4589
+ "The `ArxNode` this stake is bound to. Required (and validated against the stored binding)",
4590
+ "on withdrawals when the stake's `binding` is `Node(..)`, so we can read the node's",
4591
+ "cluster and enforce that cluster's minimum primary stake. May be omitted for deposits,",
4592
+ "unbound stakes, or recovery-peer bindings. The `Account` wrapper enforces it's owned by",
4593
+ "the arcium program."
4594
+ ],
4595
+ "optional": true
4596
+ },
4597
+ {
4598
+ "name": "mempool",
4599
+ "docs": [
4600
+ "The mempool account of the cluster the bound node is seated in (or proposed to). Required",
4601
+ "alongside `arx_node` when that node belongs to a cluster. Only its discriminator (the",
4602
+ "mempool size) is read."
4603
+ ],
4604
+ "optional": true
4585
4605
  }
4586
4606
  ],
4587
4607
  "args": [
@@ -5471,6 +5491,26 @@
5471
5491
  "code": 6034,
5472
5492
  "name": "DelegatedRemovalNotMatured",
5473
5493
  "msg": "Delegated stake removal has not matured on the primary yet (finalize the primary first)"
5494
+ },
5495
+ {
5496
+ "code": 6035,
5497
+ "name": "InsufficientPrimaryStake",
5498
+ "msg": "Resulting primary stake is below the minimum for the bound node's cluster mempool size"
5499
+ },
5500
+ {
5501
+ "code": 6036,
5502
+ "name": "MissingNodeAccount",
5503
+ "msg": "Stake is bound to a node; the bound ArxNode account must be provided"
5504
+ },
5505
+ {
5506
+ "code": 6037,
5507
+ "name": "MissingMempoolAccount",
5508
+ "msg": "Bound node is seated in a cluster; the cluster's mempool account must be provided"
5509
+ },
5510
+ {
5511
+ "code": 6038,
5512
+ "name": "InvalidMempool",
5513
+ "msg": "Provided mempool account does not match the bound node's cluster"
5474
5514
  }
5475
5515
  ],
5476
5516
  "types": [