@argonprotocol/mainchain 1.5.2-dev.689967a9 → 1.5.2-dev.7cc5fb12

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.689967a9",
3
+ "version": "1.5.2-dev.7cc5fb12",
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.2-dev.689967a9",
71
+ "@argonprotocol/testing": "1.5.2-dev.7cc5fb12",
72
72
  "@polkadot/typegen": "^17.0.1",
73
73
  "@substrate/ss58-registry": "^1.51.0",
74
74
  "@types/node": "^20",
@@ -101,7 +101,7 @@ declare module '@polkadot/api-base/types/consts' {
101
101
  **/
102
102
  orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
103
103
  /**
104
- * Number of Bitcoin blocks to reserve securitization that has not yet been activated.
104
+ * Initial Bitcoin deposit window, measured in Bitcoin blocks.
105
105
  **/
106
106
  securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
107
107
  /**
@@ -102,6 +102,10 @@ declare module '@polkadot/api-base/types/errors' {
102
102
  * A source Lock's securitization does not cover the requested allocation and liability.
103
103
  **/
104
104
  InsufficientSecuritization: AugmentedError<ApiType>;
105
+ /**
106
+ * The fee coupon is invalid, expired, or already consumed.
107
+ **/
108
+ InvalidFeeCoupon: AugmentedError<ApiType>;
105
109
  /**
106
110
  * The requested source Lock does not exist.
107
111
  **/
@@ -138,6 +142,10 @@ declare module '@polkadot/api-base/types/errors' {
138
142
  * The Fission's ratchet counter cannot be incremented.
139
143
  **/
140
144
  RatchetNumberOverflow: AugmentedError<ApiType>;
145
+ /**
146
+ * The Vault could not upgrade the guarantee assigned to this Fission.
147
+ **/
148
+ ResecuritizationFailed: AugmentedError<ApiType>;
141
149
  /**
142
150
  * The source Lock already has the maximum number of active Fissions.
143
151
  **/
@@ -221,10 +229,6 @@ declare module '@polkadot/api-base/types/errors' {
221
229
  * The requested Lock securitization has fewer satoshis than its active Fissions.
222
230
  **/
223
231
  InsufficientSatoshisForFissions: AugmentedError<ApiType>;
224
- /**
225
- * The requested Lock securitization does not cover its active Fission liabilities.
226
- **/
227
- InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
228
232
  InsufficientVaultFunds: AugmentedError<ApiType>;
229
233
  /**
230
234
  * The external destination amount must be nonzero and fit with the network fee.
@@ -247,7 +251,7 @@ declare module '@polkadot/api-base/types/errors' {
247
251
  **/
248
252
  LockHasActiveFissions: AugmentedError<ApiType>;
249
253
  /**
250
- * A Lock in the release process cannot be resecuritized.
254
+ * A Lock's guarantee cannot be changed while release is pending.
251
255
  **/
252
256
  LockInProcessOfRelease: AugmentedError<ApiType>;
253
257
  /**
@@ -279,13 +283,13 @@ declare module '@polkadot/api-base/types/errors' {
279
283
  **/
280
284
  NoBitcoinPricesAvailable: AugmentedError<ApiType>;
281
285
  /**
282
- * The user does not have permissions to perform this action
286
+ * The requested securitization matches the Lock's current securitization.
283
287
  **/
284
- NoPermissions: AugmentedError<ApiType>;
288
+ NoGuaranteeChange: AugmentedError<ApiType>;
285
289
  /**
286
- * The requested securitization matches the Lock's current securitization.
290
+ * The user does not have permissions to perform this action
287
291
  **/
288
- NoResecuritizationChange: AugmentedError<ApiType>;
292
+ NoPermissions: AugmentedError<ApiType>;
289
293
  /**
290
294
  * No Vault public keys are available
291
295
  **/
@@ -419,7 +419,7 @@ declare module '@polkadot/api-base/types/events' {
419
419
  [lockId: u64, vaultId: u32, isFlexible: bool],
420
420
  { lockId: u64; vaultId: u32; isFlexible: bool }
421
421
  >;
422
- BitcoinLockResecuritized: AugmentedEvent<
422
+ BitcoinLockGuaranteeSet: AugmentedEvent<
423
423
  ApiType,
424
424
  [
425
425
  lockId: u64,
@@ -50,7 +50,7 @@ import type {
50
50
  ArgonPrimitivesNotaryNotaryRecord,
51
51
  ArgonPrimitivesProvidersBlockSealerInfo,
52
52
  ArgonPrimitivesTickTicker,
53
- ArgonPrimitivesTreasuryPositionQuantities,
53
+ ArgonPrimitivesTreasuryNetworkPositionQuantities,
54
54
  ArgonPrimitivesVault,
55
55
  ArgonPrimitivesVaultVaultArgonotSecuritization,
56
56
  FrameSupportDispatchPerDispatchClassWeight,
@@ -113,6 +113,7 @@ import type {
113
113
  PalletTreasuryBondLot,
114
114
  PalletTreasuryBondLotSummary,
115
115
  PalletTreasuryFrameArgonotBondParticipants,
116
+ PalletTreasuryFrameVaultBitcoin,
116
117
  PalletTreasuryFrameVaultCapital,
117
118
  PalletTreasuryPositionsPosition,
118
119
  PalletTreasuryVaultBondState,
@@ -255,13 +256,17 @@ declare module '@polkadot/api-base/types/storage' {
255
256
  [u32, AccountId32]
256
257
  >;
257
258
  /**
258
- * Highest Bitcoin UTXO sync height processed for securitization hold expirations.
259
+ * Highest Bitcoin UTXO sync height checked for funding expirations; failures remain pending.
259
260
  **/
260
261
  lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
261
262
  ApiType,
262
263
  () => Observable<Option<u64>>,
263
264
  []
264
265
  >;
266
+ /**
267
+ * Resume retries after this Lock so a persistent failure cannot starve other expirations.
268
+ **/
269
+ lastRetriedLockExpiration: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
265
270
  /**
266
271
  * Utxos that have been requested to be cosigned for releasing
267
272
  **/
@@ -367,6 +372,14 @@ declare module '@polkadot/api-base/types/storage' {
367
372
  ) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
368
373
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
369
374
  >;
375
+ /**
376
+ * Locks whose funding-window or terminal expiration failed and must be retried.
377
+ **/
378
+ pendingLockExpirations: AugmentedQuery<
379
+ ApiType,
380
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<Null>>,
381
+ [u64]
382
+ >;
370
383
  /**
371
384
  * Cosigned partial releases awaiting confirmation on Bitcoin.
372
385
  **/
@@ -1833,6 +1846,14 @@ declare module '@polkadot/api-base/types/storage' {
1833
1846
  () => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
1834
1847
  []
1835
1848
  >;
1849
+ /**
1850
+ * Covered Bitcoin locked alongside vault capital for frames using independent reward tiers.
1851
+ **/
1852
+ currentFrameVaultBitcoin: AugmentedQuery<
1853
+ ApiType,
1854
+ () => Observable<Option<PalletTreasuryFrameVaultBitcoin>>,
1855
+ []
1856
+ >;
1836
1857
  /**
1837
1858
  * The network bond total and vault capital locked for the current frame's payout.
1838
1859
  **/
@@ -1895,12 +1916,12 @@ declare module '@polkadot/api-base/types/storage' {
1895
1916
  };
1896
1917
  treasuryPositions: {
1897
1918
  /**
1898
- * Maintained network quantities, updated together with their account contributions.
1899
- * Treasury reads these when freezing frame inputs. This replaces its live Argonot stake total.
1919
+ * Account contribution totals and Vault Bitcoin coverage, maintained as sources change.
1920
+ * Treasury freezes these network quantities at each frame boundary.
1900
1921
  **/
1901
1922
  networkTotals: AugmentedQuery<
1902
1923
  ApiType,
1903
- () => Observable<ArgonPrimitivesTreasuryPositionQuantities>,
1924
+ () => Observable<ArgonPrimitivesTreasuryNetworkPositionQuantities>,
1904
1925
  []
1905
1926
  >;
1906
1927
  /**
@@ -49,6 +49,7 @@ import type {
49
49
  ArgonRuntimeProxyType,
50
50
  ArgonRuntimeSessionKeys,
51
51
  PalletBalancesAdjustmentDirection,
52
+ PalletBitcoinLocksFeeCoupon,
52
53
  PalletBitcoinLocksLockOptions,
53
54
  PalletBootstrapEndpointPubkey,
54
55
  PalletBootstrapRecoveryProof,
@@ -300,8 +301,28 @@ declare module '@polkadot/api-base/types/submittable' {
300
301
  lockId: Compact<u64> | AnyNumber | Uint8Array,
301
302
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
302
303
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
304
+ feeCoupon:
305
+ | Option<PalletBitcoinLocksFeeCoupon>
306
+ | null
307
+ | Uint8Array
308
+ | PalletBitcoinLocksFeeCoupon
309
+ | {
310
+ feeDiscount?: any;
311
+ securitizationSpaceToUnreserve?: any;
312
+ expiresAtFrame?: any;
313
+ nonce?: any;
314
+ signature?: any;
315
+ }
316
+ | string,
303
317
  ) => SubmittableExtrinsic<ApiType>,
304
- [Compact<u64>, Compact<u64>, Compact<u64>, Compact<u64>, Compact<u128>]
318
+ [
319
+ Compact<u64>,
320
+ Compact<u64>,
321
+ Compact<u64>,
322
+ Compact<u64>,
323
+ Compact<u128>,
324
+ Option<PalletBitcoinLocksFeeCoupon>,
325
+ ]
305
326
  >;
306
327
  /**
307
328
  * Ratchet an active Fission to a replacement target-normalized BTC value.
@@ -310,8 +331,21 @@ declare module '@polkadot/api-base/types/submittable' {
310
331
  (
311
332
  fissionId: Compact<u64> | AnyNumber | Uint8Array,
312
333
  microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
334
+ feeCoupon:
335
+ | Option<PalletBitcoinLocksFeeCoupon>
336
+ | null
337
+ | Uint8Array
338
+ | PalletBitcoinLocksFeeCoupon
339
+ | {
340
+ feeDiscount?: any;
341
+ securitizationSpaceToUnreserve?: any;
342
+ expiresAtFrame?: any;
343
+ nonce?: any;
344
+ signature?: any;
345
+ }
346
+ | string,
313
347
  ) => SubmittableExtrinsic<ApiType>,
314
- [Compact<u64>, Compact<u128>]
348
+ [Compact<u64>, Compact<u128>, Option<PalletBitcoinLocksFeeCoupon>]
315
349
  >;
316
350
  };
317
351
  bitcoinLocks: {
@@ -410,10 +444,17 @@ declare module '@polkadot/api-base/types/submittable' {
410
444
  ) => SubmittableExtrinsic<ApiType>,
411
445
  [u64, Bytes, u64, u64]
412
446
  >;
447
+ setFlexible: AugmentedSubmittable<
448
+ (
449
+ lockId: u64 | AnyNumber | Uint8Array,
450
+ isFlexible: bool | boolean | Uint8Array,
451
+ ) => SubmittableExtrinsic<ApiType>,
452
+ [u64, bool]
453
+ >;
413
454
  /**
414
- * Replace this Lock's BTC coverage and target value for its remaining term.
455
+ * Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
415
456
  **/
416
- resecuritize: AugmentedSubmittable<
457
+ setGuarantee: AugmentedSubmittable<
417
458
  (
418
459
  lockId: u64 | AnyNumber | Uint8Array,
419
460
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
@@ -427,13 +468,6 @@ declare module '@polkadot/api-base/types/submittable' {
427
468
  ) => SubmittableExtrinsic<ApiType>,
428
469
  [u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
429
470
  >;
430
- setFlexible: AugmentedSubmittable<
431
- (
432
- lockId: u64 | AnyNumber | Uint8Array,
433
- isFlexible: bool | boolean | Uint8Array,
434
- ) => SubmittableExtrinsic<ApiType>,
435
- [u64, bool]
436
- >;
437
471
  };
438
472
  bitcoinUtxos: {
439
473
  /**