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

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.
@@ -24,7 +24,6 @@ import type { ITuple } from '@polkadot/types-codec/types';
24
24
  import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
25
25
  import type {
26
26
  ArgonNotaryAuditErrorVerifyError,
27
- ArgonPrimitivesBitcoinBitcoinRejectedReason,
28
27
  ArgonPrimitivesBitcoinUtxoRef,
29
28
  ArgonPrimitivesBlockSealBlockPayout,
30
29
  ArgonPrimitivesBlockSealMiningRegistration,
@@ -311,17 +310,78 @@ declare module '@polkadot/api-base/types/events' {
311
310
  { who: AccountId32; amount: u128 }
312
311
  >;
313
312
  };
313
+ bitcoinFissions: {
314
+ /**
315
+ * A Fission was closed and its source Lock allocation was released.
316
+ **/
317
+ FissionClosed: AugmentedEvent<
318
+ ApiType,
319
+ [accountId: AccountId32, fissionId: u64, redemptionAmount: u128],
320
+ { accountId: AccountId32; fissionId: u64; redemptionAmount: u128 }
321
+ >;
322
+ /**
323
+ * An active Fission was closed because its source Lock was spent.
324
+ **/
325
+ FissionClosedByLock: AugmentedEvent<
326
+ ApiType,
327
+ [accountId: AccountId32, fissionId: u64, utxoId: u64],
328
+ { accountId: AccountId32; fissionId: u64; utxoId: u64 }
329
+ >;
330
+ /**
331
+ * A Fission was created and allocated from its source Lock.
332
+ **/
333
+ FissionCreated: AugmentedEvent<
334
+ ApiType,
335
+ [
336
+ accountId: AccountId32,
337
+ fissionId: u64,
338
+ liquidId: u64,
339
+ utxoId: u64,
340
+ satoshis: u64,
341
+ microgonsAtTargetPerBtc: u128,
342
+ liquidityPromised: u128,
343
+ ],
344
+ {
345
+ accountId: AccountId32;
346
+ fissionId: u64;
347
+ liquidId: u64;
348
+ utxoId: u64;
349
+ satoshis: u64;
350
+ microgonsAtTargetPerBtc: u128;
351
+ liquidityPromised: u128;
352
+ }
353
+ >;
354
+ /**
355
+ * A Fission ratchet changed its target-normalized BTC value and liability.
356
+ **/
357
+ FissionRatcheted: AugmentedEvent<
358
+ ApiType,
359
+ [
360
+ accountId: AccountId32,
361
+ fissionId: u64,
362
+ ratchetNumber: u32,
363
+ microgonsAtTargetPerBtc: u128,
364
+ liquidityPromised: u128,
365
+ amountMinted: u128,
366
+ amountBurned: u128,
367
+ ],
368
+ {
369
+ accountId: AccountId32;
370
+ fissionId: u64;
371
+ ratchetNumber: u32;
372
+ microgonsAtTargetPerBtc: u128;
373
+ liquidityPromised: u128;
374
+ amountMinted: u128;
375
+ amountBurned: u128;
376
+ }
377
+ >;
378
+ };
314
379
  bitcoinLocks: {
315
380
  BitcoinCosignPastDue: AugmentedEvent<
316
381
  ApiType,
317
382
  [utxoId: u64, vaultId: u32, compensationAmount: u128, compensatedAccountId: AccountId32],
318
383
  { utxoId: u64; vaultId: u32; compensationAmount: u128; compensatedAccountId: AccountId32 }
319
384
  >;
320
- BitcoinLockBackfillChanged: AugmentedEvent<
321
- ApiType,
322
- [utxoId: u64, vaultId: u32, isBackfill: bool],
323
- { utxoId: u64; vaultId: u32; isBackfill: bool }
324
- >;
325
385
  BitcoinLockBurned: AugmentedEvent<
326
386
  ApiType,
327
387
  [utxoId: u64, vaultId: u32, wasUtxoSpent: bool],
@@ -332,42 +392,41 @@ declare module '@polkadot/api-base/types/events' {
332
392
  [
333
393
  utxoId: u64,
334
394
  vaultId: u32,
335
- liquidityPromised: u128,
336
- securitization: u128,
337
- lockedTargetPrice: u128,
395
+ securitizedSatoshis: u64,
396
+ microgonsAtTargetPerBtc: u128,
397
+ collateralRequired: u128,
338
398
  accountId: AccountId32,
339
399
  securityFee: u128,
340
400
  ],
341
401
  {
342
402
  utxoId: u64;
343
403
  vaultId: u32;
344
- liquidityPromised: u128;
345
- securitization: u128;
346
- lockedTargetPrice: u128;
404
+ securitizedSatoshis: u64;
405
+ microgonsAtTargetPerBtc: u128;
406
+ collateralRequired: u128;
347
407
  accountId: AccountId32;
348
408
  securityFee: u128;
349
409
  }
350
410
  >;
351
- BitcoinLockRatcheted: AugmentedEvent<
411
+ BitcoinLockFlexibleChanged: AugmentedEvent<
412
+ ApiType,
413
+ [utxoId: u64, vaultId: u32, isFlexible: bool],
414
+ { utxoId: u64; vaultId: u32; isFlexible: bool }
415
+ >;
416
+ BitcoinLockResecuritized: AugmentedEvent<
352
417
  ApiType,
353
418
  [
354
419
  utxoId: u64,
355
420
  vaultId: u32,
356
- liquidityPromised: u128,
357
- oldTargetPrice: u128,
358
- securityFee: u128,
359
- newTargetPrice: u128,
360
- amountBurned: u128,
421
+ securitizedSatoshis: u64,
422
+ microgonsAtTargetPerBtc: u128,
361
423
  accountId: AccountId32,
362
424
  ],
363
425
  {
364
426
  utxoId: u64;
365
427
  vaultId: u32;
366
- liquidityPromised: u128;
367
- oldTargetPrice: u128;
368
- securityFee: u128;
369
- newTargetPrice: u128;
370
- amountBurned: u128;
428
+ securitizedSatoshis: u64;
429
+ microgonsAtTargetPerBtc: u128;
371
430
  accountId: AccountId32;
372
431
  }
373
432
  >;
@@ -402,6 +461,14 @@ declare module '@polkadot/api-base/types/events' {
402
461
  [utxoId: u64, error: SpRuntimeDispatchError],
403
462
  { utxoId: u64; error: SpRuntimeDispatchError }
404
463
  >;
464
+ /**
465
+ * Not all orphaned UTXOs for a retired Lock fit in the cleanup schedule.
466
+ **/
467
+ OrphanedUtxoCleanupScheduleOverflow: AugmentedEvent<
468
+ ApiType,
469
+ [accountId: AccountId32, utxoId: u64, expirationFrame: u64],
470
+ { accountId: AccountId32; utxoId: u64; expirationFrame: u64 }
471
+ >;
405
472
  OrphanedUtxoCosigned: AugmentedEvent<
406
473
  ApiType,
407
474
  [
@@ -419,27 +486,28 @@ declare module '@polkadot/api-base/types/events' {
419
486
  signature: Bytes;
420
487
  }
421
488
  >;
422
- OrphanedUtxoReceived: AugmentedEvent<
423
- ApiType,
424
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
425
- { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
426
- >;
427
- OrphanedUtxoReleaseRequested: AugmentedEvent<
489
+ /**
490
+ * An orphaned UTXO expiration could not reconcile its pending Vault cosign state.
491
+ **/
492
+ OrphanedUtxoExpirationError: AugmentedEvent<
428
493
  ApiType,
429
- [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
494
+ [
495
+ accountId: AccountId32,
496
+ utxoRef: ArgonPrimitivesBitcoinUtxoRef,
497
+ error: SpRuntimeDispatchError,
498
+ ],
430
499
  {
431
- utxoId: u64;
432
- utxoRef: ArgonPrimitivesBitcoinUtxoRef;
433
- vaultId: u32;
434
500
  accountId: AccountId32;
501
+ utxoRef: ArgonPrimitivesBitcoinUtxoRef;
502
+ error: SpRuntimeDispatchError;
435
503
  }
436
504
  >;
437
- SecuritizationIncreased: AugmentedEvent<
505
+ OrphanedUtxoReceived: AugmentedEvent<
438
506
  ApiType,
439
- [utxoId: u64, vaultId: u32, newSatoshis: u64, accountId: AccountId32],
440
- { utxoId: u64; vaultId: u32; newSatoshis: u64; accountId: AccountId32 }
507
+ [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
508
+ { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
441
509
  >;
442
- UtxoFundedFromCandidate: AugmentedEvent<
510
+ OrphanedUtxoReleaseRequested: AugmentedEvent<
443
511
  ApiType,
444
512
  [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
445
513
  {
@@ -451,30 +519,30 @@ declare module '@polkadot/api-base/types/events' {
451
519
  >;
452
520
  };
453
521
  bitcoinUtxos: {
454
- UtxoRejected: AugmentedEvent<
522
+ UtxoDetected: AugmentedEvent<
455
523
  ApiType,
456
524
  [
457
525
  utxoId: u64,
458
526
  utxoRef: ArgonPrimitivesBitcoinUtxoRef,
459
- rejectedReason: ArgonPrimitivesBitcoinBitcoinRejectedReason,
460
527
  satoshisReceived: u64,
528
+ bitcoinHeight: u64,
461
529
  ],
462
530
  {
463
531
  utxoId: u64;
464
532
  utxoRef: ArgonPrimitivesBitcoinUtxoRef;
465
- rejectedReason: ArgonPrimitivesBitcoinBitcoinRejectedReason;
466
533
  satoshisReceived: u64;
534
+ bitcoinHeight: u64;
467
535
  }
468
536
  >;
469
- UtxoRejectedError: AugmentedEvent<
537
+ UtxoDetectedError: AugmentedEvent<
470
538
  ApiType,
471
539
  [utxoId: u64, error: SpRuntimeDispatchError],
472
540
  { utxoId: u64; error: SpRuntimeDispatchError }
473
541
  >;
474
542
  UtxoSpent: AugmentedEvent<
475
543
  ApiType,
476
- [utxoId: u64, blockHeight: u64],
477
- { utxoId: u64; blockHeight: u64 }
544
+ [utxoId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, blockHeight: u64],
545
+ { utxoId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; blockHeight: u64 }
478
546
  >;
479
547
  UtxoSpentError: AugmentedEvent<
480
548
  ApiType,
@@ -482,16 +550,6 @@ declare module '@polkadot/api-base/types/events' {
482
550
  { utxoId: u64; error: SpRuntimeDispatchError }
483
551
  >;
484
552
  UtxoUnwatched: AugmentedEvent<ApiType, [utxoId: u64], { utxoId: u64 }>;
485
- UtxoVerified: AugmentedEvent<
486
- ApiType,
487
- [utxoId: u64, satoshisReceived: u64],
488
- { utxoId: u64; satoshisReceived: u64 }
489
- >;
490
- UtxoVerifiedError: AugmentedEvent<
491
- ApiType,
492
- [utxoId: u64, error: SpRuntimeDispatchError],
493
- { utxoId: u64; error: SpRuntimeDispatchError }
494
- >;
495
553
  };
496
554
  blockRewards: {
497
555
  RewardCreated: AugmentedEvent<
@@ -1104,8 +1162,8 @@ declare module '@polkadot/api-base/types/events' {
1104
1162
  **/
1105
1163
  BitcoinMint: AugmentedEvent<
1106
1164
  ApiType,
1107
- [accountId: AccountId32, utxoId: Option<u64>, amount: u128],
1108
- { accountId: AccountId32; utxoId: Option<u64>; amount: u128 }
1165
+ [accountId: AccountId32, fissionId: u64, utxoId: Option<u64>, amount: u128],
1166
+ { accountId: AccountId32; fissionId: u64; utxoId: Option<u64>; amount: u128 }
1109
1167
  >;
1110
1168
  /**
1111
1169
  * The amount of microgons minted for mining. NOTE: accounts below Existential Deposit
@@ -1125,6 +1183,7 @@ declare module '@polkadot/api-base/types/events' {
1125
1183
  [
1126
1184
  mintType: PalletMintMintType,
1127
1185
  accountId: AccountId32,
1186
+ fissionId: Option<u64>,
1128
1187
  utxoId: Option<u64>,
1129
1188
  amount: u128,
1130
1189
  error: SpRuntimeDispatchError,
@@ -1132,6 +1191,7 @@ declare module '@polkadot/api-base/types/events' {
1132
1191
  {
1133
1192
  mintType: PalletMintMintType;
1134
1193
  accountId: AccountId32;
1194
+ fissionId: Option<u64>;
1135
1195
  utxoId: Option<u64>;
1136
1196
  amount: u128;
1137
1197
  error: SpRuntimeDispatchError;
@@ -1847,15 +1907,10 @@ declare module '@polkadot/api-base/types/events' {
1847
1907
  >;
1848
1908
  };
1849
1909
  treasury: {
1850
- BackfillBondsReservedChanged: AugmentedEvent<
1851
- ApiType,
1852
- [vaultId: u32, backfillBondsReserved: u32],
1853
- { vaultId: u32; backfillBondsReserved: u32 }
1854
- >;
1855
- BondLotBackfillChanged: AugmentedEvent<
1910
+ BondLotFlexibilityChanged: AugmentedEvent<
1856
1911
  ApiType,
1857
- [vaultId: u32, bondLotId: u64, isBackfill: bool],
1858
- { vaultId: u32; bondLotId: u64; isBackfill: bool }
1912
+ [vaultId: u32, bondLotId: u64, isFlexible: bool],
1913
+ { vaultId: u32; bondLotId: u64; isFlexible: bool }
1859
1914
  >;
1860
1915
  /**
1861
1916
  * A bond purchase entered its active program set.
@@ -2030,6 +2085,11 @@ declare module '@polkadot/api-base/types/events' {
2030
2085
  [frameId: u64, totalEligibleBonds: u128, participatingVaults: u32],
2031
2086
  { frameId: u64; totalEligibleBonds: u128; participatingVaults: u32 }
2032
2087
  >;
2088
+ ReservedBondSpaceChanged: AugmentedEvent<
2089
+ ApiType,
2090
+ [vaultId: u32, reservedBondSpace: u32],
2091
+ { vaultId: u32; reservedBondSpace: u32 }
2092
+ >;
2033
2093
  };
2034
2094
  txPause: {
2035
2095
  /**
@@ -2101,40 +2161,11 @@ declare module '@polkadot/api-base/types/events' {
2101
2161
  >;
2102
2162
  };
2103
2163
  vaults: {
2104
- BackfillSecuritizationReservedChanged: AugmentedEvent<
2105
- ApiType,
2106
- [vaultId: u32, backfillSecuritizationReserved: u128],
2107
- { vaultId: u32; backfillSecuritizationReserved: u128 }
2108
- >;
2109
2164
  CommittedArgonotsSet: AugmentedEvent<
2110
2165
  ApiType,
2111
2166
  [vaultId: u32, operatorAccountId: AccountId32, amount: u128],
2112
2167
  { vaultId: u32; operatorAccountId: AccountId32; amount: u128 }
2113
2168
  >;
2114
- FundLockCanceled: AugmentedEvent<
2115
- ApiType,
2116
- [vaultId: u32, amount: u128],
2117
- { vaultId: u32; amount: u128 }
2118
- >;
2119
- FundsLocked: AugmentedEvent<
2120
- ApiType,
2121
- [
2122
- vaultId: u32,
2123
- locker: AccountId32,
2124
- liquidityPromised: u128,
2125
- isRatchet: bool,
2126
- feeRevenue: u128,
2127
- didUseFeeCoupon: bool,
2128
- ],
2129
- {
2130
- vaultId: u32;
2131
- locker: AccountId32;
2132
- liquidityPromised: u128;
2133
- isRatchet: bool;
2134
- feeRevenue: u128;
2135
- didUseFeeCoupon: bool;
2136
- }
2137
- >;
2138
2169
  FundsReleased: AugmentedEvent<
2139
2170
  ApiType,
2140
2171
  [vaultId: u32, securitization: u128],
@@ -2155,6 +2186,33 @@ declare module '@polkadot/api-base/types/events' {
2155
2186
  [vaultId: u32, beneficiary: AccountId32, toBeneficiary: u128, burned: u128],
2156
2187
  { vaultId: u32; beneficiary: AccountId32; toBeneficiary: u128; burned: u128 }
2157
2188
  >;
2189
+ ReservedSecuritizationSpaceChanged: AugmentedEvent<
2190
+ ApiType,
2191
+ [vaultId: u32, reservedSecuritizationSpace: u128],
2192
+ { vaultId: u32; reservedSecuritizationSpace: u128 }
2193
+ >;
2194
+ SecuritizationReserved: AugmentedEvent<
2195
+ ApiType,
2196
+ [
2197
+ vaultId: u32,
2198
+ locker: AccountId32,
2199
+ securitizationCoverageMicrogons: u128,
2200
+ feeRevenue: u128,
2201
+ didUseFeeCoupon: bool,
2202
+ ],
2203
+ {
2204
+ vaultId: u32;
2205
+ locker: AccountId32;
2206
+ securitizationCoverageMicrogons: u128;
2207
+ feeRevenue: u128;
2208
+ didUseFeeCoupon: bool;
2209
+ }
2210
+ >;
2211
+ SecuritizationReturned: AugmentedEvent<
2212
+ ApiType,
2213
+ [vaultId: u32, amount: u128],
2214
+ { vaultId: u32; amount: u128 }
2215
+ >;
2158
2216
  TreasuryRecordingError: AugmentedEvent<
2159
2217
  ApiType,
2160
2218
  [vaultId: u32, frameId: u64, vaultEarnings: u128, error: SpRuntimeDispatchError],
@@ -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,6 +63,7 @@ import type {
63
63
  PalletBalancesAccountData,
64
64
  PalletBalancesBalanceLock,
65
65
  PalletBalancesReserveData,
66
+ PalletBitcoinFissionsFission,
66
67
  PalletBitcoinLocksLockReleaseRequest,
67
68
  PalletBitcoinLocksLockedBitcoin,
68
69
  PalletBitcoinLocksOrphanedUtxo,
@@ -109,7 +110,6 @@ import type {
109
110
  PalletTreasuryFrameArgonotBondParticipants,
110
111
  PalletTreasuryFrameVaultCapital,
111
112
  PalletTreasuryVaultBondState,
112
- PalletVaultsRecentCapacityDrop,
113
113
  PalletVaultsVaultFrameRevenue,
114
114
  SpConsensusGrandpaAppPublic,
115
115
  SpRuntimeDigest,
@@ -210,7 +210,52 @@ declare module '@polkadot/api-base/types/storage' {
210
210
  **/
211
211
  totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
212
212
  };
213
+ bitcoinFissions: {
214
+ /**
215
+ * Active Fission records addressed by their owner and owner-local Fission ID.
216
+ **/
217
+ fissionByOwnerAndId: AugmentedQuery<
218
+ ApiType,
219
+ (
220
+ arg1: AccountId32 | string | Uint8Array,
221
+ arg2: u64 | AnyNumber | Uint8Array,
222
+ ) => Observable<Option<PalletBitcoinFissionsFission>>,
223
+ [AccountId32, u64]
224
+ >;
225
+ /**
226
+ * Active Fission IDs allocating satoshis from each Lock.
227
+ **/
228
+ fissionIdsByLockId: AugmentedQuery<
229
+ ApiType,
230
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
231
+ [u64]
232
+ >;
233
+ /**
234
+ * Minimum Fission ID accepted from each owner.
235
+ **/
236
+ nextFissionIdByOwner: AugmentedQuery<
237
+ ApiType,
238
+ (arg: AccountId32 | string | Uint8Array) => Observable<u64>,
239
+ [AccountId32]
240
+ >;
241
+ };
213
242
  bitcoinLocks: {
243
+ lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
244
+ ApiType,
245
+ (
246
+ arg1: u32 | AnyNumber | Uint8Array,
247
+ arg2: AccountId32 | string | Uint8Array,
248
+ ) => Observable<Option<u64>>,
249
+ [u32, AccountId32]
250
+ >;
251
+ /**
252
+ * Highest Bitcoin UTXO sync height processed for pending-funding expirations.
253
+ **/
254
+ lastPendingFundingExpirationHeight: AugmentedQuery<
255
+ ApiType,
256
+ () => Observable<Option<u64>>,
257
+ []
258
+ >;
214
259
  /**
215
260
  * Utxos that have been requested to be cosigned for releasing
216
261
  **/
@@ -255,7 +300,16 @@ declare module '@polkadot/api-base/types/storage' {
255
300
  [u64]
256
301
  >;
257
302
  /**
258
- * History of target microgons per btc.
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
+ /**
312
+ * Recent target-normalized microgon values per BTC and their observed ticks.
259
313
  **/
260
314
  microgonPerBtcHistory: AugmentedQuery<
261
315
  ApiType,
@@ -263,7 +317,18 @@ declare module '@polkadot/api-base/types/storage' {
263
317
  []
264
318
  >;
265
319
  /**
266
- * The minimum number of satoshis that can be locked
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
+ /**
331
+ * The minimum number of satoshis accepted in one watched funding UTXO.
267
332
  **/
268
333
  minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
269
334
  nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
@@ -314,6 +379,14 @@ declare module '@polkadot/api-base/types/storage' {
314
379
  ) => Observable<Option<Null>>,
315
380
  [u32, u64]
316
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>>,
388
+ [u64]
389
+ >;
317
390
  };
318
391
  bitcoinUtxos: {
319
392
  /**
@@ -324,16 +397,6 @@ declare module '@polkadot/api-base/types/storage' {
324
397
  () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>,
325
398
  []
326
399
  >;
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
400
  /**
338
401
  * An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
339
402
  **/
@@ -342,42 +405,10 @@ declare module '@polkadot/api-base/types/storage' {
342
405
  () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
343
406
  []
344
407
  >;
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
408
  /**
354
409
  * Check if the inherent was included
355
410
  **/
356
411
  inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
357
- /**
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.
361
- **/
362
- lockedUtxos: AugmentedQuery<
363
- ApiType,
364
- (
365
- arg:
366
- | ArgonPrimitivesBitcoinUtxoRef
367
- | { txid?: any; outputIndex?: any }
368
- | string
369
- | 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
- []
380
- >;
381
412
  /**
382
413
  * Bitcoin Oracle Operator Account
383
414
  **/
@@ -400,11 +431,35 @@ declare module '@polkadot/api-base/types/storage' {
400
431
  **/
401
432
  tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
402
433
  /**
403
- * A mapping of utxo id to the confirmed utxo reference
434
+ * Watched Lock addresses and the scan height needed to observe them.
404
435
  **/
405
- utxoIdToFundingUtxoRef: AugmentedQuery<
436
+ utxoAddressByUtxoId: AugmentedQuery<
406
437
  ApiType,
407
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>,
438
+ (
439
+ arg: u64 | AnyNumber | Uint8Array,
440
+ ) => Observable<Option<ArgonPrimitivesBitcoinUtxoAddress>>,
441
+ [u64]
442
+ >;
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
+ /**
458
+ * Every output observed at a watched Lock address, retained until explicitly removed.
459
+ **/
460
+ utxoRefsByUtxoId: AugmentedQuery<
461
+ ApiType,
462
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
408
463
  [u64]
409
464
  >;
410
465
  };
@@ -1310,6 +1365,19 @@ declare module '@polkadot/api-base/types/storage' {
1310
1365
  >;
1311
1366
  };
1312
1367
  operationalAccounts: {
1368
+ /**
1369
+ * Set of operational accounts that have met both follow-on access-code thresholds.
1370
+ * The key count weights frame processing without scanning the set twice.
1371
+ **/
1372
+ accessCodeReadyAccounts: AugmentedQuery<
1373
+ ApiType,
1374
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
1375
+ [AccountId32]
1376
+ >;
1377
+ /**
1378
+ * Counter for the related counted storage map
1379
+ **/
1380
+ counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1313
1381
  /**
1314
1382
  * Whether operational-account access is invite-only.
1315
1383
  *
@@ -1435,7 +1503,7 @@ declare module '@polkadot/api-base/types/storage' {
1435
1503
  **/
1436
1504
  current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
1437
1505
  /**
1438
- * Stores Ethereum pricing submitted with the active price index.
1506
+ * Stores the latest submitted Ethereum pricing.
1439
1507
  **/
1440
1508
  currentEthereumPrice: AugmentedQuery<
1441
1509
  ApiType,
@@ -1737,7 +1805,7 @@ declare module '@polkadot/api-base/types/storage' {
1737
1805
  * The active bond state for a vault.
1738
1806
  *
1739
1807
  * 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
1808
+ * when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
1741
1809
  * aggregate.
1742
1810
  **/
1743
1811
  bondLotsByVault: AugmentedQuery<
@@ -1778,6 +1846,14 @@ declare module '@polkadot/api-base/types/storage' {
1778
1846
  (arg: AccountId32 | string | Uint8Array) => Observable<u128>,
1779
1847
  [AccountId32]
1780
1848
  >;
1849
+ lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<
1850
+ ApiType,
1851
+ (
1852
+ arg1: u32 | AnyNumber | Uint8Array,
1853
+ arg2: AccountId32 | string | Uint8Array,
1854
+ ) => Observable<Option<u64>>,
1855
+ [u32, AccountId32]
1856
+ >;
1781
1857
  /**
1782
1858
  * The next bond lot id.
1783
1859
  **/
@@ -1859,14 +1935,6 @@ declare module '@polkadot/api-base/types/storage' {
1859
1935
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
1860
1936
  [u64]
1861
1937
  >;
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
1938
  /**
1871
1939
  * Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
1872
1940
  * (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the