Skip to content

Commit cf7e7cd

Browse files
authored
Update Kusama augmented types to 1.3.0 (#5972)
* Update Kusama augmented types to 1.3.0 * add * adjust tsconfig build
1 parent e71c2b0 commit cf7e7cd

File tree

17 files changed

+13148
-5850
lines changed

17 files changed

+13148
-5850
lines changed

packages/api-augment/src/kusama/consts.ts

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
99
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
1010
import type { Codec, ITuple } from '@polkadot/types-codec/types';
1111
import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
12-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
12+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/types/lookup';
1313

1414
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
1515

@@ -80,10 +80,14 @@ declare module '@polkadot/api-base/types/consts' {
8080
/**
8181
* The maximum number of locks that should exist on an account.
8282
* Not strictly enforced, but used for weight estimation.
83+
*
84+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
8385
**/
8486
maxLocks: u32 & AugmentedConst<ApiType>;
8587
/**
8688
* The maximum number of named reserves that can exist on an account.
89+
*
90+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
8791
**/
8892
maxReserves: u32 & AugmentedConst<ApiType>;
8993
/**
@@ -204,9 +208,13 @@ declare module '@polkadot/api-base/types/consts' {
204208
};
205209
coretime: {
206210
/**
207-
* The ParaId of the broker system parachain.
211+
* The ParaId of the coretime chain.
208212
**/
209213
brokerId: u32 & AugmentedConst<ApiType>;
214+
/**
215+
* The coretime chain pot location.
216+
**/
217+
brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
210218
/**
211219
* Generic const
212220
**/
@@ -290,18 +298,10 @@ declare module '@polkadot/api-base/types/consts' {
290298
* this value.
291299
**/
292300
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
293-
/**
294-
* Duration of the signed phase.
295-
**/
296-
signedPhase: u32 & AugmentedConst<ApiType>;
297301
/**
298302
* Base reward for a signed solution
299303
**/
300304
signedRewardBase: u128 & AugmentedConst<ApiType>;
301-
/**
302-
* Duration of the unsigned phase.
303-
**/
304-
unsignedPhase: u32 & AugmentedConst<ApiType>;
305305
/**
306306
* Generic const
307307
**/
@@ -389,6 +389,14 @@ declare module '@polkadot/api-base/types/consts' {
389389
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
390390
**/
391391
heapSize: u32 & AugmentedConst<ApiType>;
392+
/**
393+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
394+
* should be provided to the message queue for servicing enqueued items `on_idle`.
395+
* Useful for parachains to process messages at the same block they are received.
396+
*
397+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
398+
**/
399+
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
392400
/**
393401
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
394402
* can happen. Once there are more stale pages than this, then historical pages may be
@@ -397,10 +405,11 @@ declare module '@polkadot/api-base/types/consts' {
397405
maxStale: u32 & AugmentedConst<ApiType>;
398406
/**
399407
* The amount of weight (if any) which should be provided to the message queue for
400-
* servicing enqueued items.
408+
* servicing enqueued items `on_initialize`.
401409
*
402410
* This may be legitimately `None` in the case that you will call
403-
* `ServiceQueues::service_queues` manually.
411+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
412+
* it run in `on_idle`.
404413
**/
405414
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
406415
/**
@@ -515,10 +524,14 @@ declare module '@polkadot/api-base/types/consts' {
515524
/**
516525
* The maximum number of locks that should exist on an account.
517526
* Not strictly enforced, but used for weight estimation.
527+
*
528+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
518529
**/
519530
maxLocks: u32 & AugmentedConst<ApiType>;
520531
/**
521532
* The maximum number of named reserves that can exist on an account.
533+
*
534+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
522535
**/
523536
maxReserves: u32 & AugmentedConst<ApiType>;
524537
/**
@@ -556,6 +569,15 @@ declare module '@polkadot/api-base/types/consts' {
556569
[key: string]: Codec;
557570
};
558571
onDemandAssignmentProvider: {
572+
/**
573+
* The maximum number of blocks some historical revenue
574+
* information stored for.
575+
**/
576+
maxHistoricalRevenue: u32 & AugmentedConst<ApiType>;
577+
/**
578+
* Identifier for the internal revenue balance.
579+
**/
580+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
559581
/**
560582
* The default value for the spot traffic multiplier.
561583
**/
@@ -872,7 +894,7 @@ declare module '@polkadot/api-base/types/consts' {
872894
**/
873895
ss58Prefix: u16 & AugmentedConst<ApiType>;
874896
/**
875-
* Get the chain's current version.
897+
* Get the chain's in-code version.
876898
**/
877899
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
878900
/**
@@ -944,19 +966,6 @@ declare module '@polkadot/api-base/types/consts' {
944966
* The period during which an approved treasury spend has to be claimed.
945967
**/
946968
payoutPeriod: u32 & AugmentedConst<ApiType>;
947-
/**
948-
* Fraction of a proposal's value that should be bonded in order to place the proposal.
949-
* An accepted proposal gets these back. A rejected proposal does not.
950-
**/
951-
proposalBond: Permill & AugmentedConst<ApiType>;
952-
/**
953-
* Maximum amount of funds that should be placed in a deposit for making a proposal.
954-
**/
955-
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
956-
/**
957-
* Minimum amount of funds that should be placed in a deposit for making a proposal.
958-
**/
959-
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
960969
/**
961970
* Period between successive spends.
962971
**/

0 commit comments

Comments
 (0)