@argonprotocol/mainchain 1.4.13-dev.f1c9e746 → 1.5.0
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 +622 -345
- 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 +622 -345
- package/lib/index.d.ts +622 -345
- 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 +48 -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 +74 -25
- 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 +387 -274
- package/src/interfaces/registry.ts +22 -7
- package/src/interfaces/types-lookup.ts +413 -280
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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.
|
|
71
|
+
"@argonprotocol/testing": "1.5.0",
|
|
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
|
**/
|
|
@@ -615,18 +622,38 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
615
622
|
* The minimum whole-bond purchase amount.
|
|
616
623
|
**/
|
|
617
624
|
minimumArgonsPerContributor: u128 & AugmentedConst<ApiType>;
|
|
625
|
+
/**
|
|
626
|
+
* Minimum vault earnings rate before securitization coverage is applied.
|
|
627
|
+
**/
|
|
628
|
+
minimumVaultProfitPercent: Percent & AugmentedConst<ApiType>;
|
|
618
629
|
/**
|
|
619
630
|
* Treasury pallet id retained in metadata for account derivation.
|
|
620
631
|
**/
|
|
621
632
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
622
633
|
/**
|
|
623
|
-
*
|
|
634
|
+
* Maximum percent paid to Argon bonds when the network target is filled.
|
|
635
|
+
**/
|
|
636
|
+
percentForArgonBondPool: Percent & AugmentedConst<ApiType>;
|
|
637
|
+
/**
|
|
638
|
+
* Percent reserved for Bitcoin Liquids and burned in this release.
|
|
624
639
|
**/
|
|
625
|
-
|
|
640
|
+
percentForBitcoinLiquidPool: Percent & AugmentedConst<ApiType>;
|
|
641
|
+
/**
|
|
642
|
+
* Percent reserved for future mining-operator rewards and burned in this release.
|
|
643
|
+
**/
|
|
644
|
+
percentForMiningOperatorPool: Percent & AugmentedConst<ApiType>;
|
|
645
|
+
/**
|
|
646
|
+
* Percent of the full bid pool paid to Argonot Stakes.
|
|
647
|
+
**/
|
|
648
|
+
percentForStakePool: Percent & AugmentedConst<ApiType>;
|
|
626
649
|
/**
|
|
627
650
|
* Percent of the bid pool reserved for treasury reserves.
|
|
628
651
|
**/
|
|
629
652
|
percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
|
|
653
|
+
/**
|
|
654
|
+
* Maximum percent paid to vaults when the network target is filled.
|
|
655
|
+
**/
|
|
656
|
+
percentForVaultPool: Percent & AugmentedConst<ApiType>;
|
|
630
657
|
/**
|
|
631
658
|
* The number of frames a releasing bond lot remains held before release.
|
|
632
659
|
**/
|
|
@@ -635,6 +662,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
635
662
|
* Account that holds treasury reserves for claims and reserve-funded payouts.
|
|
636
663
|
**/
|
|
637
664
|
treasuryReservesAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
665
|
+
upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
|
|
666
|
+
upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
|
|
667
|
+
upstreamBondTarget: u128 & AugmentedConst<ApiType>;
|
|
638
668
|
};
|
|
639
669
|
txPause: {
|
|
640
670
|
/**
|
|
@@ -651,6 +681,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
651
681
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
652
682
|
};
|
|
653
683
|
vaults: {
|
|
684
|
+
/**
|
|
685
|
+
* Bitcoin blocks in the term of a newly created Bitcoin lock.
|
|
686
|
+
**/
|
|
687
|
+
bitcoinLockDurationBlocks: u64 & AugmentedConst<ApiType>;
|
|
654
688
|
/**
|
|
655
689
|
* Max concurrent cosigns pending per vault
|
|
656
690
|
**/
|
|
@@ -664,17 +698,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
664
698
|
**/
|
|
665
699
|
maxVaults: u32 & AugmentedConst<ApiType>;
|
|
666
700
|
/**
|
|
667
|
-
*
|
|
668
|
-
**/
|
|
669
|
-
operationalMinimumVaultLockTicks: u64 & AugmentedConst<ApiType>;
|
|
670
|
-
/**
|
|
671
|
-
* Minimum vault securitization required while the operational floor lock is active.
|
|
701
|
+
* Vault securitization committed when the operator becomes operational.
|
|
672
702
|
**/
|
|
673
703
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
674
704
|
/**
|
|
675
705
|
* The number of frames within which revenue must be collected
|
|
676
706
|
**/
|
|
677
707
|
revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
|
|
708
|
+
/**
|
|
709
|
+
* Bitcoin blocks in the securitization exit notice period.
|
|
710
|
+
**/
|
|
711
|
+
securitizationExitNoticeBlocks: u64 & AugmentedConst<ApiType>;
|
|
678
712
|
};
|
|
679
713
|
} // AugmentedConsts
|
|
680
714
|
} // 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,
|
|
@@ -94,6 +95,7 @@ import type {
|
|
|
94
95
|
PalletGrandpaStoredState,
|
|
95
96
|
PalletLocalchainTransferQueuedTransferOut,
|
|
96
97
|
PalletMiningSlotMinerNonceScoring,
|
|
98
|
+
PalletMiningSlotSeatPriceStats,
|
|
97
99
|
PalletMintMintAction,
|
|
98
100
|
PalletMintMintQueueCursor,
|
|
99
101
|
PalletMintPendingBitcoinMint,
|
|
@@ -112,6 +114,7 @@ import type {
|
|
|
112
114
|
PalletTreasuryBondLotSummary,
|
|
113
115
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
114
116
|
PalletTreasuryFrameVaultCapital,
|
|
117
|
+
PalletTreasuryPositionsPosition,
|
|
115
118
|
PalletTreasuryVaultBondState,
|
|
116
119
|
PalletVaultsVaultFrameRevenue,
|
|
117
120
|
SpConsensusGrandpaAppPublic,
|
|
@@ -1086,9 +1089,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1086
1089
|
**/
|
|
1087
1090
|
argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1088
1091
|
/**
|
|
1089
|
-
*
|
|
1092
|
+
* Winning bid totals and seat counts for averaging prices over the last 10 frames (newest
|
|
1093
|
+
* first).
|
|
1090
1094
|
**/
|
|
1091
|
-
averagePricePerSeat: AugmentedQuery<
|
|
1095
|
+
averagePricePerSeat: AugmentedQuery<
|
|
1096
|
+
ApiType,
|
|
1097
|
+
() => Observable<Vec<PalletMiningSlotSeatPriceStats>>,
|
|
1098
|
+
[]
|
|
1099
|
+
>;
|
|
1092
1100
|
/**
|
|
1093
1101
|
* The cohort set to go into effect in the next slot. The Vec has all
|
|
1094
1102
|
* registrants with their bid amount
|
|
@@ -1202,13 +1210,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1202
1210
|
**/
|
|
1203
1211
|
miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
|
|
1204
1212
|
/**
|
|
1205
|
-
*
|
|
1213
|
+
* Bitcoin-minted Argons that have not been explicitly repaid through Fission settlement.
|
|
1206
1214
|
**/
|
|
1207
1215
|
mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1208
|
-
/**
|
|
1209
|
-
* The total amount of microgons minted for mining
|
|
1210
|
-
**/
|
|
1211
|
-
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1212
1216
|
/**
|
|
1213
1217
|
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1214
1218
|
**/
|
|
@@ -1797,12 +1801,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1797
1801
|
) => Observable<Option<Null>>,
|
|
1798
1802
|
[AccountId32, u64]
|
|
1799
1803
|
>;
|
|
1804
|
+
/**
|
|
1805
|
+
* Live Argon bond lot ids associated with a vault, including lots awaiting release. Direct
|
|
1806
|
+
* frame payouts iterate this admission-bounded index.
|
|
1807
|
+
**/
|
|
1808
|
+
bondLotIdsByVault: AugmentedQuery<
|
|
1809
|
+
ApiType,
|
|
1810
|
+
(
|
|
1811
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
1812
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
1813
|
+
) => Observable<Option<Null>>,
|
|
1814
|
+
[u32, u64]
|
|
1815
|
+
>;
|
|
1800
1816
|
/**
|
|
1801
1817
|
* The active bond state for a vault.
|
|
1802
1818
|
*
|
|
1803
|
-
*
|
|
1804
|
-
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1805
|
-
* aggregate.
|
|
1819
|
+
* Admission totals and flexible displacement; individual lots live in `BondLotById`.
|
|
1806
1820
|
**/
|
|
1807
1821
|
bondLotsByVault: AugmentedQuery<
|
|
1808
1822
|
ApiType,
|
|
@@ -1820,9 +1834,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1820
1834
|
[]
|
|
1821
1835
|
>;
|
|
1822
1836
|
/**
|
|
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.
|
|
1837
|
+
* The network bond total and vault capital locked for the current frame's payout.
|
|
1826
1838
|
**/
|
|
1827
1839
|
currentFrameVaultCapital: AugmentedQuery<
|
|
1828
1840
|
ApiType,
|
|
@@ -1867,9 +1879,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1867
1879
|
[u64]
|
|
1868
1880
|
>;
|
|
1869
1881
|
/**
|
|
1870
|
-
*
|
|
1882
|
+
* Configurable percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
1871
1883
|
**/
|
|
1872
|
-
|
|
1884
|
+
targetBitcoinPercent: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
|
|
1885
|
+
/**
|
|
1886
|
+
* Live Argon bond lots, including those awaiting release; stakes have a separate admission
|
|
1887
|
+
* limit.
|
|
1888
|
+
**/
|
|
1889
|
+
totalArgonBondLots: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1890
|
+
};
|
|
1891
|
+
treasuryPositions: {
|
|
1892
|
+
/**
|
|
1893
|
+
* Maintained network quantities, updated together with their account contributions.
|
|
1894
|
+
* Treasury reads these when freezing frame inputs. This replaces its live Argonot stake total.
|
|
1895
|
+
**/
|
|
1896
|
+
networkTotals: AugmentedQuery<
|
|
1897
|
+
ApiType,
|
|
1898
|
+
() => Observable<ArgonPrimitivesTreasuryPositionQuantities>,
|
|
1899
|
+
[]
|
|
1900
|
+
>;
|
|
1901
|
+
/**
|
|
1902
|
+
* Maintained source quantities keyed by the actual position owner. Upstream quantities belong
|
|
1903
|
+
* to the linked vault account; primary and mining account balances are separate owners.
|
|
1904
|
+
**/
|
|
1905
|
+
positionsByAccount: AugmentedQuery<
|
|
1906
|
+
ApiType,
|
|
1907
|
+
(
|
|
1908
|
+
arg: AccountId32 | string | Uint8Array,
|
|
1909
|
+
) => Observable<Option<PalletTreasuryPositionsPosition>>,
|
|
1910
|
+
[AccountId32]
|
|
1911
|
+
>;
|
|
1873
1912
|
};
|
|
1874
1913
|
txPause: {
|
|
1875
1914
|
/**
|
|
@@ -1885,13 +1924,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1885
1924
|
};
|
|
1886
1925
|
vaults: {
|
|
1887
1926
|
/**
|
|
1888
|
-
*
|
|
1927
|
+
* Argonots held for the vault, with reward commitments and cross-chain encumbrances.
|
|
1889
1928
|
**/
|
|
1890
|
-
|
|
1929
|
+
argonotSecuritizationByVaultId: AugmentedQuery<
|
|
1891
1930
|
ApiType,
|
|
1892
1931
|
(
|
|
1893
1932
|
arg: u32 | AnyNumber | Uint8Array,
|
|
1894
|
-
) => Observable<Option<
|
|
1933
|
+
) => Observable<Option<ArgonPrimitivesVaultVaultArgonotSecuritization>>,
|
|
1895
1934
|
[u32]
|
|
1896
1935
|
>;
|
|
1897
1936
|
/**
|
|
@@ -1942,6 +1981,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1942
1981
|
[u32]
|
|
1943
1982
|
>;
|
|
1944
1983
|
revenuePerFrameByVaultCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1984
|
+
/**
|
|
1985
|
+
* Raw securitization across all open vaults, including those below the payout cutoff.
|
|
1986
|
+
**/
|
|
1987
|
+
totalVaultSecuritization: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1945
1988
|
/**
|
|
1946
1989
|
* The vaults that have funds releasing at a given bitcoin height
|
|
1947
1990
|
**/
|
|
@@ -1967,12 +2010,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1967
2010
|
[u32]
|
|
1968
2011
|
>;
|
|
1969
2012
|
/**
|
|
1970
|
-
*
|
|
2013
|
+
* Open vaults ordered by raw securitization (largest first), then vault ID.
|
|
1971
2014
|
**/
|
|
1972
|
-
|
|
2015
|
+
vaultSecuritizationRanks: AugmentedQuery<
|
|
1973
2016
|
ApiType,
|
|
1974
|
-
(
|
|
1975
|
-
|
|
2017
|
+
(
|
|
2018
|
+
arg:
|
|
2019
|
+
| ArgonPrimitivesAmountRankAmountRankKey
|
|
2020
|
+
| { descendingAmount?: any; orderedId?: any }
|
|
2021
|
+
| string
|
|
2022
|
+
| Uint8Array,
|
|
2023
|
+
) => Observable<Option<Null>>,
|
|
2024
|
+
[ArgonPrimitivesAmountRankAmountRankKey]
|
|
1976
2025
|
>;
|
|
1977
2026
|
/**
|
|
1978
2027
|
* Vault Bitcoin Xpub and current child counter by VaultId
|