@dedot/chaintypes 0.53.0 → 0.55.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/moonbeam/errors.d.ts +45 -10
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +16 -6
- package/moonbeam/tx.d.ts +79 -13
- package/moonbeam/types.d.ts +59 -13
- package/package.json +3 -3
- package/substrate/consts.d.ts +135 -38
- package/substrate/errors.d.ts +432 -11
- package/substrate/events.d.ts +510 -54
- package/substrate/json-rpc.d.ts +1 -0
- package/substrate/query.d.ts +330 -56
- package/substrate/runtime.d.ts +346 -44
- package/substrate/tx.d.ts +1439 -308
- package/substrate/types.d.ts +1973 -492
package/substrate/json-rpc.d.ts
CHANGED
package/substrate/query.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
BytesLike,
|
|
16
16
|
Data,
|
|
17
17
|
FixedU64,
|
|
18
|
+
H160,
|
|
18
19
|
} from 'dedot/codecs';
|
|
19
20
|
import type {
|
|
20
21
|
FrameSystemAccountInfo,
|
|
@@ -30,8 +31,8 @@ import type {
|
|
|
30
31
|
PalletBalancesAccountData,
|
|
31
32
|
PalletBalancesBalanceLock,
|
|
32
33
|
PalletBalancesReserveData,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
FrameSupportTokensMiscIdAmount,
|
|
35
|
+
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
35
36
|
PalletTransactionPaymentReleases,
|
|
36
37
|
PalletElectionProviderMultiPhasePhase,
|
|
37
38
|
PalletElectionProviderMultiPhaseReadySolution,
|
|
@@ -60,6 +61,7 @@ import type {
|
|
|
60
61
|
PalletDemocracyVoteThreshold,
|
|
61
62
|
PalletDemocracyMetadataOwner,
|
|
62
63
|
KitchensinkRuntimeRuntimeCall,
|
|
64
|
+
FrameSupportTokensFungibleHoldConsideration,
|
|
63
65
|
PalletCollectiveVotes,
|
|
64
66
|
PalletElectionsPhragmenSeatHolder,
|
|
65
67
|
PalletElectionsPhragmenVoter,
|
|
@@ -68,6 +70,7 @@ import type {
|
|
|
68
70
|
SpConsensusGrandpaAppPublic,
|
|
69
71
|
PalletTreasuryProposal,
|
|
70
72
|
PalletTreasurySpendStatus,
|
|
73
|
+
FrameSupportTokensFungibleUnionOfNativeOrWithId,
|
|
71
74
|
PalletContractsWasmCodeInfo,
|
|
72
75
|
PalletContractsStorageContractInfo,
|
|
73
76
|
PalletContractsStorageDeletionQueueManager,
|
|
@@ -77,6 +80,8 @@ import type {
|
|
|
77
80
|
PalletIdentityRegistration,
|
|
78
81
|
PalletIdentityRegistrarInfo,
|
|
79
82
|
PalletIdentityAuthorityProperties,
|
|
83
|
+
PalletIdentityUsernameInformation,
|
|
84
|
+
PalletIdentityProvider,
|
|
80
85
|
PalletSocietyGroupParams,
|
|
81
86
|
PalletSocietyMemberRecord,
|
|
82
87
|
PalletSocietyPayoutRecord,
|
|
@@ -147,7 +152,6 @@ import type {
|
|
|
147
152
|
PalletRankedCollectiveMemberRecord,
|
|
148
153
|
PalletRankedCollectiveVoteRecord,
|
|
149
154
|
PalletAssetConversionPoolInfo,
|
|
150
|
-
FrameSupportTokensFungibleUnionOfNativeOrWithId,
|
|
151
155
|
PalletFastUnstakeUnstakeRequest,
|
|
152
156
|
PalletMessageQueueBookState,
|
|
153
157
|
PalletMessageQueuePage,
|
|
@@ -157,17 +161,22 @@ import type {
|
|
|
157
161
|
PalletBrokerLeaseRecordItem,
|
|
158
162
|
PalletBrokerStatusRecord,
|
|
159
163
|
PalletBrokerSaleInfoRecord,
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
PalletBrokerPotentialRenewalRecord,
|
|
165
|
+
PalletBrokerPotentialRenewalId,
|
|
162
166
|
PalletBrokerRegionRecord,
|
|
163
167
|
PalletBrokerRegionId,
|
|
164
168
|
PalletBrokerContributionRecord,
|
|
165
169
|
PalletBrokerPoolIoRecord,
|
|
166
170
|
PalletBrokerInstaPoolHistoryRecord,
|
|
171
|
+
PalletBrokerAutoRenewalRecord,
|
|
172
|
+
PalletBrokerOnDemandRevenueRecord,
|
|
167
173
|
SpMixnetAppPublic,
|
|
168
174
|
PalletMixnetBoundedMixnode,
|
|
169
175
|
KitchensinkRuntimeRuntimeParametersValue,
|
|
170
176
|
KitchensinkRuntimeRuntimeParametersKey,
|
|
177
|
+
PalletReviveWasmCodeInfo,
|
|
178
|
+
PalletReviveStorageContractInfo,
|
|
179
|
+
PalletReviveStorageDeletionQueueManager,
|
|
171
180
|
} from './types';
|
|
172
181
|
|
|
173
182
|
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
@@ -606,6 +615,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
606
615
|
* Any liquidity locks on some account balances.
|
|
607
616
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
608
617
|
*
|
|
618
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
619
|
+
*
|
|
609
620
|
* @param {AccountId32Like} arg
|
|
610
621
|
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
611
622
|
**/
|
|
@@ -614,6 +625,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
614
625
|
/**
|
|
615
626
|
* Named reserves on some account balances.
|
|
616
627
|
*
|
|
628
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
629
|
+
*
|
|
617
630
|
* @param {AccountId32Like} arg
|
|
618
631
|
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
619
632
|
**/
|
|
@@ -623,19 +636,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
623
636
|
* Holds on account balances.
|
|
624
637
|
*
|
|
625
638
|
* @param {AccountId32Like} arg
|
|
626
|
-
* @param {Callback<Array<
|
|
639
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
627
640
|
**/
|
|
628
|
-
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<
|
|
641
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
|
|
629
642
|
|
|
630
643
|
/**
|
|
631
644
|
* Freeze locks on account balances.
|
|
632
645
|
*
|
|
633
646
|
* @param {AccountId32Like} arg
|
|
634
|
-
* @param {Callback<Array<
|
|
647
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
635
648
|
**/
|
|
636
649
|
freezes: GenericStorageQuery<
|
|
637
650
|
Rv,
|
|
638
|
-
(arg: AccountId32Like) => Array<
|
|
651
|
+
(arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
639
652
|
AccountId32
|
|
640
653
|
>;
|
|
641
654
|
|
|
@@ -934,6 +947,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
934
947
|
**/
|
|
935
948
|
counterForNominators: GenericStorageQuery<Rv, () => number>;
|
|
936
949
|
|
|
950
|
+
/**
|
|
951
|
+
* Stakers whose funds are managed by other pallets.
|
|
952
|
+
*
|
|
953
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
954
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
955
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
956
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
957
|
+
*
|
|
958
|
+
* @param {AccountId32Like} arg
|
|
959
|
+
* @param {Callback<[] | undefined> =} callback
|
|
960
|
+
**/
|
|
961
|
+
virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Counter for the related counted storage map
|
|
965
|
+
*
|
|
966
|
+
* @param {Callback<number> =} callback
|
|
967
|
+
**/
|
|
968
|
+
counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
|
|
969
|
+
|
|
937
970
|
/**
|
|
938
971
|
* The maximum nominator count before we stop allowing new validators to join.
|
|
939
972
|
*
|
|
@@ -1224,19 +1257,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1224
1257
|
currentPlannedSession: GenericStorageQuery<Rv, () => number>;
|
|
1225
1258
|
|
|
1226
1259
|
/**
|
|
1227
|
-
* Indices of validators that have offended in the active era
|
|
1228
|
-
*
|
|
1260
|
+
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
|
1261
|
+
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
|
1262
|
+
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
|
1263
|
+
* implicitly means that the implementor also controls the max number of disabled validators.
|
|
1229
1264
|
*
|
|
1230
|
-
*
|
|
1231
|
-
*
|
|
1232
|
-
* validators that have offended in the current era, ensuring a new era is forced if
|
|
1233
|
-
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
|
1234
|
-
* whether a given validator has previously offended using binary search. It gets cleared when
|
|
1235
|
-
* the era ends.
|
|
1265
|
+
* The vec is always kept sorted so that we can find whether a given validator has previously
|
|
1266
|
+
* offended using binary search.
|
|
1236
1267
|
*
|
|
1237
|
-
* @param {Callback<Array<
|
|
1268
|
+
* @param {Callback<Array<number>> =} callback
|
|
1238
1269
|
**/
|
|
1239
|
-
|
|
1270
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1240
1271
|
|
|
1241
1272
|
/**
|
|
1242
1273
|
* The threshold for when users can start calling `chill_other` for other validators /
|
|
@@ -1465,6 +1496,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1465
1496
|
**/
|
|
1466
1497
|
proposalOf: GenericStorageQuery<Rv, (arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>;
|
|
1467
1498
|
|
|
1499
|
+
/**
|
|
1500
|
+
* Consideration cost created for publishing and storing a proposal.
|
|
1501
|
+
*
|
|
1502
|
+
* Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if
|
|
1503
|
+
* the proposal count at the time of creation was below threshold N).
|
|
1504
|
+
*
|
|
1505
|
+
* @param {H256} arg
|
|
1506
|
+
* @param {Callback<[AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined> =} callback
|
|
1507
|
+
**/
|
|
1508
|
+
costOf: GenericStorageQuery<
|
|
1509
|
+
Rv,
|
|
1510
|
+
(arg: H256) => [AccountId32, FrameSupportTokensFungibleHoldConsideration] | undefined,
|
|
1511
|
+
H256
|
|
1512
|
+
>;
|
|
1513
|
+
|
|
1468
1514
|
/**
|
|
1469
1515
|
* Votes on a given proposal, if it is ongoing.
|
|
1470
1516
|
*
|
|
@@ -1488,7 +1534,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1488
1534
|
members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
1489
1535
|
|
|
1490
1536
|
/**
|
|
1491
|
-
* The prime member that helps determine the default vote behavior in case of
|
|
1537
|
+
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
1492
1538
|
*
|
|
1493
1539
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1494
1540
|
**/
|
|
@@ -1518,6 +1564,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1518
1564
|
**/
|
|
1519
1565
|
proposalOf: GenericStorageQuery<Rv, (arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>;
|
|
1520
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* Consideration cost created for publishing and storing a proposal.
|
|
1569
|
+
*
|
|
1570
|
+
* Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if
|
|
1571
|
+
* the proposal count at the time of creation was below threshold N).
|
|
1572
|
+
*
|
|
1573
|
+
* @param {H256} arg
|
|
1574
|
+
* @param {Callback<[AccountId32, []] | undefined> =} callback
|
|
1575
|
+
**/
|
|
1576
|
+
costOf: GenericStorageQuery<Rv, (arg: H256) => [AccountId32, []] | undefined, H256>;
|
|
1577
|
+
|
|
1521
1578
|
/**
|
|
1522
1579
|
* Votes on a given proposal, if it is ongoing.
|
|
1523
1580
|
*
|
|
@@ -1541,7 +1598,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1541
1598
|
members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
1542
1599
|
|
|
1543
1600
|
/**
|
|
1544
|
-
* The prime member that helps determine the default vote behavior in case of
|
|
1601
|
+
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
1545
1602
|
*
|
|
1546
1603
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1547
1604
|
**/
|
|
@@ -1706,6 +1763,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1706
1763
|
**/
|
|
1707
1764
|
treasury: {
|
|
1708
1765
|
/**
|
|
1766
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1767
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1768
|
+
*
|
|
1709
1769
|
* Number of proposals that have been made.
|
|
1710
1770
|
*
|
|
1711
1771
|
* @param {Callback<number> =} callback
|
|
@@ -1713,6 +1773,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1713
1773
|
proposalCount: GenericStorageQuery<Rv, () => number>;
|
|
1714
1774
|
|
|
1715
1775
|
/**
|
|
1776
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1777
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1778
|
+
*
|
|
1716
1779
|
* Proposals that have been made.
|
|
1717
1780
|
*
|
|
1718
1781
|
* @param {number} arg
|
|
@@ -1728,6 +1791,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1728
1791
|
deactivated: GenericStorageQuery<Rv, () => bigint>;
|
|
1729
1792
|
|
|
1730
1793
|
/**
|
|
1794
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1795
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1796
|
+
*
|
|
1731
1797
|
* Proposal indices that have been approved but not yet awarded.
|
|
1732
1798
|
*
|
|
1733
1799
|
* @param {Callback<Array<number>> =} callback
|
|
@@ -1749,6 +1815,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1749
1815
|
**/
|
|
1750
1816
|
spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
|
|
1751
1817
|
|
|
1818
|
+
/**
|
|
1819
|
+
* The blocknumber for the last triggered spend period.
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Callback<number | undefined> =} callback
|
|
1822
|
+
**/
|
|
1823
|
+
lastSpendPeriod: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1824
|
+
|
|
1752
1825
|
/**
|
|
1753
1826
|
* Generic pallet storage query
|
|
1754
1827
|
**/
|
|
@@ -1763,10 +1836,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1763
1836
|
*
|
|
1764
1837
|
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
1765
1838
|
*
|
|
1766
|
-
* @param {
|
|
1839
|
+
* @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} arg
|
|
1767
1840
|
* @param {Callback<FixedU128 | undefined> =} callback
|
|
1768
1841
|
**/
|
|
1769
|
-
conversionRateToNative: GenericStorageQuery<
|
|
1842
|
+
conversionRateToNative: GenericStorageQuery<
|
|
1843
|
+
Rv,
|
|
1844
|
+
(arg: FrameSupportTokensFungibleUnionOfNativeOrWithId) => FixedU128 | undefined,
|
|
1845
|
+
FrameSupportTokensFungibleUnionOfNativeOrWithId
|
|
1846
|
+
>;
|
|
1770
1847
|
|
|
1771
1848
|
/**
|
|
1772
1849
|
* Generic pallet storage query
|
|
@@ -2038,13 +2115,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2038
2115
|
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
2039
2116
|
*
|
|
2040
2117
|
* @param {AccountId32Like} arg
|
|
2041
|
-
* @param {Callback<
|
|
2118
|
+
* @param {Callback<PalletIdentityRegistration | undefined> =} callback
|
|
2042
2119
|
**/
|
|
2043
|
-
identityOf: GenericStorageQuery<
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2120
|
+
identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* Identifies the primary username of an account.
|
|
2124
|
+
*
|
|
2125
|
+
* @param {AccountId32Like} arg
|
|
2126
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
2127
|
+
**/
|
|
2128
|
+
usernameOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => Bytes | undefined, AccountId32>;
|
|
2048
2129
|
|
|
2049
2130
|
/**
|
|
2050
2131
|
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
@@ -2080,39 +2161,51 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2080
2161
|
/**
|
|
2081
2162
|
* A map of the accounts who are authorized to grant usernames.
|
|
2082
2163
|
*
|
|
2083
|
-
* @param {
|
|
2164
|
+
* @param {BytesLike} arg
|
|
2084
2165
|
* @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
|
|
2085
2166
|
**/
|
|
2086
|
-
|
|
2087
|
-
Rv,
|
|
2088
|
-
(arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
|
|
2089
|
-
AccountId32
|
|
2090
|
-
>;
|
|
2167
|
+
authorityOf: GenericStorageQuery<Rv, (arg: BytesLike) => PalletIdentityAuthorityProperties | undefined, Bytes>;
|
|
2091
2168
|
|
|
2092
2169
|
/**
|
|
2093
|
-
* Reverse lookup from `username` to the `AccountId` that has registered it
|
|
2094
|
-
* be a key in the `
|
|
2170
|
+
* Reverse lookup from `username` to the `AccountId` that has registered it and the provider of
|
|
2171
|
+
* the username. The `owner` value should be a key in the `UsernameOf` map, but it may not if
|
|
2172
|
+
* the user has cleared their username or it has been removed.
|
|
2095
2173
|
*
|
|
2096
|
-
* Multiple usernames may map to the same `AccountId`, but `
|
|
2174
|
+
* Multiple usernames may map to the same `AccountId`, but `UsernameOf` will only map to one
|
|
2097
2175
|
* primary username.
|
|
2098
2176
|
*
|
|
2099
2177
|
* @param {BytesLike} arg
|
|
2100
|
-
* @param {Callback<
|
|
2178
|
+
* @param {Callback<PalletIdentityUsernameInformation | undefined> =} callback
|
|
2101
2179
|
**/
|
|
2102
|
-
|
|
2180
|
+
usernameInfoOf: GenericStorageQuery<Rv, (arg: BytesLike) => PalletIdentityUsernameInformation | undefined, Bytes>;
|
|
2103
2181
|
|
|
2104
2182
|
/**
|
|
2105
2183
|
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
2106
2184
|
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
2107
2185
|
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
2108
|
-
* [`Call::accept_username`
|
|
2186
|
+
* [accept_username](`Call::accept_username`).
|
|
2109
2187
|
*
|
|
2110
2188
|
* First tuple item is the account and second is the acceptance deadline.
|
|
2111
2189
|
*
|
|
2112
2190
|
* @param {BytesLike} arg
|
|
2113
|
-
* @param {Callback<[AccountId32, number] | undefined> =} callback
|
|
2191
|
+
* @param {Callback<[AccountId32, number, PalletIdentityProvider] | undefined> =} callback
|
|
2114
2192
|
**/
|
|
2115
|
-
pendingUsernames: GenericStorageQuery<
|
|
2193
|
+
pendingUsernames: GenericStorageQuery<
|
|
2194
|
+
Rv,
|
|
2195
|
+
(arg: BytesLike) => [AccountId32, number, PalletIdentityProvider] | undefined,
|
|
2196
|
+
Bytes
|
|
2197
|
+
>;
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* Usernames for which the authority that granted them has started the removal process by
|
|
2201
|
+
* unbinding them. Each unbinding username maps to its grace period expiry, which is the first
|
|
2202
|
+
* block in which the username could be deleted through a
|
|
2203
|
+
* [remove_username](`Call::remove_username`) call.
|
|
2204
|
+
*
|
|
2205
|
+
* @param {BytesLike} arg
|
|
2206
|
+
* @param {Callback<number | undefined> =} callback
|
|
2207
|
+
**/
|
|
2208
|
+
unbindingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => number | undefined, Bytes>;
|
|
2116
2209
|
|
|
2117
2210
|
/**
|
|
2118
2211
|
* Generic pallet storage query
|
|
@@ -2437,6 +2530,16 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2437
2530
|
**/
|
|
2438
2531
|
storage: GenericStorageQuery<Rv, () => FixedU64>;
|
|
2439
2532
|
|
|
2533
|
+
/**
|
|
2534
|
+
* The proportion of the `block length` to consume on each block.
|
|
2535
|
+
*
|
|
2536
|
+
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
|
2537
|
+
* over `1.0` could stall the chain.
|
|
2538
|
+
*
|
|
2539
|
+
* @param {Callback<FixedU64> =} callback
|
|
2540
|
+
**/
|
|
2541
|
+
length: GenericStorageQuery<Rv, () => FixedU64>;
|
|
2542
|
+
|
|
2440
2543
|
/**
|
|
2441
2544
|
* Storage map used for wasting proof size.
|
|
2442
2545
|
*
|
|
@@ -2664,6 +2767,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2664
2767
|
**/
|
|
2665
2768
|
metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
|
|
2666
2769
|
|
|
2770
|
+
/**
|
|
2771
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
2772
|
+
* item has no effect.
|
|
2773
|
+
*
|
|
2774
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
2775
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
2776
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
2777
|
+
*
|
|
2778
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
2779
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
2780
|
+
*
|
|
2781
|
+
* @param {Callback<number | undefined> =} callback
|
|
2782
|
+
**/
|
|
2783
|
+
nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2784
|
+
|
|
2667
2785
|
/**
|
|
2668
2786
|
* Generic pallet storage query
|
|
2669
2787
|
**/
|
|
@@ -2715,6 +2833,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2715
2833
|
**/
|
|
2716
2834
|
metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
|
|
2717
2835
|
|
|
2836
|
+
/**
|
|
2837
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
2838
|
+
* item has no effect.
|
|
2839
|
+
*
|
|
2840
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
2841
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
2842
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
2843
|
+
*
|
|
2844
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
2845
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
2846
|
+
*
|
|
2847
|
+
* @param {Callback<number | undefined> =} callback
|
|
2848
|
+
**/
|
|
2849
|
+
nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2850
|
+
|
|
2718
2851
|
/**
|
|
2719
2852
|
* Generic pallet storage query
|
|
2720
2853
|
**/
|
|
@@ -3434,14 +3567,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3434
3567
|
**/
|
|
3435
3568
|
childBounties: {
|
|
3436
3569
|
/**
|
|
3437
|
-
*
|
|
3570
|
+
* DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
|
|
3571
|
+
* for each parent bounty. Number of total child bounties. Will be removed in May 2025.
|
|
3438
3572
|
*
|
|
3439
3573
|
* @param {Callback<number> =} callback
|
|
3440
3574
|
**/
|
|
3441
3575
|
childBountyCount: GenericStorageQuery<Rv, () => number>;
|
|
3442
3576
|
|
|
3443
3577
|
/**
|
|
3444
|
-
* Number of child bounties per parent bounty.
|
|
3578
|
+
* Number of active child bounties per parent bounty.
|
|
3445
3579
|
* Map of parent bounty index to number of child bounties.
|
|
3446
3580
|
*
|
|
3447
3581
|
* @param {number} arg
|
|
@@ -3449,6 +3583,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3449
3583
|
**/
|
|
3450
3584
|
parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
3451
3585
|
|
|
3586
|
+
/**
|
|
3587
|
+
* Number of total child bounties per parent bounty, including completed bounties.
|
|
3588
|
+
*
|
|
3589
|
+
* @param {number} arg
|
|
3590
|
+
* @param {Callback<number> =} callback
|
|
3591
|
+
**/
|
|
3592
|
+
parentTotalChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
3593
|
+
|
|
3452
3594
|
/**
|
|
3453
3595
|
* Child bounties that have been added.
|
|
3454
3596
|
*
|
|
@@ -3462,12 +3604,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3462
3604
|
>;
|
|
3463
3605
|
|
|
3464
3606
|
/**
|
|
3465
|
-
* The description of each child-bounty.
|
|
3607
|
+
* The description of each child-bounty. Indexed by `(parent_id, child_id)`.
|
|
3466
3608
|
*
|
|
3467
|
-
*
|
|
3609
|
+
* This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
|
|
3610
|
+
*
|
|
3611
|
+
* @param {[number, number]} arg
|
|
3468
3612
|
* @param {Callback<Bytes | undefined> =} callback
|
|
3469
3613
|
**/
|
|
3470
|
-
|
|
3614
|
+
childBountyDescriptionsV1: GenericStorageQuery<Rv, (arg: [number, number]) => Bytes | undefined, [number, number]>;
|
|
3615
|
+
|
|
3616
|
+
/**
|
|
3617
|
+
* The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
|
|
3618
|
+
*
|
|
3619
|
+
* The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
|
|
3620
|
+
* based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
|
|
3621
|
+
* The item intended solely for client convenience and not used in the pallet's core logic.
|
|
3622
|
+
*
|
|
3623
|
+
* @param {number} arg
|
|
3624
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
3625
|
+
**/
|
|
3626
|
+
v0ToV1ChildBountyIds: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
|
|
3471
3627
|
|
|
3472
3628
|
/**
|
|
3473
3629
|
* The cumulative child-bounty curator fee for each parent bounty.
|
|
@@ -3605,6 +3761,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3605
3761
|
**/
|
|
3606
3762
|
proposalOf: GenericStorageQuery<Rv, (arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>;
|
|
3607
3763
|
|
|
3764
|
+
/**
|
|
3765
|
+
* Consideration cost created for publishing and storing a proposal.
|
|
3766
|
+
*
|
|
3767
|
+
* Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if
|
|
3768
|
+
* the proposal count at the time of creation was below threshold N).
|
|
3769
|
+
*
|
|
3770
|
+
* @param {H256} arg
|
|
3771
|
+
* @param {Callback<[AccountId32, []] | undefined> =} callback
|
|
3772
|
+
**/
|
|
3773
|
+
costOf: GenericStorageQuery<Rv, (arg: H256) => [AccountId32, []] | undefined, H256>;
|
|
3774
|
+
|
|
3608
3775
|
/**
|
|
3609
3776
|
* Votes on a given proposal, if it is ongoing.
|
|
3610
3777
|
*
|
|
@@ -3628,7 +3795,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3628
3795
|
members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
3629
3796
|
|
|
3630
3797
|
/**
|
|
3631
|
-
* The prime member that helps determine the default vote behavior in case of
|
|
3798
|
+
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
3632
3799
|
*
|
|
3633
3800
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
3634
3801
|
**/
|
|
@@ -4340,19 +4507,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
4340
4507
|
saleInfo: GenericStorageQuery<Rv, () => PalletBrokerSaleInfoRecord | undefined>;
|
|
4341
4508
|
|
|
4342
4509
|
/**
|
|
4343
|
-
* Records of
|
|
4510
|
+
* Records of potential renewals.
|
|
4511
|
+
*
|
|
4512
|
+
* Renewals will only actually be allowed if `CompletionStatus` is actually `Complete`.
|
|
4344
4513
|
*
|
|
4345
|
-
* @param {
|
|
4346
|
-
* @param {Callback<
|
|
4514
|
+
* @param {PalletBrokerPotentialRenewalId} arg
|
|
4515
|
+
* @param {Callback<PalletBrokerPotentialRenewalRecord | undefined> =} callback
|
|
4347
4516
|
**/
|
|
4348
|
-
|
|
4517
|
+
potentialRenewals: GenericStorageQuery<
|
|
4349
4518
|
Rv,
|
|
4350
|
-
(arg:
|
|
4351
|
-
|
|
4519
|
+
(arg: PalletBrokerPotentialRenewalId) => PalletBrokerPotentialRenewalRecord | undefined,
|
|
4520
|
+
PalletBrokerPotentialRenewalId
|
|
4352
4521
|
>;
|
|
4353
4522
|
|
|
4354
4523
|
/**
|
|
4355
|
-
* The current (unassigned) Regions.
|
|
4524
|
+
* The current (unassigned or provisionally assigend) Regions.
|
|
4356
4525
|
*
|
|
4357
4526
|
* @param {PalletBrokerRegionId} arg
|
|
4358
4527
|
* @param {Callback<PalletBrokerRegionRecord | undefined> =} callback
|
|
@@ -4418,6 +4587,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
4418
4587
|
**/
|
|
4419
4588
|
coreCountInbox: GenericStorageQuery<Rv, () => number | undefined>;
|
|
4420
4589
|
|
|
4590
|
+
/**
|
|
4591
|
+
* Keeping track of cores which have auto-renewal enabled.
|
|
4592
|
+
*
|
|
4593
|
+
* Sorted by `CoreIndex` to make the removal of cores from auto-renewal more efficient.
|
|
4594
|
+
*
|
|
4595
|
+
* @param {Callback<Array<PalletBrokerAutoRenewalRecord>> =} callback
|
|
4596
|
+
**/
|
|
4597
|
+
autoRenewals: GenericStorageQuery<Rv, () => Array<PalletBrokerAutoRenewalRecord>>;
|
|
4598
|
+
|
|
4599
|
+
/**
|
|
4600
|
+
* Received revenue info from the relay chain.
|
|
4601
|
+
*
|
|
4602
|
+
* @param {Callback<PalletBrokerOnDemandRevenueRecord | undefined> =} callback
|
|
4603
|
+
**/
|
|
4604
|
+
revenueInbox: GenericStorageQuery<Rv, () => PalletBrokerOnDemandRevenueRecord | undefined>;
|
|
4605
|
+
|
|
4421
4606
|
/**
|
|
4422
4607
|
* Generic pallet storage query
|
|
4423
4608
|
**/
|
|
@@ -4512,6 +4697,95 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
4512
4697
|
KitchensinkRuntimeRuntimeParametersKey
|
|
4513
4698
|
>;
|
|
4514
4699
|
|
|
4700
|
+
/**
|
|
4701
|
+
* Generic pallet storage query
|
|
4702
|
+
**/
|
|
4703
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
4704
|
+
};
|
|
4705
|
+
/**
|
|
4706
|
+
* Pallet `PalletExampleMbms`'s storage queries
|
|
4707
|
+
**/
|
|
4708
|
+
palletExampleMbms: {
|
|
4709
|
+
/**
|
|
4710
|
+
* Define a storage item to illustrate multi-block migrations.
|
|
4711
|
+
*
|
|
4712
|
+
* @param {number} arg
|
|
4713
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
4714
|
+
**/
|
|
4715
|
+
myMap: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
|
|
4716
|
+
|
|
4717
|
+
/**
|
|
4718
|
+
* Generic pallet storage query
|
|
4719
|
+
**/
|
|
4720
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
4721
|
+
};
|
|
4722
|
+
/**
|
|
4723
|
+
* Pallet `Revive`'s storage queries
|
|
4724
|
+
**/
|
|
4725
|
+
revive: {
|
|
4726
|
+
/**
|
|
4727
|
+
* A mapping from a contract's code hash to its code.
|
|
4728
|
+
*
|
|
4729
|
+
* @param {H256} arg
|
|
4730
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
4731
|
+
**/
|
|
4732
|
+
pristineCode: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* A mapping from a contract's code hash to its code info.
|
|
4736
|
+
*
|
|
4737
|
+
* @param {H256} arg
|
|
4738
|
+
* @param {Callback<PalletReviveWasmCodeInfo | undefined> =} callback
|
|
4739
|
+
**/
|
|
4740
|
+
codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletReviveWasmCodeInfo | undefined, H256>;
|
|
4741
|
+
|
|
4742
|
+
/**
|
|
4743
|
+
* The code associated with a given account.
|
|
4744
|
+
*
|
|
4745
|
+
* @param {H160} arg
|
|
4746
|
+
* @param {Callback<PalletReviveStorageContractInfo | undefined> =} callback
|
|
4747
|
+
**/
|
|
4748
|
+
contractInfoOf: GenericStorageQuery<Rv, (arg: H160) => PalletReviveStorageContractInfo | undefined, H160>;
|
|
4749
|
+
|
|
4750
|
+
/**
|
|
4751
|
+
* The immutable data associated with a given account.
|
|
4752
|
+
*
|
|
4753
|
+
* @param {H160} arg
|
|
4754
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
4755
|
+
**/
|
|
4756
|
+
immutableDataOf: GenericStorageQuery<Rv, (arg: H160) => Bytes | undefined, H160>;
|
|
4757
|
+
|
|
4758
|
+
/**
|
|
4759
|
+
* Evicted contracts that await child trie deletion.
|
|
4760
|
+
*
|
|
4761
|
+
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
4762
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
4763
|
+
*
|
|
4764
|
+
* @param {number} arg
|
|
4765
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
4766
|
+
**/
|
|
4767
|
+
deletionQueue: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
4768
|
+
|
|
4769
|
+
/**
|
|
4770
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
4771
|
+
* and the latest deleted contract in queue.
|
|
4772
|
+
*
|
|
4773
|
+
* @param {Callback<PalletReviveStorageDeletionQueueManager> =} callback
|
|
4774
|
+
**/
|
|
4775
|
+
deletionQueueCounter: GenericStorageQuery<Rv, () => PalletReviveStorageDeletionQueueManager>;
|
|
4776
|
+
|
|
4777
|
+
/**
|
|
4778
|
+
* Map a Ethereum address to its original `AccountId32`.
|
|
4779
|
+
*
|
|
4780
|
+
* Stores the last 12 byte for addresses that were originally an `AccountId32` instead
|
|
4781
|
+
* of an `H160`. Register your `AccountId32` using [`Pallet::map_account`] in order to
|
|
4782
|
+
* use it with this pallet.
|
|
4783
|
+
*
|
|
4784
|
+
* @param {H160} arg
|
|
4785
|
+
* @param {Callback<FixedBytes<12> | undefined> =} callback
|
|
4786
|
+
**/
|
|
4787
|
+
addressSuffix: GenericStorageQuery<Rv, (arg: H160) => FixedBytes<12> | undefined, H160>;
|
|
4788
|
+
|
|
4515
4789
|
/**
|
|
4516
4790
|
* Generic pallet storage query
|
|
4517
4791
|
**/
|