@argonprotocol/mainchain 1.5.2 → 1.6.0-dev.0f1257cf

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.
Files changed (40) hide show
  1. package/README.md +95 -0
  2. package/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
  3. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
  4. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
  5. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +401 -16
  6. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
  7. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
  8. package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +753 -0
  9. package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
  10. package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
  11. package/browser/index.d.ts +13518 -8123
  12. package/browser/index.js +6458 -2506
  13. package/browser/index.js.map +1 -1
  14. package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
  15. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
  16. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
  17. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +401 -16
  18. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
  19. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
  20. package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +753 -0
  21. package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
  22. package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
  23. package/lib/index.cjs +6428 -2499
  24. package/lib/index.cjs.map +1 -1
  25. package/lib/index.d.cts +13518 -8123
  26. package/lib/index.d.ts +13518 -8123
  27. package/lib/index.js +6710 -2781
  28. package/lib/index.js.map +1 -1
  29. package/package.json +17 -13
  30. package/src/interfaces/augment-api-consts.ts +183 -42
  31. package/src/interfaces/augment-api-errors.ts +408 -21
  32. package/src/interfaces/augment-api-events.ts +320 -1696
  33. package/src/interfaces/augment-api-query.ts +502 -1143
  34. package/src/interfaces/augment-api-rpc.ts +88 -613
  35. package/src/interfaces/augment-api-runtime.ts +255 -221
  36. package/src/interfaces/augment-api-tx.ts +403 -1633
  37. package/src/interfaces/augment-types.ts +46 -1350
  38. package/src/interfaces/lookup.ts +3844 -2824
  39. package/src/interfaces/registry.ts +132 -332
  40. package/src/interfaces/types-lookup.ts +4490 -3811
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.5.2",
3
+ "version": "1.6.0-dev.0f1257cf",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,22 +13,25 @@
13
13
  },
14
14
  "homepage": "https://github.com/argonprotocol/mainchain#readme",
15
15
  "scripts": {
16
- "build": "yarn generate:defs && yarn generate:meta && node clean-build.js && yarn tsc",
17
- "generate:contract-declarations": "tsc -p tsconfig.contracts.json",
16
+ "build": "yarn tsc",
17
+ "generate": "tsx src/scripts/generateMetadata.ts && node clean-build.js",
18
+ "generate:contract-declarations": "yarn workspace @argonprotocol/ethereum-contracts build && tsc -p tsconfig.contracts.json",
18
19
  "generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
19
20
  "generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
20
- "test": "vitest --run --config vitest.config.ts",
21
- "tsc": "yarn workspace @argonprotocol/ethereum-contracts build && yarn generate:contract-declarations && tsup && yarn validate:package",
21
+ "pretest": "yarn generate && yarn generate:contract-declarations",
22
+ "pretest:ci": "yarn pretest",
23
+ "test": "yarn pretest && vitest --run --config vitest.config.ts",
24
+ "tsc": "yarn generate && yarn generate:contract-declarations && tsup && yarn validate:package",
22
25
  "tsup": "yarn tsc",
23
26
  "validate:package": "tsx src/scripts/validatePackage.ts",
24
- "backfill:flexible-bond-metrics": "tsx src/scripts/backfillFlexibleBondMetrics.ts",
25
- "watch": "yarn generate:contract-declarations && tsup --watch",
26
- "typecheck": "tsc --noEmit -p tsconfig.test.json"
27
+ "backfill:flexible-bond-metrics": "yarn pretest && tsx src/scripts/backfillFlexibleBondMetrics.ts",
28
+ "watch": "yarn generate && yarn generate:contract-declarations && tsup --watch",
29
+ "typecheck": "yarn generate && yarn workspace @argonprotocol/ethereum-contracts build && tsc --noEmit -p tsconfig.test.json"
27
30
  },
28
31
  "files": [
29
32
  "lib/",
30
33
  "browser/",
31
- "src/interfaces/"
34
+ "src/interfaces/**"
32
35
  ],
33
36
  "type": "module",
34
37
  "module": "./lib/index.js",
@@ -47,12 +50,13 @@
47
50
  }
48
51
  },
49
52
  "./interfaces/*": {
50
- "types": "./src/interfaces/*/index.ts"
53
+ "types": "./src/interfaces/*.ts"
51
54
  }
52
55
  },
