@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
|
@@ -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,
|
|
@@ -310,146 +311,233 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
310
311
|
{ who: AccountId32; amount: u128 }
|
|
311
312
|
>;
|
|
312
313
|
};
|
|
314
|
+
bitcoinFissions: {
|
|
315
|
+
/**
|
|
316
|
+
* A Fission was closed and its source Lock allocation was released.
|
|
317
|
+
**/
|
|
318
|
+
FissionClosed: AugmentedEvent<
|
|
319
|
+
ApiType,
|
|
320
|
+
[accountId: AccountId32, fissionId: u64, redemptionAmount: u128],
|
|
321
|
+
{ accountId: AccountId32; fissionId: u64; redemptionAmount: u128 }
|
|
322
|
+
>;
|
|
323
|
+
/**
|
|
324
|
+
* An active Fission was closed because its source Lock was spent.
|
|
325
|
+
**/
|
|
326
|
+
FissionClosedByLock: AugmentedEvent<
|
|
327
|
+
ApiType,
|
|
328
|
+
[accountId: AccountId32, fissionId: u64, lockId: u64],
|
|
329
|
+
{ accountId: AccountId32; fissionId: u64; lockId: u64 }
|
|
330
|
+
>;
|
|
331
|
+
/**
|
|
332
|
+
* A Fission was created and allocated from its source Lock.
|
|
333
|
+
**/
|
|
334
|
+
FissionCreated: AugmentedEvent<
|
|
335
|
+
ApiType,
|
|
336
|
+
[
|
|
337
|
+
accountId: AccountId32,
|
|
338
|
+
fissionId: u64,
|
|
339
|
+
liquidId: u64,
|
|
340
|
+
lockId: u64,
|
|
341
|
+
satoshis: u64,
|
|
342
|
+
microgonsAtTargetPerBtc: u128,
|
|
343
|
+
liquidityPromised: u128,
|
|
344
|
+
],
|
|
345
|
+
{
|
|
346
|
+
accountId: AccountId32;
|
|
347
|
+
fissionId: u64;
|
|
348
|
+
liquidId: u64;
|
|
349
|
+
lockId: u64;
|
|
350
|
+
satoshis: u64;
|
|
351
|
+
microgonsAtTargetPerBtc: u128;
|
|
352
|
+
liquidityPromised: u128;
|
|
353
|
+
}
|
|
354
|
+
>;
|
|
355
|
+
/**
|
|
356
|
+
* A Fission ratchet changed its target-normalized BTC value and liability.
|
|
357
|
+
**/
|
|
358
|
+
FissionRatcheted: AugmentedEvent<
|
|
359
|
+
ApiType,
|
|
360
|
+
[
|
|
361
|
+
accountId: AccountId32,
|
|
362
|
+
fissionId: u64,
|
|
363
|
+
ratchetNumber: u32,
|
|
364
|
+
microgonsAtTargetPerBtc: u128,
|
|
365
|
+
liquidityPromised: u128,
|
|
366
|
+
amountMinted: u128,
|
|
367
|
+
amountBurned: u128,
|
|
368
|
+
],
|
|
369
|
+
{
|
|
370
|
+
accountId: AccountId32;
|
|
371
|
+
fissionId: u64;
|
|
372
|
+
ratchetNumber: u32;
|
|
373
|
+
microgonsAtTargetPerBtc: u128;
|
|
374
|
+
liquidityPromised: u128;
|
|
375
|
+
amountMinted: u128;
|
|
376
|
+
amountBurned: u128;
|
|
377
|
+
}
|
|
378
|
+
>;
|
|
379
|
+
};
|
|
313
380
|
bitcoinLocks: {
|
|
314
381
|
BitcoinCosignPastDue: AugmentedEvent<
|
|
315
382
|
ApiType,
|
|
316
|
-
[
|
|
317
|
-
|
|
383
|
+
[
|
|
384
|
+
lockId: u64,
|
|
385
|
+
vaultId: u32,
|
|
386
|
+
releaseNumber: u32,
|
|
387
|
+
compensationAmount: u128,
|
|
388
|
+
compensatedAccountId: AccountId32,
|
|
389
|
+
],
|
|
390
|
+
{
|
|
391
|
+
lockId: u64;
|
|
392
|
+
vaultId: u32;
|
|
393
|
+
releaseNumber: u32;
|
|
394
|
+
compensationAmount: u128;
|
|
395
|
+
compensatedAccountId: AccountId32;
|
|
396
|
+
}
|
|
318
397
|
>;
|
|
319
398
|
BitcoinLockBurned: AugmentedEvent<
|
|
320
399
|
ApiType,
|
|
321
|
-
[
|
|
322
|
-
{
|
|
400
|
+
[lockId: u64, vaultId: u32, wasUtxoSpent: bool],
|
|
401
|
+
{ lockId: u64; vaultId: u32; wasUtxoSpent: bool }
|
|
323
402
|
>;
|
|
324
403
|
BitcoinLockCreated: AugmentedEvent<
|
|
325
404
|
ApiType,
|
|
326
405
|
[
|
|
327
|
-
|
|
406
|
+
lockId: u64,
|
|
328
407
|
vaultId: u32,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
lockedTargetPrice: u128,
|
|
408
|
+
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
|
|
409
|
+
collateralRequired: u128,
|
|
332
410
|
accountId: AccountId32,
|
|
333
411
|
securityFee: u128,
|
|
334
412
|
],
|
|
335
413
|
{
|
|
336
|
-
|
|
414
|
+
lockId: u64;
|
|
337
415
|
vaultId: u32;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
lockedTargetPrice: u128;
|
|
416
|
+
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
|
|
417
|
+
collateralRequired: u128;
|
|
341
418
|
accountId: AccountId32;
|
|
342
419
|
securityFee: u128;
|
|
343
420
|
}
|
|
344
421
|
>;
|
|
345
422
|
BitcoinLockFlexibleChanged: AugmentedEvent<
|
|
346
423
|
ApiType,
|
|
347
|
-
[
|
|
348
|
-
{
|
|
424
|
+
[lockId: u64, vaultId: u32, isFlexible: bool],
|
|
425
|
+
{ lockId: u64; vaultId: u32; isFlexible: bool }
|
|
349
426
|
>;
|
|
350
|
-
|
|
427
|
+
BitcoinLockResecuritized: AugmentedEvent<
|
|
351
428
|
ApiType,
|
|
352
429
|
[
|
|
353
|
-
|
|
430
|
+
lockId: u64,
|
|
354
431
|
vaultId: u32,
|
|
355
|
-
|
|
356
|
-
oldTargetPrice: u128,
|
|
357
|
-
securityFee: u128,
|
|
358
|
-
newTargetPrice: u128,
|
|
359
|
-
amountBurned: u128,
|
|
432
|
+
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
|
|
360
433
|
accountId: AccountId32,
|
|
361
434
|
],
|
|
362
435
|
{
|
|
363
|
-
|
|
436
|
+
lockId: u64;
|
|
364
437
|
vaultId: u32;
|
|
365
|
-
|
|
366
|
-
oldTargetPrice: u128;
|
|
367
|
-
securityFee: u128;
|
|
368
|
-
newTargetPrice: u128;
|
|
369
|
-
amountBurned: u128;
|
|
438
|
+
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
|
|
370
439
|
accountId: AccountId32;
|
|
371
440
|
}
|
|
372
441
|
>;
|
|
373
442
|
BitcoinSpentAfterRelease: AugmentedEvent<
|
|
374
443
|
ApiType,
|
|
375
|
-
[
|
|
376
|
-
{
|
|
444
|
+
[lockId: u64, vaultId: u32, releaseNumber: u32, bitcoinHeight: u64],
|
|
445
|
+
{ lockId: u64; vaultId: u32; releaseNumber: u32; bitcoinHeight: u64 }
|
|
377
446
|
>;
|
|
378
447
|
BitcoinUtxoCosigned: AugmentedEvent<
|
|
379
448
|
ApiType,
|
|
380
|
-
[
|
|
381
|
-
{
|
|
449
|
+
[lockId: u64, vaultId: u32, releaseNumber: u32, signatures: Vec<Bytes>],
|
|
450
|
+
{ lockId: u64; vaultId: u32; releaseNumber: u32; signatures: Vec<Bytes> }
|
|
382
451
|
>;
|
|
383
452
|
BitcoinUtxoCosignRequested: AugmentedEvent<
|
|
384
453
|
ApiType,
|
|
385
|
-
[
|
|
386
|
-
{
|
|
454
|
+
[lockId: u64, vaultId: u32, releaseNumber: u32],
|
|
455
|
+
{ lockId: u64; vaultId: u32; releaseNumber: u32 }
|
|
387
456
|
>;
|
|
388
457
|
/**
|
|
389
458
|
* An error occurred while refunding an overdue cosigned bitcoin lock
|
|
390
459
|
**/
|
|
391
460
|
CosignOverdueError: AugmentedEvent<
|
|
392
461
|
ApiType,
|
|
393
|
-
[
|
|
394
|
-
{
|
|
462
|
+
[lockId: u64, error: SpRuntimeDispatchError],
|
|
463
|
+
{ lockId: u64; error: SpRuntimeDispatchError }
|
|
395
464
|
>;
|
|
396
465
|
/**
|
|
397
466
|
* An error occurred while completing a lock
|
|
398
467
|
**/
|
|
399
468
|
LockExpirationError: AugmentedEvent<
|
|
400
469
|
ApiType,
|
|
401
|
-
[
|
|
402
|
-
{
|
|
470
|
+
[lockId: u64, error: SpRuntimeDispatchError],
|
|
471
|
+
{ lockId: u64; error: SpRuntimeDispatchError }
|
|
472
|
+
>;
|
|
473
|
+
/**
|
|
474
|
+
* Not all orphaned UTXOs for a retired Lock fit in the cleanup schedule.
|
|
475
|
+
**/
|
|
476
|
+
OrphanedUtxoCleanupScheduleOverflow: AugmentedEvent<
|
|
477
|
+
ApiType,
|
|
478
|
+
[accountId: AccountId32, lockId: u64, expirationFrame: u64],
|
|
479
|
+
{ accountId: AccountId32; lockId: u64; expirationFrame: u64 }
|
|
403
480
|
>;
|
|
404
481
|
OrphanedUtxoCosigned: AugmentedEvent<
|
|
405
482
|
ApiType,
|
|
406
483
|
[
|
|
407
|
-
|
|
484
|
+
lockId: u64,
|
|
408
485
|
utxoRef: ArgonPrimitivesBitcoinUtxoRef,
|
|
409
486
|
vaultId: u32,
|
|
410
487
|
accountId: AccountId32,
|
|
411
488
|
signature: Bytes,
|
|
412
489
|
],
|
|
413
490
|
{
|
|
414
|
-
|
|
491
|
+
lockId: u64;
|
|
415
492
|
utxoRef: ArgonPrimitivesBitcoinUtxoRef;
|
|
416
493
|
vaultId: u32;
|
|
417
494
|
accountId: AccountId32;
|
|
418
495
|
signature: Bytes;
|
|
419
496
|
}
|
|
420
497
|
>;
|
|
498
|
+
/**
|
|
499
|
+
* An orphaned UTXO expiration could not reconcile its pending Vault cosign state.
|
|
500
|
+
**/
|
|
501
|
+
OrphanedUtxoExpirationError: AugmentedEvent<
|
|
502
|
+
ApiType,
|
|
503
|
+
[
|
|
504
|
+
accountId: AccountId32,
|
|
505
|
+
utxoRef: ArgonPrimitivesBitcoinUtxoRef,
|
|
506
|
+
error: SpRuntimeDispatchError,
|
|
507
|
+
],
|
|
508
|
+
{
|
|
509
|
+
accountId: AccountId32;
|
|
510
|
+
utxoRef: ArgonPrimitivesBitcoinUtxoRef;
|
|
511
|
+
error: SpRuntimeDispatchError;
|
|
512
|
+
}
|
|
513
|
+
>;
|
|
421
514
|
OrphanedUtxoReceived: AugmentedEvent<
|
|
422
515
|
ApiType,
|
|
423
|
-
[
|
|
424
|
-
{
|
|
516
|
+
[lockId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, satoshis: u64],
|
|
517
|
+
{ lockId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; vaultId: u32; satoshis: u64 }
|
|
425
518
|
>;
|
|
426
519
|
OrphanedUtxoReleaseRequested: AugmentedEvent<
|
|
427
520
|
ApiType,
|
|
428
|
-
[
|
|
521
|
+
[lockId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, vaultId: u32, accountId: AccountId32],
|
|
429
522
|
{
|
|
430
|
-
|
|
523
|
+
lockId: u64;
|
|
431
524
|
utxoRef: ArgonPrimitivesBitcoinUtxoRef;
|
|
432
525
|
vaultId: u32;
|
|
433
526
|
accountId: AccountId32;
|
|
434
527
|
}
|
|
435
528
|
>;
|
|
436
|
-
SecuritizationIncreased: AugmentedEvent<
|
|
437
|
-
ApiType,
|
|
438
|
-
[utxoId: u64, vaultId: u32, newSatoshis: u64, accountId: AccountId32],
|
|
439
|
-
{ utxoId: u64; vaultId: u32; newSatoshis: u64; accountId: AccountId32 }
|
|
440
|
-
>;
|
|
441
529
|
};
|
|
442
530
|
bitcoinUtxos: {
|
|
443
531
|
UtxoDetected: AugmentedEvent<
|
|
444
532
|
ApiType,
|
|
445
533
|
[
|
|
446
|
-
|
|
534
|
+
lockId: u64,
|
|
447
535
|
utxoRef: ArgonPrimitivesBitcoinUtxoRef,
|
|
448
536
|
satoshisReceived: u64,
|
|
449
537
|
bitcoinHeight: u64,
|
|
450
538
|
],
|
|
451
539
|
{
|
|
452
|
-
|
|
540
|
+
lockId: u64;
|
|
453
541
|
utxoRef: ArgonPrimitivesBitcoinUtxoRef;
|
|
454
542
|
satoshisReceived: u64;
|
|
455
543
|
bitcoinHeight: u64;
|
|
@@ -457,20 +545,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
457
545
|
>;
|
|
458
546
|
UtxoDetectedError: AugmentedEvent<
|
|
459
547
|
ApiType,
|
|
460
|
-
[
|
|
461
|
-
{
|
|
548
|
+
[lockId: u64, error: SpRuntimeDispatchError],
|
|
549
|
+
{ lockId: u64; error: SpRuntimeDispatchError }
|
|
462
550
|
>;
|
|
463
551
|
UtxoSpent: AugmentedEvent<
|
|
464
552
|
ApiType,
|
|
465
|
-
[
|
|
466
|
-
{
|
|
553
|
+
[lockId: u64, utxoRef: ArgonPrimitivesBitcoinUtxoRef, blockHeight: u64],
|
|
554
|
+
{ lockId: u64; utxoRef: ArgonPrimitivesBitcoinUtxoRef; blockHeight: u64 }
|
|
467
555
|
>;
|
|
468
556
|
UtxoSpentError: AugmentedEvent<
|
|
469
557
|
ApiType,
|
|
470
|
-
[
|
|
471
|
-
{
|
|
558
|
+
[lockId: u64, error: SpRuntimeDispatchError],
|
|
559
|
+
{ lockId: u64; error: SpRuntimeDispatchError }
|
|
472
560
|
>;
|
|
473
|
-
UtxoUnwatched: AugmentedEvent<ApiType, [
|
|
561
|
+
UtxoUnwatched: AugmentedEvent<ApiType, [lockId: u64], { lockId: u64 }>;
|
|
474
562
|
};
|
|
475
563
|
blockRewards: {
|
|
476
564
|
RewardCreated: AugmentedEvent<
|
|
@@ -1083,8 +1171,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1083
1171
|
**/
|
|
1084
1172
|
BitcoinMint: AugmentedEvent<
|
|
1085
1173
|
ApiType,
|
|
1086
|
-
[accountId: AccountId32,
|
|
1087
|
-
{ accountId: AccountId32;
|
|
1174
|
+
[accountId: AccountId32, fissionId: u64, lockId: Option<u64>, amount: u128],
|
|
1175
|
+
{ accountId: AccountId32; fissionId: u64; lockId: Option<u64>; amount: u128 }
|
|
1088
1176
|
>;
|
|
1089
1177
|
/**
|
|
1090
1178
|
* The amount of microgons minted for mining. NOTE: accounts below Existential Deposit
|
|
@@ -1104,14 +1192,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1104
1192
|
[
|
|
1105
1193
|
mintType: PalletMintMintType,
|
|
1106
1194
|
accountId: AccountId32,
|
|
1107
|
-
|
|
1195
|
+
fissionId: Option<u64>,
|
|
1196
|
+
lockId: Option<u64>,
|
|
1108
1197
|
amount: u128,
|
|
1109
1198
|
error: SpRuntimeDispatchError,
|
|
1110
1199
|
],
|
|
1111
1200
|
{
|
|
1112
1201
|
mintType: PalletMintMintType;
|
|
1113
1202
|
accountId: AccountId32;
|
|
1114
|
-
|
|
1203
|
+
fissionId: Option<u64>;
|
|
1204
|
+
lockId: Option<u64>;
|
|
1115
1205
|
amount: u128;
|
|
1116
1206
|
error: SpRuntimeDispatchError;
|
|
1117
1207
|
}
|
|
@@ -2085,30 +2175,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2085
2175
|
[vaultId: u32, operatorAccountId: AccountId32, amount: u128],
|
|
2086
2176
|
{ vaultId: u32; operatorAccountId: AccountId32; amount: u128 }
|
|
2087
2177
|
>;
|
|
2088
|
-
FundLockCanceled: AugmentedEvent<
|
|
2089
|
-
ApiType,
|
|
2090
|
-
[vaultId: u32, amount: u128],
|
|
2091
|
-
{ vaultId: u32; amount: u128 }
|
|
2092
|
-
>;
|
|
2093
|
-
FundsLocked: AugmentedEvent<
|
|
2094
|
-
ApiType,
|
|
2095
|
-
[
|
|
2096
|
-
vaultId: u32,
|
|
2097
|
-
locker: AccountId32,
|
|
2098
|
-
liquidityPromised: u128,
|
|
2099
|
-
isRatchet: bool,
|
|
2100
|
-
feeRevenue: u128,
|
|
2101
|
-
didUseFeeCoupon: bool,
|
|
2102
|
-
],
|
|
2103
|
-
{
|
|
2104
|
-
vaultId: u32;
|
|
2105
|
-
locker: AccountId32;
|
|
2106
|
-
liquidityPromised: u128;
|
|
2107
|
-
isRatchet: bool;
|
|
2108
|
-
feeRevenue: u128;
|
|
2109
|
-
didUseFeeCoupon: bool;
|
|
2110
|
-
}
|
|
2111
|
-
>;
|
|
2112
2178
|
FundsReleased: AugmentedEvent<
|
|
2113
2179
|
ApiType,
|
|
2114
2180
|
[vaultId: u32, securitization: u128],
|
|
@@ -2134,6 +2200,28 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2134
2200
|
[vaultId: u32, reservedSecuritizationSpace: u128],
|
|
2135
2201
|
{ vaultId: u32; reservedSecuritizationSpace: u128 }
|
|
2136
2202
|
>;
|
|
2203
|
+
SecuritizationReserved: AugmentedEvent<
|
|
2204
|
+
ApiType,
|
|
2205
|
+
[
|
|
2206
|
+
vaultId: u32,
|
|
2207
|
+
locker: AccountId32,
|
|
2208
|
+
securitizationCoverageMicrogons: u128,
|
|
2209
|
+
feeRevenue: u128,
|
|
2210
|
+
didUseFeeCoupon: bool,
|
|
2211
|
+
],
|
|
2212
|
+
{
|
|
2213
|
+
vaultId: u32;
|
|
2214
|
+
locker: AccountId32;
|
|
2215
|
+
securitizationCoverageMicrogons: u128;
|
|
2216
|
+
feeRevenue: u128;
|
|
2217
|
+
didUseFeeCoupon: bool;
|
|
2218
|
+
}
|
|
2219
|
+
>;
|
|
2220
|
+
SecuritizationReturned: AugmentedEvent<
|
|
2221
|
+
ApiType,
|
|
2222
|
+
[vaultId: u32, amount: u128],
|
|
2223
|
+
{ vaultId: u32; amount: u128 }
|
|
2224
|
+
>;
|
|
2137
2225
|
TreasuryRecordingError: AugmentedEvent<
|
|
2138
2226
|
ApiType,
|
|
2139
2227
|
[vaultId: u32, frameId: u64, vaultEarnings: u128, error: SpRuntimeDispatchError],
|