@argonprotocol/mainchain 1.4.13-dev.6ac99b65 → 1.4.13-dev.a546cca4
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 +563 -337
- package/browser/index.js +10 -2
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +26 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +563 -337
- package/lib/index.d.ts +563 -337
- package/lib/index.js +26 -2
- package/lib/index.js.map +1 -1
- package/package.json +3 -2
- package/src/interfaces/augment-api-consts.ts +32 -13
- package/src/interfaces/augment-api-errors.ts +24 -12
- package/src/interfaces/augment-api-events.ts +55 -11
- package/src/interfaces/augment-api-query.ts +45 -20
- package/src/interfaces/augment-api-rpc.ts +1 -1
- package/src/interfaces/augment-api-runtime.ts +1 -2
- package/src/interfaces/augment-api-tx.ts +59 -14
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +1 -2
- package/src/interfaces/lookup.ts +354 -274
- package/src/interfaces/registry.ts +14 -7
- package/src/interfaces/types-lookup.ts +384 -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.a546cca4",
|
|
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.a546cca4",
|
|
71
72
|
"@polkadot/typegen": "^17.0.1",
|
|
72
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
73
74
|
"@types/node": "^20",
|
|
@@ -1,9 +1,8 @@
|
|
|
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
|
|
6
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/consts';
|
|
7
6
|
|
|
8
7
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
8
|
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -591,10 +590,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
591
590
|
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
592
591
|
};
|
|
593
592
|
treasury: {
|
|
593
|
+
/**
|
|
594
|
+
* Default percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
595
|
+
**/
|
|
596
|
+
defaultTargetBitcoinPercent: Percent & AugmentedConst<ApiType>;
|
|
594
597
|
/**
|
|
595
598
|
* The maximum number of active Argonot bond lots.
|
|
596
599
|
**/
|
|
597
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>;
|
|
598
605
|
/**
|
|
599
606
|
* The maximum percent of ownership-token circulation that can be bonded.
|
|
600
607
|
**/
|
|
@@ -603,10 +610,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
603
610
|
* The maximum number of bond lots whose release delay may mature in a single frame.
|
|
604
611
|
**/
|
|
605
612
|
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
613
|
/**
|
|
611
614
|
* The maximum number of vaults that can participate in one frame's locked vault capital.
|
|
612
615
|
**/
|
|
@@ -620,13 +623,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
620
623
|
**/
|
|
621
624
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
622
625
|
/**
|
|
623
|
-
*
|
|
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.
|
|
624
639
|
**/
|
|
625
|
-
|
|
640
|
+
percentForStakePool: Percent & AugmentedConst<ApiType>;
|
|
626
641
|
/**
|
|
627
642
|
* Percent of the bid pool reserved for treasury reserves.
|
|
628
643
|
**/
|
|
629
644
|
percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
|
|
645
|
+
/**
|
|
646
|
+
* Maximum percent paid to vaults when the network target is filled.
|
|
647
|
+
**/
|
|
648
|
+
percentForVaultPool: Percent & AugmentedConst<ApiType>;
|
|
630
649
|
/**
|
|
631
650
|
* The number of frames a releasing bond lot remains held before release.
|
|
632
651
|
**/
|
|
@@ -664,17 +683,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
664
683
|
**/
|
|
665
684
|
maxVaults: u32 & AugmentedConst<ApiType>;
|
|
666
685
|
/**
|
|
667
|
-
*
|
|
668
|
-
**/
|
|
669
|
-
operationalMinimumVaultLockTicks: u64 & AugmentedConst<ApiType>;
|
|
670
|
-
/**
|
|
671
|
-
* Minimum vault securitization required while the operational floor lock is active.
|
|
686
|
+
* Vault securitization committed when the operator becomes operational.
|
|
672
687
|
**/
|
|
673
688
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
674
689
|
/**
|
|
675
690
|
* The number of frames within which revenue must be collected
|
|
676
691
|
**/
|
|
677
692
|
revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
|
|
693
|
+
/**
|
|
694
|
+
* Bitcoin blocks in the securitization exit notice period.
|
|
695
|
+
**/
|
|
696
|
+
securitizationExitNoticeBlocks: u64 & AugmentedConst<ApiType>;
|
|
678
697
|
};
|
|
679
698
|
} // AugmentedConsts
|
|
680
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
|
|
|
@@ -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,
|
|
@@ -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,9 +1,8 @@
|
|
|
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
|
|
6
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/storage';
|
|
7
6
|
|
|
8
7
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
9
8
|
import type {
|
|
@@ -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,
|
|
@@ -51,7 +51,7 @@ import type {
|
|
|
51
51
|
ArgonPrimitivesProvidersBlockSealerInfo,
|
|
52
52
|
ArgonPrimitivesTickTicker,
|
|
53
53
|
ArgonPrimitivesVault,
|
|
54
|
-
|
|
54
|
+
ArgonPrimitivesVaultVaultArgonotSecuritization,
|
|
55
55
|
FrameSupportDispatchPerDispatchClassWeight,
|
|
56
56
|
FrameSupportTokensFungibleImbalance,
|
|
57
57
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
@@ -1202,13 +1202,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1202
1202
|
**/
|
|
1203
1203
|
miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
|
|
1204
1204
|
/**
|
|
1205
|
-
*
|
|
1205
|
+
* Bitcoin-minted Argons that have not been explicitly repaid through Fission settlement.
|
|
1206
1206
|
**/
|
|
1207
1207
|
mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1208
|
-
/**
|
|
1209
|
-
* The total amount of microgons minted for mining
|
|
1210
|
-
**/
|
|
1211
|
-
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1212
1208
|
/**
|
|
1213
1209
|
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1214
1210
|
**/
|
|
@@ -1797,12 +1793,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1797
1793
|
) => Observable<Option<Null>>,
|
|
1798
1794
|
[AccountId32, u64]
|
|
1799
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
|
+
>;
|
|
1800
1808
|
/**
|
|
1801
1809
|
* The active bond state for a vault.
|
|
1802
1810
|
*
|
|
1803
|
-
*
|
|
1804
|
-
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1805
|
-
* aggregate.
|
|
1811
|
+
* Admission totals and flexible displacement; individual lots live in `BondLotById`.
|
|
1806
1812
|
**/
|
|
1807
1813
|
bondLotsByVault: AugmentedQuery<
|
|
1808
1814
|
ApiType,
|
|
@@ -1822,7 +1828,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1822
1828
|
/**
|
|
1823
1829
|
* The vault capital locked for the current frame.
|
|
1824
1830
|
*
|
|
1825
|
-
* Payout uses this
|
|
1831
|
+
* Payout uses this for the network bond total and participating vault positions.
|
|
1826
1832
|
**/
|
|
1827
1833
|
currentFrameVaultCapital: AugmentedQuery<
|
|
1828
1834
|
ApiType,
|
|
@@ -1866,10 +1872,19 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1866
1872
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1867
1873
|
[u64]
|
|
1868
1874
|
>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Configurable percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
1877
|
+
**/
|
|
1878
|
+
targetBitcoinPercent: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
|
|
1869
1879
|
/**
|
|
1870
1880
|
* The total number of active Argonot bonds in the active set.
|
|
1871
1881
|
**/
|
|
1872
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>, []>;
|
|
1873
1888
|
};
|
|
1874
1889
|
txPause: {
|
|
1875
1890
|
/**
|
|
@@ -1885,13 +1900,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1885
1900
|
};
|
|
1886
1901
|
vaults: {
|
|
1887
1902
|
/**
|
|
1888
|
-
*
|
|
1903
|
+
* Argonots held for the vault, with reward commitments and cross-chain encumbrances.
|
|
1889
1904
|
**/
|
|
1890
|
-
|
|
1905
|
+
argonotSecuritizationByVaultId: AugmentedQuery<
|
|
1891
1906
|
ApiType,
|
|
1892
1907
|
(
|
|
1893
1908
|
arg: u32 | AnyNumber | Uint8Array,
|
|
1894
|
-
) => Observable<Option<
|
|
1909
|
+
) => Observable<Option<ArgonPrimitivesVaultVaultArgonotSecuritization>>,
|
|
1895
1910
|
[u32]
|
|
1896
1911
|
>;
|
|
1897
1912
|
/**
|
|
@@ -1942,6 +1957,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1942
1957
|
[u32]
|
|
1943
1958
|
>;
|
|
1944
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>, []>;
|
|
1945
1964
|
/**
|
|
1946
1965
|
* The vaults that have funds releasing at a given bitcoin height
|
|
1947
1966
|
**/
|
|
@@ -1967,12 +1986,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1967
1986
|
[u32]
|
|
1968
1987
|
>;
|
|
1969
1988
|
/**
|
|
1970
|
-
*
|
|
1989
|
+
* Open vaults ordered by raw securitization (largest first), then vault ID.
|
|
1971
1990
|
**/
|
|
1972
|
-
|
|
1991
|
+
vaultSecuritizationRanks: AugmentedQuery<
|
|
1973
1992
|
ApiType,
|
|
1974
|
-
(
|
|
1975
|
-
|
|
1993
|
+
(
|
|
1994
|
+
arg:
|
|
1995
|
+
| ArgonPrimitivesAmountRankAmountRankKey
|
|
1996
|
+
| { descendingAmount?: any; orderedId?: any }
|
|
1997
|
+
| string
|
|
1998
|
+
| Uint8Array,
|
|
1999
|
+
) => Observable<Option<Null>>,
|
|
2000
|
+
[ArgonPrimitivesAmountRankAmountRankKey]
|
|
1976
2001
|
>;
|
|
1977
2002
|
/**
|
|
1978
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';
|
|
@@ -1,9 +1,8 @@
|
|
|
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
|
|
6
|
-
import
|
|
5
|
+
import '@polkadot/api-base/types/calls';
|
|
7
6
|
|
|
8
7
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
9
8
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
@@ -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/submittable';
|
|
7
7
|
|
|
8
8
|
import type {
|
|
9
9
|
ApiTypes,
|
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
H160,
|
|
31
31
|
H256,
|
|
32
32
|
MultiAddress,
|
|
33
|
+
Percent,
|
|
33
34
|
} from '@polkadot/types/interfaces/runtime';
|
|
34
35
|
import type {
|
|
35
36
|
ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
|
|
@@ -66,6 +67,7 @@ import type {
|
|
|
66
67
|
PalletOperationalAccountsRegistration,
|
|
67
68
|
PalletPriceIndexEthereumPriceIndex,
|
|
68
69
|
PalletPriceIndexPriceIndex,
|
|
70
|
+
PalletTreasuryBondLotEarningsMetrics,
|
|
69
71
|
PalletVaultsVaultConfig,
|
|
70
72
|
SnowbridgeBeaconPrimitivesBeaconHeader,
|
|
71
73
|
SpConsensusGrandpaEquivocationProof,
|
|
@@ -2004,6 +2006,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2004
2006
|
>;
|
|
2005
2007
|
};
|
|
2006
2008
|
treasury: {
|
|
2009
|
+
/**
|
|
2010
|
+
* Attribute earnings already paid to a vault under the old aggregate flexible-bond model.
|
|
2011
|
+
* This changes bond-lot metrics only; it never pays, holds, or releases funds. `expected`
|
|
2012
|
+
* guards against overwriting a newer payout, and replaying `updated` is a no-op.
|
|
2013
|
+
**/
|
|
2014
|
+
backfillBondLotEarnings: AugmentedSubmittable<
|
|
2015
|
+
(
|
|
2016
|
+
bondLotId: u64 | AnyNumber | Uint8Array,
|
|
2017
|
+
expected:
|
|
2018
|
+
| PalletTreasuryBondLotEarningsMetrics
|
|
2019
|
+
| {
|
|
2020
|
+
participatedFrames?: any;
|
|
2021
|
+
lastFrameEarningsFrameId?: any;
|
|
2022
|
+
lastFrameEarnings?: any;
|
|
2023
|
+
cumulativeEarnings?: any;
|
|
2024
|
+
}
|
|
2025
|
+
| string
|
|
2026
|
+
| Uint8Array,
|
|
2027
|
+
updated:
|
|
2028
|
+
| PalletTreasuryBondLotEarningsMetrics
|
|
2029
|
+
| {
|
|
2030
|
+
participatedFrames?: any;
|
|
2031
|
+
lastFrameEarningsFrameId?: any;
|
|
2032
|
+
lastFrameEarnings?: any;
|
|
2033
|
+
cumulativeEarnings?: any;
|
|
2034
|
+
}
|
|
2035
|
+
| string
|
|
2036
|
+
| Uint8Array,
|
|
2037
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
2038
|
+
[u64, PalletTreasuryBondLotEarningsMetrics, PalletTreasuryBondLotEarningsMetrics]
|
|
2039
|
+
>;
|
|
2007
2040
|
/**
|
|
2008
2041
|
* Buy whole bond units for the Argonot active set.
|
|
2009
2042
|
**/
|
|
@@ -2014,7 +2047,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2014
2047
|
/**
|
|
2015
2048
|
* Buy whole `1 ARGON` bonds for a vault.
|
|
2016
2049
|
*
|
|
2017
|
-
* The purchase either
|
|
2050
|
+
* The purchase either creates a bond lot or fails.
|
|
2018
2051
|
**/
|
|
2019
2052
|
buyBonds: AugmentedSubmittable<
|
|
2020
2053
|
(
|
|
@@ -2039,9 +2072,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2039
2072
|
[u32, u32, Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof>]
|
|
2040
2073
|
>;
|
|
2041
2074
|
/**
|
|
2042
|
-
*
|
|
2043
|
-
|
|
2044
|
-
|
|
2075
|
+
* Update reward economics without resetting fields omitted by the caller.
|
|
2076
|
+
**/
|
|
2077
|
+
configureRewardEconomics: AugmentedSubmittable<
|
|
2078
|
+
(
|
|
2079
|
+
targetBitcoinPercent: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
|
|
2080
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
2081
|
+
[Option<Percent>]
|
|
2082
|
+
>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Liquidate one full bond lot. It keeps the locked frame's payout terms and is
|
|
2085
|
+
* released after the delay.
|
|
2045
2086
|
**/
|
|
2046
2087
|
liquidateBondLot: AugmentedSubmittable<
|
|
2047
2088
|
(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2269,8 +2310,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2269
2310
|
};
|
|
2270
2311
|
vaults: {
|
|
2271
2312
|
/**
|
|
2272
|
-
* Stop offering
|
|
2273
|
-
*
|
|
2313
|
+
* Stop offering new Bitcoin locks. Existing locks continue; securitization exits after
|
|
2314
|
+
* its notice and any existing Bitcoin commitment.
|
|
2274
2315
|
**/
|
|
2275
2316
|
close: AugmentedSubmittable<
|
|
2276
2317
|
(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2297,14 +2338,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2297
2338
|
[PalletVaultsVaultConfig]
|
|
2298
2339
|
>;
|
|
2299
2340
|
/**
|
|
2300
|
-
* Modify funds allocated by the vault
|
|
2301
|
-
* affect the amount of funds available for new ones.
|
|
2341
|
+
* Modify funds allocated by the vault without changing existing Bitcoin locks.
|
|
2302
2342
|
*
|
|
2303
2343
|
* The securitization percent must be maintained or increased.
|
|
2304
2344
|
*
|
|
2305
|
-
*
|
|
2306
|
-
*
|
|
2307
|
-
*
|
|
2345
|
+
* Funds not yet used in a reward snapshot may leave without notice if not needed for
|
|
2346
|
+
* Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
|
|
2347
|
+
* notice and remain held until both the notice and any Bitcoin commitment have ended.
|
|
2348
|
+
* To stop issuing locks, use `close`.
|
|
2308
2349
|
**/
|
|
2309
2350
|
modifyFunding: AugmentedSubmittable<
|
|
2310
2351
|
(
|
|
@@ -2323,7 +2364,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2323
2364
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2324
2365
|
terms:
|
|
2325
2366
|
| ArgonPrimitivesVaultVaultTerms
|
|
2326
|
-
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any
|
|
2367
|
+
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any }
|
|
2327
2368
|
| string
|
|
2328
2369
|
| Uint8Array,
|
|
2329
2370
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2341,7 +2382,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2341
2382
|
) => SubmittableExtrinsic<ApiType>,
|
|
2342
2383
|
[u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
|
|
2343
2384
|
>;
|
|
2344
|
-
|
|
2385
|
+
/**
|
|
2386
|
+
* Set the desired Argonot backing. Unused funds release immediately; reward commitments
|
|
2387
|
+
* withdraw after one-year notice, continuing to participate until released.
|
|
2388
|
+
**/
|
|
2389
|
+
setArgonotSecuritization: AugmentedSubmittable<
|
|
2345
2390
|
(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2346
2391
|
[Compact<u128>]
|
|
2347
2392
|
>;
|