53
56
  "dependencies": {
54
- "@ethereumjs/block": "^10.1.1",
55
- "@ethereumjs/mpt": "^10.1.1",
57
+ "@ethereumjs/block": "^10.1.3",
58
+ "@ethereumjs/common": "^10.1.3",
59
+ "@ethereumjs/mpt": "^10.1.3",
56
60
  "@polkadot/api": "^17.0.1",
57
61
  "@polkadot/api-base": "^17.0.1",
58
62
  "@polkadot/keyring": "^14.0.3",
@@ -68,7 +72,7 @@
68
72
  },
69
73
  "devDependencies": {
70
74
  "@argonprotocol/ethereum-contracts": "workspace:*",
71
- "@argonprotocol/testing": "1.5.2",
75
+ "@argonprotocol/testing": "1.6.0-dev.0f1257cf",
72
76
  "@polkadot/typegen": "^17.0.1",
73
77
  "@substrate/ss58-registry": "^1.51.0",
74
78
  "@types/node": "^20",
@@ -8,13 +8,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
8
8
  import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
9
9
  import type { ITuple } from '@polkadot/types-codec/types';
10
10
  import type { AccountId32, Percent, Permill } from '@polkadot/types/interfaces/runtime';
11
- import type {
12
- FrameSupportPalletId,
13
- FrameSystemLimitsBlockLength,
14
- FrameSystemLimitsBlockWeights,
15
- SpVersionRuntimeVersion,
16
- SpWeightsRuntimeDbWeight,
17
- } from '@polkadot/types/lookup';
11
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
18
12
 
19
13
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
20
14
 
@@ -23,12 +17,12 @@ declare module '@polkadot/api-base/types/consts' {
23
17
  balances: {
24
18
  /**
25
19
  * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
26
- *
20
+ *
27
21
  * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
28
22
  * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
29
23
  * In case you have multiple sources of provider references, you may also get unexpected
30
24
  * behaviour if you set this to zero.
31
- *
25
+ *
32
26
  * Bottom line: Do yourself a favour and make it at least one!
33
27
  **/
34
28
  existentialDeposit: u128 & AugmentedConst<ApiType>;
@@ -39,26 +33,38 @@ declare module '@polkadot/api-base/types/consts' {
39
33
  /**
40
34
  * The maximum number of locks that should exist on an account.
41
35
  * Not strictly enforced, but used for weight estimation.
42
- *
36
+ *
43
37
  * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
44
38
  **/
45
39
  maxLocks: u32 & AugmentedConst<ApiType>;
46
40
  /**
47
41
  * The maximum number of named reserves that can exist on an account.
48
- *
42
+ *
49
43
  * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
50
44
  **/
51
45
  maxReserves: u32 & AugmentedConst<ApiType>;
52
46
  };
53
47
  bitcoinFissions: {
48
+ /**
49
+ * Fissions per Liquid covered by repayment benchmarks and checked by try-state.
50
+ **/
51
+ maxExpectedFissionsPerLiquid: u32 & AugmentedConst<ApiType>;
54
52
  /**
55
53
  * Maximum number of active Fissions that may allocate satoshis from one Lock.
56
54
  **/
57
55
  maxFissionsPerLock: u32 & AugmentedConst<ApiType>;
56
+ /**
57
+ * Maximum older frame records pruned in one block after gateway sync catches up.
58
+ **/
59
+ maxRValueHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
58
60
  /**
59
61
  * Minimum percentage change required to ratchet a Fission.
60
62
  **/
61
63
  minimumRatchetPercent: Percent & AugmentedConst<ApiType>;
64
+ /**
65
+ * Number of recent frame price marks retained after their source interval has synced.
66
+ **/
67
+ rValueHistoryFrames: u32 & AugmentedConst<ApiType>;
62
68
  };
63
69
  bitcoinLocks: {
64
70
  /**
@@ -101,7 +107,7 @@ declare module '@polkadot/api-base/types/consts' {
101
107
  **/
102
108
  orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
103
109
  /**
104
- * Number of Bitcoin blocks to reserve securitization that has not yet been activated.
110
+ * Initial Bitcoin deposit window, measured in Bitcoin blocks.
105
111
  **/
106
112
  securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
107
113
  /**
@@ -181,6 +187,10 @@ declare module '@polkadot/api-base/types/consts' {
181
187
  * Canonical Ethereum burn-accounting account representing funds moved to Ethereum.
182
188
  **/
183
189
  ethereumBurnAccount: AccountId32 & AugmentedConst<ApiType>;
190
+ /**
191
+ * Maximum activities in one complete gateway locator storage proof.
192
+ **/
193
+ maxActivitiesPerGatewayProof: u32 & AugmentedConst<ApiType>;
184
194
  /**
185
195
  * Maximum number of ordered gateway activities that may share one receipt proof.
186
196
  **/
@@ -189,6 +199,10 @@ declare module '@polkadot/api-base/types/consts' {
189
199
  * Maximum number of members the active Global Issuance Council may carry.
190
200
  **/
191
201
  maxCouncilMembers: u32 & AugmentedConst<ApiType>;
202
+ /**
203
+ * Maximum aggregate event data carried by one storage-proof locator.
204
+ **/
205
+ maxGatewayActivityLogDataBytes: u32 & AugmentedConst<ApiType>;
192
206
  /**
193
207
  * Maximum number of non-terminal transfer-out requests tracked for one destination chain.
194
208
  **/
@@ -242,7 +256,7 @@ declare module '@polkadot/api-base/types/consts' {
242
256
  maxNominators: u32 & AugmentedConst<ApiType>;
243
257
  /**
244
258
  * The maximum number of entries to keep in the set id to session index mapping.
245
- *
259
+ *
246
260
  * Since the `SetIdSession` map is only used for validating equivocations this
247
261
  * value should relate to the bonding duration of whatever staking system is
248
262
  * being used (if any). If equivocation handling is not enabled then this value
@@ -271,6 +285,8 @@ declare module '@polkadot/api-base/types/consts' {
271
285
  * The increment that bids can be on (for instance, one cent increments)
272
286
  **/
273
287
  bidIncrements: u128 & AugmentedConst<ApiType>;
288
+ bidRevealBlocks: u32 & AugmentedConst<ApiType>;
289
+ bidSettlementBuffer: u32 & AugmentedConst<ApiType>;
274
290
  /**
275
291
  * The number of frames a miner operates for
276
292
  **/
@@ -279,6 +295,10 @@ declare module '@polkadot/api-base/types/consts' {
279
295
  * The initial argonots needed per seat before a prior-day median is available.
280
296
  **/
281
297
  initialArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
298
+ /**
299
+ * Maximum commitments, including public bids, admitted per block.
300
+ **/
301
+ maxBidsPerBlock: u32 & AugmentedConst<ApiType>;
282
302
  /**
283
303
  * How many new miners can be in the cohort for each slot. The actual maximum will adjust
284
304
  * dynamically
@@ -327,7 +347,7 @@ declare module '@polkadot/api-base/types/consts' {
327
347
  /**
328
348
  * The base amount of currency needed to reserve for creating a multisig execution or to
329
349
  * store a dispatch call for later.
330
- *
350
+ *
331
351
  * This is held for an additional storage item whose value size is
332
352
  * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
333
353
  * `32 + sizeof(AccountId)` bytes.
@@ -335,7 +355,7 @@ declare module '@polkadot/api-base/types/consts' {
335
355
  depositBase: u128 & AugmentedConst<ApiType>;
336
356
  /**
337
357
  * The amount of currency needed per unit threshold when creating a multisig execution.
338
- *
358
+ *
339
359
  * This is held for adding 32 bytes more into a pre-existing storage value.
340
360
  **/
341
361
  depositFactor: u128 & AugmentedConst<ApiType>;
@@ -428,16 +448,21 @@ declare module '@polkadot/api-base/types/consts' {
428
448
  * Minimum vault securitization required to become operational.
429
449
  **/
430
450
  operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
451
+ /**
452
+ * Required operational registration signing contract. Clients must require version 2
453
+ * before signing; older clients must upgrade rather than reuse ownership-only proofs.
454
+ **/
455
+ registrationProofVersion: u8 & AugmentedConst<ApiType>;
431
456
  };
432
457
  ownership: {
433
458
  /**
434
459
  * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
435
- *
460
+ *
436
461
  * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
437
462
  * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
438
463
  * In case you have multiple sources of provider references, you may also get unexpected
439
464
  * behaviour if you set this to zero.
440
- *
465
+ *
441
466
  * Bottom line: Do yourself a favour and make it at least one!
442
467
  **/
443
468
  existentialDeposit: u128 & AugmentedConst<ApiType>;
@@ -448,13 +473,13 @@ declare module '@polkadot/api-base/types/consts' {
448
473
  /**
449
474
  * The maximum number of locks that should exist on an account.
450
475
  * Not strictly enforced, but used for weight estimation.
451
- *
476
+ *
452
477
  * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
453
478
  **/
454
479
  maxLocks: u32 & AugmentedConst<ApiType>;
455
480
  /**
456
481
  * The maximum number of named reserves that can exist on an account.
457
- *
482
+ *
458
483
  * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
459
484
  **/
460
485
  maxReserves: u32 & AugmentedConst<ApiType>;
@@ -490,14 +515,14 @@ declare module '@polkadot/api-base/types/consts' {
490
515
  proxy: {
491
516
  /**
492
517
  * The base amount of currency needed to reserve for creating an announcement.
493
- *
518
+ *
494
519
  * This is held when a new storage item holding a `Balance` is created (typically 16
495
520
  * bytes).
496
521
  **/
497
522
  announcementDepositBase: u128 & AugmentedConst<ApiType>;
498
523
  /**
499
524
  * The amount of currency needed per announcement made.
500
- *
525
+ *
501
526
  * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
502
527
  * into a pre-existing storage value.
503
528
  **/
@@ -512,20 +537,104 @@ declare module '@polkadot/api-base/types/consts' {
512
537
  maxProxies: u32 & AugmentedConst<ApiType>;
513
538
  /**
514
539
  * The base amount of currency needed to reserve for creating a proxy.
515
- *
540
+ *
516
541
  * This is held for an additional storage item whose value size is
517
542
  * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
518
543
  **/
519
544
  proxyDepositBase: u128 & AugmentedConst<ApiType>;
520
545
  /**
521
546
  * The amount of currency needed per proxy added.
522
- *
547
+ *
523
548
  * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
524
549
  * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
525
550
  * into account `32 + proxy_type.encode().len()` bytes of data.
526
551
  **/
527
552
  proxyDepositFactor: u128 & AugmentedConst<ApiType>;
528
553
  };
554
+ stabilizerBuys: {
555
+ /**
556
+ * Fraction of total matching basis admitted to rewards, independent of bid rates.
557
+ * Configure 90%; reserve up to that amount, bounded separately by available Treasury
558
+ * funding.
559
+ **/
560
+ auctionInclusionPercent: Percent & AugmentedConst<ApiType>;
561
+ /**
562
+ * Additional burn-funded reward before applying the purchase's auction result.
563
+ **/
564
+ liquidRepaymentRewardPercent: Percent & AugmentedConst<ApiType>;
565
+ /**
566
+ * Maximum account/frame purchase buckets visited in one account payout.
567
+ * This bounds work, without limiting the number of purchases an account can hold.
568
+ **/
569
+ maxFramesPerPayout: u32 & AugmentedConst<ApiType>;
570
+ /**
571
+ * Maximum Liquid repayments attempted across all account payouts in one block.
572
+ **/
573
+ maxLiquidRepaysPerBlock: u32 & AugmentedConst<ApiType>;
574
+ /**
575
+ * Maximum work in each automatic stage per block: ranked bid decisions, then principal
576
+ * release and repayment attempts. Failures and empty-auction completion consume work;
577
+ * excess stays queued.
578
+ **/
579
+ maxPayoutsPerBlock: u32 & AugmentedConst<ApiType>;
580
+ /**
581
+ * Positive submissions per account and auction; four allows an initial bid and three
582
+ * revisions.
583
+ **/
584
+ maxPositiveBids: u8 & AugmentedConst<ApiType>;
585
+ /**
586
+ * Maximum observation age at purchase time; also bounds historical lookup reads.
587
+ **/
588
+ maxPriceAgeTicks: u64 & AugmentedConst<ApiType>;
589
+ /**
590
+ * Maximum obsolete price entries removed per block after gateway sync advances.
591
+ **/
592
+ maxPriceHistoryPrunesPerBlock: u32 & AugmentedConst<ApiType>;
593
+ /**
594
+ * Maximum frame visits per repayment attempt; a partial frame visit also reads one tick.
595
+ **/
596
+ maxPriceWindowSteps: u32 & AugmentedConst<ApiType>;
597
+ /**
598
+ * Total mining-frame hold from admission, including the bidding window.
599
+ **/
600
+ purchaseHoldFrames: u64 & AugmentedConst<ApiType>;
601
+ };
602
+ stabilizerPools: {
603
+ /**
604
+ * Closed frames available to prove eligibility. Accepted earnings never expire.
605
+ **/
606
+ claimWindowFrames: u32 & AugmentedConst<ApiType>;
607
+ /**
608
+ * Maximum Ethereum handoff gap in milliseconds; finality and relay waits are excluded.
609
+ **/
610
+ continuationGraceMillis: u64 & AugmentedConst<ApiType>;
611
+ /**
612
+ * Maximum beneficiary slots, including reported NFTs held for recovery or collection.
613
+ **/
614
+ maxPositionsPerAccount: u32 & AugmentedConst<ApiType>;
615
+ /**
616
+ * Maximum number of time buckets used to sample one frame. Zero disables sampling.
617
+ **/
618
+ maxPriceBucketsPerFrame: u32 & AugmentedConst<ApiType>;
619
+ /**
620
+ * Closed mining frames retained in the sampled Uniswap price history.
621
+ **/
622
+ maxSampledPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
623
+ /**
624
+ * Minimum share of Mainchain ticks with a valid price in each bucket. Even at zero,
625
+ * each bucket needs a sample to calculate its mean.
626
+ **/
627
+ minPriceBucketCoverage: Percent & AugmentedConst<ApiType>;
628
+ /**
629
+ * Lower and upper reward price boundaries, as percentages of the ARGON USD target.
630
+ * The lower boundary must be positive and strictly below the upper boundary.
631
+ **/
632
+ rewardPriceBand: ITuple<[Percent, Percent]> & AugmentedConst<ApiType>;
633
+ /**
634
+ * Share of rewards assigned to USDC principal. ARGON receives the remainder.
635
+ **/
636
+ usdcRewardShare: Percent & AugmentedConst<ApiType>;
637
+ };
529
638
  system: {
530
639
  /**
531
640
  * Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -545,7 +654,7 @@ declare module '@polkadot/api-base/types/consts' {
545
654
  dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
546
655
  /**
547
656
  * The designated SS58 prefix of this chain.
548
- *
657
+ *
549
658
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
550
659
  * that the runtime should know about the prefix in order to make use of it as
551
660
  * an identifier of the chain.
@@ -559,7 +668,7 @@ declare module '@polkadot/api-base/types/consts' {
559
668
  timestamp: {
560
669
  /**
561
670
  * The minimum period between blocks.
562
- *
671
+ *
563
672
  * Be aware that this is different to the *expected* period that the block production
564
673
  * apparatus provides. Your chosen consensus system will generally work with this to
565
674
  * determine a sensible block time. For example, in the Aura pallet it will be double this
@@ -571,21 +680,21 @@ declare module '@polkadot/api-base/types/consts' {
571
680
  /**
572
681
  * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
573
682
  * `priority`
574
- *
683
+ *
575
684
  * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
576
685
  * added to a tip component in regular `priority` calculations.
577
686
  * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
578
687
  * extrinsic (with no tip), by including a tip value greater than the virtual tip.
579
- *
688
+ *
580
689
  * ```rust,ignore
581
690
  * // For `Normal`
582
691
  * let priority = priority_calc(tip);
583
- *
692
+ *
584
693
  * // For `Operational`
585
694
  * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
586
695
  * let priority = priority_calc(tip + virtual_tip);
587
696
  * ```
588
- *
697
+ *
589
698
  * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
590
699
  * sent with the transaction. So, not only does the transaction get a priority bump based
591
700
  * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
@@ -596,7 +705,7 @@ declare module '@polkadot/api-base/types/consts' {
596
705
  treasury: {
597
706
  /**
598
707
  * Maximum rewarded Argonot value as a multiple of the vault's Argon securitization.
599
- * Zero disables Argonot backing requirements and bonuses.
708
+ * The reward weight is configured separately by `ArgonotParticipationFactor`.
600
709
  **/
601
710
  argonotSecuritizationMultiplier: u32 & AugmentedConst<ApiType>;
602
711
  /**
@@ -604,17 +713,25 @@ declare module '@polkadot/api-base/types/consts' {
604
713
  **/
605
714
  defaultTargetBitcoinPercent: Percent & AugmentedConst<ApiType>;
606
715
  /**
607
- * The maximum number of active Argonot bond lots.
716
+ * Default circulating ARGON fraction used as the stabilizer pool reward reference.
608
717
  **/
609
- maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
718
+ defaultTargetStabilizerPoolPercent: Percent & AugmentedConst<ApiType>;
610
719
  /**
611
- * Maximum live Argon bond lots while direct frame payouts iterate every lot.
720
+ * The maximum number of active Argonot bond lots.
612
721
  **/
613
- maxArgonBondLots: u32 & AugmentedConst<ApiType>;
722
+ maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
614
723
  /**
615
724
  * The maximum percent of ownership-token circulation that can be bonded.
616
725
  **/
617
726
  maxArgonotBondedPercentOfCirculation: Percent & AugmentedConst<ApiType>;
727
+ /**
728
+ * Maximum concrete lots backing one operator across all of its authorities.
729
+ **/
730
+ maxBondCollateralLots: u32 & AugmentedConst<ApiType>;
731
+ /**
732
+ * Maximum accounts whose queued bond collateral is attempted in one block.
733
+ **/
734
+ maxBondCollateralSettlementsPerBlock: u32 & AugmentedConst<ApiType>;
618
735
  /**
619
736
  * The maximum number of bond lots whose release delay may mature in a single frame.
620
737
  **/
@@ -640,41 +757,65 @@ declare module '@polkadot/api-base/types/consts' {
640
757
  **/
641
758
  percentForArgonBondPool: Percent & AugmentedConst<ApiType>;
642
759
  /**
643
- * Percent reserved for Bitcoin Liquids and burned in this release.
760
+ * Percent credited to the Bitcoin Liquids reserve.
644
761
  **/
645
762
  percentForBitcoinLiquidPool: Percent & AugmentedConst<ApiType>;
763
+ /**
764
+ * Percent of the bid pool held for marketing rewards.
765
+ **/
766
+ percentForMarketing: Percent & AugmentedConst<ApiType>;
646
767
  /**
647
768
  * Percent reserved for future mining-operator rewards and burned in this release.
648
769
  **/
649
770
  percentForMiningOperatorPool: Percent & AugmentedConst<ApiType>;
650
771
  /**
651
- * Percent of the full bid pool paid to Argonot Stakes.
772
+ * Percent credited to the stabilizer pool rewards reserve.
652
773
  **/
653
- percentForStakePool: Percent & AugmentedConst<ApiType>;
774
+ percentForStabilizerPool: Percent & AugmentedConst<ApiType>;
654
775
  /**
655
- * Percent of the bid pool reserved for treasury reserves.
776
+ * Percent of the full bid pool paid to Argonot Stakes.
656
777
  **/
657
- percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
778
+ percentForStakePool: Percent & AugmentedConst<ApiType>;
658
779
  /**
659
780
  * Maximum percent paid to vaults when the network target is filled.
660
781
  **/
661
782
  percentForVaultPool: Percent & AugmentedConst<ApiType>;
783
+ /**
784
+ * Retain each frame's financial terms through funding and the collection window.
785
+ **/
786
+ stabilizerPoolRewardHistoryFrames: u32 & AugmentedConst<ApiType>;
662
787
  /**
663
788
  * The number of frames a releasing bond lot remains held before release.
664
789
  **/
665
790
  treasuryExitDelayFrames: u64 & AugmentedConst<ApiType>;
666
791
  /**
667
- * Account that holds treasury reserves for claims and reserve-funded payouts.
792
+ * Funded upstream Bitcoin securitization, in microgons, required for full Bitcoin credit.
668
793
  **/
669
- treasuryReservesAccount: AccountId32 & AugmentedConst<ApiType>;
670
794
  upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
671
795
  upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
796
+ /**
797
+ * Upstream bond principal, in microgons, required for full bond credit.
798
+ **/
672
799
  upstreamBondTarget: u128 & AugmentedConst<ApiType>;
800
+ /**
801
+ * Maximum share of the full bid pool paid for vault Bitcoin participation.
802
+ **/
803
+ vaultBitcoinRewardPercent: Permill & AugmentedConst<ApiType>;
804
+ };
805
+ treasuryPositions: {
806
+ /**
807
+ * Maximum ready quantity changes settled by one Collect.
808
+ **/
809
+ maxEarningChangesPerCall: u32 & AugmentedConst<ApiType>;
810
+ /**
811
+ * Account that holds issued backing for committed collections.
812
+ **/
813
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
673
814
  };
674
815
  txPause: {
675
816
  /**
676
817
  * Maximum length for pallet name and call name SCALE encoded string names.
677
- *
818
+ *
678
819
  * TOO LONG NAMES WILL BE TREATED AS PAUSED.
679
820
  **/
680
821
  maxNameLen: u32 & AugmentedConst<ApiType>;