@argonprotocol/mainchain 1.4.10-dev.d4d4d1dd → 1.4.11

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.4.10-dev.d4d4d1dd",
3
+ "version": "1.4.11",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@argonprotocol/ethereum-contracts": "workspace:*",
68
- "@argonprotocol/testing": "1.4.10-dev.d4d4d1dd",
68
+ "@argonprotocol/testing": "1.4.11",
69
69
  "@polkadot/typegen": "^16.5.6",
70
70
  "@substrate/ss58-registry": "^1.51.0",
71
71
  "@types/node": "^20",
@@ -470,6 +470,10 @@ declare module '@polkadot/api-base/types/consts' {
470
470
  * The maximum number of ticks to preserve a price index
471
471
  **/
472
472
  maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
473
+ /**
474
+ * Maximum number of per-frame Ethereum price buckets to retain.
475
+ **/
476
+ maxEthereumPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
473
477
  /**
474
478
  * The oldest history to keep
475
479
  **/
@@ -1116,6 +1116,10 @@ declare module '@polkadot/api-base/types/errors' {
1116
1116
  VestingBalance: AugmentedError<ApiType>;
1117
1117
  };
1118
1118
  priceIndex: {
1119
+ /**
1120
+ * Ethereum prices must be non-zero and correspond to the submitted price-index tick.
1121
+ **/
1122
+ InvalidEthereumPrices: AugmentedError<ApiType>;
1119
1123
  /**
1120
1124
  * Change in argon price is too large
1121
1125
  **/
@@ -98,6 +98,8 @@ import type {
98
98
  PalletOperationalAccountsRewardsConfig,
99
99
  PalletPriceIndexArgonotAverageFrameAccumulator,
100
100
  PalletPriceIndexCpiMeasurementBucket,
101
+ PalletPriceIndexEthereumPriceFrameAccumulator,
102
+ PalletPriceIndexEthereumPriceIndex,
101
103
  PalletPriceIndexPriceIndex,
102
104
  PalletProxyAnnouncement,
103
105
  PalletProxyProxyDefinition,
@@ -1432,6 +1434,14 @@ declare module '@polkadot/api-base/types/storage' {
1432
1434
  * Stores the active price index
1433
1435
  **/
1434
1436
  current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
1437
+ /**
1438
+ * Stores Ethereum pricing submitted with the active price index.
1439
+ **/
1440
+ currentEthereumPrice: AugmentedQuery<
1441
+ ApiType,
1442
+ () => Observable<Option<PalletPriceIndexEthereumPriceIndex>>,
1443
+ []
1444
+ >;
1435
1445
  /**
1436
1446
  * Accumulates the current frame's Argonot price samples until the frame closes.
1437
1447
  **/
@@ -1464,6 +1474,14 @@ declare module '@polkadot/api-base/types/storage' {
1464
1474
  () => Observable<BTreeMap<u64, u128>>,
1465
1475
  []
1466
1476
  >;
1477
+ /**
1478
+ * Stores per-frame Ethereum price totals used for the trailing averages.
1479
+ **/
1480
+ historicEthereumPricesByFrame: AugmentedQuery<
1481
+ ApiType,
1482
+ () => Observable<BTreeMap<u64, PalletPriceIndexEthereumPriceFrameAccumulator>>,
1483
+ []
1484
+ >;
1467
1485
  /**
1468
1486
  * Stores the last valid price index
1469
1487
  **/
@@ -64,6 +64,7 @@ import type {
64
64
  PalletMultisigTimepoint,
65
65
  PalletOperationalAccountsOperationalProgressPatch,
66
66
  PalletOperationalAccountsRegistration,
67
+ PalletPriceIndexEthereumPriceIndex,
67
68
  PalletPriceIndexPriceIndex,
68
69
  PalletVaultsVaultConfig,
69
70
  SnowbridgeBeaconPrimitivesBeaconHeader,
@@ -1457,8 +1458,15 @@ declare module '@polkadot/api-base/types/submittable' {
1457
1458
  }
1458
1459
  | string
1459
1460
  | Uint8Array,
1461
+ ethereum:
1462
+ | Option<PalletPriceIndexEthereumPriceIndex>
1463
+ | null
1464
+ | Uint8Array
1465
+ | PalletPriceIndexEthereumPriceIndex
1466
+ | { ethereumUsdPrice?: any; ethereumGasPriceWei?: any; tick?: any }
1467
+ | string,
1460
1468
  ) => SubmittableExtrinsic<ApiType>,
1461
- [PalletPriceIndexPriceIndex]
1469
+ [PalletPriceIndexPriceIndex, Option<PalletPriceIndexEthereumPriceIndex>]
1462
1470
  >;
1463
1471
  };
1464
1472
  proxy: {