@argonprotocol/mainchain 1.5.1 → 1.5.2

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.1",
3
+ "version": "1.5.2",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@argonprotocol/ethereum-contracts": "workspace:*",
71
- "@argonprotocol/testing": "1.5.1",
71
+ "@argonprotocol/testing": "1.5.2",
72
72
  "@polkadot/typegen": "^17.0.1",
73
73
  "@substrate/ss58-registry": "^1.51.0",
74
74
  "@types/node": "^20",
@@ -2120,8 +2120,8 @@ declare module '@polkadot/api-base/types/events' {
2120
2120
  >;
2121
2121
  RewardEconomicsConfigured: AugmentedEvent<
2122
2122
  ApiType,
2123
- [targetBitcoinPercent: Percent],
2124
- { targetBitcoinPercent: Percent }
2123
+ [targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent],
2124
+ { targetBitcoinPercent: Percent; upstreamParticipationFactor: Percent }
2125
2125
  >;
2126
2126
  };
2127
2127
  txPause: {
@@ -1887,6 +1887,11 @@ declare module '@polkadot/api-base/types/storage' {
1887
1887
  * limit.
1888
1888
  **/
1889
1889
  totalArgonBondLots: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1890
+ /**
1891
+ * Share of reward uplift controlled by upstream participation, frozen at frame start.
1892
+ * Zero disables the requirement; 100% applies the full participation score.
1893
+ **/
1894
+ upstreamParticipationFactor: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
1890
1895
  };
1891
1896
  treasuryPositions: {
1892
1897
  /**
@@ -2077,8 +2077,9 @@ declare module '@polkadot/api-base/types/submittable' {
2077
2077
  configureRewardEconomics: AugmentedSubmittable<
2078
2078
  (
2079
2079
  targetBitcoinPercent: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
2080
+ upstreamParticipationFactor: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
2080
2081
  ) => SubmittableExtrinsic<ApiType>,
2081
- [Option<Percent>]
2082
+ [Option<Percent>, Option<Percent>]
2082
2083
  >;
2083
2084
  /**
2084
2085
  * Liquidate one full bond lot. It keeps the locked frame's payout terms and is
@@ -1411,6 +1411,7 @@ export default {
1411
1411
  },
1412
1412
  RewardEconomicsConfigured: {
1413
1413
  targetBitcoinPercent: 'Percent',
1414
+ upstreamParticipationFactor: 'Percent',
1414
1415
  },
1415
1416
  FrameVaultCapitalLocked: {
1416
1417
  frameId: 'u64',
@@ -2809,6 +2810,7 @@ export default {
2809
2810
  },
2810
2811
  configure_reward_economics: {
2811
2812
  targetBitcoinPercent: 'Option<Percent>',
2813
+ upstreamParticipationFactor: 'Option<Percent>',
2812
2814
  },
2813
2815
  backfill_bond_lot_earnings: {
2814
2816
  bondLotId: 'u64',
@@ -1751,6 +1751,7 @@ declare module '@polkadot/types/lookup' {
1751
1751
  readonly isRewardEconomicsConfigured: boolean;
1752
1752
  readonly asRewardEconomicsConfigured: {
1753
1753
  readonly targetBitcoinPercent: Percent;
1754
+ readonly upstreamParticipationFactor: Percent;
1754
1755
  } & Struct;
1755
1756
  readonly isFrameVaultCapitalLocked: boolean;
1756
1757
  readonly asFrameVaultCapitalLocked: {
@@ -3313,6 +3314,7 @@ declare module '@polkadot/types/lookup' {
3313
3314
  readonly isConfigureRewardEconomics: boolean;
3314
3315
  readonly asConfigureRewardEconomics: {
3315
3316
  readonly targetBitcoinPercent: Option<Percent>;
3317
+ readonly upstreamParticipationFactor: Option<Percent>;
3316
3318
  } & Struct;
3317
3319
  readonly isBackfillBondLotEarnings: boolean;
3318
3320
  readonly asBackfillBondLotEarnings: {