@argonprotocol/mainchain 1.4.12 → 1.4.13-dev.d9b3437c

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,
@@ -209,6 +212,35 @@ declare module '@polkadot/api-base/types/storage' {
209
212
  **/
210
213
  totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
211
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
+ };
212
244
  bitcoinLocks: {
213
245
  lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
214
246
  ApiType,
@@ -218,6 +250,14 @@ declare module '@polkadot/api-base/types/storage' {
218
250
  ) => Observable<Option<u64>>,
219
251
  [u32, AccountId32]
220
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
+ >;
221
261
  /**
222
262
  * Utxos that have been requested to be cosigned for releasing
223
263
  **/
@@ -236,17 +276,41 @@ declare module '@polkadot/api-base/types/storage' {
236
276
  [u64]
237
277
  >;
238
278
  /**
239
- * 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.
240
302
  **/
241
303
  lockReleaseCosignHeightById: AugmentedQuery<
242
304
  ApiType,
243
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
305
+ (
306
+ arg: u64 | AnyNumber | Uint8Array,
307
+ ) => Observable<Option<PalletBitcoinLocksLockReleaseCosignHeight>>,
244
308
  [u64]
245
309
  >;
246
310
  /**
247
- * Stores bitcoin locks that have requested to be released
311
+ * Release requests awaiting a Vault cosignature.
248
312
  **/
249
- lockReleaseRequestsByUtxoId: AugmentedQuery<
313
+ lockReleaseRequestsById: AugmentedQuery<
250
314
  ApiType,
251
315
  (
252
316
  arg: u64 | AnyNumber | Uint8Array,
@@ -256,13 +320,13 @@ declare module '@polkadot/api-base/types/storage' {
256
320
  /**
257
321
  * Stores bitcoin utxos that have requested to be released
258
322
  **/
259
- locksByUtxoId: AugmentedQuery<
323
+ locksById: AugmentedQuery<
260
324
  ApiType,
261
325
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
262
326
  [u64]
263
327
  >;
264
328
  /**
265
- * History of target microgons per btc.
329
+ * Recent target-normalized microgon values per BTC and their observed ticks.
266
330
  **/
267
331
  microgonPerBtcHistory: AugmentedQuery<
268
332
  ApiType,
@@ -270,10 +334,10 @@ declare module '@polkadot/api-base/types/storage' {
270
334
  []
271
335
  >;
272
336
  /**
273
- * The minimum number of satoshis that can be locked
337
+ * The minimum number of satoshis accepted in one watched funding UTXO.
274
338
  **/
275
339
  minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
276
- nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
340
+ nextBitcoinLockId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
277
341
  /**
278
342
  * Expiration of orphaned utxo refs by user account
279
343
  **/
@@ -300,26 +364,23 @@ declare module '@polkadot/api-base/types/storage' {
300
364
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
301
365
  >;
302
366
  /**
303
- * Index of active UTXO IDs per owner account.
367
+ * Cosigned partial releases awaiting confirmation on Bitcoin.
304
368
  **/
305
- utxoIdsByOwnerAccount: AugmentedQuery<
369
+ pendingPartialReleaseByLockId: AugmentedQuery<
306
370
  ApiType,
307
371
  (
308
- arg1: AccountId32 | string | Uint8Array,
309
- arg2: u64 | AnyNumber | Uint8Array,
310
- ) => Observable<Option<Null>>,
311
- [AccountId32, u64]
372
+ arg: u64 | AnyNumber | Uint8Array,
373
+ ) => Observable<Option<PalletBitcoinLocksPendingPartialRelease>>,
374
+ [u64]
312
375
  >;
313
376
  /**
314
- * 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.
315
379
  **/
316
- utxoIdsByVaultId: AugmentedQuery<
380
+ securitizationHoldExpirationsByBitcoinHeight: AugmentedQuery<
317
381
  ApiType,
318
- (
319
- arg1: u32 | AnyNumber | Uint8Array,
320
- arg2: u64 | AnyNumber | Uint8Array,
321
- ) => Observable<Option<Null>>,
322
- [u32, u64]
382
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
383
+ [u64]
323
384
  >;
324
385
  };
325
386
  bitcoinUtxos: {
@@ -331,16 +392,6 @@ declare module '@polkadot/api-base/types/storage' {
331
392
  () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>,
332
393
  []
333
394
  >;
334
- /**
335
- * Candidate UTXOs associated with a lock (mismatches, extra funding, etc.).
336
- **/
337
- candidateUtxoRefsByUtxoId: AugmentedQuery<
338
- ApiType,
339
- (
340
- arg: u64 | AnyNumber | Uint8Array,
341
- ) => Observable<BTreeMap<ArgonPrimitivesBitcoinUtxoRef, u64>>,
342
- [u64]
343
- >;
344
395
  /**
345
396
  * An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
346
397
  **/
@@ -349,42 +400,23 @@ declare module '@polkadot/api-base/types/storage' {
349
400
  () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
350
401
  []
351
402
  >;
352
- /**
353
- * Pending funding entries that have expired. These remain watched until their additional
354
- * orphan-detection window ends, then await bounded cleanup.
355
- **/
356
- expiredPendingFunding: AugmentedQuery<
357
- ApiType,
358
- () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
359
- []
360
- >;
361
403
  /**
362
404
  * Check if the inherent was included
363
405
  **/
364
406
  inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
365
407
  /**
366
- * Locked Bitcoin UTXOs that have been funded with a UtxoRef from the Bitcoin network and
367
- * amounts within the MinimumSatoshiThreshold of the expected. If a Bitcoin UTXO is moved
368
- * before the expiration block, the funds are burned and the UTXO is unlocked.
408
+ * The Lock ID identified by each watched script pubkey.
369
409
  **/
370
- lockedUtxos: AugmentedQuery<
410
+ lockIdByScriptPubkey: AugmentedQuery<
371
411
  ApiType,
372
412
  (
373
413
  arg:
374
- | ArgonPrimitivesBitcoinUtxoRef
375
- | { txid?: any; outputIndex?: any }
414
+ | ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
415
+ | { P2WSH: any }
376
416
  | string
377
417
  | Uint8Array,
378
- ) => Observable<Option<ArgonPrimitivesBitcoinUtxoValue>>,
379
- [ArgonPrimitivesBitcoinUtxoRef]
380
- >;
381
- /**
382
- * Bitcoin locks that are pending full funding on the bitcoin network
383
- **/
384
- locksPendingFunding: AugmentedQuery<
385
- ApiType,
386
- () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
387
- []
418
+ ) => Observable<Option<u64>>,
419
+ [ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
388
420
  >;
389
421
  /**
390
422
  * Bitcoin Oracle Operator Account
@@ -408,11 +440,21 @@ declare module '@polkadot/api-base/types/storage' {
408
440
  **/
409
441
  tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
410
442
  /**
411
- * A mapping of utxo id to the confirmed utxo reference
443
+ * Watched Lock addresses and the scan height needed to observe them.
412
444
  **/
413
- utxoIdToFundingUtxoRef: AugmentedQuery<
445
+ utxoAddressByLockId: AugmentedQuery<
414
446
  ApiType,
415
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>,
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.
454
+ **/
455
+ utxoRefsByLockId: AugmentedQuery<
456
+ ApiType,
457
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
416
458
  [u64]
417
459
  >;
418
460
  };
@@ -1169,33 +1211,33 @@ declare module '@polkadot/api-base/types/storage' {
1169
1211
  /**
1170
1212
  * The next monotonic queue index to assign to a pending bitcoin mint.
1171
1213
  **/
1172
- nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1214
+ nextPendingBitcoinMintIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1173
1215
  /**
1174
- * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1175
- * 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.
1176
1218
  **/
1177
- pendingMintQueueState: AugmentedQuery<
1219
+ pendingBitcoinMintsByIndex: AugmentedQuery<
1178
1220
  ApiType,
1179
- () => Observable<PalletMintMintQueueCursor>,
1180
- []
1221
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingBitcoinMint>>,
1222
+ [u64]
1181
1223
  >;
1182
1224
  /**
1183
1225
  * Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
1184
1226
  * client lookup.
1185
1227
  **/
1186
- pendingMintUtxoIdLookup: AugmentedQuery<
1228
+ pendingMintIndicesByLockId: AugmentedQuery<
1187
1229
  ApiType,
1188
1230
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1189
1231
  [u64]
1190
1232
  >;
1191
1233
  /**
1192
- * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1193
- * 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.
1194
1236
  **/
1195
- pendingMintUtxosByIndex: AugmentedQuery<
1237
+ pendingMintQueueState: AugmentedQuery<
1196
1238
  ApiType,
1197
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
1198
- [u64]
1239
+ () => Observable<PalletMintMintQueueCursor>,
1240
+ []
1199
1241
  >;
1200
1242
  };
1201
1243
  multisig: {
@@ -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
@@ -38,7 +38,7 @@ import type {
38
38
  ArgonPrimitivesBitcoinUtxoRef,
39
39
  ArgonPrimitivesDomainZoneRecord,
40
40
  ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
41
- ArgonPrimitivesInherentsBitcoinUtxoSync,
41
+ ArgonPrimitivesInherentsBitcoinUtxoSyncV2,
42
42
  ArgonPrimitivesInherentsBlockSealInherent,
43
43
  ArgonPrimitivesNotaryNotaryMeta,
44
44
  ArgonPrimitivesNotebookSignedNotebookHeader,
@@ -280,6 +280,38 @@ declare module '@polkadot/api-base/types/submittable' {
280
280
  [Vec<AccountId32>]
281
281
  >;
282
282
  };
283
+ bitcoinFissions: {
284
+ /**
285
+ * Close a Fission without moving Bitcoin and remove its active record.
286
+ **/
287
+ close: AugmentedSubmittable<
288
+ (fissionId: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
289
+ [Compact<u64>]
290
+ >;
291
+ /**
292
+ * Create a Fission from one owner-held Lock and associate it with a Liquid ID.
293
+ **/
294
+ create: AugmentedSubmittable<
295
+ (
296
+ fissionId: Compact<u64> | AnyNumber | Uint8Array,
297
+ liquidId: Compact<u64> | AnyNumber | Uint8Array,
298
+ lockId: Compact<u64> | AnyNumber | Uint8Array,
299
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
300
+ microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
301
+ ) => SubmittableExtrinsic<ApiType>,
302
+ [Compact<u64>, Compact<u64>, Compact<u64>, Compact<u64>, Compact<u128>]
303
+ >;
304
+ /**
305
+ * Ratchet an active Fission to a replacement target-normalized BTC value.
306
+ **/
307
+ ratchet: AugmentedSubmittable<
308
+ (
309
+ fissionId: Compact<u64> | AnyNumber | Uint8Array,
310
+ microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
311
+ ) => SubmittableExtrinsic<ApiType>,
312
+ [Compact<u64>, Compact<u128>]
313
+ >;
314
+ };
283
315
  bitcoinLocks: {
284
316
  adminModifyMinimumLockedSats: AugmentedSubmittable<
285
317
  (satoshis: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
@@ -307,37 +339,27 @@ declare module '@polkadot/api-base/types/submittable' {
307
339
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef, Bytes]
308
340
  >;
309
341
  /**
310
- * Submitted by a Vault operator to cosign the release of a bitcoin utxo. The Bitcoin owner
311
- * release fee will be burned, and the lock will be allowed to expire without a penalty.
342
+ * Submitted by a Vault operator to cosign every input in a Bitcoin Lock release. The
343
+ * signatures must follow ascending `UtxoRef` order: transaction ID, then output index.
344
+ * The Lock remains frozen until the exact cosigned transaction is observed on Bitcoin.
312
345
  *
313
346
  * This is submitted as a no-fee transaction off chain to allow keys to remain in cold
314
347
  * wallets.
315
348
  **/
316
349
  cosignRelease: AugmentedSubmittable<
317
350
  (
318
- utxoId: u64 | AnyNumber | Uint8Array,
319
- signature: Bytes | string | Uint8Array,
320
- ) => SubmittableExtrinsic<ApiType>,
321
- [u64, Bytes]
322
- >;
323
- increaseSecuritization: AugmentedSubmittable<
324
- (
325
- utxoId: u64 | AnyNumber | Uint8Array,
326
- newSatoshis: Compact<u64> | AnyNumber | Uint8Array,
351
+ lockId: u64 | AnyNumber | Uint8Array,
352
+ signatures: Vec<Bytes> | (Bytes | string | Uint8Array)[],
327
353
  ) => SubmittableExtrinsic<ApiType>,
328
- [u64, Compact<u64>]
354
+ [u64, Vec<Bytes>]
329
355
  >;
330
356
  /**
331
- * Initialize a bitcoin lock. This will create a LockedBitcoin for the submitting account
332
- * and log the Bitcoin Script hash to Events.
357
+ * Create a Bitcoin receive address backed by a Lock for the submitting account.
333
358
  *
334
359
  * The pubkey submitted here will be used to create a script pubkey that will be used in a
335
360
  * timelock multisig script to lock the bitcoin.
336
- *
337
- * NOTE: A "lock-er" must send btc to the cosigner UTXO address to "complete" the
338
- * LockedBitcoin and be added to the Bitcoin Mint line.
339
361
  **/
340
- initialize: AugmentedSubmittable<
362
+ createReceiveAddress: AugmentedSubmittable<
341
363
  (
342
364
  vaultId: u32 | AnyNumber | Uint8Array,
343
365
  satoshis: Compact<u64> | AnyNumber | Uint8Array,
@@ -347,8 +369,7 @@ declare module '@polkadot/api-base/types/submittable' {
347
369
  | null
348
370
  | Uint8Array
349
371
  | PalletBitcoinLocksLockOptions
350
- | { V1: any }
351
- | { V2: any }
372
+ | { microgonsAtTargetPerBtc?: any; feeCoupon?: any }
352
373
  | string,
353
374
  ) => SubmittableExtrinsic<ApiType>,
354
375
  [
@@ -358,36 +379,6 @@ declare module '@polkadot/api-base/types/submittable' {
358
379
  Option<PalletBitcoinLocksLockOptions>,
359
380
  ]
360
381
  >;
361
- /**
362
- * Ratcheting allows a user to change the lock price of their bitcoin lock. This is
363
- * functionally the same as releasing and re-initializing, but it allows a user to skip
364
- * sending transactions through bitcoin and any associated fees. It also allows you to stay
365
- * on your original lock expiration without having to pay the full year of fees again.
366
- *
367
- * Ratcheting "down" - when the price of bitcoin is lower than your lock price, you pay the
368
- * full release price and get added back to the mint queue at the current market rate. You
369
- * pocket the difference between the already minted "lock price" and the new market value
370
- * (which you just had burned). Your new lock price is set to the market low, so you can
371
- * take advantage of ratchets "up" in the future.
372
- *
373
- * Ratcheting "up" - when the price of bitcoin is higher than your lock price, you pay a
374
- * prorated fee for the remainder of your existing lock duration. You are added to the mint
375
- * queue for the difference in your new lock price vs the previous lock price.
376
- **/
377
- ratchet: AugmentedSubmittable<
378
- (
379
- utxoId: u64 | AnyNumber | Uint8Array,
380
- options:
381
- | Option<PalletBitcoinLocksLockOptions>
382
- | null
383
- | Uint8Array
384
- | PalletBitcoinLocksLockOptions
385
- | { V1: any }
386
- | { V2: any }
387
- | string,
388
- ) => SubmittableExtrinsic<ApiType>,
389
- [u64, Option<PalletBitcoinLocksLockOptions>]
390
- >;
391
382
  requestOrphanedUtxoRelease: AugmentedSubmittable<
392
383
  (
393
384
  utxoRef:
@@ -401,61 +392,48 @@ declare module '@polkadot/api-base/types/submittable' {
401
392
  [ArgonPrimitivesBitcoinUtxoRef, Bytes, u64]
402
393
  >;
403
394
  /**
404
- * Submitted by a Bitcoin holder to trigger the release of their Utxo out of the cosign
405
- * script. A transaction spending the UTXO should be pre-created so that the sighash
406
- * can be submitted here. The vault operator will have 10 days to counter-sign the
407
- * transaction. It will be published with the public key as a BitcoinUtxoCosigned Event.
395
+ * Submitted by a Bitcoin holder to spend every current UTXO in a Lock. The exact external
396
+ * amount and network fee determine whether the transaction fully releases the Lock or
397
+ * returns one consolidated change output to the same Lock script. The vault operator has
398
+ * 10 days to publish one signature per frozen input in a BitcoinUtxoCosigned event.
408
399
  *
409
400
  * Owner must submit a script pubkey and also a fee to pay to the bitcoin network.
410
401
  **/
411
402
  requestRelease: AugmentedSubmittable<
412
403
  (
413
- utxoId: u64 | AnyNumber | Uint8Array,
404
+ lockId: u64 | AnyNumber | Uint8Array,
414
405
  toScriptPubkey: Bytes | string | Uint8Array,
406
+ destinationSatoshis: u64 | AnyNumber | Uint8Array,
415
407
  bitcoinNetworkFee: u64 | AnyNumber | Uint8Array,
416
408
  ) => SubmittableExtrinsic<ApiType>,
417
- [u64, Bytes, u64]
418
- >;
419
- setFlexible: AugmentedSubmittable<
420
- (
421
- utxoId: u64 | AnyNumber | Uint8Array,
422
- isFlexible: bool | boolean | Uint8Array,
423
- ) => SubmittableExtrinsic<ApiType>,
424
- [u64, bool]
409
+ [u64, Bytes, u64, u64]
425
410
  >;
426
- };
427
- bitcoinUtxos: {
428
411
  /**
429
- * Bind a candidate UTXO ref as the funding UTXO for its lock.
430
- * The locks pallet authorizes the promotion; this pallet binds the ref and begins
431
- * tracking.
412
+ * Replace this Lock's BTC coverage and target value for its remaining term.
432
413
  **/
433
- fundWithUtxoCandidate: AugmentedSubmittable<
414
+ resecuritize: AugmentedSubmittable<
434
415
  (
435
- utxoId: u64 | AnyNumber | Uint8Array,
436
- utxoRef:
437
- | ArgonPrimitivesBitcoinUtxoRef
438
- | { txid?: any; outputIndex?: any }
439
- | string
440
- | Uint8Array,
416
+ lockId: u64 | AnyNumber | Uint8Array,
417
+ satoshis: Compact<u64> | AnyNumber | Uint8Array,
418
+ options:
419
+ | Option<PalletBitcoinLocksLockOptions>
420
+ | null
421
+ | Uint8Array
422
+ | PalletBitcoinLocksLockOptions
423
+ | { microgonsAtTargetPerBtc?: any; feeCoupon?: any }
424
+ | string,
441
425
  ) => SubmittableExtrinsic<ApiType>,
442
- [u64, ArgonPrimitivesBitcoinUtxoRef]
426
+ [u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
443
427
  >;
444
- /**
445
- * Reject a pending candidate UTXO and materialize it as an orphan through the locks
446
- * pallet.
447
- **/
448
- rejectUtxoCandidate: AugmentedSubmittable<
428
+ setFlexible: AugmentedSubmittable<
449
429
  (
450
- utxoId: u64 | AnyNumber | Uint8Array,
451
- utxoRef:
452
- | ArgonPrimitivesBitcoinUtxoRef
453
- | { txid?: any; outputIndex?: any }
454
- | string
455
- | Uint8Array,
430
+ lockId: u64 | AnyNumber | Uint8Array,
431
+ isFlexible: bool | boolean | Uint8Array,
456
432
  ) => SubmittableExtrinsic<ApiType>,
457
- [u64, ArgonPrimitivesBitcoinUtxoRef]
433
+ [u64, bool]
458
434
  >;
435
+ };
436
+ bitcoinUtxos: {
459
437
  /**
460
438
  * Sets the most recent confirmed bitcoin block height (only executable by the Oracle
461
439
  * Operator account)
@@ -486,12 +464,12 @@ declare module '@polkadot/api-base/types/submittable' {
486
464
  sync: AugmentedSubmittable<
487
465
  (
488
466
  utxoSync:
489
- | ArgonPrimitivesInherentsBitcoinUtxoSync
467
+ | ArgonPrimitivesInherentsBitcoinUtxoSyncV2
490
468
  | { spent?: any; funded?: any; syncToBlock?: any }
491
469
  | string
492
470
  | Uint8Array,
493
471
  ) => SubmittableExtrinsic<ApiType>,
494
- [ArgonPrimitivesInherentsBitcoinUtxoSync]
472
+ [ArgonPrimitivesInherentsBitcoinUtxoSyncV2]
495
473
  >;
496
474
  };
497
475
  blockRewards: {
@@ -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 './augment-api-consts.js';
5
4
  import './augment-api-errors.js';
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, 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