@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 CHANGED
@@ -1883,7 +1883,7 @@ function createPacker(fields, typeName = 'Packer') {
1883
1883
  var address$1 = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
1884
1884
  var metadata$1 = {
1885
1885
  name: "arcium",
1886
- version: "0.11.2",
1886
+ version: "0.13.1",
1887
1887
  spec: "0.1.0",
1888
1888
  description: "The Arcium program"
1889
1889
  };
@@ -9550,6 +9550,30 @@ var instructions$1 = [
9550
9550
  ]
9551
9551
  }
9552
9552
  },
9553
+ {
9554
+ name: "cluster_acc",
9555
+ pda: {
9556
+ seeds: [
9557
+ {
9558
+ kind: "const",
9559
+ value: [
9560
+ 67,
9561
+ 108,
9562
+ 117,
9563
+ 115,
9564
+ 116,
9565
+ 101,
9566
+ 114
9567
+ ]
9568
+ },
9569
+ {
9570
+ kind: "account",
9571
+ path: "mxe.cluster",
9572
+ account: "MXEAccount"
9573
+ }
9574
+ ]
9575
+ }
9576
+ },
9553
9577
  {
9554
9578
  name: "comp",
9555
9579
  writable: true,
@@ -12297,7 +12321,7 @@ var accounts$1 = [
12297
12321
  ]
12298
12322
  }
12299
12323
  ];
