@argonprotocol/mainchain 1.4.11 → 1.4.12-dev.2bc449e2

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.
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions
@@ -27,10 +26,11 @@ import type {
27
26
  ArgonNotaryAuditErrorVerifyError,
28
27
  ArgonPrimitivesBalanceChangeAccountOrigin,
29
28
  ArgonPrimitivesBitcoinBitcoinBlock,
29
+ ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey,
30
30
  ArgonPrimitivesBitcoinBitcoinNetwork,
31
31
  ArgonPrimitivesBitcoinBitcoinXPub,
32
+ ArgonPrimitivesBitcoinUtxoAddress,
32
33
  ArgonPrimitivesBitcoinUtxoRef,
33
- ArgonPrimitivesBitcoinUtxoValue,
34
34
  ArgonPrimitivesBlockSealBlockPayout,
35
35
  ArgonPrimitivesBlockSealMiningBidStats,
36
36
  ArgonPrimitivesBlockSealMiningRegistration,
@@ -63,9 +63,12 @@ import type {
63
63
  PalletBalancesAccountData,
64
64
  PalletBalancesBalanceLock,
65
65
  PalletBalancesReserveData,
66
+ PalletBitcoinFissionsFission,
67
+ PalletBitcoinLocksLockReleaseCosignHeight,
66
68
  PalletBitcoinLocksLockReleaseRequest,
67
69
  PalletBitcoinLocksLockedBitcoin,
68
70
  PalletBitcoinLocksOrphanedUtxo,
71
+ PalletBitcoinLocksPendingPartialRelease,
69
72
  PalletBootstrapEndpointPubkey,
70
73
  PalletBootstrapRecoveryPubkey,
71
74
  PalletCrosschainTransferAccountTransferTotals,
@@ -92,7 +95,7 @@ import type {
92
95
  PalletMiningSlotMinerNonceScoring,
93
96
  PalletMintMintAction,
94
97
  PalletMintMintQueueCursor,
95
- PalletMintPendingMintUtxo,
98
+ PalletMintPendingBitcoinMint,
96
99
  PalletMultisigMultisig,
97
100
  PalletOperationalAccountsOperationalAccount,
98
101
  PalletOperationalAccountsRewardsConfig,
@@ -109,7 +112,6 @@ import type {
109
112
  PalletTreasuryFrameArgonotBondParticipants,
110
113
  PalletTreasuryFrameVaultCapital,
111
114
  PalletTreasuryVaultBondState,
112
- PalletVaultsRecentCapacityDrop,
113
115
  PalletVaultsVaultFrameRevenue,
114
116
  SpConsensusGrandpaAppPublic,
115
117
  SpRuntimeDigest,
@@ -210,7 +212,52 @@ declare module '@polkadot/api-base/types/storage' {
210
212
  **/
211
213
  totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
212
214
  };
215
+ bitcoinFissions: {
216
+ /**
217
+ * Active Fission records addressed by their owner and owner-local Fission ID.
218
+ **/
219
+ fissionByOwnerAndId: AugmentedQuery<
220
+ ApiType,
221
+ (
222
+ arg1: AccountId32 | string | Uint8Array,
223
+ arg2: u64 | AnyNumber | Uint8Array,
224
+ ) => Observable<Option<PalletBitcoinFissionsFission>>,
225
+ [AccountId32, u64]
226
+ >;
227
+ /**
228
+ * Active Fission IDs allocating satoshis from each Lock.
229
+ **/
230
+ fissionIdsByLockId: AugmentedQuery<
231
+ ApiType,
232
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
233
+ [u64]
234
+ >;
235
+ /**
236
+ * Minimum Fission ID accepted from each owner.
237
+ **/
238
+ nextFissionIdByOwner: AugmentedQuery<
239
+ ApiType,
240
+ (arg: AccountId32 | string | Uint8Array) => Observable<u64>,
241
+ [AccountId32]
242
+ >;
243
+ };
213
244
  bitcoinLocks: {
245
+ lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
246
+ ApiType,
247
+ (
248
+ arg1: u32 | AnyNumber | Uint8Array,
249
+ arg2: AccountId32 | string | Uint8Array,
250
+ ) => Observable<Option<u64>>,
251
+ [u32, AccountId32]
252
+ >;
253
+ /**
254
+ * Highest Bitcoin UTXO sync height processed for securitization hold expirations.
255
+ **/
256
+ lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
257
+ ApiType,
258
+ () => Observable<Option<u64>>,
259
+ []
260
+ >;
214
261
  /**
215
262
  * Utxos that have been requested to be cosigned for releasing
216
263
  **/
@@ -229,17 +276,41 @@ declare module '@polkadot/api-base/types/storage' {
229
276
  [u64]
230
277
  >;
231
278
  /**
232
- * Stores the block number where a release was cosigned by the vault.
279
+ * Index of active UTXO IDs per owner account.
280
+ **/
281
+ lockIdsByOwnerAccount: AugmentedQuery<
282
+ ApiType,
283
+ (
284
+ arg1: AccountId32 | string | Uint8Array,
285
+ arg2: u64 | AnyNumber | Uint8Array,
286
+ ) => Observable<Option<Null>>,
287
+ [AccountId32, u64]
288
+ >;
289
+ /**
290
+ * Index of active UTXO IDs per vault
291
+ **/
292
+ lockIdsByVaultId: AugmentedQuery<
293
+ ApiType,
294
+ (
295
+ arg1: u32 | AnyNumber | Uint8Array,
296
+ arg2: u64 | AnyNumber | Uint8Array,
297
+ ) => Observable<Option<Null>>,
298
+ [u32, u64]
299
+ >;
300
+ /**
301
+ * Latest cosigned release for each Lock, retained for signature recovery.
233
302
  **/
234
303
  lockReleaseCosignHeightById: AugmentedQuery<
235
304
  ApiType,
236
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
305
+ (
306
+ arg: u64 | AnyNumber | Uint8Array,
307
+ ) => Observable<Option<PalletBitcoinLocksLockReleaseCosignHeight>>,
237
308
  [u64]
238
309
  >;
239
310
  /**
240
- * Stores bitcoin locks that have requested to be released
311
+ * Release requests awaiting a Vault cosignature.
241
312
  **/
242
- lockReleaseRequestsByUtxoId: AugmentedQuery<
313
+ lockReleaseRequestsById: AugmentedQuery<
243
314
  ApiType,
244
315
  (
245
316
  arg: u64 | AnyNumber | Uint8Array,
@@ -249,13 +320,13 @@ declare module '@polkadot/api-base/types/storage' {
249
320
  /**
250
321
  * Stores bitcoin utxos that have requested to be released
251
322
  **/
252
- locksByUtxoId: AugmentedQuery<
323
+ locksById: AugmentedQuery<
253
324
  ApiType,
254
325
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
255
326
  [u64]
256
327
  >;
257
328
  /**
258
- * History of target microgons per btc.
329
+ * Recent target-normalized microgon values per BTC and their observed ticks.
259
330
  **/
260
331
  microgonPerBtcHistory: AugmentedQuery<
261
332
  ApiType,
@@ -263,10 +334,10 @@ declare module '@polkadot/api-base/types/storage' {
263
334
  []
264
335
  >;
265
336
  /**
266
- * The minimum number of satoshis that can be locked
337
+ * The minimum number of satoshis accepted in one watched funding UTXO.
267
338
  **/
268
339
  minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
269
- nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
340
+ nextBitcoinLockId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
270
341
  /**
271
342
  * Expiration of orphaned utxo refs by user account
272
343
  **/
@@ -293,26 +364,23 @@ declare module '@polkadot/api-base/types/storage' {
293
364
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
294
365
  >;
295
366
  /**
296
- * Index of active UTXO IDs per owner account.
367
+ * Cosigned partial releases awaiting confirmation on Bitcoin.
297
368
  **/
298
- utxoIdsByOwnerAccount: AugmentedQuery<
369
+ pendingPartialReleaseByLockId: AugmentedQuery<
299
370
  ApiType,
300
371
  (
301
- arg1: AccountId32 | string | Uint8Array,
302
- arg2: u64 | AnyNumber | Uint8Array,
303
- ) => Observable<Option<Null>>,
304
- [AccountId32, u64]
372
+ arg: u64 | AnyNumber | Uint8Array,
373
+ ) => Observable<Option<PalletBitcoinLocksPendingPartialRelease>>,
374
+ [u64]
305
375
  >;
306
376
  /**
307
- * Index of active UTXO IDs per vault
377
+ * Lock IDs whose securitization hold expires at the indexed Bitcoin height.
378
+ * Expiry releases only the unactivated portion and leaves the lock address watched.
308
379
  **/
309
- utxoIdsByVaultId: AugmentedQuery<
380
+ securitizationHoldExpirationsByBitcoinHeight: AugmentedQuery<
310
381
  ApiType,
311
- (
312
- arg1: u32 | AnyNumber | Uint8Array,
313
- arg2: u64 | AnyNumber | Uint8Array,
314
- ) => Observable<Option<Null>>,
315
- [u32, u64]
382
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
383
+ [u64]
316
384
  >;
317
385
  };
318
386
  bitcoinUtxos: {
@@ -324,16 +392,6 @@ declare module '@polkadot/api-base/types/storage' {
324
392
  () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>,
325
393
  []
326
394
  >;
327
- /**
328
- * Candidate UTXOs associated with a lock (mismatches, extra funding, etc.).
329
- **/
330
- candidateUtxoRefsByUtxoId: AugmentedQuery<
331
- ApiType,
332
- (
333
- arg: u64 | AnyNumber | Uint8Array,
334
- ) => Observable<BTreeMap<ArgonPrimitivesBitcoinUtxoRef, u64>>,
335
- [u64]
336
- >;
337
395
  /**
338
396
  * An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
339
397
  **/
@@ -342,41 +400,23 @@ declare module '@polkadot/api-base/types/storage' {
342
400
  () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
343
401
  []
344
402
  >;
345
- /**
346
- * Pending funding entries that have expired and are awaiting bounded cleanup.
347
- **/
348
- expiredPendingFunding: AugmentedQuery<
349
- ApiType,
350
- () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
351
- []
352
- >;
353
403
  /**
354
404
  * Check if the inherent was included
355
405
  **/
356
406
  inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
357
407
  /**
358
- * Locked Bitcoin UTXOs that have been funded with a UtxoRef from the Bitcoin network and
359
- * amounts within the MinimumSatoshiThreshold of the expected. If a Bitcoin UTXO is moved
360
- * before the expiration block, the funds are burned and the UTXO is unlocked.
408
+ * The Lock ID identified by each watched script pubkey.
361
409
  **/
362
- lockedUtxos: AugmentedQuery<
410
+ lockIdByScriptPubkey: AugmentedQuery<
363
411
  ApiType,
364
412
  (
365
413
  arg:
366
- | ArgonPrimitivesBitcoinUtxoRef
367
- | { txid?: any; outputIndex?: any }
414
+ | ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
415
+ | { P2WSH: any }
368
416
  | string
369
417
  | Uint8Array,
370
- ) => Observable<Option<ArgonPrimitivesBitcoinUtxoValue>>,
371
- [ArgonPrimitivesBitcoinUtxoRef]
372
- >;
373
- /**
374
- * Bitcoin locks that are pending full funding on the bitcoin network
375
- **/
376
- locksPendingFunding: AugmentedQuery<
377
- ApiType,
378
- () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
379
- []
418
+ ) => Observable<Option<u64>>,
419
+ [ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
380
420
  >;
381
421
  /**
382
422
  * Bitcoin Oracle Operator Account
@@ -400,11 +440,21 @@ declare module '@polkadot/api-base/types/storage' {
400
440
  **/
401
441
  tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
402
442
  /**
403
- * A mapping of utxo id to the confirmed utxo reference
443
+ * Watched Lock addresses and the scan height needed to observe them.
444
+ **/
445
+ utxoAddressByLockId: AugmentedQuery<
446
+ ApiType,
447
+ (
448
+ arg: u64 | AnyNumber | Uint8Array,
449
+ ) => Observable<Option<ArgonPrimitivesBitcoinUtxoAddress>>,
450
+ [u64]
451
+ >;
452
+ /**
453
+ * Every output observed at a watched Lock address, retained until explicitly removed.
404
454
  **/
405
- utxoIdToFundingUtxoRef: AugmentedQuery<
455
+ utxoRefsByLockId: AugmentedQuery<
406
456
  ApiType,
407
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>,
457
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
408
458
  [u64]
409
459
  >;
410
460
  };
@@ -1161,33 +1211,33 @@ declare module '@polkadot/api-base/types/storage' {
1161
1211
  /**
1162
1212
  * The next monotonic queue index to assign to a pending bitcoin mint.
1163
1213
  **/
1164
- nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1214
+ nextPendingBitcoinMintIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1165
1215
  /**
1166
- * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1167
- * current frame scan cursor.
1216
+ * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1217
+ * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1168
1218
  **/
1169
- pendingMintQueueState: AugmentedQuery<
1219
+ pendingBitcoinMintsByIndex: AugmentedQuery<
1170
1220
  ApiType,
1171
- () => Observable<PalletMintMintQueueCursor>,
1172
- []
1221
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingBitcoinMint>>,
1222
+ [u64]
1173
1223
  >;
1174
1224
  /**
1175
1225
  * Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
1176
1226
  * client lookup.
1177
1227
  **/
1178
- pendingMintUtxoIdLookup: AugmentedQuery<
1228
+ pendingMintIndicesByLockId: AugmentedQuery<
1179
1229
  ApiType,
1180
1230
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1181
1231
  [u64]
1182
1232
  >;
1183
1233
  /**
1184
- * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1185
- * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1234
+ * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1235
+ * current frame scan cursor.
1186
1236
  **/
1187
- pendingMintUtxosByIndex: AugmentedQuery<
1237
+ pendingMintQueueState: AugmentedQuery<
1188
1238
  ApiType,
1189
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
1190
- [u64]
1239
+ () => Observable<PalletMintMintQueueCursor>,
1240
+ []
1191
1241
  >;
1192
1242
  };
1193
1243
  multisig: {
@@ -1310,6 +1360,19 @@ declare module '@polkadot/api-base/types/storage' {
1310
1360
  >;
1311
1361
  };
1312
1362
  operationalAccounts: {
1363
+ /**
1364
+ * Set of operational accounts that have met both follow-on access-code thresholds.
1365
+ * The key count weights frame processing without scanning the set twice.
1366
+ **/
1367
+ accessCodeReadyAccounts: AugmentedQuery<
1368
+ ApiType,
1369
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
1370
+ [AccountId32]
1371
+ >;
1372
+ /**
1373
+ * Counter for the related counted storage map
1374
+ **/
1375
+ counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1313
1376
  /**
1314
1377
  * Whether operational-account access is invite-only.
1315
1378
  *
@@ -1435,7 +1498,7 @@ declare module '@polkadot/api-base/types/storage' {
1435
1498
  **/
1436
1499
  current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
1437
1500
  /**
1438
- * Stores Ethereum pricing submitted with the active price index.
1501
+ * Stores the latest submitted Ethereum pricing.
1439
1502
  **/
1440
1503
  currentEthereumPrice: AugmentedQuery<
1441
1504
  ApiType,
@@ -1737,7 +1800,7 @@ declare module '@polkadot/api-base/types/storage' {
1737
1800
  * The active bond state for a vault.
1738
1801
  *
1739
1802
  * The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
1740
- * when amounts tie. Backfill lots remain in `BondLotById` and are represented here by their
1803
+ * when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
1741
1804
  * aggregate.
1742
1805
  **/
1743
1806
  bondLotsByVault: AugmentedQuery<
@@ -1778,6 +1841,14 @@ declare module '@polkadot/api-base/types/storage' {
1778
1841
  (arg: AccountId32 | string | Uint8Array) => Observable<u128>,
1779
1842
  [AccountId32]
1780
1843
  >;
1844
+ lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<
1845
+ ApiType,
1846
+ (
1847
+ arg1: u32 | AnyNumber | Uint8Array,
1848
+ arg2: AccountId32 | string | Uint8Array,
1849
+ ) => Observable<Option<u64>>,
1850
+ [u32, AccountId32]
1851
+ >;
1781
1852
  /**
1782
1853
  * The next bond lot id.
1783
1854
  **/
@@ -1859,14 +1930,6 @@ declare module '@polkadot/api-base/types/storage' {
1859
1930
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
1860
1931
  [u64]
1861
1932
  >;
1862
- /**
1863
- * Recent reductions in `available_for_lock`, grouped by vault.
1864
- **/
1865
- recentCapacityDropsByVault: AugmentedQuery<
1866
- ApiType,
1867
- (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsRecentCapacityDrop>>,
1868
- [u32]
1869
- >;
1870
1933
  /**
1871
1934
  * Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
1872
1935
  * (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
2
 
4
3
  // import type lookup before we augment - in some environments
5
4
  // this is required to allow for ambient/previous definitions