@argonprotocol/mainchain 1.4.12-dev.d1c83d27 → 1.4.12-dev.ece9349b
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/README.md +0 -10
- package/browser/index.d.ts +953 -1030
- package/browser/index.js +14 -1343
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +16 -1346
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +953 -1030
- package/lib/index.d.ts +953 -1030
- package/lib/index.js +18 -1348
- package/lib/index.js.map +1 -1
- package/package.json +3 -4
- package/src/interfaces/augment-api-consts.ts +16 -3
- package/src/interfaces/augment-api-errors.ts +126 -16
- package/src/interfaces/augment-api-events.ts +173 -85
- package/src/interfaces/augment-api-query.ts +110 -67
- package/src/interfaces/augment-api-runtime.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +69 -60
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +0 -1
- package/src/interfaces/lookup.ts +496 -373
- package/src/interfaces/registry.ts +20 -9
- package/src/interfaces/types-lookup.ts +542 -402
|
@@ -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
|
|
@@ -64,9 +63,12 @@ import type {
|
|
|
64
63
|
PalletBalancesAccountData,
|
|
65
64
|
PalletBalancesBalanceLock,
|
|
66
65
|
PalletBalancesReserveData,
|
|
66
|
+
PalletBitcoinFissionsFission,
|
|
67
|
+
PalletBitcoinLocksLockReleaseCosignHeight,
|
|
67
68
|
PalletBitcoinLocksLockReleaseRequest,
|
|
68
69
|
PalletBitcoinLocksLockedBitcoin,
|
|
69
70
|
PalletBitcoinLocksOrphanedUtxo,
|
|
71
|
+
PalletBitcoinLocksPendingPartialRelease,
|
|
70
72
|
PalletBootstrapEndpointPubkey,
|
|
71
73
|
PalletBootstrapRecoveryPubkey,
|
|
72
74
|
PalletCrosschainTransferAccountTransferTotals,
|
|
@@ -93,7 +95,7 @@ import type {
|
|
|
93
95
|
PalletMiningSlotMinerNonceScoring,
|
|
94
96
|
PalletMintMintAction,
|
|
95
97
|
PalletMintMintQueueCursor,
|
|
96
|
-
|
|
98
|
+
PalletMintPendingBitcoinMint,
|
|
97
99
|
PalletMultisigMultisig,
|
|
98
100
|
PalletOperationalAccountsOperationalAccount,
|
|
99
101
|
PalletOperationalAccountsRewardsConfig,
|
|
@@ -210,6 +212,35 @@ 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: {
|
|
214
245
|
lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
|
|
215
246
|
ApiType,
|
|
@@ -219,6 +250,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
219
250
|
) => Observable<Option<u64>>,
|
|
220
251
|
[u32, AccountId32]
|
|
221
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
|
+
>;
|
|
222
261
|
/**
|
|
223
262
|
* Utxos that have been requested to be cosigned for releasing
|
|
224
263
|
**/
|
|
@@ -237,42 +276,57 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
237
276
|
[u64]
|
|
238
277
|
>;
|
|
239
278
|
/**
|
|
240
|
-
*
|
|
279
|
+
* Index of active UTXO IDs per owner account.
|
|
241
280
|
**/
|
|
242
|
-
|
|
281
|
+
lockIdsByOwnerAccount: AugmentedQuery<
|
|
243
282
|
ApiType,
|
|
244
|
-
(
|
|
245
|
-
|
|
283
|
+
(
|
|
284
|
+
arg1: AccountId32 | string | Uint8Array,
|
|
285
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
286
|
+
) => Observable<Option<Null>>,
|
|
287
|
+
[AccountId32, u64]
|
|
246
288
|
>;
|
|
247
289
|
/**
|
|
248
|
-
*
|
|
290
|
+
* Index of active UTXO IDs per vault
|
|
249
291
|
**/
|
|
250
|
-
|
|
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.
|
|
302
|
+
**/
|
|
303
|
+
lockReleaseCosignHeightById: AugmentedQuery<
|
|
251
304
|
ApiType,
|
|
252
305
|
(
|
|
253
306
|
arg: u64 | AnyNumber | Uint8Array,
|
|
254
|
-
) => Observable<Option<
|
|
307
|
+
) => Observable<Option<PalletBitcoinLocksLockReleaseCosignHeight>>,
|
|
255
308
|
[u64]
|
|
256
309
|
>;
|
|
257
310
|
/**
|
|
258
|
-
*
|
|
311
|
+
* Release requests awaiting a Vault cosignature.
|
|
259
312
|
**/
|
|
260
|
-
|
|
313
|
+
lockReleaseRequestsById: AugmentedQuery<
|
|
261
314
|
ApiType,
|
|
262
|
-
(
|
|
315
|
+
(
|
|
316
|
+
arg: u64 | AnyNumber | Uint8Array,
|
|
317
|
+
) => Observable<Option<PalletBitcoinLocksLockReleaseRequest>>,
|
|
263
318
|
[u64]
|
|
264
319
|
>;
|
|
265
320
|
/**
|
|
266
|
-
*
|
|
267
|
-
* Expiry releases the reservation but leaves the lock address watched for late orphan output.
|
|
321
|
+
* Stores bitcoin utxos that have requested to be released
|
|
268
322
|
**/
|
|
269
|
-
|
|
323
|
+
locksById: AugmentedQuery<
|
|
270
324
|
ApiType,
|
|
271
|
-
(arg: u64 | AnyNumber | Uint8Array) => Observable<
|
|
325
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
|
|
272
326
|
[u64]
|
|
273
327
|
>;
|
|
274
328
|
/**
|
|
275
|
-
*
|
|
329
|
+
* Recent target-normalized microgon values per BTC and their observed ticks.
|
|
276
330
|
**/
|
|
277
331
|
microgonPerBtcHistory: AugmentedQuery<
|
|
278
332
|
ApiType,
|
|
@@ -280,10 +334,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
280
334
|
[]
|
|
281
335
|
>;
|
|
282
336
|
/**
|
|
283
|
-
* The minimum number of satoshis
|
|
337
|
+
* The minimum number of satoshis accepted in one watched funding UTXO.
|
|
284
338
|
**/
|
|
285
339
|
minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
286
|
-
|
|
340
|
+
nextBitcoinLockId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
287
341
|
/**
|
|
288
342
|
* Expiration of orphaned utxo refs by user account
|
|
289
343
|
**/
|
|
@@ -310,33 +364,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
310
364
|
[AccountId32, ArgonPrimitivesBitcoinUtxoRef]
|
|
311
365
|
>;
|
|
312
366
|
/**
|
|
313
|
-
*
|
|
367
|
+
* Cosigned partial releases awaiting confirmation on Bitcoin.
|
|
314
368
|
**/
|
|
315
|
-
|
|
369
|
+
pendingPartialReleaseByLockId: AugmentedQuery<
|
|
316
370
|
ApiType,
|
|
317
371
|
(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
[AccountId32, u64]
|
|
322
|
-
>;
|
|
323
|
-
/**
|
|
324
|
-
* Index of active UTXO IDs per vault
|
|
325
|
-
**/
|
|
326
|
-
utxoIdsByVaultId: AugmentedQuery<
|
|
327
|
-
ApiType,
|
|
328
|
-
(
|
|
329
|
-
arg1: u32 | AnyNumber | Uint8Array,
|
|
330
|
-
arg2: u64 | AnyNumber | Uint8Array,
|
|
331
|
-
) => Observable<Option<Null>>,
|
|
332
|
-
[u32, u64]
|
|
372
|
+
arg: u64 | AnyNumber | Uint8Array,
|
|
373
|
+
) => Observable<Option<PalletBitcoinLocksPendingPartialRelease>>,
|
|
374
|
+
[u64]
|
|
333
375
|
>;
|
|
334
376
|
/**
|
|
335
|
-
*
|
|
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.
|
|
336
379
|
**/
|
|
337
|
-
|
|
380
|
+
securitizationHoldExpirationsByBitcoinHeight: AugmentedQuery<
|
|
338
381
|
ApiType,
|
|
339
|
-
(arg: u64 | AnyNumber | Uint8Array) => Observable<
|
|
382
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
|
|
340
383
|
[u64]
|
|
341
384
|
>;
|
|
342
385
|
};
|
|
@@ -361,6 +404,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
361
404
|
* Check if the inherent was included
|
|
362
405
|
**/
|
|
363
406
|
inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
407
|
+
/**
|
|
408
|
+
* The Lock ID identified by each watched script pubkey.
|
|
409
|
+
**/
|
|
410
|
+
lockIdByScriptPubkey: AugmentedQuery<
|
|
411
|
+
ApiType,
|
|
412
|
+
(
|
|
413
|
+
arg:
|
|
414
|
+
| ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
|
|
415
|
+
| { P2WSH: any }
|
|
416
|
+
| string
|
|
417
|
+
| Uint8Array,
|
|
418
|
+
) => Observable<Option<u64>>,
|
|
419
|
+
[ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
|
|
420
|
+
>;
|
|
364
421
|
/**
|
|
365
422
|
* Bitcoin Oracle Operator Account
|
|
366
423
|
**/
|
|
@@ -385,31 +442,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
385
442
|
/**
|
|
386
443
|
* Watched Lock addresses and the scan height needed to observe them.
|
|
387
444
|
**/
|
|
388
|
-
|
|
445
|
+
utxoAddressByLockId: AugmentedQuery<
|
|
389
446
|
ApiType,
|
|
390
447
|
(
|
|
391
448
|
arg: u64 | AnyNumber | Uint8Array,
|
|
392
449
|
) => Observable<Option<ArgonPrimitivesBitcoinUtxoAddress>>,
|
|
393
450
|
[u64]
|
|
394
451
|
>;
|
|
395
|
-
/**
|
|
396
|
-
* The Lock ID identified by each watched script pubkey.
|
|
397
|
-
**/
|
|
398
|
-
utxoIdByScriptPubkey: AugmentedQuery<
|
|
399
|
-
ApiType,
|
|
400
|
-
(
|
|
401
|
-
arg:
|
|
402
|
-
| ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
|
|
403
|
-
| { P2WSH: any }
|
|
404
|
-
| string
|
|
405
|
-
| Uint8Array,
|
|
406
|
-
) => Observable<Option<u64>>,
|
|
407
|
-
[ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
|
|
408
|
-
>;
|
|
409
452
|
/**
|
|
410
453
|
* Every output observed at a watched Lock address, retained until explicitly removed.
|
|
411
454
|
**/
|
|
412
|
-
|
|
455
|
+
utxoRefsByLockId: AugmentedQuery<
|
|
413
456
|
ApiType,
|
|
414
457
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
|
|
415
458
|
[u64]
|
|
@@ -1168,33 +1211,33 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1168
1211
|
/**
|
|
1169
1212
|
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1170
1213
|
**/
|
|
1171
|
-
|
|
1214
|
+
nextPendingBitcoinMintIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1172
1215
|
/**
|
|
1173
|
-
*
|
|
1174
|
-
*
|
|
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.
|
|
1175
1218
|
**/
|
|
1176
|
-
|
|
1219
|
+
pendingBitcoinMintsByIndex: AugmentedQuery<
|
|
1177
1220
|
ApiType,
|
|
1178
|
-
() => Observable<
|
|
1179
|
-
[]
|
|
1221
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingBitcoinMint>>,
|
|
1222
|
+
[u64]
|
|
1180
1223
|
>;
|
|
1181
1224
|
/**
|
|
1182
1225
|
* Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
|
|
1183
1226
|
* client lookup.
|
|
1184
1227
|
**/
|
|
1185
|
-
|
|
1228
|
+
pendingMintIndicesByLockId: AugmentedQuery<
|
|
1186
1229
|
ApiType,
|
|
1187
1230
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1188
1231
|
[u64]
|
|
1189
1232
|
>;
|
|
1190
1233
|
/**
|
|
1191
|
-
*
|
|
1192
|
-
*
|
|
1234
|
+
* Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
|
|
1235
|
+
* current frame scan cursor.
|
|
1193
1236
|
**/
|
|
1194
|
-
|
|
1237
|
+
pendingMintQueueState: AugmentedQuery<
|
|
1195
1238
|
ApiType,
|
|
1196
|
-
(
|
|
1197
|
-
[
|
|
1239
|
+
() => Observable<PalletMintMintQueueCursor>,
|
|
1240
|
+
[]
|
|
1198
1241
|
>;
|
|
1199
1242
|
};
|
|
1200
1243
|
multisig: {
|
|
@@ -38,7 +38,7 @@ import type {
|
|
|
38
38
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
39
39
|
ArgonPrimitivesDomainZoneRecord,
|
|
40
40
|
ArgonPrimitivesEthereumEthereumReceiptLogProofBatch,
|
|
41
|
-
|
|
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
|
|
311
|
-
*
|
|
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
|
-
|
|
319
|
-
|
|
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,
|
|
354
|
+
[u64, Vec<Bytes>]
|
|
329
355
|
>;
|
|
330
356
|
/**
|
|
331
|
-
*
|
|
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
|
-
|
|
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
|
-
| {
|
|
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,24 +392,42 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
401
392
|
[ArgonPrimitivesBitcoinUtxoRef, Bytes, u64]
|
|
402
393
|
>;
|
|
403
394
|
/**
|
|
404
|
-
* Submitted by a Bitcoin holder to
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
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
|
-
|
|
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]
|
|
409
|
+
[u64, Bytes, u64, u64]
|
|
410
|
+
>;
|
|
411
|
+
/**
|
|
412
|
+
* Replace this Lock's BTC coverage and target value for its remaining term.
|
|
413
|
+
**/
|
|
414
|
+
resecuritize: AugmentedSubmittable<
|
|
415
|
+
(
|
|
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,
|
|
425
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
426
|
+
[u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
|
|
418
427
|
>;
|
|
419
428
|
setFlexible: AugmentedSubmittable<
|
|
420
429
|
(
|
|
421
|
-
|
|
430
|
+
lockId: u64 | AnyNumber | Uint8Array,
|
|
422
431
|
isFlexible: bool | boolean | Uint8Array,
|
|
423
432
|
) => SubmittableExtrinsic<ApiType>,
|
|
424
433
|
[u64, bool]
|
|
@@ -455,12 +464,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
455
464
|
sync: AugmentedSubmittable<
|
|
456
465
|
(
|
|
457
466
|
utxoSync:
|
|
458
|
-
|
|
|
467
|
+
| ArgonPrimitivesInherentsBitcoinUtxoSyncV2
|
|
459
468
|
| { spent?: any; funded?: any; syncToBlock?: any }
|
|
460
469
|
| string
|
|
461
470
|
| Uint8Array,
|
|
462
471
|
) => SubmittableExtrinsic<ApiType>,
|
|
463
|
-
[
|
|
472
|
+
[ArgonPrimitivesInherentsBitcoinUtxoSyncV2]
|
|
464
473
|
>;
|
|
465
474
|
};
|
|
466
475
|
blockRewards: {
|