@dedot/chaintypes 0.248.0 → 0.250.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/package.json +2 -2
- package/paseo/errors.d.ts +5 -0
- package/paseo/events.d.ts +94 -16
- package/paseo/index.d.ts +1 -1
- package/paseo/json-rpc.d.ts +1 -0
- package/paseo/query.d.ts +85 -46
- package/paseo/runtime.d.ts +90 -79
- package/paseo/tx.d.ts +81 -32
- package/paseo/types.d.ts +278 -209
- package/paseo-asset-hub/consts.d.ts +87 -0
- package/paseo-asset-hub/errors.d.ts +170 -0
- package/paseo-asset-hub/events.d.ts +359 -6
- package/paseo-asset-hub/index.d.ts +3 -1
- package/paseo-asset-hub/json-rpc.d.ts +1 -0
- package/paseo-asset-hub/query.d.ts +261 -17
- package/paseo-asset-hub/runtime.d.ts +11 -6
- package/paseo-asset-hub/tx.d.ts +729 -1
- package/paseo-asset-hub/types.d.ts +1426 -155
- package/paseo-asset-hub/view-functions.d.ts +195 -2
- package/paseo-people/errors.d.ts +5 -0
- package/paseo-people/events.d.ts +78 -2
- package/paseo-people/index.d.ts +1 -1
- package/paseo-people/query.d.ts +44 -16
- package/paseo-people/runtime.d.ts +9 -5
- package/paseo-people/tx.d.ts +30 -0
- package/paseo-people/types.d.ts +107 -25
- package/paseo-people/view-functions.d.ts +46 -1
- package/polkadot-asset-hub/consts.d.ts +87 -0
- package/polkadot-asset-hub/errors.d.ts +170 -0
- package/polkadot-asset-hub/events.d.ts +359 -6
- package/polkadot-asset-hub/index.d.ts +3 -1
- package/polkadot-asset-hub/query.d.ts +261 -17
- package/polkadot-asset-hub/runtime.d.ts +11 -6
- package/polkadot-asset-hub/tx.d.ts +729 -1
- package/polkadot-asset-hub/types.d.ts +1426 -155
- package/polkadot-asset-hub/view-functions.d.ts +195 -2
- package/polkadot-people/consts.d.ts +75 -0
- package/polkadot-people/errors.d.ts +170 -0
- package/polkadot-people/events.d.ts +377 -3
- package/polkadot-people/index.d.ts +5 -4
- package/polkadot-people/query.d.ts +169 -16
- package/polkadot-people/runtime.d.ts +9 -5
- package/polkadot-people/tx.d.ts +1316 -2
- package/polkadot-people/types.d.ts +1857 -182
- package/polkadot-people/view-functions.d.ts +46 -1
|
@@ -10,9 +10,9 @@ import type {
|
|
|
10
10
|
Phase,
|
|
11
11
|
FixedU128,
|
|
12
12
|
FixedBytes,
|
|
13
|
+
BytesLike,
|
|
13
14
|
EthereumAddress,
|
|
14
15
|
EthereumAddressLike,
|
|
15
|
-
BytesLike,
|
|
16
16
|
Perbill,
|
|
17
17
|
Percent,
|
|
18
18
|
H160,
|
|
@@ -26,12 +26,12 @@ import type {
|
|
|
26
26
|
SpWeightsWeightV2Weight,
|
|
27
27
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
28
28
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
PolkadotPrimitivesV9PersistedValidationData,
|
|
30
|
+
PolkadotPrimitivesV9UpgradeRestriction,
|
|
31
|
+
PolkadotPrimitivesV9UpgradeGoAhead,
|
|
32
32
|
SpTrieStorageProof,
|
|
33
33
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
34
|
-
|
|
34
|
+
PolkadotPrimitivesV9AbridgedHostConfiguration,
|
|
35
35
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
36
36
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
37
37
|
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
@@ -42,6 +42,7 @@ import type {
|
|
|
42
42
|
PalletSchedulerRetryConfig,
|
|
43
43
|
AssetHubPolkadotRuntimeRuntimeParametersValue,
|
|
44
44
|
AssetHubPolkadotRuntimeRuntimeParametersKey,
|
|
45
|
+
PalletMigrationsMigrationCursor,
|
|
45
46
|
PalletBalancesAccountData,
|
|
46
47
|
PalletBalancesBalanceLock,
|
|
47
48
|
PalletBalancesReserveData,
|
|
@@ -94,6 +95,7 @@ import type {
|
|
|
94
95
|
PalletNftsCollectionConfig,
|
|
95
96
|
PalletNftsItemConfig,
|
|
96
97
|
StagingXcmV5Location,
|
|
98
|
+
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
|
|
97
99
|
PalletAssetConversionPoolInfo,
|
|
98
100
|
PalletTreasuryProposal,
|
|
99
101
|
PalletTreasurySpendStatus,
|
|
@@ -102,6 +104,9 @@ import type {
|
|
|
102
104
|
PalletBountiesBounty,
|
|
103
105
|
PalletChildBountiesChildBounty,
|
|
104
106
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
107
|
+
PalletMultiAssetBountiesBounty,
|
|
108
|
+
PalletMultiAssetBountiesChildBounty,
|
|
109
|
+
FrameSupportTokensFungibleHoldConsideration,
|
|
105
110
|
PalletStateTrieMigrationMigrationTask,
|
|
106
111
|
PalletStateTrieMigrationMigrationLimits,
|
|
107
112
|
PalletNominationPoolsPoolMember,
|
|
@@ -370,12 +375,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
370
375
|
|
|
371
376
|
/**
|
|
372
377
|
* The [`PersistedValidationData`] set for this block.
|
|
373
|
-
* This value is expected to be set only once per block and it's never stored
|
|
374
|
-
* in the trie.
|
|
375
378
|
*
|
|
376
|
-
*
|
|
379
|
+
* This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
|
|
380
|
+
*
|
|
381
|
+
* @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
|
|
377
382
|
**/
|
|
378
|
-
validationData: GenericStorageQuery<() =>
|
|
383
|
+
validationData: GenericStorageQuery<() => PolkadotPrimitivesV9PersistedValidationData | undefined>;
|
|
379
384
|
|
|
380
385
|
/**
|
|
381
386
|
* Were the validation data set to notify the relay chain?
|
|
@@ -402,9 +407,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
402
407
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
403
408
|
* set after the inherent.
|
|
404
409
|
*
|
|
405
|
-
* @param {Callback<
|
|
410
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
|
|
406
411
|
**/
|
|
407
|
-
upgradeRestrictionSignal: GenericStorageQuery<() =>
|
|
412
|
+
upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
|
|
408
413
|
|
|
409
414
|
/**
|
|
410
415
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -413,9 +418,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
413
418
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
414
419
|
* set after the inherent.
|
|
415
420
|
*
|
|
416
|
-
* @param {Callback<
|
|
421
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
|
|
417
422
|
**/
|
|
418
|
-
upgradeGoAhead: GenericStorageQuery<() =>
|
|
423
|
+
upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
|
|
419
424
|
|
|
420
425
|
/**
|
|
421
426
|
* The state proof for the last relay parent block.
|
|
@@ -452,9 +457,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
452
457
|
*
|
|
453
458
|
* This data is also absent from the genesis.
|
|
454
459
|
*
|
|
455
|
-
* @param {Callback<
|
|
460
|
+
* @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
|
|
456
461
|
**/
|
|
457
|
-
hostConfiguration: GenericStorageQuery<() =>
|
|
462
|
+
hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
|
|
458
463
|
|
|
459
464
|
/**
|
|
460
465
|
* The last downward message queue chain head we have observed.
|
|
@@ -528,19 +533,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
528
533
|
/**
|
|
529
534
|
* Upward messages that were sent in a block.
|
|
530
535
|
*
|
|
531
|
-
* This will be cleared in `on_initialize`
|
|
536
|
+
* This will be cleared in `on_initialize` for each new block.
|
|
532
537
|
*
|
|
533
538
|
* @param {Callback<Array<Bytes>> =} callback
|
|
534
539
|
**/
|
|
535
540
|
upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
536
541
|
|
|
537
542
|
/**
|
|
538
|
-
* Upward messages that are still pending and not yet
|
|
543
|
+
* Upward messages that are still pending and not yet sent to the relay chain.
|
|
539
544
|
*
|
|
540
545
|
* @param {Callback<Array<Bytes>> =} callback
|
|
541
546
|
**/
|
|
542
547
|
pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
543
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Upward signals that are still pending and not yet sent to the relay chain.
|
|
551
|
+
*
|
|
552
|
+
* This will be cleared in `on_finalize` for each block.
|
|
553
|
+
*
|
|
554
|
+
* @param {Callback<Array<Bytes>> =} callback
|
|
555
|
+
**/
|
|
556
|
+
pendingUpwardSignals: GenericStorageQuery<() => Array<Bytes>>;
|
|
557
|
+
|
|
544
558
|
/**
|
|
545
559
|
* The factor to multiply the base delivery fee by for UMP.
|
|
546
560
|
*
|
|
@@ -724,6 +738,35 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
724
738
|
**/
|
|
725
739
|
[storage: string]: GenericStorageQuery;
|
|
726
740
|
};
|
|
741
|
+
/**
|
|
742
|
+
* Pallet `MultiBlockMigrations`'s storage queries
|
|
743
|
+
**/
|
|
744
|
+
multiBlockMigrations: {
|
|
745
|
+
/**
|
|
746
|
+
* The currently active migration to run and its cursor.
|
|
747
|
+
*
|
|
748
|
+
* `None` indicates that no migration is running.
|
|
749
|
+
*
|
|
750
|
+
* @param {Callback<PalletMigrationsMigrationCursor | undefined> =} callback
|
|
751
|
+
**/
|
|
752
|
+
cursor: GenericStorageQuery<() => PalletMigrationsMigrationCursor | undefined>;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Set of all successfully executed migrations.
|
|
756
|
+
*
|
|
757
|
+
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
|
758
|
+
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
|
759
|
+
*
|
|
760
|
+
* @param {BytesLike} arg
|
|
761
|
+
* @param {Callback<[] | undefined> =} callback
|
|
762
|
+
**/
|
|
763
|
+
historic: GenericStorageQuery<(arg: BytesLike) => [] | undefined, Bytes>;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Generic pallet storage query
|
|
767
|
+
**/
|
|
768
|
+
[storage: string]: GenericStorageQuery;
|
|
769
|
+
};
|
|
727
770
|
/**
|
|
728
771
|
* Pallet `Balances`'s storage queries
|
|
729
772
|
**/
|
|
@@ -1065,6 +1108,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1065
1108
|
[SpCoreCryptoKeyTypeId, Bytes]
|
|
1066
1109
|
>;
|
|
1067
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* Accounts whose keys were set via `SessionInterface` (external path) without
|
|
1113
|
+
* incrementing the consumer reference or placing a key deposit. `do_purge_keys`
|
|
1114
|
+
* only decrements consumers for accounts that were registered through the local
|
|
1115
|
+
* session pallet.
|
|
1116
|
+
*
|
|
1117
|
+
* @param {AccountId32Like} arg
|
|
1118
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1119
|
+
**/
|
|
1120
|
+
externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
1121
|
+
|
|
1068
1122
|
/**
|
|
1069
1123
|
* Generic pallet storage query
|
|
1070
1124
|
**/
|
|
@@ -1553,6 +1607,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1553
1607
|
**/
|
|
1554
1608
|
metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>;
|
|
1555
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Maps an asset to a list of its configured reserve information.
|
|
1612
|
+
*
|
|
1613
|
+
* @param {number} arg
|
|
1614
|
+
* @param {Callback<Array<[]>> =} callback
|
|
1615
|
+
**/
|
|
1616
|
+
reserves: GenericStorageQuery<(arg: number) => Array<[]>, number>;
|
|
1617
|
+
|
|
1556
1618
|
/**
|
|
1557
1619
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1558
1620
|
* item has no effect.
|
|
@@ -1872,6 +1934,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1872
1934
|
**/
|
|
1873
1935
|
metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
|
|
1874
1936
|
|
|
1937
|
+
/**
|
|
1938
|
+
* Maps an asset to a list of its configured reserve information.
|
|
1939
|
+
*
|
|
1940
|
+
* @param {StagingXcmV5Location} arg
|
|
1941
|
+
* @param {Callback<Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>> =} callback
|
|
1942
|
+
**/
|
|
1943
|
+
reserves: GenericStorageQuery<
|
|
1944
|
+
(arg: StagingXcmV5Location) => Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>,
|
|
1945
|
+
StagingXcmV5Location
|
|
1946
|
+
>;
|
|
1947
|
+
|
|
1875
1948
|
/**
|
|
1876
1949
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1877
1950
|
* item has no effect.
|
|
@@ -1936,6 +2009,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1936
2009
|
**/
|
|
1937
2010
|
metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>;
|
|
1938
2011
|
|
|
2012
|
+
/**
|
|
2013
|
+
* Maps an asset to a list of its configured reserve information.
|
|
2014
|
+
*
|
|
2015
|
+
* @param {number} arg
|
|
2016
|
+
* @param {Callback<Array<[]>> =} callback
|
|
2017
|
+
**/
|
|
2018
|
+
reserves: GenericStorageQuery<(arg: number) => Array<[]>, number>;
|
|
2019
|
+
|
|
1939
2020
|
/**
|
|
1940
2021
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1941
2022
|
* item has no effect.
|
|
@@ -2296,6 +2377,95 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2296
2377
|
**/
|
|
2297
2378
|
[storage: string]: GenericStorageQuery;
|
|
2298
2379
|
};
|
|
2380
|
+
/**
|
|
2381
|
+
* Pallet `MultiAssetBounties`'s storage queries
|
|
2382
|
+
**/
|
|
2383
|
+
multiAssetBounties: {
|
|
2384
|
+
/**
|
|
2385
|
+
* Number of bounty proposals that have been made.
|
|
2386
|
+
*
|
|
2387
|
+
* @param {Callback<number> =} callback
|
|
2388
|
+
**/
|
|
2389
|
+
bountyCount: GenericStorageQuery<() => number>;
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Bounties that have been made.
|
|
2393
|
+
*
|
|
2394
|
+
* @param {number} arg
|
|
2395
|
+
* @param {Callback<PalletMultiAssetBountiesBounty | undefined> =} callback
|
|
2396
|
+
**/
|
|
2397
|
+
bounties: GenericStorageQuery<(arg: number) => PalletMultiAssetBountiesBounty | undefined, number>;
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* Child bounties that have been added.
|
|
2401
|
+
*
|
|
2402
|
+
* Indexed by `(parent_bounty_id, child_bounty_id)`.
|
|
2403
|
+
*
|
|
2404
|
+
* @param {[number, number]} arg
|
|
2405
|
+
* @param {Callback<PalletMultiAssetBountiesChildBounty | undefined> =} callback
|
|
2406
|
+
**/
|
|
2407
|
+
childBounties: GenericStorageQuery<
|
|
2408
|
+
(arg: [number, number]) => PalletMultiAssetBountiesChildBounty | undefined,
|
|
2409
|
+
[number, number]
|
|
2410
|
+
>;
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* Number of active child bounties per parent bounty.
|
|
2414
|
+
*
|
|
2415
|
+
* Indexed by `parent_bounty_id`.
|
|
2416
|
+
*
|
|
2417
|
+
* @param {number} arg
|
|
2418
|
+
* @param {Callback<number> =} callback
|
|
2419
|
+
**/
|
|
2420
|
+
childBountiesPerParent: GenericStorageQuery<(arg: number) => number, number>;
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* Number of total child bounties per parent bounty, including completed bounties.
|
|
2424
|
+
*
|
|
2425
|
+
* Indexed by `parent_bounty_id`.
|
|
2426
|
+
*
|
|
2427
|
+
* @param {number} arg
|
|
2428
|
+
* @param {Callback<number> =} callback
|
|
2429
|
+
**/
|
|
2430
|
+
totalChildBountiesPerParent: GenericStorageQuery<(arg: number) => number, number>;
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* The cumulative child-bounty value for each parent bounty. To be subtracted from the parent
|
|
2434
|
+
* bounty payout when awarding bounty.
|
|
2435
|
+
*
|
|
2436
|
+
* Indexed by `parent_bounty_id`.
|
|
2437
|
+
*
|
|
2438
|
+
* @param {number} arg
|
|
2439
|
+
* @param {Callback<bigint> =} callback
|
|
2440
|
+
**/
|
|
2441
|
+
childBountiesValuePerParent: GenericStorageQuery<(arg: number) => bigint, number>;
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* The consideration cost incurred by the child-/bounty curator for committing to the role.
|
|
2445
|
+
*
|
|
2446
|
+
* Determined by [`pallet::Config::Consideration`]. It is created when the curator accepts the
|
|
2447
|
+
* role, and is either burned if the curator misbehaves or consumed upon successful
|
|
2448
|
+
* completion of the child-/bounty.
|
|
2449
|
+
*
|
|
2450
|
+
* Note: If the parent curator is also assigned to the child-bounty,
|
|
2451
|
+
* the consideration cost is charged only once — when the curator
|
|
2452
|
+
* accepts the role for the parent bounty.
|
|
2453
|
+
*
|
|
2454
|
+
* Indexed by `(parent_bounty_id, child_bounty_id)`.
|
|
2455
|
+
*
|
|
2456
|
+
* @param {[number, number | undefined]} arg
|
|
2457
|
+
* @param {Callback<FrameSupportTokensFungibleHoldConsideration | undefined> =} callback
|
|
2458
|
+
**/
|
|
2459
|
+
curatorDeposit: GenericStorageQuery<
|
|
2460
|
+
(arg: [number, number | undefined]) => FrameSupportTokensFungibleHoldConsideration | undefined,
|
|
2461
|
+
[number, number | undefined]
|
|
2462
|
+
>;
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* Generic pallet storage query
|
|
2466
|
+
**/
|
|
2467
|
+
[storage: string]: GenericStorageQuery;
|
|
2468
|
+
};
|
|
2299
2469
|
/**
|
|
2300
2470
|
* Pallet `StateTrieMigration`'s storage queries
|
|
2301
2471
|
**/
|
|
@@ -2570,6 +2740,34 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2570
2740
|
**/
|
|
2571
2741
|
lock: GenericStorageQuery<() => [] | undefined>;
|
|
2572
2742
|
|
|
2743
|
+
/**
|
|
2744
|
+
* Accounts that failed to be inserted into the bags-list due to locking.
|
|
2745
|
+
* These accounts will be processed with priority in `on_idle` or via `rebag` extrinsic.
|
|
2746
|
+
*
|
|
2747
|
+
* Note: This storage is intentionally unbounded. The following factors make bounding
|
|
2748
|
+
* unnecessary:
|
|
2749
|
+
* 1. The storage usage is temporary - accounts are processed and removed in `on_idle`
|
|
2750
|
+
* 2. The pallet is only locked during snapshot generation, which is weight-limited
|
|
2751
|
+
* 3. Processing happens at multiple accounts per block, clearing even large backlogs quickly
|
|
2752
|
+
* 4. An artificial limit could be exhausted by an attacker, preventing legitimate
|
|
2753
|
+
* auto-rebagging from putting accounts in the correct position
|
|
2754
|
+
*
|
|
2755
|
+
* We don't store the score here - it's always fetched from `ScoreProvider` when processing,
|
|
2756
|
+
* ensuring we use the most up-to-date score (accounts may have been slashed, rewarded, etc.
|
|
2757
|
+
* while waiting in the queue).
|
|
2758
|
+
*
|
|
2759
|
+
* @param {AccountId32Like} arg
|
|
2760
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2761
|
+
**/
|
|
2762
|
+
pendingRebag: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
2763
|
+
|
|
2764
|
+
/**
|
|
2765
|
+
* Counter for the related counted storage map
|
|
2766
|
+
*
|
|
2767
|
+
* @param {Callback<number> =} callback
|
|
2768
|
+
**/
|
|
2769
|
+
counterForPendingRebag: GenericStorageQuery<() => number>;
|
|
2770
|
+
|
|
2573
2771
|
/**
|
|
2574
2772
|
* Generic pallet storage query
|
|
2575
2773
|
**/
|
|
@@ -2949,6 +3147,33 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2949
3147
|
**/
|
|
2950
3148
|
minCommission: GenericStorageQuery<() => Perbill>;
|
|
2951
3149
|
|
|
3150
|
+
/**
|
|
3151
|
+
* Whether nominators are slashable or not.
|
|
3152
|
+
*
|
|
3153
|
+
* - When set to `true` (default), nominators are slashed along with validators and must wait
|
|
3154
|
+
* the full [`Config::BondingDuration`] before withdrawing unbonded funds.
|
|
3155
|
+
* - When set to `false`, nominators are not slashed, and can unbond in
|
|
3156
|
+
* [`Config::NominatorFastUnbondDuration`] eras instead of the full
|
|
3157
|
+
* [`Config::BondingDuration`] (see [`StakingInterface::nominator_bonding_duration`]).
|
|
3158
|
+
*
|
|
3159
|
+
* @param {Callback<boolean> =} callback
|
|
3160
|
+
**/
|
|
3161
|
+
areNominatorsSlashable: GenericStorageQuery<() => boolean>;
|
|
3162
|
+
|
|
3163
|
+
/**
|
|
3164
|
+
* Per-era snapshot of whether nominators are slashable.
|
|
3165
|
+
*
|
|
3166
|
+
* This is copied from [`AreNominatorsSlashable`] at the start of each era. When processing
|
|
3167
|
+
* offences, we use the value from this storage for the offence era to ensure that the
|
|
3168
|
+
* slashing rules at the time of the offence are applied, not the current rules.
|
|
3169
|
+
*
|
|
3170
|
+
* If an entry does not exist for an era, nominators are assumed to be slashable (default).
|
|
3171
|
+
*
|
|
3172
|
+
* @param {number} arg
|
|
3173
|
+
* @param {Callback<boolean | undefined> =} callback
|
|
3174
|
+
**/
|
|
3175
|
+
erasNominatorsSlashable: GenericStorageQuery<(arg: number) => boolean | undefined, number>;
|
|
3176
|
+
|
|
2952
3177
|
/**
|
|
2953
3178
|
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
2954
3179
|
*
|
|
@@ -2999,6 +3224,25 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2999
3224
|
**/
|
|
3000
3225
|
maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
3001
3226
|
|
|
3227
|
+
/**
|
|
3228
|
+
* Tracks the last era in which an account was active as a validator (included in the era's
|
|
3229
|
+
* exposure/snapshot).
|
|
3230
|
+
*
|
|
3231
|
+
* This is used to enforce that accounts who were recently validators must wait the full
|
|
3232
|
+
* [`Config::BondingDuration`] before their funds can be withdrawn, even if they switch to
|
|
3233
|
+
* nominator role. This prevents validators from:
|
|
3234
|
+
* 1. Committing a slashable offence in era N
|
|
3235
|
+
* 2. Switching to nominator role
|
|
3236
|
+
* 3. Using the shorter nominator unbonding duration to withdraw funds before being slashed
|
|
3237
|
+
*
|
|
3238
|
+
* Updated when era snapshots are created (in `ErasStakersPaged`/`ErasStakersOverview`).
|
|
3239
|
+
* Cleaned up when the stash is killed (fully withdrawn/reaped).
|
|
3240
|
+
*
|
|
3241
|
+
* @param {AccountId32Like} arg
|
|
3242
|
+
* @param {Callback<number | undefined> =} callback
|
|
3243
|
+
**/
|
|
3244
|
+
lastValidatorEra: GenericStorageQuery<(arg: AccountId32Like) => number | undefined, AccountId32>;
|
|
3245
|
+
|
|
3002
3246
|
/**
|
|
3003
3247
|
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
3004
3248
|
* they wish to support.
|
|
@@ -21,7 +21,7 @@ import type {
|
|
|
21
21
|
SpConsensusSlotsSlotDuration,
|
|
22
22
|
SpConsensusAuraEd25519AppEd25519Public,
|
|
23
23
|
SpConsensusSlotsSlot,
|
|
24
|
-
|
|
24
|
+
SpRuntimeBlockLazyBlock,
|
|
25
25
|
SpRuntimeExtrinsicInclusionMode,
|
|
26
26
|
SpCoreOpaqueMetadata,
|
|
27
27
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -67,6 +67,7 @@ import type {
|
|
|
67
67
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
68
68
|
PalletRevivePrimitivesContractAccessError,
|
|
69
69
|
PalletReviveEvmApiDebugRpcTypesTrace,
|
|
70
|
+
SpRuntimeBlock,
|
|
70
71
|
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
71
72
|
PalletRevivePrimitivesBalanceConversionError,
|
|
72
73
|
} from './types.js';
|
|
@@ -155,9 +156,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
155
156
|
* Execute the given block.
|
|
156
157
|
*
|
|
157
158
|
* @callname: Core_execute_block
|
|
158
|
-
* @param {
|
|
159
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
159
160
|
**/
|
|
160
|
-
executeBlock: GenericRuntimeApiMethod<(block:
|
|
161
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
161
162
|
|
|
162
163
|
/**
|
|
163
164
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -248,11 +249,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
248
249
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
249
250
|
*
|
|
250
251
|
* @callname: BlockBuilder_check_inherents
|
|
251
|
-
* @param {
|
|
252
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
252
253
|
* @param {SpInherentsInherentData} data
|
|
253
254
|
**/
|
|
254
255
|
checkInherents: GenericRuntimeApiMethod<
|
|
255
|
-
(block:
|
|
256
|
+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
256
257
|
>;
|
|
257
258
|
|
|
258
259
|
/**
|
|
@@ -529,6 +530,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
529
530
|
>;
|
|
530
531
|
|
|
531
532
|
/**
|
|
533
|
+
* Query delivery fees V2.
|
|
534
|
+
*
|
|
532
535
|
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
533
536
|
* These always come in a specific asset, defined by the chain.
|
|
534
537
|
*
|
|
@@ -541,11 +544,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
541
544
|
* @callname: XcmPaymentApi_query_delivery_fees
|
|
542
545
|
* @param {XcmVersionedLocation} destination
|
|
543
546
|
* @param {XcmVersionedXcm} message
|
|
547
|
+
* @param {XcmVersionedAssetId} asset_id
|
|
544
548
|
**/
|
|
545
549
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
546
550
|
(
|
|
547
551
|
destination: XcmVersionedLocation,
|
|
548
552
|
message: XcmVersionedXcm,
|
|
553
|
+
assetId: XcmVersionedAssetId,
|
|
549
554
|
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
550
555
|
>;
|
|
551
556
|
|
|
@@ -995,7 +1000,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
995
1000
|
erasStakersPageCount: GenericRuntimeApiMethod<(era: number, account: AccountId32Like) => Promise<number>>;
|
|
996
1001
|
|
|
997
1002
|
/**
|
|
998
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
1003
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
999
1004
|
*
|
|
1000
1005
|
* @callname: StakingApi_pending_rewards
|
|
1001
1006
|
* @param {number} era
|