@argonprotocol/mainchain 1.4.12-dev.ece9349b → 1.4.13-dev.479a6416
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/browser/index.d.ts +571 -322
- package/browser/index.js +11 -8
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +27 -8
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +571 -322
- package/lib/index.d.ts +571 -322
- package/lib/index.js +27 -8
- package/lib/index.js.map +1 -1
- package/package.json +13 -10
- package/src/interfaces/augment-api-consts.ts +32 -12
- package/src/interfaces/augment-api-errors.ts +25 -13
- package/src/interfaces/augment-api-events.ts +74 -18
- package/src/interfaces/augment-api-query.ts +45 -19
- package/src/interfaces/augment-api-rpc.ts +23 -3
- package/src/interfaces/augment-api-runtime.ts +1 -1
- package/src/interfaces/augment-api-tx.ts +59 -14
- package/src/interfaces/augment-types.ts +9 -2
- package/src/interfaces/lookup.ts +333 -242
- package/src/interfaces/registry.ts +16 -6
- package/src/interfaces/types-lookup.ts +373 -253
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13-dev.479a6416",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"tsc": "yarn workspace @argonprotocol/ethereum-contracts build && yarn generate:contract-declarations && tsup && yarn validate:package",
|
|
22
22
|
"tsup": "yarn tsc",
|
|
23
23
|
"validate:package": "tsx src/scripts/validatePackage.ts",
|
|
24
|
+
"backfill:flexible-bond-metrics": "tsx src/scripts/backfillFlexibleBondMetrics.ts",
|
|
24
25
|
"watch": "yarn generate:contract-declarations && tsup --watch",
|
|
25
26
|
"typecheck": "tsc --noEmit -p tsconfig.test.json"
|
|
26
27
|
},
|
|
@@ -52,13 +53,13 @@
|
|
|
52
53
|
"dependencies": {
|
|
53
54
|
"@ethereumjs/block": "^10.1.1",
|
|
54
55
|
"@ethereumjs/mpt": "^10.1.1",
|
|
55
|
-
"@polkadot/api": "^
|
|
56
|
-
"@polkadot/api-base": "^
|
|
56
|
+
"@polkadot/api": "^17.0.1",
|
|
57
|
+
"@polkadot/api-base": "^17.0.1",
|
|
57
58
|
"@polkadot/keyring": "^14.0.3",
|
|
58
|
-
"@polkadot/rpc-core": "^
|
|
59
|
-
"@polkadot/rpc-provider": "^
|
|
60
|
-
"@polkadot/types": "^
|
|
61
|
-
"@polkadot/types-codec": "^
|
|
59
|
+
"@polkadot/rpc-core": "^17.0.1",
|
|
60
|
+
"@polkadot/rpc-provider": "^17.0.1",
|
|
61
|
+
"@polkadot/types": "^17.0.1",
|
|
62
|
+
"@polkadot/types-codec": "^17.0.1",
|
|
62
63
|
"@polkadot/util": "^14.0.3",
|
|
63
64
|
"@polkadot/util-crypto": "^14.0.3",
|
|
64
65
|
"bignumber.js": "^9.3.1",
|
|
@@ -67,15 +68,17 @@
|
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
70
|
-
"@argonprotocol/testing": "1.4.
|
|
71
|
-
"@polkadot/typegen": "^
|
|
71
|
+
"@argonprotocol/testing": "1.4.13-dev.479a6416",
|
|
72
|
+
"@polkadot/typegen": "^17.0.1",
|
|
72
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
73
74
|
"@types/node": "^20",
|
|
75
|
+
"@types/ws": "^8.18.1",
|
|
74
76
|
"shx": "^0.4.0",
|
|
75
77
|
"tsup": "^8.5.0",
|
|
76
78
|
"tsx": "^4.20.4",
|
|
77
79
|
"typescript": "^5.9.2",
|
|
78
|
-
"vitest": "^5.0.0"
|
|
80
|
+
"vitest": "^5.0.0",
|
|
81
|
+
"ws": "^8.18.0"
|
|
79
82
|
},
|
|
80
83
|
"packageManager": "yarn@4.1.0"
|
|
81
84
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// import type lookup before we augment - in some environments
|
|
4
4
|
// this is required to allow for ambient/previous definitions
|
|
5
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/consts';
|
|
6
6
|
|
|
7
7
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
8
8
|
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -590,10 +590,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
590
590
|
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
591
591
|
};
|
|
592
592
|
treasury: {
|
|
593
|
+
/**
|
|
594
|
+
* Default percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
595
|
+
**/
|
|
596
|
+
defaultTargetBitcoinPercent: Percent & AugmentedConst<ApiType>;
|
|
593
597
|
/**
|
|
594
598
|
* The maximum number of active Argonot bond lots.
|
|
595
599
|
**/
|
|
596
600
|
maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
|
|
601
|
+
/**
|
|
602
|
+
* Maximum live Argon bond lots while direct frame payouts iterate every lot.
|
|
603
|
+
**/
|
|
604
|
+
maxArgonBondLots: u32 & AugmentedConst<ApiType>;
|
|
597
605
|
/**
|
|
598
606
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
599
607
|
**/
|
|
@@ -602,10 +610,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
602
610
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
603
611
|
**/
|
|
604
612
|
maxPendingUnlocksPerFrame: u32 & AugmentedConst<ApiType>;
|
|
605
|
-
/**
|
|
606
|
-
* The maximum number of accepted bond lots in a vault's accepted bond-lot list.
|
|
607
|
-
**/
|
|
608
|
-
maxTreasuryContributors: u32 & AugmentedConst<ApiType>;
|
|
609
613
|
/**
|
|
610
614
|
* The maximum number of vaults that can participate in one frame's locked vault capital.
|
|
611
615
|
**/
|
|
@@ -619,13 +623,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
619
623
|
**/
|
|
620
624
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
621
625
|
/**
|
|
622
|
-
*
|
|
626
|
+
* Maximum percent paid to Argon bonds when the network target is filled.
|
|
627
|
+
**/
|
|
628
|
+
percentForArgonBondPool: Percent & AugmentedConst<ApiType>;
|
|
629
|
+
/**
|
|
630
|
+
* Percent reserved for Bitcoin Liquids and burned in this release.
|
|
631
|
+
**/
|
|
632
|
+
percentForBitcoinLiquidPool: Percent & AugmentedConst<ApiType>;
|
|
633
|
+
/**
|
|
634
|
+
* Percent reserved for future mining-operator rewards and burned in this release.
|
|
635
|
+
**/
|
|
636
|
+
percentForMiningOperatorPool: Percent & AugmentedConst<ApiType>;
|
|
637
|
+
/**
|
|
638
|
+
* Percent of the full bid pool paid to Argonot Stakes.
|
|
623
639
|
**/
|
|
624
|
-
|
|
640
|
+
percentForStakePool: Percent & AugmentedConst<ApiType>;
|
|
625
641
|
/**
|
|
626
642
|
* Percent of the bid pool reserved for treasury reserves.
|
|
627
643
|
**/
|
|
628
644
|
percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
|
|
645
|
+
/**
|
|
646
|
+
* Maximum percent paid to vaults when the network target is filled.
|
|
647
|
+
**/
|
|
648
|
+
percentForVaultPool: Percent & AugmentedConst<ApiType>;
|
|
629
649
|
/**
|
|
630
650
|
* The number of frames a releasing bond lot remains held before release.
|
|
631
651
|
**/
|
|
@@ -663,17 +683,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
663
683
|
**/
|
|
664
684
|
maxVaults: u32 & AugmentedConst<ApiType>;
|
|
665
685
|
/**
|
|
666
|
-
*
|
|
667
|
-
**/
|
|
668
|
-
operationalMinimumVaultLockTicks: u64 & AugmentedConst<ApiType>;
|
|
669
|
-
/**
|
|
670
|
-
* Minimum vault securitization required while the operational floor lock is active.
|
|
686
|
+
* Vault securitization committed when the operator becomes operational.
|
|
671
687
|
**/
|
|
672
688
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
673
689
|
/**
|
|
674
690
|
* The number of frames within which revenue must be collected
|
|
675
691
|
**/
|
|
676
692
|
revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
|
|
693
|
+
/**
|
|
694
|
+
* Bitcoin blocks in the securitization exit notice period.
|
|
695
|
+
**/
|
|
696
|
+
securitizationExitNoticeBlocks: u64 & AugmentedConst<ApiType>;
|
|
677
697
|
};
|
|
678
698
|
} // AugmentedConsts
|
|
679
699
|
} // declare module
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import
|
|
6
|
+
import '@polkadot/api-base/types/errors';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
9
9
|
|
|
@@ -161,7 +161,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
161
161
|
**/
|
|
162
162
|
BitcoinPubkeyUnableToBeDecoded: AugmentedError<ApiType>;
|
|
163
163
|
/**
|
|
164
|
-
* A
|
|
164
|
+
* A configured or requested Lock amount is below the required minimum.
|
|
165
165
|
**/
|
|
166
166
|
BitcoinReleaseChangeBelowMinimum: AugmentedError<ApiType>;
|
|
167
167
|
/**
|
|
@@ -1361,10 +1361,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1361
1361
|
* The bond lot is already scheduled for release.
|
|
1362
1362
|
**/
|
|
1363
1363
|
BondLotAlreadyReleasing: AugmentedError<ApiType>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Historical metrics can only be backfilled for vault bond lots.
|
|
1366
|
+
**/
|
|
1367
|
+
BondLotCannotBeBackfilled: AugmentedError<ApiType>;
|
|
1364
1368
|
/**
|
|
1365
1369
|
* Only an active vault bond owned by its operator can be used as flexible.
|
|
1366
1370
|
**/
|
|
1367
1371
|
BondLotCannotBeFlexible: AugmentedError<ApiType>;
|
|
1372
|
+
/**
|
|
1373
|
+
* The lot's metrics changed since the backfill was calculated.
|
|
1374
|
+
**/
|
|
1375
|
+
BondLotMetricsChanged: AugmentedError<ApiType>;
|
|
1368
1376
|
/**
|
|
1369
1377
|
* The bond lot could not be found.
|
|
1370
1378
|
**/
|
|
@@ -1381,10 +1389,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1381
1389
|
* The bonus approval nonce has already been consumed or superseded.
|
|
1382
1390
|
**/
|
|
1383
1391
|
BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
|
|
1384
|
-
/**
|
|
1385
|
-
* The approved bonus plus the vault's profit sharing exceeds 100%.
|
|
1386
|
-
**/
|
|
1387
|
-
BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
|
|
1388
1392
|
/**
|
|
1389
1393
|
* The bonus approval already expired.
|
|
1390
1394
|
**/
|
|
@@ -1398,21 +1402,29 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1398
1402
|
**/
|
|
1399
1403
|
BonusApprovalWrongVault: AugmentedError<ApiType>;
|
|
1400
1404
|
/**
|
|
1401
|
-
* The vault doesn't have enough
|
|
1405
|
+
* The vault doesn't have enough raw securitization to support this bond purchase.
|
|
1402
1406
|
**/
|
|
1403
1407
|
InsufficientBondSpace: AugmentedError<ApiType>;
|
|
1404
1408
|
/**
|
|
1405
1409
|
* An internal error occurred.
|
|
1406
1410
|
**/
|
|
1407
1411
|
InternalError: AugmentedError<ApiType>;
|
|
1412
|
+
/**
|
|
1413
|
+
* The proposed backfill would reduce or corrupt the lot's earnings metrics.
|
|
1414
|
+
**/
|
|
1415
|
+
InvalidBondLotMetrics: AugmentedError<ApiType>;
|
|
1408
1416
|
/**
|
|
1409
1417
|
* The bonus approval signature is invalid or unauthorized.
|
|
1410
1418
|
**/
|
|
1411
1419
|
InvalidBonusApprovalSignature: AugmentedError<ApiType>;
|
|
1412
1420
|
/**
|
|
1413
|
-
* The
|
|
1421
|
+
* The network has reached the direct-payout vault bond lot admission limit.
|
|
1422
|
+
**/
|
|
1423
|
+
MaxArgonBondLotsExceeded: AugmentedError<ApiType>;
|
|
1424
|
+
/**
|
|
1425
|
+
* The vault already has the maximum number of flexible bond lots.
|
|
1414
1426
|
**/
|
|
1415
|
-
|
|
1427
|
+
MaxFlexibleBondLotsExceeded: AugmentedError<ApiType>;
|
|
1416
1428
|
/**
|
|
1417
1429
|
* Too many bond lot releases are scheduled for the same frame.
|
|
1418
1430
|
**/
|
|
@@ -1461,13 +1473,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1461
1473
|
**/
|
|
1462
1474
|
AccountBelowMinimumBalance: AugmentedError<ApiType>;
|
|
1463
1475
|
/**
|
|
1464
|
-
*
|
|
1476
|
+
* Held Argonots cannot be reduced below the amount already crosschain-encumbered.
|
|
1465
1477
|
**/
|
|
1466
|
-
|
|
1478
|
+
ArgonotsBelowEncumberedBacking: AugmentedError<ApiType>;
|
|
1467
1479
|
/**
|
|
1468
|
-
*
|
|
1480
|
+
* Bitcoin conversion to compressed pubkey failed
|
|
1469
1481
|
**/
|
|
1470
|
-
|
|
1482
|
+
BitcoinConversionFailed: AugmentedError<ApiType>;
|
|
1471
1483
|
/**
|
|
1472
1484
|
* A funding change is already scheduled
|
|
1473
1485
|
**/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import
|
|
6
|
+
import '@polkadot/api-base/types/events';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
9
9
|
import type {
|
|
@@ -21,7 +21,7 @@ import type {
|
|
|
21
21
|
u64,
|
|
22
22
|
} from '@polkadot/types-codec';
|
|
23
23
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
24
|
-
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
|
|
24
|
+
import type { AccountId32, H160, H256, Percent } from '@polkadot/types/interfaces/runtime';
|
|
25
25
|
import type {
|
|
26
26
|
ArgonNotaryAuditErrorVerifyError,
|
|
27
27
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
@@ -395,11 +395,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
395
395
|
compensatedAccountId: AccountId32;
|
|
396
396
|
}
|
|
397
397
|
>;
|
|
398
|
-
BitcoinLockBurned: AugmentedEvent<
|
|
399
|
-
ApiType,
|
|
400
|
-
[lockId: u64, vaultId: u32, wasUtxoSpent: bool],
|
|
401
|
-
{ lockId: u64; vaultId: u32; wasUtxoSpent: bool }
|
|
402
|
-
>;
|
|
403
398
|
BitcoinLockCreated: AugmentedEvent<
|
|
404
399
|
ApiType,
|
|
405
400
|
[
|
|
@@ -439,6 +434,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
439
434
|
accountId: AccountId32;
|
|
440
435
|
}
|
|
441
436
|
>;
|
|
437
|
+
BitcoinLockTerminated: AugmentedEvent<
|
|
438
|
+
ApiType,
|
|
439
|
+
[lockId: u64, vaultId: u32, wasUtxoSpent: bool, burnedArgons: u128],
|
|
440
|
+
{ lockId: u64; vaultId: u32; wasUtxoSpent: bool; burnedArgons: u128 }
|
|
441
|
+
>;
|
|
442
442
|
BitcoinSpentAfterRelease: AugmentedEvent<
|
|
443
443
|
ApiType,
|
|
444
444
|
[lockId: u64, vaultId: u32, releaseNumber: u32, bitcoinHeight: u64],
|
|
@@ -1916,6 +1916,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1916
1916
|
>;
|
|
1917
1917
|
};
|
|
1918
1918
|
treasury: {
|
|
1919
|
+
/**
|
|
1920
|
+
* Historical flexible-bond earnings were attributed to a surviving vault lot. No funds
|
|
1921
|
+
* move.
|
|
1922
|
+
**/
|
|
1923
|
+
BondLotEarningsBackfilled: AugmentedEvent<
|
|
1924
|
+
ApiType,
|
|
1925
|
+
[bondLotId: u64, addedFrames: u32, addedEarnings: u128],
|
|
1926
|
+
{ bondLotId: u64; addedFrames: u32; addedEarnings: u128 }
|
|
1927
|
+
>;
|
|
1919
1928
|
BondLotFlexibilityChanged: AugmentedEvent<
|
|
1920
1929
|
ApiType,
|
|
1921
1930
|
[vaultId: u32, bondLotId: u64, isFlexible: bool],
|
|
@@ -1981,6 +1990,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1981
1990
|
reason: PalletTreasuryBondReleaseReason;
|
|
1982
1991
|
}
|
|
1983
1992
|
>;
|
|
1993
|
+
/**
|
|
1994
|
+
* A fixed or unearned reward allocation could not be burned.
|
|
1995
|
+
**/
|
|
1996
|
+
CouldNotBurnRewardAllocation: AugmentedEvent<
|
|
1997
|
+
ApiType,
|
|
1998
|
+
[frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError],
|
|
1999
|
+
{ frameId: u64; amount: u128; dispatchError: SpRuntimeDispatchError }
|
|
2000
|
+
>;
|
|
1984
2001
|
/**
|
|
1985
2002
|
* An error occurred while paying frame earnings for an Argonot bond lot.
|
|
1986
2003
|
**/
|
|
@@ -2070,18 +2087,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2070
2087
|
[
|
|
2071
2088
|
frameId: u64,
|
|
2072
2089
|
bidPoolDistributed: u128,
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2090
|
+
stakePoolDistributed: u128,
|
|
2091
|
+
argonBondPoolDistributed: u128,
|
|
2092
|
+
vaultPoolDistributed: u128,
|
|
2093
|
+
burned: u128,
|
|
2076
2094
|
treasuryReserves: u128,
|
|
2077
2095
|
participatingVaults: u32,
|
|
2078
2096
|
],
|
|
2079
2097
|
{
|
|
2080
2098
|
frameId: u64;
|
|
2081
2099
|
bidPoolDistributed: u128;
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2100
|
+
stakePoolDistributed: u128;
|
|
2101
|
+
argonBondPoolDistributed: u128;
|
|
2102
|
+
vaultPoolDistributed: u128;
|
|
2103
|
+
burned: u128;
|
|
2085
2104
|
treasuryReserves: u128;
|
|
2086
2105
|
participatingVaults: u32;
|
|
2087
2106
|
}
|
|
@@ -2091,14 +2110,19 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2091
2110
|
**/
|
|
2092
2111
|
FrameVaultCapitalLocked: AugmentedEvent<
|
|
2093
2112
|
ApiType,
|
|
2094
|
-
[frameId: u64,
|
|
2095
|
-
{ frameId: u64;
|
|
2113
|
+
[frameId: u64, totalActiveBonds: u128, participatingVaults: u32],
|
|
2114
|
+
{ frameId: u64; totalActiveBonds: u128; participatingVaults: u32 }
|
|
2096
2115
|
>;
|
|
2097
2116
|
ReservedBondSpaceChanged: AugmentedEvent<
|
|
2098
2117
|
ApiType,
|
|
2099
2118
|
[vaultId: u32, reservedBondSpace: u32],
|
|
2100
2119
|
{ vaultId: u32; reservedBondSpace: u32 }
|
|
2101
2120
|
>;
|
|
2121
|
+
RewardEconomicsConfigured: AugmentedEvent<
|
|
2122
|
+
ApiType,
|
|
2123
|
+
[targetBitcoinPercent: Percent],
|
|
2124
|
+
{ targetBitcoinPercent: Percent }
|
|
2125
|
+
>;
|
|
2102
2126
|
};
|
|
2103
2127
|
txPause: {
|
|
2104
2128
|
/**
|
|
@@ -2170,7 +2194,17 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2170
2194
|
>;
|
|
2171
2195
|
};
|
|
2172
2196
|
vaults: {
|
|
2173
|
-
|
|
2197
|
+
ArgonotExitReleased: AugmentedEvent<
|
|
2198
|
+
ApiType,
|
|
2199
|
+
[vaultId: u32, amount: u128],
|
|
2200
|
+
{ vaultId: u32; amount: u128 }
|
|
2201
|
+
>;
|
|
2202
|
+
ArgonotExitRequested: AugmentedEvent<
|
|
2203
|
+
ApiType,
|
|
2204
|
+
[vaultId: u32, amount: u128, noticeEndsAt: u64],
|
|
2205
|
+
{ vaultId: u32; amount: u128; noticeEndsAt: u64 }
|
|
2206
|
+
>;
|
|
2207
|
+
ArgonotSecuritizationSet: AugmentedEvent<
|
|
2174
2208
|
ApiType,
|
|
2175
2209
|
[vaultId: u32, operatorAccountId: AccountId32, amount: u128],
|
|
2176
2210
|
{ vaultId: u32; operatorAccountId: AccountId32; amount: u128 }
|
|
@@ -2192,14 +2226,36 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2192
2226
|
>;
|
|
2193
2227
|
LostBitcoinCompensated: AugmentedEvent<
|
|
2194
2228
|
ApiType,
|
|
2195
|
-
[
|
|
2196
|
-
|
|
2229
|
+
[
|
|
2230
|
+
vaultId: u32,
|
|
2231
|
+
beneficiary: AccountId32,
|
|
2232
|
+
toBeneficiary: u128,
|
|
2233
|
+
shortfall: u128,
|
|
2234
|
+
burned: u128,
|
|
2235
|
+
],
|
|
2236
|
+
{
|
|
2237
|
+
vaultId: u32;
|
|
2238
|
+
beneficiary: AccountId32;
|
|
2239
|
+
toBeneficiary: u128;
|
|
2240
|
+
shortfall: u128;
|
|
2241
|
+
burned: u128;
|
|
2242
|
+
}
|
|
2197
2243
|
>;
|
|
2198
2244
|
ReservedSecuritizationSpaceChanged: AugmentedEvent<
|
|
2199
2245
|
ApiType,
|
|
2200
2246
|
[vaultId: u32, reservedSecuritizationSpace: u128],
|
|
2201
2247
|
{ vaultId: u32; reservedSecuritizationSpace: u128 }
|
|
2202
2248
|
>;
|
|
2249
|
+
SecuritizationExitReleased: AugmentedEvent<
|
|
2250
|
+
ApiType,
|
|
2251
|
+
[vaultId: u32, amount: u128],
|
|
2252
|
+
{ vaultId: u32; amount: u128 }
|
|
2253
|
+
>;
|
|
2254
|
+
SecuritizationExitRequested: AugmentedEvent<
|
|
2255
|
+
ApiType,
|
|
2256
|
+
[vaultId: u32, amount: u128, noticeEndsAt: u64],
|
|
2257
|
+
{ vaultId: u32; amount: u128; noticeEndsAt: u64 }
|
|
2258
|
+
>;
|
|
2203
2259
|
SecuritizationReserved: AugmentedEvent<
|
|
2204
2260
|
ApiType,
|
|
2205
2261
|
[
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// import type lookup before we augment - in some environments
|
|
4
4
|
// this is required to allow for ambient/previous definitions
|
|
5
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/storage';
|
|
6
6
|
|
|
7
7
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
8
8
|
import type {
|
|
@@ -21,9 +21,10 @@ import type {
|
|
|
21
21
|
u8,
|
|
22
22
|
} from '@polkadot/types-codec';
|
|
23
23
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
24
|
-
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
|
|
24
|
+
import type { AccountId32, H160, H256, Percent } from '@polkadot/types/interfaces/runtime';
|
|
25
25
|
import type {
|
|
26
26
|
ArgonNotaryAuditErrorVerifyError,
|
|
27
|
+
ArgonPrimitivesAmountRankAmountRankKey,
|
|
27
28
|
ArgonPrimitivesBalanceChangeAccountOrigin,
|
|
28
29
|
ArgonPrimitivesBitcoinBitcoinBlock,
|
|
29
30
|
ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey,
|
|
@@ -50,7 +51,7 @@ import type {
|
|
|
50
51
|
ArgonPrimitivesProvidersBlockSealerInfo,
|
|
51
52
|
ArgonPrimitivesTickTicker,
|
|
52
53
|
ArgonPrimitivesVault,
|
|
53
|
-
|
|
54
|
+
ArgonPrimitivesVaultVaultArgonotSecuritization,
|
|
54
55
|
FrameSupportDispatchPerDispatchClassWeight,
|
|
55
56
|
FrameSupportTokensFungibleImbalance,
|
|
56
57
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
@@ -1201,13 +1202,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1201
1202
|
**/
|
|
1202
1203
|
miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
|
|
1203
1204
|
/**
|
|
1204
|
-
*
|
|
1205
|
+
* Bitcoin-minted Argons that have not been explicitly repaid through Fission settlement.
|
|
1205
1206
|
**/
|
|
1206
1207
|
mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1207
|
-
/**
|
|
1208
|
-
* The total amount of microgons minted for mining
|
|
1209
|
-
**/
|
|
1210
|
-
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1211
1208
|
/**
|
|
1212
1209
|
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1213
1210
|
**/
|
|
@@ -1796,12 +1793,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1796
1793
|
) => Observable<Option<Null>>,
|
|
1797
1794
|
[AccountId32, u64]
|
|
1798
1795
|
>;
|
|
1796
|
+
/**
|
|
1797
|
+
* Live Argon bond lot ids associated with a vault, including lots awaiting release. Direct
|
|
1798
|
+
* frame payouts iterate this admission-bounded index.
|
|
1799
|
+
**/
|
|
1800
|
+
bondLotIdsByVault: AugmentedQuery<
|
|
1801
|
+
ApiType,
|
|
1802
|
+
(
|
|
1803
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
1804
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
1805
|
+
) => Observable<Option<Null>>,
|
|
1806
|
+
[u32, u64]
|
|
1807
|
+
>;
|
|
1799
1808
|
/**
|
|
1800
1809
|
* The active bond state for a vault.
|
|
1801
1810
|
*
|
|
1802
|
-
*
|
|
1803
|
-
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1804
|
-
* aggregate.
|
|
1811
|
+
* Admission totals and flexible displacement; individual lots live in `BondLotById`.
|
|
1805
1812
|
**/
|
|
1806
1813
|
bondLotsByVault: AugmentedQuery<
|
|
1807
1814
|
ApiType,
|
|
@@ -1821,7 +1828,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1821
1828
|
/**
|
|
1822
1829
|
* The vault capital locked for the current frame.
|
|
1823
1830
|
*
|
|
1824
|
-
* Payout uses this
|
|
1831
|
+
* Payout uses this for the network bond total and participating vault positions.
|
|
1825
1832
|
**/
|
|
1826
1833
|
currentFrameVaultCapital: AugmentedQuery<
|
|
1827
1834
|
ApiType,
|
|
@@ -1865,10 +1872,19 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1865
1872
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1866
1873
|
[u64]
|
|
1867
1874
|
>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Configurable percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
1877
|
+
**/
|
|
1878
|
+
targetBitcoinPercent: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
|
|
1868
1879
|
/**
|
|
1869
1880
|
* The total number of active Argonot bonds in the active set.
|
|
1870
1881
|
**/
|
|
1871
1882
|
totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1883
|
+
/**
|
|
1884
|
+
* Live Argon bond lots, including those awaiting release; stakes have a separate admission
|
|
1885
|
+
* limit.
|
|
1886
|
+
**/
|
|
1887
|
+
totalArgonBondLots: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1872
1888
|
};
|
|
1873
1889
|
txPause: {
|
|
1874
1890
|
/**
|
|
@@ -1884,13 +1900,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1884
1900
|
};
|
|
1885
1901
|
vaults: {
|
|
1886
1902
|
/**
|
|
1887
|
-
*
|
|
1903
|
+
* Argonots held for the vault, with reward commitments and cross-chain encumbrances.
|
|
1888
1904
|
**/
|
|
1889
|
-
|
|
1905
|
+
argonotSecuritizationByVaultId: AugmentedQuery<
|
|
1890
1906
|
ApiType,
|
|
1891
1907
|
(
|
|
1892
1908
|
arg: u32 | AnyNumber | Uint8Array,
|
|
1893
|
-
) => Observable<Option<
|
|
1909
|
+
) => Observable<Option<ArgonPrimitivesVaultVaultArgonotSecuritization>>,
|
|
1894
1910
|
[u32]
|
|
1895
1911
|
>;
|
|
1896
1912
|
/**
|
|
@@ -1941,6 +1957,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1941
1957
|
[u32]
|
|
1942
1958
|
>;
|
|
1943
1959
|
revenuePerFrameByVaultCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1960
|
+
/**
|
|
1961
|
+
* Raw securitization across all open vaults, including those below the payout cutoff.
|
|
1962
|
+
**/
|
|
1963
|
+
totalVaultSecuritization: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1944
1964
|
/**
|
|
1945
1965
|
* The vaults that have funds releasing at a given bitcoin height
|
|
1946
1966
|
**/
|
|
@@ -1966,12 +1986,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1966
1986
|
[u32]
|
|
1967
1987
|
>;
|
|
1968
1988
|
/**
|
|
1969
|
-
*
|
|
1989
|
+
* Open vaults ordered by raw securitization (largest first), then vault ID.
|
|
1970
1990
|
**/
|
|
1971
|
-
|
|
1991
|
+
vaultSecuritizationRanks: AugmentedQuery<
|
|
1972
1992
|
ApiType,
|
|
1973
|
-
(
|
|
1974
|
-
|
|
1993
|
+
(
|
|
1994
|
+
arg:
|
|
1995
|
+
| ArgonPrimitivesAmountRankAmountRankKey
|
|
1996
|
+
| { descendingAmount?: any; orderedId?: any }
|
|
1997
|
+
| string
|
|
1998
|
+
| Uint8Array,
|
|
1999
|
+
) => Observable<Option<Null>>,
|
|
2000
|
+
[ArgonPrimitivesAmountRankAmountRankKey]
|
|
1975
2001
|
>;
|
|
1976
2002
|
/**
|
|
1977
2003
|
* Vault Bitcoin Xpub and current child counter by VaultId
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import
|
|
6
|
+
import '@polkadot/rpc-core/types/jsonrpc';
|
|
7
7
|
|
|
8
8
|
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
9
9
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
@@ -23,7 +23,11 @@ import type {
|
|
|
23
23
|
u64,
|
|
24
24
|
} from '@polkadot/types-codec';
|
|
25
25
|
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
|
26
|
-
import type {
|
|
26
|
+
import type {
|
|
27
|
+
ExtrinsicOrHash,
|
|
28
|
+
ExtrinsicStatus,
|
|
29
|
+
GeneratedSessionKeys,
|
|
30
|
+
} from '@polkadot/types/interfaces/author';
|
|
27
31
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
|
28
32
|
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
|
29
33
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -61,7 +65,7 @@ import type {
|
|
|
61
65
|
JustificationNotification,
|
|
62
66
|
ReportedRoundStates,
|
|
63
67
|
} from '@polkadot/types/interfaces/grandpa';
|
|
64
|
-
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
68
|
+
import type { MmrAncestryProof, MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
65
69
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
66
70
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
|
67
71
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
@@ -140,6 +144,12 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
140
144
|
* Generate new session keys and returns the corresponding public keys
|
|
141
145
|
**/
|
|
142
146
|
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
|
147
|
+
/**
|
|
148
|
+
* Generate new session keys and returns the corresponding public keys and owner proof
|
|
149
|
+
**/
|
|
150
|
+
rotateKeysWithOwner: AugmentedRpc<
|
|
151
|
+
(owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>
|
|
152
|
+
>;
|
|
143
153
|
/**
|
|
144
154
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
145
155
|
**/
|
|
@@ -721,6 +731,16 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
721
731
|
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
|
722
732
|
};
|
|
723
733
|
mmr: {
|
|
734
|
+
/**
|
|
735
|
+
* Generate an MMR ancestry proof for the given block number.
|
|
736
|
+
**/
|
|
737
|
+
generateAncestryProof: AugmentedRpc<
|
|
738
|
+
(
|
|
739
|
+
prevBlockNumber: u64 | AnyNumber | Uint8Array,
|
|
740
|
+
bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array,
|
|
741
|
+
at?: BlockHash | string | Uint8Array,
|
|
742
|
+
) => Observable<MmrAncestryProof>
|
|
743
|
+
>;
|
|
724
744
|
/**
|
|
725
745
|
* Generate MMR proof for the given block numbers.
|
|
726
746
|
**/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// import type lookup before we augment - in some environments
|
|
4
4
|
// this is required to allow for ambient/previous definitions
|
|
5
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/calls';
|
|
6
6
|
|
|
7
7
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
8
8
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|