@argonprotocol/mainchain 1.4.12-dev.9e9b31a9 → 1.4.12-dev.a0735a19

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.12-dev.9e9b31a9",
3
+ "version": "1.4.12-dev.a0735a19",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@argonprotocol/ethereum-contracts": "workspace:*",
70
- "@argonprotocol/testing": "1.4.12-dev.9e9b31a9",
70
+ "@argonprotocol/testing": "1.4.12-dev.a0735a19",
71
71
  "@polkadot/typegen": "^16.5.6",
72
72
  "@substrate/ss58-registry": "^1.51.0",
73
73
  "@types/node": "^20",
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -92,14 +93,18 @@ declare module '@polkadot/api-base/types/consts' {
92
93
  **/
93
94
  maxConcurrentlyReleasingLocks: u32 & AugmentedConst<ApiType>;
94
95
  /**
95
- * Max bitcoin blocks up to which the first observed output may fund the Lock.
96
+ * Maximum number of confirmed Bitcoin outputs that may fund one Lock.
96
97
  **/
97
- maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
98
+ maxUtxosPerLock: u32 & AugmentedConst<ApiType>;
98
99
  /**
99
100
  * Number of frames orphaned UTXO release entries are retained after a lock lifecycle
100
101
  * transition before being cleaned up.
101
102
  **/
102
103
  orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
104
+ /**
105
+ * Number of Bitcoin blocks to reserve securitization that has not yet been activated.
106
+ **/
107
+ securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
103
108
  /**
104
109
  * Number of ticks per bitcoin block
105
110
  **/
@@ -245,11 +245,15 @@ declare module '@polkadot/api-base/types/errors' {
245
245
  /**
246
246
  * The lock funding has not been confirmed on bitcoin
247
247
  **/
248
- LockPendingFunding: AugmentedError<ApiType>;
248
+ LockNotFunded: AugmentedError<ApiType>;
249
249
  /**
250
250
  * Too many orphaned utxo release requests for a lock
251
251
  **/
252
252
  MaxOrphanedUtxoReleaseRequestsExceeded: AugmentedError<ApiType>;
253
+ /**
254
+ * Too many confirmed Bitcoin outputs were assigned to one Lock.
255
+ **/
256
+ MaxUtxosPerLockExceeded: AugmentedError<ApiType>;
253
257
  /**
254
258
  * The requested price-history entry predates the Lock's current securitization.
255
259
  **/
@@ -313,9 +317,9 @@ declare module '@polkadot/api-base/types/errors' {
313
317
  **/
314
318
  BitcoinHeightNotConfirmed: AugmentedError<ApiType>;
315
319
  /**
316
- * Duplicated UtxoId. Already in use
320
+ * Duplicated BitcoinLockId. Already in use
317
321
  **/
318
- DuplicateUtxoId: AugmentedError<ApiType>;
322
+ DuplicateLockId: AugmentedError<ApiType>;
319
323
  /**
320
324
  * Insufficient bitcoin amount
321
325
  **/
@@ -332,10 +336,6 @@ declare module '@polkadot/api-base/types/errors' {
332
336
  * Too many UTXOs are being watched
333
337
  **/
334
338
  MaxUtxosExceeded: AugmentedError<ApiType>;
335
- /**
336
- * Too many outputs have been observed at one Lock address.
337
- **/
338
- MaxUtxosPerLockExceeded: AugmentedError<ApiType>;
339
339
  /**
340
340
  * No Oracle-provided bitcoin block has been provided to the network
341
341
  **/
@@ -31,6 +31,7 @@ import type {
31
31
  ArgonPrimitivesNotaryNotaryMeta,
32
32
  ArgonPrimitivesNotaryNotaryRecord,
33
33
  ArgonPrimitivesProvidersOperationalRewardKind,
34
+ ArgonPrimitivesVaultBitcoinSecuritizationBasis,
34
35
  ArgonRuntimeOriginCaller,
35
36
  ArgonRuntimeProxyType,
36
37
  ArgonRuntimeRuntimeHoldReason,
@@ -324,8 +325,8 @@ declare module '@polkadot/api-base/types/events' {
324
325
  **/
325
326
  FissionClosedByLock: AugmentedEvent<
326
327
  ApiType,
327
- [accountId: AccountId32, fissionId: u64, utxoId: u64],
328
- { accountId: AccountId32; fissionId: u64; utxoId: u64 }
328
+ [accountId: AccountId32, fissionId: u64, lockId: u64],
329
+ { accountId: AccountId32; fissionId: u64; lockId: u64 }
329
330
  >;
330
331
  /**
331
332
  * A Fission was created and allocated from its source Lock.
@@ -336,7 +337,7 @@ declare module '@polkadot/api-base/types/events' {
336
337
  accountId: AccountId32,
337
338
  fissionId: u64,
338
339
  liquidId: u64,
339
- utxoId: u64,
340
+ lockId: u64,
340
341
  satoshis: u64,
341
342
  microgonsAtTargetPerBtc: u128,
342
343
  liquidityPromised: u128,
@@ -345,7 +346,7 @@ declare module '@polkadot/api-base/types/events' {
345
346
  accountId: AccountId32;
346
347
  fissionId: u64;
347
348
  liquidId: u64;
348
- utxoId: u64;
349
+ lockId: u64;
349
350
  satoshis: u64;
350
351
  microgonsAtTargetPerBtc: u128;
351
352
  liquidityPromised: u128;
@@ -379,30 +380,28 @@ declare module '@polkadot/api-base/types/events' {
379
380
  bitcoinLocks: {
380
381
  BitcoinCosignPastDue: AugmentedEvent<
381
382
  ApiType,
382
- [utxoId: u64, vaultId: u32, compensationAmount: u128, compensatedAccountId: AccountId32],
383
- { utxoId: u64; vaultId: u32; compensationAmount: u128; compensatedAccountId: AccountId32 }
383
+ [lockId: u64, vaultId: u32, compensationAmount: u128, compensatedAccountId: AccountId32],
384
+ { lockId: u64; vaultId: u32; compensationAmount: u128; compensatedAccountId: AccountId32 }
384
385
  >;
385
386
  BitcoinLockBurned: AugmentedEvent<
386
387
  ApiType,
387
- [utxoId: u64, vaultId: u32, wasUtxoSpent: bool],
388
- { utxoId: u64; vaultId: u32; wasUtxoSpent: bool }
388
+ [lockId: u64, vaultId: u32, wasUtxoSpent: bool],
389
+ { lockId: u64; vaultId: u32; wasUtxoSpent: bool }
389
390
  >;
390
391
  BitcoinLockCreated: AugmentedEvent<
391
392
  ApiType,
392
393
  [
393
- utxoId: u64,
394
+ lockId: u64,
394
395
  vaultId: u32,
395
- securitizedSatoshis: u64,
396
- microgonsAtTargetPerBtc: u128,
396
+ securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
397
397
  collateralRequired: u128,
398
398
  accountId: AccountId32,
399
399
  securityFee: u128,
400
400
  ],
401
401
  {
402
- utxoId: u64;
402
+ lockId: u64;
403
403
  vaultId: u32;
404
- securitizedSatoshis: u64;
405
- microgonsAtTargetPerBtc: u128;
404
+ securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
406
405
  collateralRequired: u128;
407
406
  accountId: AccountId32;
408
407
  securityFee: u128;
@@ -410,76 +409,74 @@ declare module '@polkadot/api-base/types/events' {
410
409
  >;
411
410
  BitcoinLockFlexibleChanged: AugmentedEvent<
412
411
  ApiType,
413
- [utxoId: u64, vaultId: u32, isFlexible: bool],
414
- { utxoId: u64; vaultId: u32; isFlexible: bool }
412
+ [lockId: u64, vaultId: u32, isFlexible: bool],
413
+ { lockId: u64; vaultId: u32; isFlexible: bool }
415
414
  >;
416
415
  BitcoinLockResecuritized: AugmentedEvent<
417
416
  ApiType,
418
417
  [
419
- utxoId: u64,
418
+ lockId: u64,
420
419
  vaultId: u32,
421
- securitizedSatoshis: u64,
422
- microgonsAtTargetPerBtc: u128,
420
+ securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
423
421
  accountId: AccountId32,
424
422
  ],
425
423
  {
426
- utxoId: u64;
424
+ lockId: u64;
427
425
  vaultId: u32;
428
- securitizedSatoshis: u64;
429
- microgonsAtTargetPerBtc: u128;
426
+ securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
430
427
  accountId: AccountId32;
431
428
  }
432
429
  >;
433
430
  BitcoinSpentAfterRelease: AugmentedEvent<
434
431
  ApiType,
435
- [utxoId: u64, vaultId: u32],
436
- { utxoId: u64; vaultId: u32 }
432
+ [lockId: u64, vaultId: u32],
433
+ { lockId: u64; vaultId: u32 }
437
434
  >;
438
435
  BitcoinUtxoCosigned: AugmentedEvent<
439
436
  ApiType,
440
- [utxoId: u64, vaultId: u32, signature: Bytes],
441
- { utxoId: u64; vaultId: u32; signature: Bytes }
437
+ [lockId: u64, vaultId: u32, signatures: Vec<Bytes>],
438
+ { lockId: u64; vaultId: u32; signatures: Vec<Bytes> }
442
439
  >;
443
440
  BitcoinUtxoCosignRequested: AugmentedEvent<
444
441
  ApiType,
445
- [utxoId: u64, vaultId: u32],
446
- { utxoId: u64; vaultId: u32 }
442
+ [lockId: u64, vaultId: u32],
443
+ { lockId: u64; vaultId: u32 }
447
444
  >;
448
445
  /**
449
446
  * An error occurred while refunding an overdue cosigned bitcoin lock
450
447
  **/
451
448
  CosignOverdueError: AugmentedEvent<
452
449
  ApiType,
453
- [utxoId: u64, error: SpRuntimeDispatchError],
454
- { utxoId: u64; error: SpRuntimeDispatchError }
450
+ [lockId: u64, error: SpRuntimeDispatchError],
451
+ { lockId: u64; error: SpRuntimeDispatchError }
455
452
  >;
456
453
  /**
457
454
  * An error occurred while completing a lock
458
455
  **/
459
456
  LockExpirationError: AugmentedEvent<
460
457
  ApiType,
461
- [utxoId: u64, error: SpRuntimeDispatchError],
462
- { utxoId: u64; error: SpRuntimeDispatchError }
458
+ [lockId: u64, error: SpRuntimeDispatchError],
459
+ { lockId: u64; error: SpRuntimeDispatchError }
463
460
  >;
464
461
  /**
465
462
  * Not all orphaned UTXOs for a retired Lock fit in the cleanup schedule.
466
463
  **/
467
464
  OrphanedUtxoCleanupScheduleOverflow: AugmentedEvent<
468
465
  ApiType,
469
- [accountId: AccountId32, utxoId: u64, expirationFrame: u64],
470
- { accountId: AccountId32; utxoId: u64; expirationFrame: u64 }
466
+ [accountId: AccountId32, lockId: u64, expirationFrame: u64],
467
+ { accountId: AccountId32; lockId: u64; expirationFrame: u64 }
471
468
  >;
472
469
  OrphanedUtxoCosigned: AugmentedEvent<
473
470
  ApiType,
474
471
  [
475
- utxoId: u64,
472
+ lockId: u64,
476
473
  utxoRef: ArgonPrimitivesBitcoinUtxoRef,
477
474
  vaultId: u32,
478
475
  accountId: AccountId32,
479
476
  signature: Bytes,
480
477
  ],
481
478
  {
482
- utxoId: u64;
479
+ lockId: u64;
483
480
  utxoRef: ArgonPrimitivesBitcoinUtxoRef;
484
481
  vaultId: u32;
485
482
  accountId: AccountId32;
@@ -504,14 +501,14 @@ declare module '@polkadot/api-base/types/events' {
504
501
  >;
505
502
  OrphanedUtxoReceived: AugmentedEvent<
506
503
  ApiType,
507
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
508
- { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
504
+ [lockId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
505
+ { lockId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
509
506
  >;
510
507
  OrphanedUtxoReleaseRequested: AugmentedEvent<
511
508
  ApiType,
512
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
509
+ [lockId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
513
510
  {
514
- utxoId: u64;
511
+ lockId: u64;
515
512
  utxoRef: ArgonPrimitivesBitcoinUtxoRef;
516
513
  vaultId: u32;
517
514
  accountId: AccountId32;
@@ -522,13 +519,13 @@ declare module '@polkadot/api-base/types/events' {
522
519
  UtxoDetected: AugmentedEvent<
523
520
  ApiType,
524
521
  [
525
- utxoId: u64,
522
+ lockId: u64,
526
523
  utxoRef: ArgonPrimitivesBitcoinUtxoRef,
527
524
  satoshisReceived: u64,
528
525
  bitcoinHeight: u64,
529
526
  ],
530
527
  {
531
- utxoId: u64;
528
+ lockId: u64;
532
529
  utxoRef: ArgonPrimitivesBitcoinUtxoRef;
533
530
  satoshisReceived: u64;
534
531
  bitcoinHeight: u64;
@@ -536,20 +533,20 @@ declare module '@polkadot/api-base/types/events' {
536
533
  >;
537
534
  UtxoDetectedError: AugmentedEvent<
538
535
  ApiType,
539
- [utxoId: u64, error: SpRuntimeDispatchError],
540
- { utxoId: u64; error: SpRuntimeDispatchError }
536
+ [lockId: u64, error: SpRuntimeDispatchError],
537
+ { lockId: u64; error: SpRuntimeDispatchError }
541
538
  >;
542
539
  UtxoSpent: AugmentedEvent<
543
540
  ApiType,
544
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, blockHeight: u64],
545
- { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; blockHeight: u64 }
541
+ [lockId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, blockHeight: u64],
542
+ { lockId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; blockHeight: u64 }
546
543
  >;
547
544
  UtxoSpentError: AugmentedEvent<
548
545
  ApiType,
549
- [utxoId: u64, error: SpRuntimeDispatchError],
550
- { utxoId: u64; error: SpRuntimeDispatchError }
546
+ [lockId: u64, error: SpRuntimeDispatchError],
547
+ { lockId: u64; error: SpRuntimeDispatchError }
551
548
  >;
552
- UtxoUnwatched: AugmentedEvent<ApiType, [utxoId: u64], { utxoId: u64 }>;
549
+ UtxoUnwatched: AugmentedEvent<ApiType, [lockId: u64], { lockId: u64 }>;
553
550
  };
554
551
  blockRewards: {
555
552
  RewardCreated: AugmentedEvent<
@@ -1162,8 +1159,8 @@ declare module '@polkadot/api-base/types/events' {
1162
1159
  **/
1163
1160
  BitcoinMint: AugmentedEvent<
1164
1161
  ApiType,
1165
- [accountId: AccountId32, fissionId: u64, utxoId: Option<u64>, amount: u128],
1166
- { accountId: AccountId32; fissionId: u64; utxoId: Option<u64>; amount: u128 }
1162
+ [accountId: AccountId32, fissionId: u64, lockId: Option<u64>, amount: u128],
1163
+ { accountId: AccountId32; fissionId: u64; lockId: Option<u64>; amount: u128 }
1167
1164
  >;
1168
1165
  /**
1169
1166
  * The amount of microgons minted for mining. NOTE: accounts below Existential Deposit
@@ -1184,7 +1181,7 @@ declare module '@polkadot/api-base/types/events' {
1184
1181
  mintType: PalletMintMintType,
1185
1182
  accountId: AccountId32,
1186
1183
  fissionId: Option<u64>,
1187
- utxoId: Option<u64>,
1184
+ lockId: Option<u64>,
1188
1185
  amount: u128,
1189
1186
  error: SpRuntimeDispatchError,
1190
1187
  ],
@@ -1192,7 +1189,7 @@ declare module '@polkadot/api-base/types/events' {
1192
1189
  mintType: PalletMintMintType;
1193
1190
  accountId: AccountId32;
1194
1191
  fissionId: Option<u64>;
1195
- utxoId: Option<u64>;
1192
+ lockId: Option<u64>;
1196
1193
  amount: u128;
1197
1194
  error: SpRuntimeDispatchError;
1198
1195
  }
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -93,7 +94,7 @@ import type {
93
94
  PalletMiningSlotMinerNonceScoring,
94
95
  PalletMintMintAction,
95
96
  PalletMintMintQueueCursor,
96
- PalletMintPendingMintUtxo,
97
+ PalletMintPendingBitcoinMint,
97
98
  PalletMultisigMultisig,
98
99
  PalletOperationalAccountsOperationalAccount,
99
100
  PalletOperationalAccountsRewardsConfig,
@@ -249,9 +250,9 @@ declare module '@polkadot/api-base/types/storage' {
249
250
  [u32, AccountId32]
250
251
  >;
251
252
  /**
252
- * Highest Bitcoin UTXO sync height processed for pending-funding expirations.
253
+ * Highest Bitcoin UTXO sync height processed for securitization hold expirations.
253
254
  **/
254
- lastPendingFundingExpirationHeight: AugmentedQuery<
255
+ lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
255
256
  ApiType,
256
257
  () => Observable<Option<u64>>,
257
258
  []
@@ -273,6 +274,28 @@ declare module '@polkadot/api-base/types/storage' {
273
274
  (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
274
275
  [u64]
275
276
  >;
277
+ /**
278
+ * Index of active UTXO IDs per owner account.
279
+ **/
280
+ lockIdsByOwnerAccount: AugmentedQuery<
281
+ ApiType,
282
+ (
283
+ arg1: AccountId32 | string | Uint8Array,
284
+ arg2: u64 | AnyNumber | Uint8Array,
285
+ ) => Observable<Option<Null>>,
286
+ [AccountId32, u64]
287
+ >;
288
+ /**
289
+ * Index of active UTXO IDs per vault
290
+ **/
291
+ lockIdsByVaultId: AugmentedQuery<
292
+ ApiType,
293
+ (
294
+ arg1: u32 | AnyNumber | Uint8Array,
295
+ arg2: u64 | AnyNumber | Uint8Array,
296
+ ) => Observable<Option<Null>>,
297
+ [u32, u64]
298
+ >;
276
299
  /**
277
300
  * Stores the block number where a release was cosigned by the vault.
278
301
  **/
@@ -284,7 +307,7 @@ declare module '@polkadot/api-base/types/storage' {
284
307
  /**
285
308
  * Stores bitcoin locks that have requested to be released
286
309
  **/
287
- lockReleaseRequestsByUtxoId: AugmentedQuery<
310
+ lockReleaseRequestsById: AugmentedQuery<
288
311
  ApiType,
289
312
  (
290
313
  arg: u64 | AnyNumber | Uint8Array,
@@ -294,20 +317,11 @@ declare module '@polkadot/api-base/types/storage' {
294
317
  /**
295
318
  * Stores bitcoin utxos that have requested to be released
296
319
  **/
297
- locksByUtxoId: AugmentedQuery<
320
+ locksById: AugmentedQuery<
298
321
  ApiType,
299
322
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
300
323
  [u64]
301
324
  >;
302
- /**
303
- * Unfunded locks whose pending securitization reservation expires at the indexed height.
304
- * Expiry releases the reservation but leaves the lock address watched for late orphan output.
305
- **/
306
- locksPendingFundingByBitcoinHeight: AugmentedQuery<
307
- ApiType,
308
- (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
309
- [u64]
310
- >;
311
325
  /**
312
326
  * Recent target-normalized microgon values per BTC and their observed ticks.
313
327
  **/
@@ -316,22 +330,11 @@ declare module '@polkadot/api-base/types/storage' {
316
330
  () => Observable<Vec<ITuple<[u64, u128]>>>,
317
331
  []
318
332
  >;
319
- /**
320
- * Release amounts identified by the version 10 to 11 migration.
321
- *
322
- * Current release requests do not create currency holds. Each migrated entry is removed when
323
- * its in-flight release request terminates.
324
- **/
325
- migratedReleaseHoldByUtxoId: AugmentedQuery<
326
- ApiType,
327
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u128>>,
328
- [u64]
329
- >;
330
333
  /**
331
334
  * The minimum number of satoshis accepted in one watched funding UTXO.
332
335
  **/
333
336
  minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
334
- nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
337
+ nextBitcoinLockId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
335
338
  /**
336
339
  * Expiration of orphaned utxo refs by user account
337
340
  **/
@@ -358,33 +361,12 @@ declare module '@polkadot/api-base/types/storage' {
358
361
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
359
362
  >;
360
363
  /**
361
- * Index of active UTXO IDs per owner account.
362
- **/
363
- utxoIdsByOwnerAccount: AugmentedQuery<
364
- ApiType,
365
- (
366
- arg1: AccountId32 | string | Uint8Array,
367
- arg2: u64 | AnyNumber | Uint8Array,
368
- ) => Observable<Option<Null>>,
369
- [AccountId32, u64]
370
- >;
371
- /**
372
- * Index of active UTXO IDs per vault
364
+ * Lock IDs whose securitization hold expires at the indexed Bitcoin height.
365
+ * Expiry releases only the unactivated portion and leaves the lock address watched.
373
366
  **/
374
- utxoIdsByVaultId: AugmentedQuery<
367
+ securitizationHoldExpirationsByBitcoinHeight: AugmentedQuery<
375
368
  ApiType,
376
- (
377
- arg1: u32 | AnyNumber | Uint8Array,
378
- arg2: u64 | AnyNumber | Uint8Array,
379
- ) => Observable<Option<Null>>,
380
- [u32, u64]
381
- >;
382
- /**
383
- * The utxo funding this lock. In the current runtime, this is just the first utxo received
384
- **/
385
- utxoIdToFundingUtxoRef: AugmentedQuery<
386
- ApiType,
387
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>,
369
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
388
370
  [u64]
389
371
  >;
390
372
  };
@@ -409,6 +391,20 @@ declare module '@polkadot/api-base/types/storage' {
409
391
  * Check if the inherent was included
410
392
  **/
411
393
  inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
394
+ /**
395
+ * The Lock ID identified by each watched script pubkey.
396
+ **/
397
+ lockIdByScriptPubkey: AugmentedQuery<
398
+ ApiType,
399
+ (
400
+ arg:
401
+ | ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
402
+ | { P2WSH: any }
403
+ | string
404
+ | Uint8Array,
405
+ ) => Observable<Option<u64>>,
406
+ [ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
407
+ >;
412
408
  /**
413
409
  * Bitcoin Oracle Operator Account
414
410
  **/
@@ -433,31 +429,17 @@ declare module '@polkadot/api-base/types/storage' {
433
429
  /**
434
430
  * Watched Lock addresses and the scan height needed to observe them.
435
431
  **/
436
- utxoAddressByUtxoId: AugmentedQuery<
432
+ utxoAddressByLockId: AugmentedQuery<
437
433
  ApiType,
438
434
  (
439
435
  arg: u64 | AnyNumber | Uint8Array,
440
436
  ) => Observable<Option<ArgonPrimitivesBitcoinUtxoAddress>>,
441
437
  [u64]
442
438
  >;
443
- /**
444
- * The Lock ID identified by each watched script pubkey.
445
- **/
446
- utxoIdByScriptPubkey: AugmentedQuery<
447
- ApiType,
448
- (
449
- arg:
450
- | ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
451
- | { P2WSH: any }
452
- | string
453
- | Uint8Array,
454
- ) => Observable<Option<u64>>,
455
- [ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
456
- >;
457
439
  /**
458
440
  * Every output observed at a watched Lock address, retained until explicitly removed.
459
441
  **/
460
- utxoRefsByUtxoId: AugmentedQuery<
442
+ utxoRefsByLockId: AugmentedQuery<
461
443
  ApiType,
462
444
  (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
463
445
  [u64]
@@ -1216,33 +1198,33 @@ declare module '@polkadot/api-base/types/storage' {
1216
1198
  /**
1217
1199
  * The next monotonic queue index to assign to a pending bitcoin mint.
1218
1200
  **/
1219
- nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1201
+ nextPendingBitcoinMintIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1220
1202
  /**
1221
- * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1222
- * current frame scan cursor.
1203
+ * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1204
+ * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1223
1205
  **/
1224
- pendingMintQueueState: AugmentedQuery<
1206
+ pendingBitcoinMintsByIndex: AugmentedQuery<
1225
1207
  ApiType,
1226
- () => Observable<PalletMintMintQueueCursor>,
1227
- []
1208
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingBitcoinMint>>,
1209
+ [u64]
1228
1210
  >;
1229
1211
  /**
1230
1212
  * Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
1231
1213
  * client lookup.
1232
1214
  **/
1233
- pendingMintUtxoIdLookup: AugmentedQuery<
1215
+ pendingMintIndicesByLockId: AugmentedQuery<
1234
1216
  ApiType,
1235
1217
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1236
1218
  [u64]
1237
1219
  >;
1238
1220
  /**
1239
- * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1240
- * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1221
+ * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1222
+ * current frame scan cursor.
1241
1223
  **/
1242
- pendingMintUtxosByIndex: AugmentedQuery<
1224
+ pendingMintQueueState: AugmentedQuery<
1243
1225
  ApiType,
1244
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
1245
- [u64]
1226
+ () => Observable<PalletMintMintQueueCursor>,
1227
+ []
1246
1228
  >;
1247
1229
  };
1248
1230
  multisig: {
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions