@argonprotocol/mainchain 1.5.1 → 1.5.2-dev.689967a9

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-dev.689967a9",
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-dev.689967a9",
72
72
  "@polkadot/typegen": "^17.0.1",
73
73
  "@substrate/ss58-registry": "^1.51.0",
74
74
  "@types/node": "^20",
@@ -401,7 +401,7 @@ declare module '@polkadot/api-base/types/events' {
401
401
  lockId: u64,
402
402
  vaultId: u32,
403
403
  securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
404
- collateralRequired: u128,
404
+ securitizationMicrogons: u128,
405
405
  accountId: AccountId32,
406
406
  securityFee: u128,
407
407
  ],
@@ -409,7 +409,7 @@ declare module '@polkadot/api-base/types/events' {
409
409
  lockId: u64;
410
410
  vaultId: u32;
411
411
  securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
412
- collateralRequired: u128;
412
+ securitizationMicrogons: u128;
413
413
  accountId: AccountId32;
414
414
  securityFee: u128;
415
415
  }
@@ -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: {
@@ -2261,14 +2261,14 @@ declare module '@polkadot/api-base/types/events' {
2261
2261
  [
2262
2262
  vaultId: u32,
2263
2263
  locker: AccountId32,
2264
- securitizationCoverageMicrogons: u128,
2264
+ securitizationMicrogons: u128,
2265
2265
  feeRevenue: u128,
2266
2266
  didUseFeeCoupon: bool,
2267
2267
  ],
2268
2268
  {
2269
2269
  vaultId: u32;
2270
2270
  locker: AccountId32;
2271
- securitizationCoverageMicrogons: u128;
2271
+ securitizationMicrogons: u128;
2272
2272
  feeRevenue: u128;
2273
2273
  didUseFeeCoupon: bool;
2274
2274
  }
@@ -2299,30 +2299,13 @@ declare module '@polkadot/api-base/types/events' {
2299
2299
  >;
2300
2300
  VaultCreated: AugmentedEvent<
2301
2301
  ApiType,
2302
- [
2303
- vaultId: u32,
2304
- securitization: u128,
2305
- securitizationRatio: u128,
2306
- operatorAccountId: AccountId32,
2307
- openedTick: u64,
2308
- ],
2309
- {
2310
- vaultId: u32;
2311
- securitization: u128;
2312
- securitizationRatio: u128;
2313
- operatorAccountId: AccountId32;
2314
- openedTick: u64;
2315
- }
2302
+ [vaultId: u32, securitization: u128, operatorAccountId: AccountId32, openedTick: u64],
2303
+ { vaultId: u32; securitization: u128; operatorAccountId: AccountId32; openedTick: u64 }
2316
2304
  >;
2317
2305
  VaultModified: AugmentedEvent<
2318
2306
  ApiType,
2319
- [vaultId: u32, securitization: u128, securitizationTarget: u128, securitizationRatio: u128],
2320
- {
2321
- vaultId: u32;
2322
- securitization: u128;
2323
- securitizationTarget: u128;
2324
- securitizationRatio: u128;
2325
- }
2307
+ [vaultId: u32, securitization: u128, securitizationTarget: u128],
2308
+ { vaultId: u32; securitization: u128; securitizationTarget: u128 }
2326
2309
  >;
2327
2310
  /**
2328
2311
  * Vault revenue was not collected within the required window, so has been burned
@@ -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
@@ -2325,13 +2326,7 @@ declare module '@polkadot/api-base/types/submittable' {
2325
2326
  (
2326
2327
  vaultConfig:
2327
2328
  | PalletVaultsVaultConfig
2328
- | {
2329
- terms?: any;
2330
- delegateAccountId?: any;
2331
- securitization?: any;
2332
- bitcoinXpubkey?: any;
2333
- securitizationRatio?: any;
2334
- }
2329
+ | { terms?: any; delegateAccountId?: any; securitization?: any; bitcoinXpubkey?: any }
2335
2330
  | string
2336
2331
  | Uint8Array,
2337
2332
  ) => SubmittableExtrinsic<ApiType>,
@@ -2340,8 +2335,6 @@ declare module '@polkadot/api-base/types/submittable' {
2340
2335
  /**
2341
2336
  * Modify funds allocated by the vault without changing existing Bitcoin locks.
2342
2337
  *
2343
- * The securitization percent must be maintained or increased.
2344
- *
2345
2338
  * Funds not yet used in a reward snapshot may leave without notice if not needed for
2346
2339
  * Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
2347
2340
  * notice and remain held until both the notice and any Bitcoin commitment have ended.
@@ -2351,9 +2344,8 @@ declare module '@polkadot/api-base/types/submittable' {
2351
2344
  (
2352
2345
  vaultId: u32 | AnyNumber | Uint8Array,
2353
2346
  securitization: u128 | AnyNumber | Uint8Array,
2354
- securitizationRatio: u128 | AnyNumber | Uint8Array,
2355
2347
  ) => SubmittableExtrinsic<ApiType>,
2356
- [u32, u128, u128]
2348
+ [u32, u128]
2357
2349
  >;
2358
2350
  /**
2359
2351
  * Change the terms of this vault. The change will be applied at the next mining frame