Skip to content

Commit d0eba1d

Browse files
authored
Upgrade Kusama and Kusama Asset Hub types for 1009003 (#6218)
* feat: upgrade kusama types * feat: upgrade kusama asset hub types * fix: lint * fix: build issue
1 parent f45dfc7 commit d0eba1d

31 files changed

+96456
-38641
lines changed

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

Lines changed: 598 additions & 4 deletions
Large diffs are not rendered by default.

packages/api-augment/src/assetHubKusama/errors.ts

Lines changed: 1278 additions & 49 deletions
Large diffs are not rendered by default.

packages/api-augment/src/assetHubKusama/events.ts

Lines changed: 1083 additions & 83 deletions
Large diffs are not rendered by default.

packages/api-augment/src/assetHubKusama/query.ts

Lines changed: 1157 additions & 24 deletions
Large diffs are not rendered by default.

packages/api-augment/src/assetHubKusama/runtime.ts

Lines changed: 159 additions & 9 deletions
Large diffs are not rendered by default.

packages/api-augment/src/assetHubKusama/tx.ts

Lines changed: 4408 additions & 1871 deletions
Large diffs are not rendered by default.

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

Lines changed: 46 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import '@polkadot/api-base/types/consts';
88
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';
11-
import type { AccountId32, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
11+
import type { AccountId32, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
1212
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions } from '@polkadot/types/lookup';
1313

1414
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -266,8 +266,13 @@ declare module '@polkadot/api-base/types/consts' {
266266
**/
267267
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
268268
/**
269-
* The maximum number of winners that can be elected by this `ElectionProvider`
270-
* implementation.
269+
* Maximum number of voters that can support a winner in an election solution.
270+
*
271+
* This is needed to ensure election computation is bounded.
272+
**/
273+
maxBackersPerWinner: u32 & AugmentedConst<ApiType>;
274+
/**
275+
* Maximum number of winners that an election supports.
271276
*
272277
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
273278
**/
@@ -463,103 +468,6 @@ declare module '@polkadot/api-base/types/consts' {
463468
**/
464469
[key: string]: Codec;
465470
};
466-
nis: {
467-
/**
468-
* The base period for the duration queues. This is the common multiple across all
469-
* supported freezing durations that can be bid upon.
470-
**/
471-
basePeriod: u32 & AugmentedConst<ApiType>;
472-
/**
473-
* Portion of the queue which is free from ordering and just a FIFO.
474-
*
475-
* Must be no greater than `MaxQueueLen`.
476-
**/
477-
fifoQueueLen: u32 & AugmentedConst<ApiType>;
478-
/**
479-
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
480-
*
481-
* A larger value results in fewer storage hits each block, but a slower period to get to
482-
* the target.
483-
**/
484-
intakePeriod: u32 & AugmentedConst<ApiType>;
485-
/**
486-
* The maximum amount of bids that can consolidated into receipts in a single intake. A
487-
* larger value here means less of the block available for transactions should there be a
488-
* glut of bids.
489-
**/
490-
maxIntakeWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
491-
/**
492-
* Maximum number of items that may be in each duration queue.
493-
*
494-
* Must be larger than zero.
495-
**/
496-
maxQueueLen: u32 & AugmentedConst<ApiType>;
497-
/**
498-
* The minimum amount of funds that may be placed in a bid. Note that this
499-
* does not actually limit the amount which may be represented in a receipt since bids may
500-
* be split up by the system.
501-
*
502-
* It should be at least big enough to ensure that there is no possible storage spam attack
503-
* or queue-filling attack.
504-
**/
505-
minBid: u128 & AugmentedConst<ApiType>;
506-
/**
507-
* The minimum amount of funds which may intentionally be left remaining under a single
508-
* receipt.
509-
**/
510-
minReceipt: Perquintill & AugmentedConst<ApiType>;
511-
/**
512-
* The treasury's pallet id, used for deriving its sovereign account ID.
513-
**/
514-
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
515-
/**
516-
* Number of duration queues in total. This sets the maximum duration supported, which is
517-
* this value multiplied by `Period`.
518-
**/
519-
queueCount: u32 & AugmentedConst<ApiType>;
520-
/**
521-
* The maximum proportion which may be thawed and the period over which it is reset.
522-
**/
523-
thawThrottle: ITuple<[Perquintill, u32]> & AugmentedConst<ApiType>;
524-
/**
525-
* Generic const
526-
**/
527-
[key: string]: Codec;
528-
};
529-
nisCounterpartBalances: {
530-
/**
531-
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
532-
*
533-
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
534-
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
535-
* In case you have multiple sources of provider references, you may also get unexpected
536-
* behaviour if you set this to zero.
537-
*
538-
* Bottom line: Do yourself a favour and make it at least one!
539-
**/
540-
existentialDeposit: u128 & AugmentedConst<ApiType>;
541-
/**
542-
* The maximum number of individual freeze locks that can exist on an account at any time.
543-
**/
544-
maxFreezes: u32 & AugmentedConst<ApiType>;
545-
/**
546-
* The maximum number of locks that should exist on an account.
547-
* Not strictly enforced, but used for weight estimation.
548-
*
549-
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
550-
**/
551-
maxLocks: u32 & AugmentedConst<ApiType>;
552-
/**
553-
* The maximum number of named reserves that can exist on an account.
554-
*
555-
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
556-
**/
557-
maxReserves: u32 & AugmentedConst<ApiType>;
558-
/**
559-
* Generic const
560-
**/
561-
[key: string]: Codec;
562-
};
563471
nominationPools: {
564472
/**
565473
* The maximum pool points-to-balance ratio that an `open` pool can have.
@@ -762,6 +670,16 @@ declare module '@polkadot/api-base/types/consts' {
762670
**/
763671
[key: string]: Codec;
764672
};
673+
session: {
674+
/**
675+
* The amount to be held when setting keys.
676+
**/
677+
keyDeposit: u128 & AugmentedConst<ApiType>;
678+
/**
679+
* Generic const
680+
**/
681+
[key: string]: Codec;
682+
};
765683
slots: {
766684
/**
767685
* The number of blocks to offset each lease period by.
@@ -778,12 +696,12 @@ declare module '@polkadot/api-base/types/consts' {
778696
};
779697
society: {
780698
/**
781-
* The number of blocks between membership challenges.
699+
* The number of [Config::BlockNumberProvider] blocks between membership challenges.
782700
**/
783701
challengePeriod: u32 & AugmentedConst<ApiType>;
784702
/**
785-
* The number of blocks on which new candidates can claim their membership and be the
786-
* named head.
703+
* The number of [Config::BlockNumberProvider] blocks on which new candidates can claim
704+
* their membership and be the named head.
787705
**/
788706
claimPeriod: u32 & AugmentedConst<ApiType>;
789707
/**
@@ -811,7 +729,8 @@ declare module '@polkadot/api-base/types/consts' {
811729
**/
812730
periodSpend: u128 & AugmentedConst<ApiType>;
813731
/**
814-
* The number of blocks on which new candidates should be voted on. Together with
732+
* The number of [Config::BlockNumberProvider] blocks on which new candidates should be
733+
* voted on. Together with
815734
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
816735
**/
817736
votingPeriod: u32 & AugmentedConst<ApiType>;
@@ -875,6 +794,10 @@ declare module '@polkadot/api-base/types/consts' {
875794
* this effect.
876795
**/
877796
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
797+
/**
798+
* The absolute maximum of winner validators this pallet should return.
799+
**/
800+
maxValidatorSet: u32 & AugmentedConst<ApiType>;
878801
/**
879802
* Number of sessions per era.
880803
**/
@@ -1073,6 +996,13 @@ declare module '@polkadot/api-base/types/consts' {
1073996
* With that `List::migrate` can be called, which will perform the appropriate migration.
1074997
**/
1075998
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
999+
/**
1000+
* Maximum number of accounts that may be re-bagged automatically in `on_idle`.
1001+
*
1002+
* A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
1003+
* the feature.
1004+
**/
1005+
maxAutoRebagPerBlock: u32 & AugmentedConst<ApiType>;
10761006
/**
10771007
* Generic const
10781008
**/
@@ -1084,6 +1014,18 @@ declare module '@polkadot/api-base/types/consts' {
10841014
* `pallet_xcm::CurrentXcmVersion`.
10851015
**/
10861016
advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
1017+
/**
1018+
* The maximum number of local XCM locks that a single account may have.
1019+
**/
1020+
maxLockers: u32 & AugmentedConst<ApiType>;
1021+
/**
1022+
* The maximum number of consumers a single remote lock may have.
1023+
**/
1024+
maxRemoteLockConsumers: u32 & AugmentedConst<ApiType>;
1025+
/**
1026+
* This chain's Universal Location.
1027+
**/
1028+
universalLocation: StagingXcmV5Junctions & AugmentedConst<ApiType>;
10871029
/**
10881030
* Generic const
10891031
**/

0 commit comments

Comments
 (0)