@argonprotocol/mainchain 1.4.13-dev.6ac99b65 → 1.4.13-dev.754f4641
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 +609 -343
- package/browser/index.js +2 -2
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +609 -343
- package/lib/index.d.ts +609 -343
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +3 -2
- package/src/interfaces/augment-api-consts.ts +44 -14
- package/src/interfaces/augment-api-errors.ts +23 -11
- package/src/interfaces/augment-api-events.ts +54 -10
- package/src/interfaces/augment-api-query.ts +66 -23
- package/src/interfaces/augment-api-runtime.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +58 -13
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +0 -1
- package/src/interfaces/lookup.ts +380 -274
- package/src/interfaces/registry.ts +20 -7
- package/src/interfaces/types-lookup.ts +407 -280
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.13-dev.
|
|
3
|
+
"version": "1.4.13-dev.754f4641",
|
|
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
|
},
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
70
|
-
"@argonprotocol/testing": "1.4.13-dev.
|
|
71
|
+
"@argonprotocol/testing": "1.4.13-dev.754f4641",
|
|
71
72
|
"@polkadot/typegen": "^17.0.1",
|
|
72
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
73
74
|
"@types/node": "^20",
|
|
@@ -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
|
|
@@ -8,7 +7,7 @@ import type {} from '@polkadot/api-base/types/consts';
|
|
|
8
7
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
8
|
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
10
9
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
11
|
-
import type { AccountId32, Percent } from '@polkadot/types/interfaces/runtime';
|
|
10
|
+
import type { AccountId32, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
12
11
|
import type {
|
|
13
12
|
FrameSupportPalletId,
|
|
14
13
|
FrameSystemLimitsBlockLength,
|
|
@@ -371,6 +370,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
371
370
|
metaChangesTickDelay: u64 & AugmentedConst<ApiType>;
|
|
372
371
|
};
|
|
373
372
|
operationalAccounts: {
|
|
373
|
+
/**
|
|
374
|
+
* Allowed Bitcoin valuation shortfall below the liquidity minimum.
|
|
375
|
+
**/
|
|
376
|
+
bitcoinLiquidityTolerance: Percent & AugmentedConst<ApiType>;
|
|
374
377
|
/**
|
|
375
378
|
* Additional argon amount (base units) required per follow-on access code after an account
|
|
376
379
|
* becomes operational.
|
|
@@ -385,7 +388,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
385
388
|
**/
|
|
386
389
|
maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
|
|
387
390
|
/**
|
|
388
|
-
* Minimum
|
|
391
|
+
* Minimum Bitcoin-backed ARGON liquidity required to register and activate.
|
|
389
392
|
**/
|
|
390
393
|
minimumBitcoin: u128 & AugmentedConst<ApiType>;
|
|
391
394
|
/**
|
|
@@ -591,10 +594,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
591
594
|
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
592
595
|
};
|
|
593
596
|
treasury: {
|
|
597
|
+
/**
|
|
598
|
+
* Default percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
599
|
+
**/
|
|
600
|
+
defaultTargetBitcoinPercent: Percent & AugmentedConst<ApiType>;
|
|
594
601
|
/**
|
|
595
602
|
* The maximum number of active Argonot bond lots.
|
|
596
603
|
**/
|
|
597
604
|
maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
|
|
605
|
+
/**
|
|
606
|
+
* Maximum live Argon bond lots while direct frame payouts iterate every lot.
|
|
607
|
+
**/
|
|
608
|
+
maxArgonBondLots: u32 & AugmentedConst<ApiType>;
|
|
598
609
|
/**
|
|
599
610
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
600
611
|
**/
|
|
@@ -603,10 +614,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
603
614
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
604
615
|
**/
|
|
605
616
|
maxPendingUnlocksPerFrame: u32 & AugmentedConst<ApiType>;
|
|
606
|
-
/**
|
|
607
|
-
* The maximum number of accepted bond lots in a vault's accepted bond-lot list.
|
|
608
|
-
**/
|
|
609
|
-
maxTreasuryContributors: u32 & AugmentedConst<ApiType>;
|
|
610
617
|
/**
|
|
611
618
|
* The maximum number of vaults that can participate in one frame's locked vault capital.
|
|
612
619
|
**/
|
|
@@ -620,13 +627,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
620
627
|
**/
|
|
621
628
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
622
629
|
/**
|
|
623
|
-
*
|
|
630
|
+
* Maximum percent paid to Argon bonds when the network target is filled.
|
|
631
|
+
**/
|
|
632
|
+
percentForArgonBondPool: Percent & AugmentedConst<ApiType>;
|
|
633
|
+
/**
|
|
634
|
+
* Percent reserved for Bitcoin Liquids and burned in this release.
|
|
635
|
+
**/
|
|
636
|
+
percentForBitcoinLiquidPool: Percent & AugmentedConst<ApiType>;
|
|
637
|
+
/**
|
|
638
|
+
* Percent reserved for future mining-operator rewards and burned in this release.
|
|
639
|
+
**/
|
|
640
|
+
percentForMiningOperatorPool: Percent & AugmentedConst<ApiType>;
|
|
641
|
+
/**
|
|
642
|
+
* Percent of the full bid pool paid to Argonot Stakes.
|
|
624
643
|
**/
|
|
625
|
-
|
|
644
|
+
percentForStakePool: Percent & AugmentedConst<ApiType>;
|
|
626
645
|
/**
|
|
627
646
|
* Percent of the bid pool reserved for treasury reserves.
|
|
628
647
|
**/
|
|
629
648
|
percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
|
|
649
|
+
/**
|
|
650
|
+
* Maximum percent paid to vaults when the network target is filled.
|
|
651
|
+
**/
|
|
652
|
+
percentForVaultPool: Percent & AugmentedConst<ApiType>;
|
|
630
653
|
/**
|
|
631
654
|
* The number of frames a releasing bond lot remains held before release.
|
|
632
655
|
**/
|
|
@@ -635,6 +658,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
635
658
|
* Account that holds treasury reserves for claims and reserve-funded payouts.
|
|
636
659
|
**/
|
|
637
660
|
treasuryReservesAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
661
|
+
upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
|
|
662
|
+
upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
|
|
663
|
+
upstreamBondTarget: u128 & AugmentedConst<ApiType>;
|
|
638
664
|
};
|
|
639
665
|
txPause: {
|
|
640
666
|
/**
|
|
@@ -651,6 +677,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
651
677
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
652
678
|
};
|
|
653
679
|
vaults: {
|
|
680
|
+
/**
|
|
681
|
+
* Bitcoin blocks in the term of a newly created Bitcoin lock.
|
|
682
|
+
**/
|
|
683
|
+
bitcoinLockDurationBlocks: u64 & AugmentedConst<ApiType>;
|
|
654
684
|
/**
|
|
655
685
|
* Max concurrent cosigns pending per vault
|
|
656
686
|
**/
|
|
@@ -664,17 +694,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
664
694
|
**/
|
|
665
695
|
maxVaults: u32 & AugmentedConst<ApiType>;
|
|
666
696
|
/**
|
|
667
|
-
*
|
|
668
|
-
**/
|
|
669
|
-
operationalMinimumVaultLockTicks: u64 & AugmentedConst<ApiType>;
|
|
670
|
-
/**
|
|
671
|
-
* Minimum vault securitization required while the operational floor lock is active.
|
|
697
|
+
* Vault securitization committed when the operator becomes operational.
|
|
672
698
|
**/
|
|
673
699
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
674
700
|
/**
|
|
675
701
|
* The number of frames within which revenue must be collected
|
|
676
702
|
**/
|
|
677
703
|
revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
|
|
704
|
+
/**
|
|
705
|
+
* Bitcoin blocks in the securitization exit notice period.
|
|
706
|
+
**/
|
|
707
|
+
securitizationExitNoticeBlocks: u64 & AugmentedConst<ApiType>;
|
|
678
708
|
};
|
|
679
709
|
} // AugmentedConsts
|
|
680
710
|
} // declare module
|
|
@@ -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
|
**/
|
|
@@ -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,
|
|
@@ -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 }
|
|
@@ -2212,6 +2246,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2212
2246
|
[vaultId: u32, reservedSecuritizationSpace: u128],
|
|
2213
2247
|
{ vaultId: u32; reservedSecuritizationSpace: u128 }
|
|
2214
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
|
+
>;
|
|
2215
2259
|
SecuritizationReserved: AugmentedEvent<
|
|
2216
2260
|
ApiType,
|
|
2217
2261
|
[
|
|
@@ -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
|
|
@@ -22,9 +21,10 @@ import type {
|
|
|
22
21
|
u8,
|
|
23
22
|
} from '@polkadot/types-codec';
|
|
24
23
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
25
|
-
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
|
|
24
|
+
import type { AccountId32, H160, H256, Percent } from '@polkadot/types/interfaces/runtime';
|
|
26
25
|
import type {
|
|
27
26
|
ArgonNotaryAuditErrorVerifyError,
|
|
27
|
+
ArgonPrimitivesAmountRankAmountRankKey,
|
|
28
28
|
ArgonPrimitivesBalanceChangeAccountOrigin,
|
|
29
29
|
ArgonPrimitivesBitcoinBitcoinBlock,
|
|
30
30
|
ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey,
|
|
@@ -50,8 +50,9 @@ import type {
|
|
|
50
50
|
ArgonPrimitivesNotaryNotaryRecord,
|
|
51
51
|
ArgonPrimitivesProvidersBlockSealerInfo,
|
|
52
52
|
ArgonPrimitivesTickTicker,
|
|
53
|
+
ArgonPrimitivesTreasuryPositionQuantities,
|
|
53
54
|
ArgonPrimitivesVault,
|
|
54
|
-
|
|
55
|
+
ArgonPrimitivesVaultVaultArgonotSecuritization,
|
|
55
56
|
FrameSupportDispatchPerDispatchClassWeight,
|
|
56
57
|
FrameSupportTokensFungibleImbalance,
|
|
57
58
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
@@ -112,6 +113,7 @@ import type {
|
|
|
112
113
|
PalletTreasuryBondLotSummary,
|
|
113
114
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
114
115
|
PalletTreasuryFrameVaultCapital,
|
|
116
|
+
PalletTreasuryPositionsPosition,
|
|
115
117
|
PalletTreasuryVaultBondState,
|
|
116
118
|
PalletVaultsVaultFrameRevenue,
|
|
117
119
|
SpConsensusGrandpaAppPublic,
|
|
@@ -1202,13 +1204,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1202
1204
|
**/
|
|
1203
1205
|
miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
|
|
1204
1206
|
/**
|
|
1205
|
-
*
|
|
1207
|
+
* Bitcoin-minted Argons that have not been explicitly repaid through Fission settlement.
|
|
1206
1208
|
**/
|
|
1207
1209
|
mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1208
|
-
/**
|
|
1209
|
-
* The total amount of microgons minted for mining
|
|
1210
|
-
**/
|
|
1211
|
-
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1212
1210
|
/**
|
|
1213
1211
|
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1214
1212
|
**/
|
|
@@ -1797,12 +1795,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1797
1795
|
) => Observable<Option<Null>>,
|
|
1798
1796
|
[AccountId32, u64]
|
|
1799
1797
|
>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Live Argon bond lot ids associated with a vault, including lots awaiting release. Direct
|
|
1800
|
+
* frame payouts iterate this admission-bounded index.
|
|
1801
|
+
**/
|
|
1802
|
+
bondLotIdsByVault: AugmentedQuery<
|
|
1803
|
+
ApiType,
|
|
1804
|
+
(
|
|
1805
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
1806
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
1807
|
+
) => Observable<Option<Null>>,
|
|
1808
|
+
[u32, u64]
|
|
1809
|
+
>;
|
|
1800
1810
|
/**
|
|
1801
1811
|
* The active bond state for a vault.
|
|
1802
1812
|
*
|
|
1803
|
-
*
|
|
1804
|
-
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1805
|
-
* aggregate.
|
|
1813
|
+
* Admission totals and flexible displacement; individual lots live in `BondLotById`.
|
|
1806
1814
|
**/
|
|
1807
1815
|
bondLotsByVault: AugmentedQuery<
|
|
1808
1816
|
ApiType,
|
|
@@ -1820,9 +1828,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1820
1828
|
[]
|
|
1821
1829
|
>;
|
|
1822
1830
|
/**
|
|
1823
|
-
* The vault capital locked for the current frame.
|
|
1824
|
-
*
|
|
1825
|
-
* Payout uses this to see which vaults and bond lots are participating in the frame.
|
|
1831
|
+
* The network bond total and vault capital locked for the current frame's payout.
|
|
1826
1832
|
**/
|
|
1827
1833
|
currentFrameVaultCapital: AugmentedQuery<
|
|
1828
1834
|
ApiType,
|
|
@@ -1867,9 +1873,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1867
1873
|
[u64]
|
|
1868
1874
|
>;
|
|
1869
1875
|
/**
|
|
1870
|
-
*
|
|
1876
|
+
* Configurable percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
1877
|
+
**/
|
|
1878
|
+
targetBitcoinPercent: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
|
|
1879
|
+
/**
|
|
1880
|
+
* Live Argon bond lots, including those awaiting release; stakes have a separate admission
|
|
1881
|
+
* limit.
|
|
1882
|
+
**/
|
|
1883
|
+
totalArgonBondLots: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1884
|
+
};
|
|
1885
|
+
treasuryPositions: {
|
|
1886
|
+
/**
|
|
1887
|
+
* Maintained network quantities, updated together with their account contributions.
|
|
1888
|
+
* Treasury reads these when freezing frame inputs. This replaces its live Argonot stake total.
|
|
1889
|
+
**/
|
|
1890
|
+
networkTotals: AugmentedQuery<
|
|
1891
|
+
ApiType,
|
|
1892
|
+
() => Observable<ArgonPrimitivesTreasuryPositionQuantities>,
|
|
1893
|
+
[]
|
|
1894
|
+
>;
|
|
1895
|
+
/**
|
|
1896
|
+
* Maintained source quantities keyed by the actual position owner. Upstream quantities belong
|
|
1897
|
+
* to the linked vault account; primary and mining account balances are separate owners.
|
|
1871
1898
|
**/
|
|
1872
|
-
|
|
1899
|
+
positionsByAccount: AugmentedQuery<
|
|
1900
|
+
ApiType,
|
|
1901
|
+
(
|
|
1902
|
+
arg: AccountId32 | string | Uint8Array,
|
|
1903
|
+
) => Observable<Option<PalletTreasuryPositionsPosition>>,
|
|
1904
|
+
[AccountId32]
|
|
1905
|
+
>;
|
|
1873
1906
|
};
|
|
1874
1907
|
txPause: {
|
|
1875
1908
|
/**
|
|
@@ -1885,13 +1918,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1885
1918
|
};
|
|
1886
1919
|
vaults: {
|
|
1887
1920
|
/**
|
|
1888
|
-
*
|
|
1921
|
+
* Argonots held for the vault, with reward commitments and cross-chain encumbrances.
|
|
1889
1922
|
**/
|
|
1890
|
-
|
|
1923
|
+
argonotSecuritizationByVaultId: AugmentedQuery<
|
|
1891
1924
|
ApiType,
|
|
1892
1925
|
(
|
|
1893
1926
|
arg: u32 | AnyNumber | Uint8Array,
|
|
1894
|
-
) => Observable<Option<
|
|
1927
|
+
) => Observable<Option<ArgonPrimitivesVaultVaultArgonotSecuritization>>,
|
|
1895
1928
|
[u32]
|
|
1896
1929
|
>;
|
|
1897
1930
|
/**
|
|
@@ -1942,6 +1975,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1942
1975
|
[u32]
|
|
1943
1976
|
>;
|
|
1944
1977
|
revenuePerFrameByVaultCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1978
|
+
/**
|
|
1979
|
+
* Raw securitization across all open vaults, including those below the payout cutoff.
|
|
1980
|
+
**/
|
|
1981
|
+
totalVaultSecuritization: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1945
1982
|
/**
|
|
1946
1983
|
* The vaults that have funds releasing at a given bitcoin height
|
|
1947
1984
|
**/
|
|
@@ -1967,12 +2004,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1967
2004
|
[u32]
|
|
1968
2005
|
>;
|
|
1969
2006
|
/**
|
|
1970
|
-
*
|
|
2007
|
+
* Open vaults ordered by raw securitization (largest first), then vault ID.
|
|
1971
2008
|
**/
|
|
1972
|
-
|
|
2009
|
+
vaultSecuritizationRanks: AugmentedQuery<
|
|
1973
2010
|
ApiType,
|
|
1974
|
-
(
|
|
1975
|
-
|
|
2011
|
+
(
|
|
2012
|
+
arg:
|
|
2013
|
+
| ArgonPrimitivesAmountRankAmountRankKey
|
|
2014
|
+
| { descendingAmount?: any; orderedId?: any }
|
|
2015
|
+
| string
|
|
2016
|
+
| Uint8Array,
|
|
2017
|
+
) => Observable<Option<Null>>,
|
|
2018
|
+
[ArgonPrimitivesAmountRankAmountRankKey]
|
|
1976
2019
|
>;
|
|
1977
2020
|
/**
|
|
1978
2021
|
* Vault Bitcoin Xpub and current child counter by VaultId
|