@argonprotocol/mainchain 1.5.2-dev.79fc938b → 1.5.2-dev.862caf8c

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.5.2-dev.79fc938b",
3
+ "version": "1.5.2-dev.862caf8c",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@argonprotocol/ethereum-contracts": "workspace:*",
72
- "@argonprotocol/testing": "1.5.2-dev.79fc938b",
72
+ "@argonprotocol/testing": "1.5.2-dev.862caf8c",
73
73
  "@polkadot/typegen": "^17.0.1",
74
74
  "@substrate/ss58-registry": "^1.51.0",
75
75
  "@types/node": "^20",
@@ -542,9 +542,11 @@ declare module '@polkadot/api-base/types/consts' {
542
542
  };
543
543
  stabilizerBuys: {
544
544
  /**
545
- * Fraction of min(available funding, matching basis) reserved once; configure 90%.
545
+ * Fraction of total matching basis admitted to rewards, independent of bid rates.
546
+ * Configure 90%; reserve up to that amount, bounded separately by available Treasury
547
+ * funding.
546
548
  **/
547
- auctionBudgetPercent: Percent & AugmentedConst<ApiType>;
549
+ auctionInclusionPercent: Percent & AugmentedConst<ApiType>;
548
550
  /**
549
551
  * In the open bucket, allow USDC observations up to ten ticks before the purchase.
550
552
  **/
@@ -25,7 +25,8 @@ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
25
25
  import type { AccountId32, H160, H256, Percent, Permill } from '@polkadot/types/interfaces/runtime';
26
26
  import type {
27
27
  ArgonNotaryAuditErrorVerifyError,
28
- ArgonPrimitivesAmountRankAmountRankKey,
28
+ ArgonPrimitivesAmountRankAmountRankKeyAccountId32,
29
+ ArgonPrimitivesAmountRankAmountRankKeyU32,
29
30
  ArgonPrimitivesAmountRankAscendingRankKeyAccountId32,
30
31
  ArgonPrimitivesAmountRankAscendingRankKeyU64,
31
32
  ArgonPrimitivesBalanceChangeAccountOrigin,
@@ -1664,20 +1665,26 @@ declare module '@polkadot/api-base/types/storage' {
1664
1665
  [u64]
1665
1666
  >;
1666
1667
  /**
1667
- * Positive bids ordered by rate ascending, then account ascending. Values are frozen matching
1668
- * bases in microgons, allowing settlement after the account's principal bucket is gone.
1668
+ * Positive bids ordered by rate ascending, matching basis descending, then account ascending.
1669
+ * Keys retain each frozen matching basis in microgons even after principal is released.
1669
1670
  **/
1670
1671
  bidsByAuction: AugmentedQuery<
1671
1672
  ApiType,
1672
1673
  (
1673
1674
  arg1: u64 | AnyNumber | Uint8Array,
1674
1675
  arg2:
1675
- | ArgonPrimitivesAmountRankAscendingRankKeyAccountId32
1676
- | { ascendingRank?: any; orderedId?: any }
1677
- | string
1678
- | Uint8Array,
1679
- ) => Observable<Option<u128>>,
1680
- [u64, ArgonPrimitivesAmountRankAscendingRankKeyAccountId32]
1676
+ | ITuple<[Percent, ArgonPrimitivesAmountRankAmountRankKeyAccountId32]>
1677
+ | [
1678
+ Percent | AnyNumber | Uint8Array,
1679
+ (
1680
+ | ArgonPrimitivesAmountRankAmountRankKeyAccountId32
1681
+ | { descendingAmount?: any; orderedId?: any }
1682
+ | string
1683
+ | Uint8Array
1684
+ ),
1685
+ ],
1686
+ ) => Observable<Option<Null>>,
1687
+ [u64, ITuple<[Percent, ArgonPrimitivesAmountRankAmountRankKeyAccountId32]>]
1681
1688
  >;
1682
1689
  /**
1683
1690
  * Scheduled rewards and the account's single payout queue entry.
@@ -2255,12 +2262,12 @@ declare module '@polkadot/api-base/types/storage' {
2255
2262
  ApiType,
2256
2263
  (
2257
2264
  arg:
2258
- | ArgonPrimitivesAmountRankAmountRankKey
2265
+ | ArgonPrimitivesAmountRankAmountRankKeyU32
2259
2266
  | { descendingAmount?: any; orderedId?: any }
2260
2267
  | string
2261
2268
  | Uint8Array,
2262
2269
  ) => Observable<Option<Null>>,
2263
- [ArgonPrimitivesAmountRankAmountRankKey]
2270
+ [ArgonPrimitivesAmountRankAmountRankKeyU32]
2264
2271
  >;
2265
2272
  /**
2266
2273
  * Vault Bitcoin Xpub and current child counter by VaultId
@@ -1863,7 +1863,8 @@ declare module '@polkadot/api-base/types/submittable' {
1863
1863
  };
1864
1864
  stabilizerBuys: {
1865
1865
  /**
1866
- * Submit a whole-percent bid during F+1. Account ID breaks equal-rate ties.
1866
+ * Submit a whole-percent bid during F+1. Larger matching bases break equal-rate ties;
1867
+ * account ID orders bids with the same rate and matching basis.
1867
1868
  **/
1868
1869
  bid: AugmentedSubmittable<
1869
1870
  (
@@ -3779,7 +3779,7 @@ export default {
3779
3779
  /**
3780
3780
  * Lookup444: argon_primitives::amount_rank::AmountRankKey<Id>
3781
3781
  **/
3782
- ArgonPrimitivesAmountRankAmountRankKey: {
3782
+ ArgonPrimitivesAmountRankAmountRankKeyU32: {
3783
3783
  descendingAmount: '[u8;16]',
3784
3784
  orderedId: '[u8;4]',
3785
3785
  },
@@ -4955,7 +4955,8 @@ export default {
4955
4955
  matchingRate: 'Permill',
4956
4956
  totalMatchingBasis: 'u128',
4957
4957
  budget: 'Option<u128>',
4958
- remaining: 'u128',
4958
+ remainingBudget: 'u128',
4959
+ remainingMatchingBasis: 'u128',
4959
4960
  maturesAtTick: 'Option<u64>',
4960
4961
  },
4961
4962
  /**
@@ -4975,21 +4976,28 @@ export default {
4975
4976
  positiveBidCount: 'u8',
4976
4977
  },
4977
4978
  /**
4978
- * Lookup665: argon_primitives::amount_rank::AscendingRankKey<sp_core::crypto::AccountId32>
4979
+ * Lookup666: argon_primitives::amount_rank::AmountRankKey<sp_core::crypto::AccountId32>
4979
4980
  **/
4980
- ArgonPrimitivesAmountRankAscendingRankKeyAccountId32: {
4981
- ascendingRank: '[u8;8]',
4981
+ ArgonPrimitivesAmountRankAmountRankKeyAccountId32: {
4982
+ descendingAmount: '[u8;16]',
4982
4983
  orderedId: '[u8;32]',
4983
4984
  },
4984
4985
  /**
4985
- * Lookup666: argon_primitives::amount_rank::AscendingRankKey<Id>
4986
+ * Lookup667: argon_primitives::amount_rank::AscendingRankKey<Id>
4986
4987
  **/
4987
4988
  ArgonPrimitivesAmountRankAscendingRankKeyU64: {
4988
4989
  ascendingRank: '[u8;8]',
4989
4990
  orderedId: '[u8;8]',
4990
4991
  },
4991
4992
  /**
4992
- * Lookup667: pallet_stabilizer_buys::pallet::Error<T>
4993
+ * Lookup668: argon_primitives::amount_rank::AscendingRankKey<sp_core::crypto::AccountId32>
4994
+ **/
4995
+ ArgonPrimitivesAmountRankAscendingRankKeyAccountId32: {
4996
+ ascendingRank: '[u8;8]',
4997
+ orderedId: '[u8;32]',
4998
+ },
4999
+ /**
5000
+ * Lookup669: pallet_stabilizer_buys::pallet::Error<T>
4993
5001
  **/
4994
5002
  PalletStabilizerBuysError: {
4995
5003
  _enum: [
@@ -5004,7 +5012,7 @@ export default {
5004
5012
  ],
5005
5013
  },
5006
5014
  /**
5007
- * Lookup674: pallet_stabilizer_pools::pallet::Error<T>
5015
+ * Lookup676: pallet_stabilizer_pools::pallet::Error<T>
5008
5016
  **/
5009
5017
  PalletStabilizerPoolsError: {
5010
5018
  _enum: [
@@ -5023,55 +5031,55 @@ export default {
5023
5031
  ],
5024
5032
  },
5025
5033
  /**
5026
- * Lookup677: frame_system::extensions::authorize_call::AuthorizeCall<T>
5034
+ * Lookup679: frame_system::extensions::authorize_call::AuthorizeCall<T>
5027
5035
  **/
5028
5036
  FrameSystemExtensionsAuthorizeCall: 'Null',
5029
5037
  /**
5030
- * Lookup678: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
5038
+ * Lookup680: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
5031
5039
  **/
5032
5040
  FrameSystemExtensionsCheckNonZeroSender: 'Null',
5033
5041
  /**
5034
- * Lookup679: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
5042
+ * Lookup681: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
5035
5043
  **/
5036
5044
  FrameSystemExtensionsCheckSpecVersion: 'Null',
5037
5045
  /**
5038
- * Lookup680: frame_system::extensions::check_tx_version::CheckTxVersion<T>
5046
+ * Lookup682: frame_system::extensions::check_tx_version::CheckTxVersion<T>
5039
5047
  **/
5040
5048
  FrameSystemExtensionsCheckTxVersion: 'Null',
5041
5049
  /**
5042
- * Lookup681: frame_system::extensions::check_genesis::CheckGenesis<T>
5050
+ * Lookup683: frame_system::extensions::check_genesis::CheckGenesis<T>
5043
5051
  **/
5044
5052
  FrameSystemExtensionsCheckGenesis: 'Null',
5045
5053
  /**
5046
- * Lookup684: frame_system::extensions::check_nonce::CheckNonce<T>
5054
+ * Lookup686: frame_system::extensions::check_nonce::CheckNonce<T>
5047
5055
  **/
5048
5056
  FrameSystemExtensionsCheckNonce: 'Compact<u32>',
5049
5057
  /**
5050
- * Lookup685: frame_system::extensions::check_weight::CheckWeight<T>
5058
+ * Lookup687: frame_system::extensions::check_weight::CheckWeight<T>
5051
5059
  **/
5052
5060
  FrameSystemExtensionsCheckWeight: 'Null',
5053
5061
  /**
5054
- * Lookup686: pallet_transaction_payment::ChargeTransactionPayment<T>
5062
+ * Lookup688: pallet_transaction_payment::ChargeTransactionPayment<T>
5055
5063
  **/
5056
5064
  PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
5057
5065
  /**
5058
- * Lookup687: frame_metadata_hash_extension::CheckMetadataHash<T>
5066
+ * Lookup689: frame_metadata_hash_extension::CheckMetadataHash<T>
5059
5067
  **/
5060
5068
  FrameMetadataHashExtensionCheckMetadataHash: {
5061
5069
  mode: 'FrameMetadataHashExtensionMode',
5062
5070
  },
5063
5071
  /**
5064
- * Lookup688: frame_metadata_hash_extension::Mode
5072
+ * Lookup690: frame_metadata_hash_extension::Mode
5065
5073
  **/
5066
5074
  FrameMetadataHashExtensionMode: {
5067
5075
  _enum: ['Disabled', 'Enabled'],
5068
5076
  },
5069
5077
  /**
5070
- * Lookup689: frame_system::extensions::weight_reclaim::WeightReclaim<T>
5078
+ * Lookup691: frame_system::extensions::weight_reclaim::WeightReclaim<T>
5071
5079
  **/
5072
5080
  FrameSystemExtensionsWeightReclaim: 'Null',
5073
5081
  /**
5074
- * Lookup690: argon_runtime::Runtime
5082
+ * Lookup692: argon_runtime::Runtime
5075
5083
  **/
5076
5084
  ArgonRuntimeRuntime: 'Null',
5077
5085
  };
@@ -8,7 +8,8 @@ import type {
8
8
  ArgonNotaryAuditAccountHistoryLookupError,
9
9
  ArgonNotaryAuditErrorVerifyError,
10
10
  ArgonPrimitivesAccountAccountType,
11
- ArgonPrimitivesAmountRankAmountRankKey,
11
+ ArgonPrimitivesAmountRankAmountRankKeyAccountId32,
12
+ ArgonPrimitivesAmountRankAmountRankKeyU32,
12
13
  ArgonPrimitivesAmountRankAscendingRankKeyAccountId32,
13
14
  ArgonPrimitivesAmountRankAscendingRankKeyU64,
14
15
  ArgonPrimitivesBalanceChangeAccountOrigin,
@@ -366,7 +367,8 @@ declare module '@polkadot/types/types/registry' {
366
367
  ArgonNotaryAuditAccountHistoryLookupError: ArgonNotaryAuditAccountHistoryLookupError;
367
368
  ArgonNotaryAuditErrorVerifyError: ArgonNotaryAuditErrorVerifyError;
368
369
  ArgonPrimitivesAccountAccountType: ArgonPrimitivesAccountAccountType;
369
- ArgonPrimitivesAmountRankAmountRankKey: ArgonPrimitivesAmountRankAmountRankKey;
370
+ ArgonPrimitivesAmountRankAmountRankKeyAccountId32: ArgonPrimitivesAmountRankAmountRankKeyAccountId32;
371
+ ArgonPrimitivesAmountRankAmountRankKeyU32: ArgonPrimitivesAmountRankAmountRankKeyU32;
370
372
  ArgonPrimitivesAmountRankAscendingRankKeyAccountId32: ArgonPrimitivesAmountRankAscendingRankKeyAccountId32;
371
373
  ArgonPrimitivesAmountRankAscendingRankKeyU64: ArgonPrimitivesAmountRankAscendingRankKeyU64;
372
374
  ArgonPrimitivesBalanceChangeAccountOrigin: ArgonPrimitivesBalanceChangeAccountOrigin;
@@ -4365,8 +4365,8 @@ declare module '@polkadot/types/lookup' {
4365
4365
  readonly argonotWithdrawals: Compact<u128>;
4366
4366
  }
4367
4367
 
4368
- /** @name ArgonPrimitivesAmountRankAmountRankKey (444) */
4369
- interface ArgonPrimitivesAmountRankAmountRankKey extends Struct {
4368
+ /** @name ArgonPrimitivesAmountRankAmountRankKeyU32 (444) */
4369
+ interface ArgonPrimitivesAmountRankAmountRankKeyU32 extends Struct {
4370
4370
  readonly descendingAmount: U8aFixed;
4371
4371
  readonly orderedId: U8aFixed;
4372
4372
  }
@@ -5766,7 +5766,8 @@ declare module '@polkadot/types/lookup' {
5766
5766
  readonly matchingRate: Permill;
5767
5767
  readonly totalMatchingBasis: u128;
5768
5768
  readonly budget: Option<u128>;
5769
- readonly remaining: u128;
5769
+ readonly remainingBudget: u128;
5770
+ readonly remainingMatchingBasis: u128;
5770
5771
  readonly maturesAtTick: Option<u64>;
5771
5772
  }
5772
5773
 
@@ -5784,19 +5785,25 @@ declare module '@polkadot/types/lookup' {
5784
5785
  readonly positiveBidCount: u8;
5785
5786
  }
5786
5787
 
5787
- /** @name ArgonPrimitivesAmountRankAscendingRankKeyAccountId32 (665) */
5788
- interface ArgonPrimitivesAmountRankAscendingRankKeyAccountId32 extends Struct {
5789
- readonly ascendingRank: U8aFixed;
5788
+ /** @name ArgonPrimitivesAmountRankAmountRankKeyAccountId32 (666) */
5789
+ interface ArgonPrimitivesAmountRankAmountRankKeyAccountId32 extends Struct {
5790
+ readonly descendingAmount: U8aFixed;
5790
5791
  readonly orderedId: U8aFixed;
5791
5792
  }
5792
5793
 
5793
- /** @name ArgonPrimitivesAmountRankAscendingRankKeyU64 (666) */
5794
+ /** @name ArgonPrimitivesAmountRankAscendingRankKeyU64 (667) */
5794
5795
  interface ArgonPrimitivesAmountRankAscendingRankKeyU64 extends Struct {
5795
5796
  readonly ascendingRank: U8aFixed;
5796
5797
  readonly orderedId: U8aFixed;
5797
5798
  }
5798
5799
 
5799
- /** @name PalletStabilizerBuysError (667) */
5800
+ /** @name ArgonPrimitivesAmountRankAscendingRankKeyAccountId32 (668) */
5801
+ interface ArgonPrimitivesAmountRankAscendingRankKeyAccountId32 extends Struct {
5802
+ readonly ascendingRank: U8aFixed;
5803
+ readonly orderedId: U8aFixed;
5804
+ }
5805
+
5806
+ /** @name PalletStabilizerBuysError (669) */
5800
5807
  interface PalletStabilizerBuysError extends Enum {
5801
5808
  readonly isAuctionNotFound: boolean;
5802
5809
  readonly isEntryNotFound: boolean;
@@ -5817,7 +5824,7 @@ declare module '@polkadot/types/lookup' {
5817
5824
  | 'BidLimitReached';
5818
5825
  }
5819
5826
 
5820
- /** @name PalletStabilizerPoolsError (674) */
5827
+ /** @name PalletStabilizerPoolsError (676) */
5821
5828
  interface PalletStabilizerPoolsError extends Enum {
5822
5829
  readonly isInvalidPool: boolean;
5823
5830
  readonly isPoolAlreadyRegistered: boolean;
@@ -5846,45 +5853,45 @@ declare module '@polkadot/types/lookup' {
5846
5853
  | 'PositionChangedWithoutRevision';
5847
5854
  }
5848
5855
 
5849
- /** @name FrameSystemExtensionsAuthorizeCall (677) */
5856
+ /** @name FrameSystemExtensionsAuthorizeCall (679) */
5850
5857
  type FrameSystemExtensionsAuthorizeCall = Null;
5851
5858
 
5852
- /** @name FrameSystemExtensionsCheckNonZeroSender (678) */
5859
+ /** @name FrameSystemExtensionsCheckNonZeroSender (680) */
5853
5860
  type FrameSystemExtensionsCheckNonZeroSender = Null;
5854
5861
 
5855
- /** @name FrameSystemExtensionsCheckSpecVersion (679) */
5862
+ /** @name FrameSystemExtensionsCheckSpecVersion (681) */
5856
5863
  type FrameSystemExtensionsCheckSpecVersion = Null;
5857
5864
 
5858
- /** @name FrameSystemExtensionsCheckTxVersion (680) */
5865
+ /** @name FrameSystemExtensionsCheckTxVersion (682) */
5859
5866
  type FrameSystemExtensionsCheckTxVersion = Null;
5860
5867
 
5861
- /** @name FrameSystemExtensionsCheckGenesis (681) */
5868
+ /** @name FrameSystemExtensionsCheckGenesis (683) */
5862
5869
  type FrameSystemExtensionsCheckGenesis = Null;
5863
5870
 
5864
- /** @name FrameSystemExtensionsCheckNonce (684) */
5871
+ /** @name FrameSystemExtensionsCheckNonce (686) */
5865
5872
  interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
5866
5873
 
5867
- /** @name FrameSystemExtensionsCheckWeight (685) */
5874
+ /** @name FrameSystemExtensionsCheckWeight (687) */
5868
5875
  type FrameSystemExtensionsCheckWeight = Null;
5869
5876
 
5870
- /** @name PalletTransactionPaymentChargeTransactionPayment (686) */
5877
+ /** @name PalletTransactionPaymentChargeTransactionPayment (688) */
5871
5878
  interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
5872
5879
 
5873
- /** @name FrameMetadataHashExtensionCheckMetadataHash (687) */
5880
+ /** @name FrameMetadataHashExtensionCheckMetadataHash (689) */
5874
5881
  interface FrameMetadataHashExtensionCheckMetadataHash extends Struct {
5875
5882
  readonly mode: FrameMetadataHashExtensionMode;
5876
5883
  }
5877
5884
 
5878
- /** @name FrameMetadataHashExtensionMode (688) */
5885
+ /** @name FrameMetadataHashExtensionMode (690) */
5879
5886
  interface FrameMetadataHashExtensionMode extends Enum {
5880
5887
  readonly isDisabled: boolean;
5881
5888
  readonly isEnabled: boolean;
5882
5889
  readonly type: 'Disabled' | 'Enabled';
5883
5890
  }
5884
5891
 
5885
- /** @name FrameSystemExtensionsWeightReclaim (689) */
5892
+ /** @name FrameSystemExtensionsWeightReclaim (691) */
5886
5893
  type FrameSystemExtensionsWeightReclaim = Null;
5887
5894
 
5888
- /** @name ArgonRuntimeRuntime (690) */
5895
+ /** @name ArgonRuntimeRuntime (692) */
5889
5896
  type ArgonRuntimeRuntime = Null;
5890
5897
  } // declare module