@argonprotocol/mainchain 1.4.13 → 1.5.0-dev.d2f56d16

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.
@@ -30,6 +30,7 @@ import type {
30
30
  H160,
31
31
  H256,
32
32
  MultiAddress,
33
+ Percent,
33
34
  } from '@polkadot/types/interfaces/runtime';
34
35
  import type {
35
36
  ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
@@ -66,6 +67,7 @@ import type {
66
67
  PalletOperationalAccountsRegistration,
67
68
  PalletPriceIndexEthereumPriceIndex,
68
69
  PalletPriceIndexPriceIndex,
70
+ PalletTreasuryBondLotEarningsMetrics,
69
71
  PalletVaultsVaultConfig,
70
72
  SnowbridgeBeaconPrimitivesBeaconHeader,
71
73
  SpConsensusGrandpaEquivocationProof,
@@ -2004,6 +2006,37 @@ declare module '@polkadot/api-base/types/submittable' {
2004
2006
  >;
2005
2007
  };
2006
2008
  treasury: {
2009
+ /**
2010
+ * Attribute earnings already paid to a vault under the old aggregate flexible-bond model.
2011
+ * This changes bond-lot metrics only; it never pays, holds, or releases funds. `expected`
2012
+ * guards against overwriting a newer payout, and replaying `updated` is a no-op.
2013
+ **/
2014
+ backfillBondLotEarnings: AugmentedSubmittable<
2015
+ (
2016
+ bondLotId: u64 | AnyNumber | Uint8Array,
2017
+ expected:
2018
+ | PalletTreasuryBondLotEarningsMetrics
2019
+ | {
2020
+ participatedFrames?: any;
2021
+ lastFrameEarningsFrameId?: any;
2022
+ lastFrameEarnings?: any;
2023
+ cumulativeEarnings?: any;
2024
+ }
2025
+ | string
2026
+ | Uint8Array,
2027
+ updated:
2028
+ | PalletTreasuryBondLotEarningsMetrics
2029
+ | {
2030
+ participatedFrames?: any;
2031
+ lastFrameEarningsFrameId?: any;
2032
+ lastFrameEarnings?: any;
2033
+ cumulativeEarnings?: any;
2034
+ }
2035
+ | string
2036
+ | Uint8Array,
2037
+ ) => SubmittableExtrinsic<ApiType>,
2038
+ [u64, PalletTreasuryBondLotEarningsMetrics, PalletTreasuryBondLotEarningsMetrics]
2039
+ >;
2007
2040
  /**
2008
2041
  * Buy whole bond units for the Argonot active set.
2009
2042
  **/
@@ -2014,7 +2047,7 @@ declare module '@polkadot/api-base/types/submittable' {
2014
2047
  /**
2015
2048
  * Buy whole `1 ARGON` bonds for a vault.
2016
2049
  *
2017
- * The purchase either enters the accepted list or fails.
2050
+ * The purchase either creates a bond lot or fails.
2018
2051
  **/
2019
2052
  buyBonds: AugmentedSubmittable<
2020
2053
  (
@@ -2039,9 +2072,17 @@ declare module '@polkadot/api-base/types/submittable' {
2039
2072
  [u32, u32, Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof>]
2040
2073
  >;
2041
2074
  /**
2042
- * Liquidate one full bond lot.
2043
- *
2044
- * The lot stops participating right away and is released after the delay.
2075
+ * Update reward economics without resetting fields omitted by the caller.
2076
+ **/
2077
+ configureRewardEconomics: AugmentedSubmittable<
2078
+ (
2079
+ targetBitcoinPercent: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
2080
+ ) => SubmittableExtrinsic<ApiType>,
2081
+ [Option<Percent>]
2082
+ >;
2083
+ /**
2084
+ * Liquidate one full bond lot. It keeps the locked frame's payout terms and is
2085
+ * released after the delay.
2045
2086
  **/
2046
2087
  liquidateBondLot: AugmentedSubmittable<
2047
2088
  (bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
@@ -2269,8 +2310,8 @@ declare module '@polkadot/api-base/types/submittable' {
2269
2310
  };
2270
2311
  vaults: {
2271
2312
  /**
2272
- * Stop offering additional bitcoin locks from this vault. Will not affect existing
2273
- * locks. As funds are returned, they will be released to the vault owner.
2313
+ * Stop offering new Bitcoin locks. Existing locks continue; securitization exits after
2314
+ * its notice and any existing Bitcoin commitment.
2274
2315
  **/
2275
2316
  close: AugmentedSubmittable<
2276
2317
  (vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
@@ -2297,14 +2338,14 @@ declare module '@polkadot/api-base/types/submittable' {
2297
2338
  [PalletVaultsVaultConfig]
2298
2339
  >;
2299
2340
  /**
2300
- * Modify funds allocated by the vault. This will not affect issued bitcoin locks, but will
2301
- * affect the amount of funds available for new ones.
2341
+ * Modify funds allocated by the vault without changing existing Bitcoin locks.
2302
2342
  *
2303
2343
  * The securitization percent must be maintained or increased.
2304
2344
  *
2305
- * The amount allocated may not go below the existing reserved amounts, but you can release
2306
- * funds in this vault as bitcoin locks are released. To stop issuing any more bitcoin
2307
- * locks, use the `close` api.
2345
+ * Funds not yet used in a reward snapshot may leave without notice if not needed for
2346
+ * Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
2347
+ * notice and remain held until both the notice and any Bitcoin commitment have ended.
2348
+ * To stop issuing locks, use `close`.
2308
2349
  **/
2309
2350
  modifyFunding: AugmentedSubmittable<
2310
2351
  (
@@ -2323,7 +2364,7 @@ declare module '@polkadot/api-base/types/submittable' {
2323
2364
  vaultId: u32 | AnyNumber | Uint8Array,
2324
2365
  terms:
2325
2366
  | ArgonPrimitivesVaultVaultTerms
2326
- | { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any; treasuryProfitSharing?: any }
2367
+ | { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any }
2327
2368
  | string
2328
2369
  | Uint8Array,
2329
2370
  ) => SubmittableExtrinsic<ApiType>,
@@ -2341,7 +2382,11 @@ declare module '@polkadot/api-base/types/submittable' {
2341
2382
  ) => SubmittableExtrinsic<ApiType>,
2342
2383
  [u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
2343
2384
  >;
2344
- setCommittedArgonots: AugmentedSubmittable<
2385
+ /**
2386
+ * Set the desired Argonot backing. Unused funds release immediately; reward commitments
2387
+ * withdraw after one-year notice, continuing to participate until released.
2388
+ **/
2389
+ setArgonotSecuritization: AugmentedSubmittable<
2345
2390
  (amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2346
2391
  [Compact<u128>]
2347
2392
  >;
@@ -66,7 +66,11 @@ import type {
66
66
  MoreAttestations,
67
67
  } from '@polkadot/types/interfaces/attestations';
68
68
  import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
69
- import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
69
+ import type {
70
+ ExtrinsicOrHash,
71
+ ExtrinsicStatus,
72
+ GeneratedSessionKeys,
73
+ } from '@polkadot/types/interfaces/author';
70
74
  import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
71
75
  import type {
72
76
  AllowedSlots,
@@ -650,6 +654,7 @@ import type {
650
654
  SessionStatus,
651
655
  } from '@polkadot/types/interfaces/mixnet';
652
656
  import type {
657
+ MmrAncestryProof,
653
658
  MmrBatchProof,
654
659
  MmrEncodableOpaqueLeaf,
655
660
  MmrError,
@@ -1867,6 +1872,7 @@ declare module '@polkadot/types/types/registry' {
1867
1872
  FungibilityV5: FungibilityV5;
1868
1873
  FungiblesAccessError: FungiblesAccessError;
1869
1874
  Gas: Gas;
1875
+ GeneratedSessionKeys: GeneratedSessionKeys;
1870
1876
  GenesisBuildErr: GenesisBuildErr;
1871
1877
  GiltBid: GiltBid;
1872
1878
  GlobalValidationData: GlobalValidationData;
@@ -2033,6 +2039,7 @@ declare module '@polkadot/types/types/registry' {
2033
2039
  MigrationStatusResult: MigrationStatusResult;
2034
2040
  Mixnode: Mixnode;
2035
2041
  MixnodesErr: MixnodesErr;
2042
+ MmrAncestryProof: MmrAncestryProof;
2036
2043
  MmrBatchProof: MmrBatchProof;
2037
2044
  MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
2038
2045
  MmrError: MmrError;