12300
- var events = [
12324
+ var events$1 = [
12301
12325
  {
12302
12326
  name: "CallbackComputationEvent",
12303
12327
  discriminator: [
@@ -13022,6 +13046,11 @@ var errors$1 = [
13022
13046
  code: 6727,
13023
13047
  name: "InsufficientPrimaryStake",
13024
13048
  msg: "Node's primary stake is below the minimum for this cluster's mempool size"
13049
+ },
13050
+ {
13051
+ code: 6728,
13052
+ name: "InvalidRecoveryPeersArgument",
13053
+ msg: "Invalid recovery peers argument"
13025
13054
  }
13026
13055
  ];
13027
13056
  var types$1 = [
@@ -16354,7 +16383,7 @@ var arcium = {
16354
16383
  metadata: metadata$1,
16355
16384
  instructions: instructions$1,
16356
16385
  accounts: accounts$1,
16357
- events: events,
16386
+ events: events$1,
16358
16387
  errors: errors$1,
16359
16388
  types: types$1
16360
16389
  };
@@ -16365,7 +16394,7 @@ var ARCIUM_IDL_MODULE = /*#__PURE__*/Object.freeze({
16365
16394
  address: address$1,
16366
16395
  default: arcium,
16367
16396
  errors: errors$1,
16368
- events: events,
16397
+ events: events$1,
16369
16398
  instructions: instructions$1,
16370
16399
  metadata: metadata$1,
16371
16400
  types: types$1
@@ -21714,6 +21743,20 @@ var accounts = [
21714
21743
  ]
21715
21744
  }
21716
21745
  ];
21746
+ var events = [
21747
+ {
21748
+ name: "EmptyRewardClaim",
21749
+ discriminator: [
21750
+ 0
21751
+ ]
21752
+ },
21753
+ {
21754
+ name: "RewardClaimInserted",
21755
+ discriminator: [
21756
+ 1
21757
+ ]
21758
+ }
21759
+ ];
21717
21760
  var errors = [
21718
21761
  {
21719
21762
  code: 6000,
@@ -22437,6 +22480,12 @@ var types = [
22437
22480
  ]
22438
22481
  }
22439
22482
  },
22483
+ {
22484
+ name: "EmptyRewardClaim",
22485
+ type: {
22486
+ kind: "struct"
22487
+ }
22488
+ },
22440
22489
  {
22441
22490
  name: "Epoch",
22442
22491
  docs: [
@@ -23337,6 +23386,38 @@ var types = [
23337
23386
  ]
23338
23387
  }
23339
23388
  },
23389
+ {
23390
+ name: "RewardClaimInserted",
23391
+ type: {
23392
+ kind: "struct",
23393
+ fields: [
23394
+ {
23395
+ name: "claim",
23396
+ type: {
23397
+ defined: {
23398
+ name: "RewardClaim"
23399
+ }
23400
+ }
23401
+ },
23402
+ {
23403
+ name: "root",
23404
+ type: {
23405
+ defined: {
23406
+ name: "Hash"
23407
+ }
23408
+ }
23409
+ },
23410
+ {
23411
+ name: "current_epoch",
23412
+ type: {
23413
+ defined: {
23414
+ name: "Epoch"
23415
+ }
23416
+ }
23417
+ }
23418
+ ]
23419
+ }
23420
+ },
23340
23421
  {
23341
23422
  name: "SetUnset",
23342
23423
  docs: [
@@ -23531,21 +23612,45 @@ var types = [
23531
23612
  }
23532
23613
  }
23533
23614
  ];
23615
+ var constants = [
23616
+ {
23617
+ name: "REWARDS_MT_HEIGHT_U32",
23618
+ docs: [
23619
+ "IDL-exported mirror of [`REWARDS_MT_HEIGHT`]. Anchor's `#[constant]` macro",
23620
+ "doesn't support `usize` (its type isn't platform-stable), so off-chain",
23621
+ "consumers reading via the IDL import this `u32` and cast to `usize`."
23622
+ ],
23623
+ type: "u32",
23624
+ value: "15"
23625
+ },
23626
+ {
23627
+ name: "REWARD_BATCHING_RATE",
23628
+ docs: [
23629
+ "How many rewards we batch together in a single MerkleTree leaf."
23630
+ ],
23631
+ type: "u8",
23632
+ value: "1"
23633
+ }
23634
+ ];
23534
23635
  var arcium_staking = {
23535
23636
  address: address,
23536
23637
  metadata: metadata,
23537
23638
  instructions: instructions,
23538
23639
  accounts: accounts,
23640
+ events: events,
23539
23641
  errors: errors,
23540
- types: types
23642
+ types: types,
23643
+ constants: constants
23541
23644
  };
23542
23645
 
23543
23646
  var ARCIUM_STAKING_IDL_MODULE = /*#__PURE__*/Object.freeze({
23544
23647
  __proto__: null,
23545
23648
  accounts: accounts,
23546
23649
  address: address,
23650
+ constants: constants,
23547
23651
  default: arcium_staking,
23548
23652
  errors: errors,
23653
+ events: events,
23549
23654
  instructions: instructions,
23550
23655
  metadata: metadata,
23551
23656
  types: types
package/build/index.mjs CHANGED
@@ -1864,7 +1864,7 @@ function createPacker(fields, typeName = 'Packer') {
1864
1864
  var address$1 = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
1865
1865
  var metadata$1 = {
1866
1866
  name: "arcium",
1867
- version: "0.11.2",
1867
+ version: "0.13.1",
1868
1868
  spec: "0.1.0",
1869
1869
  description: "The Arcium program"
1870
1870
  };
@@ -9531,6 +9531,30 @@ var instructions$1 = [
9531
9531
  ]
9532
9532
  }
9533
9533
  },
9534
+ {
9535
+ name: "cluster_acc",
9536
+ pda: {
9537
+ seeds: [
9538
+ {
9539
+ kind: "const",
9540
+ value: [
9541
+ 67,
9542
+ 108,
9543
+ 117,
9544
+ 115,
9545
+ 116,
9546
+ 101,
9547
+ 114
9548
+ ]
9549
+ },
9550
+ {
9551
+ kind: "account",
9552
+ path: "mxe.cluster",
9553
+ account: "MXEAccount"
9554
+ }
9555
+ ]
9556
+ }
9557
+ },
9534
9558
  {
9535
9559
  name: "comp",
9536
9560
  writable: true,
@@ -12278,7 +12302,7 @@ var accounts$1 = [
12278
12302
  ]
12279
12303
  }
12280
12304
  ];
12281
- var events = [
12305
+ var events$1 = [
12282
12306
  {
12283
12307
  name: "CallbackComputationEvent",
12284
12308
  discriminator: [
@@ -13003,6 +13027,11 @@ var errors$1 = [
13003
13027
  code: 6727,
13004
13028
  name: "InsufficientPrimaryStake",
13005
13029
  msg: "Node's primary stake is below the minimum for this cluster's mempool size"
13030
+ },
13031
+ {
13032
+ code: 6728,
13033
+ name: "InvalidRecoveryPeersArgument",
13034
+ msg: "Invalid recovery peers argument"
13006
13035
  }
13007
13036
  ];
13008
13037
  var types$1 = [
@@ -16335,7 +16364,7 @@ var arcium = {
16335
16364
  metadata: metadata$1,
16336
16365
  instructions: instructions$1,
16337
16366
  accounts: accounts$1,
16338
- events: events,
16367
+ events: events$1,
16339
16368
  errors: errors$1,
16340
16369
  types: types$1
16341
16370
  };
@@ -16346,7 +16375,7 @@ var ARCIUM_IDL_MODULE = /*#__PURE__*/Object.freeze({
16346
16375
  address: address$1,
16347
16376
  default: arcium,
16348
16377
  errors: errors$1,
16349
- events: events,
16378
+ events: events$1,
16350
16379
  instructions: instructions$1,
16351
16380
  metadata: metadata$1,
16352
16381
  types: types$1
@@ -21695,6 +21724,20 @@ var accounts = [
21695
21724
  ]
21696
21725
  }
21697
21726
  ];
21727
+ var events = [
21728
+ {
21729
+ name: "EmptyRewardClaim",
21730
+ discriminator: [
21731
+ 0
21732
+ ]
21733
+ },
21734
+ {
21735
+ name: "RewardClaimInserted",
21736
+ discriminator: [
21737
+ 1
21738
+ ]
21739
+ }
21740
+ ];
21698
21741
  var errors = [
21699
21742
  {
21700
21743
  code: 6000,
@@ -22418,6 +22461,12 @@ var types = [
22418
22461
  ]
22419
22462
  }
22420
22463
  },
22464
+ {
22465
+ name: "EmptyRewardClaim",
22466
+ type: {
22467
+ kind: "struct"
22468
+ }
22469
+ },
22421
22470
  {
22422
22471
  name: "Epoch",
22423
22472
  docs: [
@@ -23318,6 +23367,38 @@ var types = [
23318
23367
  ]
23319
23368
  }
23320
23369
  },
23370
+ {
23371
+ name: "RewardClaimInserted",
23372
+ type: {
23373
+ kind: "struct",
23374
+ fields: [
23375
+ {
23376
+ name: "claim",
23377
+ type: {
23378
+ defined: {
23379
+ name: "RewardClaim"
23380
+ }
23381
+ }
23382
+ },
23383
+ {
23384
+ name: "root",
23385
+ type: {
23386
+ defined: {
23387
+ name: "Hash"
23388
+ }
23389
+ }
23390
+ },
23391
+ {
23392
+ name: "current_epoch",
23393
+ type: {
23394
+ defined: {
23395
+ name: "Epoch"
23396
+ }
23397
+ }
23398
+ }
23399
+ ]
23400
+ }
23401
+ },
23321
23402
  {
23322
23403
  name: "SetUnset",
23323
23404
  docs: [
@@ -23512,21 +23593,45 @@ var types = [
23512
23593
  }
23513
23594
  }
23514
23595
  ];
23596
+ var constants = [
23597
+ {
23598
+ name: "REWARDS_MT_HEIGHT_U32",
23599
+ docs: [
23600
+ "IDL-exported mirror of [`REWARDS_MT_HEIGHT`]. Anchor's `#[constant]` macro",
23601
+ "doesn't support `usize` (its type isn't platform-stable), so off-chain",
23602
+ "consumers reading via the IDL import this `u32` and cast to `usize`."
23603
+ ],
23604
+ type: "u32",
23605
+ value: "15"
23606
+ },
23607
+ {
23608
+ name: "REWARD_BATCHING_RATE",
23609
+ docs: [
23610
+ "How many rewards we batch together in a single MerkleTree leaf."
23611
+ ],
23612
+ type: "u8",
23613
+ value: "1"
23614
+ }
23615
+ ];
23515
23616
  var arcium_staking = {
23516
23617
  address: address,
23517
23618
  metadata: metadata,
23518
23619
  instructions: instructions,
23519
23620
  accounts: accounts,
23621
+ events: events,
23520
23622
  errors: errors,
23521
- types: types
23623
+ types: types,
23624
+ constants: constants
23522
23625
  };
23523
23626
 
23524
23627
  var ARCIUM_STAKING_IDL_MODULE = /*#__PURE__*/Object.freeze({
23525
23628
  __proto__: null,
23526
23629
  accounts: accounts,
23527
23630
  address: address,
23631
+ constants: constants,
23528
23632
  default: arcium_staking,
23529
23633
  errors: errors,
23634
+ events: events,
23530
23635
  instructions: instructions,
23531
23636
  metadata: metadata,
23532
23637
  types: types
@@ -8,7 +8,7 @@ export type Arcium = {
8
8
  "address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
9
9
  "metadata": {
10
10
  "name": "arcium";
11
- "version": "0.11.2";
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": [