@dedot/chaintypes 0.205.0 → 0.207.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.
@@ -19,6 +19,7 @@ import type {
19
19
  FrameSystemEventRecord,
20
20
  FrameSystemLastRuntimeUpgradeInfo,
21
21
  FrameSystemCodeUpgradeAuthorization,
22
+ SpWeightsWeightV2Weight,
22
23
  PalletBalancesAccountData,
23
24
  PalletBalancesBalanceLock,
24
25
  PalletBalancesReserveData,
@@ -39,6 +40,7 @@ import type {
39
40
  PalletProxyAnnouncement,
40
41
  PalletCollatorSelectionCandidateInfo,
41
42
  BasiliskRuntimeOpaqueSessionKeys,
43
+ SpStakingOffenceOffenceSeverity,
42
44
  SpCoreCryptoKeyTypeId,
43
45
  SpConsensusAuraSr25519AppSr25519Public,
44
46
  SpConsensusSlotsSlot,
@@ -51,6 +53,8 @@ import type {
51
53
  PalletIdentityRegistration,
52
54
  PalletIdentityRegistrarInfo,
53
55
  PalletIdentityAuthorityProperties,
56
+ PalletIdentityUsernameInformation,
57
+ PalletIdentityProvider,
54
58
  PalletMultisigMultisig,
55
59
  PalletStateTrieMigrationMigrationTask,
56
60
  PalletStateTrieMigrationMigrationLimits,
@@ -69,13 +73,13 @@ import type {
69
73
  CumulusPrimitivesParachainInherentMessageQueueChain,
70
74
  PolkadotParachainPrimitivesPrimitivesId,
71
75
  PolkadotCorePrimitivesOutboundHrmpMessage,
72
- SpWeightsWeightV2Weight,
73
76
  PalletXcmQueryStatus,
74
77
  XcmVersionedLocation,
75
78
  PalletXcmVersionMigrationStage,
76
79
  PalletXcmRemoteLockedFungibleRecord,
77
80
  XcmVersionedAssetId,
78
- StagingXcmV4Xcm,
81
+ StagingXcmV5Xcm,
82
+ PalletXcmAuthorizedAliasesEntry,
79
83
  CumulusPalletXcmpQueueOutboundChannelDetails,
80
84
  CumulusPalletXcmpQueueQueueConfigData,
81
85
  PalletMessageQueueBookState,
@@ -90,18 +94,18 @@ import type {
90
94
  PalletMarketplaceOffer,
91
95
  PalletMarketplaceRoyalty,
92
96
  PalletRouteExecutorSkipEd,
93
- HydradxTraitsRouterTrade,
94
- HydradxTraitsRouterAssetPair,
97
+ BasiliskTraitsRouterTrade,
98
+ BasiliskTraitsRouterAssetPair,
95
99
  PalletLiquidityMiningGlobalFarmData,
96
100
  PalletLiquidityMiningYieldFarmData,
97
101
  PalletLiquidityMiningDepositData,
98
102
  PalletBroadcastExecutionType,
99
103
  PalletEmaOracleOracleEntry,
100
- HydradxTraitsOracleOraclePeriod,
104
+ BasiliskTraitsOracleOraclePeriod,
101
105
  OrmlTokensBalanceLock,
102
106
  OrmlTokensAccountData,
103
107
  OrmlTokensReserveData,
104
- StagingXcmV4Location,
108
+ StagingXcmV5Location,
105
109
  } from './types.js';
106
110
 
107
111
  export interface ChainStorage extends GenericChainStorage {
@@ -255,6 +259,19 @@ export interface ChainStorage extends GenericChainStorage {
255
259
  **/
256
260
  authorizedUpgrade: GenericStorageQuery<() => FrameSystemCodeUpgradeAuthorization | undefined>;
257
261
 
262
+ /**
263
+ * The weight reclaimed for the extrinsic.
264
+ *
265
+ * This information is available until the end of the extrinsic execution.
266
+ * More precisely this information is removed in `note_applied_extrinsic`.
267
+ *
268
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
269
+ * reduction.
270
+ *
271
+ * @param {Callback<SpWeightsWeightV2Weight> =} callback
272
+ **/
273
+ extrinsicWeightReclaimed: GenericStorageQuery<() => SpWeightsWeightV2Weight>;
274
+
258
275
  /**
259
276
  * Generic pallet storage query
260
277
  **/
@@ -443,6 +460,9 @@ export interface ChainStorage extends GenericChainStorage {
443
460
  **/
444
461
  treasury: {
445
462
  /**
463
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
464
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
465
+ *
446
466
  * Number of proposals that have been made.
447
467
  *
448
468
  * @param {Callback<number> =} callback
@@ -450,6 +470,9 @@ export interface ChainStorage extends GenericChainStorage {
450
470
  proposalCount: GenericStorageQuery<() => number>;
451
471
 
452
472
  /**
473
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
474
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
475
+ *
453
476
  * Proposals that have been made.
454
477
  *
455
478
  * @param {number} arg
@@ -465,6 +488,9 @@ export interface ChainStorage extends GenericChainStorage {
465
488
  deactivated: GenericStorageQuery<() => bigint>;
466
489
 
467
490
  /**
491
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
492
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
493
+ *
468
494
  * Proposal indices that have been approved but not yet awarded.
469
495
  *
470
496
  * @param {Callback<Array<number>> =} callback
@@ -486,6 +512,13 @@ export interface ChainStorage extends GenericChainStorage {
486
512
  **/
487
513
  spends: GenericStorageQuery<(arg: number) => PalletTreasurySpendStatus | undefined, number>;
488
514
 
515
+ /**
516
+ * The blocknumber for the last triggered spend period.
517
+ *
518
+ * @param {Callback<number | undefined> =} callback
519
+ **/
520
+ lastSpendPeriod: GenericStorageQuery<() => number | undefined>;
521
+
489
522
  /**
490
523
  * Generic pallet storage query
491
524
  **/
@@ -630,6 +663,17 @@ export interface ChainStorage extends GenericChainStorage {
630
663
  **/
631
664
  proposalOf: GenericStorageQuery<(arg: H256) => BasiliskRuntimeRuntimeCall | undefined, H256>;
632
665
 
666
+ /**
667
+ * Consideration cost created for publishing and storing a proposal.
668
+ *
669
+ * Determined by [Config::Consideration] and may be not present for certain proposals (e.g. if
670
+ * the proposal count at the time of creation was below threshold N).
671
+ *
672
+ * @param {H256} arg
673
+ * @param {Callback<[AccountId32, []] | undefined> =} callback
674
+ **/
675
+ costOf: GenericStorageQuery<(arg: H256) => [AccountId32, []] | undefined, H256>;
676
+
633
677
  /**
634
678
  * Votes on a given proposal, if it is ongoing.
635
679
  *
@@ -819,9 +863,9 @@ export interface ChainStorage extends GenericChainStorage {
819
863
  * disabled using binary search. It gets cleared when `on_session_ending` returns
820
864
  * a new set of identities.
821
865
  *
822
- * @param {Callback<Array<number>> =} callback
866
+ * @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
823
867
  **/
824
- disabledValidators: GenericStorageQuery<() => Array<number>>;
868
+ disabledValidators: GenericStorageQuery<() => Array<[number, SpStakingOffenceOffenceSeverity]>>;
825
869
 
826
870
  /**
827
871
  * The next session keys for a validator.
@@ -1018,12 +1062,17 @@ export interface ChainStorage extends GenericChainStorage {
1018
1062
  * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1019
1063
  *
1020
1064
  * @param {AccountId32Like} arg
1021
- * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1065
+ * @param {Callback<PalletIdentityRegistration | undefined> =} callback
1022
1066
  **/
1023
- identityOf: GenericStorageQuery<
1024
- (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1025
- AccountId32
1026
- >;
1067
+ identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
1068
+
1069
+ /**
1070
+ * Identifies the primary username of an account.
1071
+ *
1072
+ * @param {AccountId32Like} arg
1073
+ * @param {Callback<Bytes | undefined> =} callback
1074
+ **/
1075
+ usernameOf: GenericStorageQuery<(arg: AccountId32Like) => Bytes | undefined, AccountId32>;
1027
1076
 
1028
1077
  /**
1029
1078
  * The super-identity of an alternative "sub" identity together with its name, within that
@@ -1059,38 +1108,50 @@ export interface ChainStorage extends GenericChainStorage {
1059
1108
  /**
1060
1109
  * A map of the accounts who are authorized to grant usernames.
1061
1110
  *
1062
- * @param {AccountId32Like} arg
1111
+ * @param {BytesLike} arg
1063
1112
  * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1064
1113
  **/
1065
- usernameAuthorities: GenericStorageQuery<
1066
- (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
1067
- AccountId32
1068
- >;
1114
+ authorityOf: GenericStorageQuery<(arg: BytesLike) => PalletIdentityAuthorityProperties | undefined, Bytes>;
1069
1115
 
1070
1116
  /**
1071
- * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1072
- * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1117
+ * Reverse lookup from `username` to the `AccountId` that has registered it and the provider of
1118
+ * the username. The `owner` value should be a key in the `UsernameOf` map, but it may not if
1119
+ * the user has cleared their username or it has been removed.
1073
1120
  *
1074
- * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1121
+ * Multiple usernames may map to the same `AccountId`, but `UsernameOf` will only map to one
1075
1122
  * primary username.
1076
1123
  *
1077
1124
  * @param {BytesLike} arg
1078
- * @param {Callback<AccountId32 | undefined> =} callback
1125
+ * @param {Callback<PalletIdentityUsernameInformation | undefined> =} callback
1079
1126
  **/
1080
- accountOfUsername: GenericStorageQuery<(arg: BytesLike) => AccountId32 | undefined, Bytes>;
1127
+ usernameInfoOf: GenericStorageQuery<(arg: BytesLike) => PalletIdentityUsernameInformation | undefined, Bytes>;
1081
1128
 
1082
1129
  /**
1083
1130
  * Usernames that an authority has granted, but that the account controller has not confirmed
1084
1131
  * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1085
1132
  * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1086
- * [`Call::accept_username`].
1133
+ * [accept_username](`Call::accept_username`).
1087
1134
  *
1088
1135
  * First tuple item is the account and second is the acceptance deadline.
1089
1136
  *
1090
1137
  * @param {BytesLike} arg
1091
- * @param {Callback<[AccountId32, number] | undefined> =} callback
1138
+ * @param {Callback<[AccountId32, number, PalletIdentityProvider] | undefined> =} callback
1092
1139
  **/
1093
- pendingUsernames: GenericStorageQuery<(arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1140
+ pendingUsernames: GenericStorageQuery<
1141
+ (arg: BytesLike) => [AccountId32, number, PalletIdentityProvider] | undefined,
1142
+ Bytes
1143
+ >;
1144
+
1145
+ /**
1146
+ * Usernames for which the authority that granted them has started the removal process by
1147
+ * unbinding them. Each unbinding username maps to its grace period expiry, which is the first
1148
+ * block in which the username could be deleted through a
1149
+ * [remove_username](`Call::remove_username`) call.
1150
+ *
1151
+ * @param {BytesLike} arg
1152
+ * @param {Callback<number | undefined> =} callback
1153
+ **/
1154
+ unbindingUsernames: GenericStorageQuery<(arg: BytesLike) => number | undefined, Bytes>;
1094
1155
 
1095
1156
  /**
1096
1157
  * Generic pallet storage query
@@ -1262,6 +1323,7 @@ export interface ChainStorage extends GenericChainStorage {
1262
1323
  **/
1263
1324
  scheduler: {
1264
1325
  /**
1326
+ * Block number at which the agenda began incomplete execution.
1265
1327
  *
1266
1328
  * @param {Callback<number | undefined> =} callback
1267
1329
  **/
@@ -1700,9 +1762,22 @@ export interface ChainStorage extends GenericChainStorage {
1700
1762
  * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1701
1763
  * implementation in the XCM executor configuration.
1702
1764
  *
1703
- * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1765
+ * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
1766
+ **/
1767
+ recordedXcm: GenericStorageQuery<() => StagingXcmV5Xcm | undefined>;
1768
+
1769
+ /**
1770
+ * Map of authorized aliasers of local origins. Each local location can authorize a list of
1771
+ * other locations to alias into it. Each aliaser is only valid until its inner `expiry`
1772
+ * block number.
1773
+ *
1774
+ * @param {XcmVersionedLocation} arg
1775
+ * @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
1704
1776
  **/
1705
- recordedXcm: GenericStorageQuery<() => StagingXcmV4Xcm | undefined>;
1777
+ authorizedAliases: GenericStorageQuery<
1778
+ (arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
1779
+ XcmVersionedLocation
1780
+ >;
1706
1781
 
1707
1782
  /**
1708
1783
  * Generic pallet storage query
@@ -1931,21 +2006,7 @@ export interface ChainStorage extends GenericChainStorage {
1931
2006
  * @param {AccountId32Like} arg
1932
2007
  * @param {Callback<[] | undefined> =} callback
1933
2008
  **/
1934
- accountBlacklist: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
1935
-
1936
- /**
1937
- * Account to take reward from.
1938
- *
1939
- * @param {Callback<AccountId32 | undefined> =} callback
1940
- **/
1941
- rewardAccount: GenericStorageQuery<() => AccountId32 | undefined>;
1942
-
1943
- /**
1944
- * Account to send dust to.
1945
- *
1946
- * @param {Callback<AccountId32 | undefined> =} callback
1947
- **/
1948
- dustAccount: GenericStorageQuery<() => AccountId32 | undefined>;
2009
+ accountWhitelist: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
1949
2010
 
1950
2011
  /**
1951
2012
  * Generic pallet storage query
@@ -2075,12 +2136,12 @@ export interface ChainStorage extends GenericChainStorage {
2075
2136
  /**
2076
2137
  * Storing routes for asset pairs
2077
2138
  *
2078
- * @param {HydradxTraitsRouterAssetPair} arg
2079
- * @param {Callback<Array<HydradxTraitsRouterTrade> | undefined> =} callback
2139
+ * @param {BasiliskTraitsRouterAssetPair} arg
2140
+ * @param {Callback<Array<BasiliskTraitsRouterTrade> | undefined> =} callback
2080
2141
  **/
2081
2142
  routes: GenericStorageQuery<
2082
- (arg: HydradxTraitsRouterAssetPair) => Array<HydradxTraitsRouterTrade> | undefined,
2083
- HydradxTraitsRouterAssetPair
2143
+ (arg: BasiliskTraitsRouterAssetPair) => Array<BasiliskTraitsRouterTrade> | undefined,
2144
+ BasiliskTraitsRouterAssetPair
2084
2145
  >;
2085
2146
 
2086
2147
  /**
@@ -2180,13 +2241,11 @@ export interface ChainStorage extends GenericChainStorage {
2180
2241
  executionContext: GenericStorageQuery<() => Array<PalletBroadcastExecutionType>>;
2181
2242
 
2182
2243
  /**
2183
- * To handle the overflow of increasing the execution context.
2184
- * After the stack is full, we start to increase the overflow count,
2185
- * so we how many times we can ignore the removal from the context.
2244
+ * If filled, we overwrite the original swapper. Mainly used in router to not to use temporary trade account
2186
2245
  *
2187
- * @param {Callback<number> =} callback
2246
+ * @param {Callback<AccountId32 | undefined> =} callback
2188
2247
  **/
2189
- overflowCount: GenericStorageQuery<() => number>;
2248
+ swapper: GenericStorageQuery<() => AccountId32 | undefined>;
2190
2249
 
2191
2250
  /**
2192
2251
  * Generic pallet storage query
@@ -2209,14 +2268,14 @@ export interface ChainStorage extends GenericChainStorage {
2209
2268
  *
2210
2269
  * Stores the data entry as well as the block number when the oracle was first initialized.
2211
2270
  *
2212
- * @param {[FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]} arg
2271
+ * @param {[FixedBytes<8>, [number, number], BasiliskTraitsOracleOraclePeriod]} arg
2213
2272
  * @param {Callback<[PalletEmaOracleOracleEntry, number] | undefined> =} callback
2214
2273
  **/
2215
2274
  oracles: GenericStorageQuery<
2216
2275
  (
2217
- arg: [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod],
2276
+ arg: [FixedBytes<8>, [number, number], BasiliskTraitsOracleOraclePeriod],
2218
2277
  ) => [PalletEmaOracleOracleEntry, number] | undefined,
2219
- [FixedBytes<8>, [number, number], HydradxTraitsOracleOraclePeriod]
2278
+ [FixedBytes<8>, [number, number], BasiliskTraitsOracleOraclePeriod]
2220
2279
  >;
2221
2280
 
2222
2281
  /**
@@ -2291,12 +2350,12 @@ export interface ChainStorage extends GenericChainStorage {
2291
2350
  *
2292
2351
  * double_map: who, asset_id => u128
2293
2352
  *
2294
- * @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
2353
+ * @param {[StagingXcmV5Location, StagingXcmV5Location]} arg
2295
2354
  * @param {Callback<bigint> =} callback
2296
2355
  **/
2297
2356
  concreteFungibleBalances: GenericStorageQuery<
2298
- (arg: [StagingXcmV4Location, StagingXcmV4Location]) => bigint,
2299
- [StagingXcmV4Location, StagingXcmV4Location]
2357
+ (arg: [StagingXcmV5Location, StagingXcmV5Location]) => bigint,
2358
+ [StagingXcmV5Location, StagingXcmV5Location]
2300
2359
  >;
2301
2360
 
2302
2361
  /**
@@ -2305,12 +2364,12 @@ export interface ChainStorage extends GenericChainStorage {
2305
2364
  *
2306
2365
  * double_map: who, asset_id => u128
2307
2366
  *
2308
- * @param {[StagingXcmV4Location, BytesLike]} arg
2367
+ * @param {[StagingXcmV5Location, BytesLike]} arg
2309
2368
  * @param {Callback<bigint> =} callback
2310
2369
  **/
2311
2370
  abstractFungibleBalances: GenericStorageQuery<
2312
- (arg: [StagingXcmV4Location, BytesLike]) => bigint,
2313
- [StagingXcmV4Location, Bytes]
2371
+ (arg: [StagingXcmV5Location, BytesLike]) => bigint,
2372
+ [StagingXcmV5Location, Bytes]
2314
2373
  >;
2315
2374
 
2316
2375
  /**