Skip to content

Commit 17c6262

Browse files
authored
Update Xcm types to latest (#3888)
* Update Xcm types to latest * Updated hex & json
1 parent 0932a9a commit 17c6262

File tree

19 files changed

+1128
-930
lines changed

19 files changed

+1128
-930
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# CHANGELOG
22

3+
## 5.6.1 Aug 23, 2021
4+
5+
Upgrade priority: Low. Recommended for users of Xcm v1, preparing for Kusama/Westend 9100
6+
7+
Contributed:
8+
9+
- Support 0...N-1 args on `keys/entries` (Thanks to https://github.com/hamidra)
10+
11+
Changes:
12+
13+
- Updated XCM types, `AssetId`, `MultiAssets`, `MultiAssetV1`, `AssetInstanceV1`, `XcmOrderV1`
14+
- Westend 9090 upgrade block
15+
- Bump static Substrate, Kusama & Polkadot metadata
16+
17+
318
## 5.5.2 Aug 19, 2021
419

520
Upgrade priority: Medium. Contains fixes for parachain types, affecting historic block retrieval on Kusama.

packages/api/src/augment/consts.ts

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,18 @@ declare module '@polkadot/api/types/consts' {
143143
* deposited while the contract is alive. Costs for additional storage are added to
144144
* this base cost.
145145
*
146-
* This is a simple way to ensure that contracts with empty storage eventually get deleted by
147-
* making them pay rent. This creates an incentive to remove them early in order to save rent.
146+
* This is a simple way to ensure that contracts with empty storage eventually get deleted
147+
* by making them pay rent. This creates an incentive to remove them early in order to save
148+
* rent.
148149
**/
149150
depositPerContract: BalanceOf & AugmentedConst<ApiType>;
150151
/**
151152
* The balance a contract needs to deposit per storage byte to stay alive indefinitely.
152153
*
153-
* Let's suppose the deposit is 1,000 BU (balance units)/byte and the rent is 1 BU/byte/day,
154-
* then a contract with 1,000,000 BU that uses 1,000 bytes of storage would pay no rent.
155-
* But if the balance reduced to 500,000 BU and the storage stayed the same at 1,000,
156-
* then it would pay 500 BU/day.
154+
* Let's suppose the deposit is 1,000 BU (balance units)/byte and the rent is 1
155+
* BU/byte/day, then a contract with 1,000,000 BU that uses 1,000 bytes of storage would
156+
* pay no rent. But if the balance reduced to 500,000 BU and the storage stayed the same at
157+
* 1,000, then it would pay 500 BU/day.
157158
**/
158159
depositPerStorageByte: BalanceOf & AugmentedConst<ApiType>;
159160
/**
@@ -201,21 +202,22 @@ declare module '@polkadot/api/types/consts' {
201202
**/
202203
cooloffPeriod: BlockNumber & AugmentedConst<ApiType>;
203204
/**
204-
* The minimum period of locking and the period between a proposal being approved and enacted.
205+
* The minimum period of locking and the period between a proposal being approved and
206+
* enacted.
205207
*
206208
* It should generally be a little more than the unstake period to ensure that
207-
* voting stakers have an opportunity to remove themselves from the system in the case where
208-
* they are on the losing side of a vote.
209+
* voting stakers have an opportunity to remove themselves from the system in the case
210+
* where they are on the losing side of a vote.
209211
**/
210212
enactmentPeriod: BlockNumber & AugmentedConst<ApiType>;
211213
/**
212214
* Minimum voting period allowed for a fast-track referendum.
213215
**/
214216
fastTrackVotingPeriod: BlockNumber & AugmentedConst<ApiType>;
215217
/**
216-
* Indicator for whether an emergency origin is even allowed to happen. Some chains may want
217-
* to set this permanently to `false`, others may want to condition it on things such as
218-
* an upgrade having happened recently.
218+
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
219+
* want to set this permanently to `false`, others may want to condition it on things such
220+
* as an upgrade having happened recently.
219221
**/
220222
instantAllowed: bool & AugmentedConst<ApiType>;
221223
/**
@@ -449,8 +451,8 @@ declare module '@polkadot/api/types/consts' {
449451
maxSubAccounts: u32 & AugmentedConst<ApiType>;
450452
/**
451453
* The amount held on deposit for a registered subaccount. This should account for the fact
452-
* that one storage item's value will increase by the size of an account ID, and there will be
453-
* another trie item whose value is the size of an account ID plus 32 bytes.
454+
* that one storage item's value will increase by the size of an account ID, and there will
455+
* be another trie item whose value is the size of an account ID plus 32 bytes.
454456
**/
455457
subAccountDeposit: BalanceOf & AugmentedConst<ApiType>;
456458
/**
@@ -503,8 +505,8 @@ declare module '@polkadot/api/types/consts' {
503505
};
504506
multisig: {
505507
/**
506-
* The base amount of currency needed to reserve for creating a multisig execution or to store
507-
* a dispatch call for later.
508+
* The base amount of currency needed to reserve for creating a multisig execution or to
509+
* store a dispatch call for later.
508510
*
509511
* This is held for an additional storage item whose value size is
510512
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
@@ -530,7 +532,8 @@ declare module '@polkadot/api/types/consts' {
530532
/**
531533
* The base amount of currency needed to reserve for creating an announcement.
532534
*
533-
* This is held when a new storage item holding a `Balance` is created (typically 16 bytes).
535+
* This is held when a new storage item holding a `Balance` is created (typically 16
536+
* bytes).
534537
**/
535538
announcementDepositBase: BalanceOf & AugmentedConst<ApiType>;
536539
/**
@@ -558,9 +561,9 @@ declare module '@polkadot/api/types/consts' {
558561
/**
559562
* The amount of currency needed per proxy added.
560563
*
561-
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a pre-existing
562-
* storage value. Thus, when configuring `ProxyDepositFactor` one should take into account
563-
* `32 + proxy_type.encode().len()` bytes of data.
564+
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
565+
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
566+
* into account `32 + proxy_type.encode().len()` bytes of data.
564567
**/
565568
proxyDepositFactor: BalanceOf & AugmentedConst<ApiType>;
566569
/**
@@ -577,9 +580,11 @@ declare module '@polkadot/api/types/consts' {
577580
**/
578581
configDepositBase: BalanceOf & AugmentedConst<ApiType>;
579582
/**
580-
* The amount of currency needed per additional user when creating a recovery configuration.
583+
* The amount of currency needed per additional user when creating a recovery
584+
* configuration.
581585
*
582-
* This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage value.
586+
* This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
587+
* value.
583588
**/
584589
friendDepositFactor: BalanceOf & AugmentedConst<ApiType>;
585590
/**
@@ -603,8 +608,8 @@ declare module '@polkadot/api/types/consts' {
603608
};
604609
scheduler: {
605610
/**
606-
* The maximum weight that may be scheduled per block for any dispatchables of less priority
607-
* than `schedule::HARD_DEADLINE`.
611+
* The maximum weight that may be scheduled per block for any dispatchables of less
612+
* priority than `schedule::HARD_DEADLINE`.
608613
**/
609614
maximumWeight: Weight & AugmentedConst<ApiType>;
610615
/**
@@ -666,8 +671,8 @@ declare module '@polkadot/api/types/consts' {
666671
/**
667672
* The maximum number of nominators rewarded for each validator.
668673
*
669-
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
670-
* their reward. This used to limit the i/o cost for the nominator payout.
674+
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
675+
* claim their reward. This used to limit the i/o cost for the nominator payout.
671676
**/
672677
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
673678
/**
@@ -722,10 +727,10 @@ declare module '@polkadot/api/types/consts' {
722727
};
723728
timestamp: {
724729
/**
725-
* The minimum period between blocks. Beware that this is different to the *expected* period
726-
* that the block production apparatus provides. Your chosen consensus system will generally
727-
* work with this to determine a sensible block time. e.g. For Aura, it will be double this
728-
* period on default settings.
730+
* The minimum period between blocks. Beware that this is different to the *expected*
731+
* period that the block production apparatus provides. Your chosen consensus system will
732+
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
733+
* double this period on default settings.
729734
**/
730735
minimumPeriod: Moment & AugmentedConst<ApiType>;
731736
/**
@@ -843,6 +848,16 @@ declare module '@polkadot/api/types/consts' {
843848
**/
844849
[key: string]: Codec;
845850
};
851+
utility: {
852+
/**
853+
* The limit on the number of batched calls.
854+
**/
855+
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
856+
/**
857+
* Generic const
858+
**/
859+
[key: string]: Codec;
860+
};
846861
vesting: {
847862
/**
848863
* The minimum amount transferred to call `vested_transfer`.

packages/api/src/augment/errors.ts

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ declare module '@polkadot/api/types/errors' {
3939
**/
4040
NoPermission: AugmentedError<ApiType>;
4141
/**
42-
* No provider reference exists to allow a non-zero balance of a non-self-sufficient asset.
42+
* No provider reference exists to allow a non-zero balance of a non-self-sufficient
43+
* asset.
4344
**/
4445
NoProvider: AugmentedError<ApiType>;
4546
/**
@@ -424,10 +425,6 @@ declare module '@polkadot/api/types/errors' {
424425
* Identity may not veto a proposal twice
425426
**/
426427
AlreadyVetoed: AugmentedError<ApiType>;
427-
/**
428-
* Unknown index
429-
**/
430-
BadIndex: AugmentedError<ApiType>;
431428
/**
432429
* Preimage already noted
433430
**/
@@ -452,10 +449,6 @@ declare module '@polkadot/api/types/errors' {
452449
* Invalid hash
453450
**/
454451
InvalidHash: AugmentedError<ApiType>;
455-
/**
456-
* The provided witness data is wrong.
457-
**/
458-
InvalidWitness: AugmentedError<ApiType>;
459452
/**
460453
* Maximum number of votes reached.
461454
**/
@@ -476,26 +469,14 @@ declare module '@polkadot/api/types/errors' {
476469
* No external proposal
477470
**/
478471
NoProposal: AugmentedError<ApiType>;
479-
/**
480-
* Not delegated
481-
**/
482-
NotDelegated: AugmentedError<ApiType>;
483472
/**
484473
* The account is not currently delegating.
485474
**/
486475
NotDelegating: AugmentedError<ApiType>;
487-
/**
488-
* The lock on the account to be unlocked has not yet expired.
489-
**/
490-
NotExpired: AugmentedError<ApiType>;
491476
/**
492477
* Not imminent
493478
**/
494479
NotImminent: AugmentedError<ApiType>;
495-
/**
496-
* The target account does not have a lock.
497-
**/
498-
NotLocked: AugmentedError<ApiType>;
499480
/**
500481
* Next external proposal not simple majority
501482
**/
@@ -680,8 +661,8 @@ declare module '@polkadot/api/types/errors' {
680661
**/
681662
AmountTooSmall: AugmentedError<ApiType>;
682663
/**
683-
* The queue for the bid's duration is full and the amount bid is too low to get in through
684-
* replacing an existing bid.
664+
* The queue for the bid's duration is full and the amount bid is too low to get in
665+
* through replacing an existing bid.
685666
**/
686667
BidTooLow: AugmentedError<ApiType>;
687668
/**
@@ -1271,17 +1252,17 @@ declare module '@polkadot/api/types/errors' {
12711252
**/
12721253
NoUnlockChunk: AugmentedError<ApiType>;
12731254
/**
1274-
* There are too many nominators in the system. Governance needs to adjust the staking settings
1275-
* to keep things safe for the runtime.
1255+
* There are too many nominators in the system. Governance needs to adjust the staking
1256+
* settings to keep things safe for the runtime.
12761257
**/
12771258
TooManyNominators: AugmentedError<ApiType>;
12781259
/**
12791260
* Too many nomination targets supplied.
12801261
**/
12811262
TooManyTargets: AugmentedError<ApiType>;
12821263
/**
1283-
* There are too many validators in the system. Governance needs to adjust the staking settings
1284-
* to keep things safe for the runtime.
1264+
* There are too many validators in the system. Governance needs to adjust the staking
1265+
* settings to keep things safe for the runtime.
12851266
**/
12861267
TooManyValidators: AugmentedError<ApiType>;
12871268
/**
@@ -1541,6 +1522,16 @@ declare module '@polkadot/api/types/errors' {
15411522
**/
15421523
[key: string]: AugmentedError<ApiType>;
15431524
};
1525+
utility: {
1526+
/**
1527+
* Too many calls batched.
1528+
**/
1529+
TooManyCalls: AugmentedError<ApiType>;
1530+
/**
1531+
* Generic error
1532+
**/
1533+
[key: string]: AugmentedError<ApiType>;
1534+
};
15441535
vesting: {
15451536
/**
15461537
* Amount being transferred is too low to create a vesting schedule.

packages/api/src/augment/events.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ declare module '@polkadot/api/types/events' {
204204
* # Params
205205
*
206206
* - `contract`: The contract that emitted the event.
207-
* - `data`: Data supplied by the contract. Metadata generated during contract
208-
* compilation is needed to decode it.
207+
* - `data`: Data supplied by the contract. Metadata generated during contract compilation
208+
* is needed to decode it.
209209
**/
210210
ContractEmitted: AugmentedEvent<ApiType, [AccountId, Bytes]>;
211211
/**
@@ -362,17 +362,14 @@ declare module '@polkadot/api/types/events' {
362362
**/
363363
Started: AugmentedEvent<ApiType, [ReferendumIndex, VoteThreshold]>;
364364
/**
365-
* A public proposal has been tabled for referendum vote. \[proposal_index, deposit, depositors\]
365+
* A public proposal has been tabled for referendum vote. \[proposal_index, deposit,
366+
* depositors\]
366367
**/
367368
Tabled: AugmentedEvent<ApiType, [PropIndex, Balance, Vec<AccountId>]>;
368369
/**
369370
* An \[account\] has cancelled a previous delegation operation.
370371
**/
371372
Undelegated: AugmentedEvent<ApiType, [AccountId]>;
372-
/**
373-
* An \[account\] has been unlocked successfully.
374-
**/
375-
Unlocked: AugmentedEvent<ApiType, [AccountId]>;
376373
/**
377374
* An external proposal has been vetoed. \[who, proposal_hash, until\]
378375
**/
@@ -653,7 +650,8 @@ declare module '@polkadot/api/types/events' {
653650
Announced: AugmentedEvent<ApiType, [AccountId, AccountId, Hash]>;
654651
/**
655652
* Anonymous account has been created by new proxy with given
656-
* disambiguation index and proxy type. \[anonymous, who, proxy_type, disambiguation_index\]
653+
* disambiguation index and proxy type. \[anonymous, who, proxy_type,
654+
* disambiguation_index\]
657655
**/
658656
AnonymousCreated: AugmentedEvent<ApiType, [AccountId, AccountId, ProxyType, u16]>;
659657
/**
@@ -719,8 +717,8 @@ declare module '@polkadot/api/types/events' {
719717
};
720718
session: {
721719
/**
722-
* New session has happened. Note that the argument is the \[session_index\], not the block
723-
* number as the type might suggest.
720+
* New session has happened. Note that the argument is the \[session_index\], not the
721+
* block number as the type might suggest.
724722
**/
725723
NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
726724
/**

packages/api/src/augment/query.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ declare module '@polkadot/api/types/storage' {
9494
**/
9595
currentSlot: AugmentedQuery<ApiType, () => Observable<Slot>, []> & QueryableStorageEntry<ApiType, []>;
9696
/**
97-
* The configuration for the current epoch. Should never be `None` as it is initialized in genesis.
97+
* The configuration for the current epoch. Should never be `None` as it is initialized in
98+
* genesis.
9899
**/
99100
epochConfig: AugmentedQuery<ApiType, () => Observable<Option<BabeEpochConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
100101
/**
@@ -916,9 +917,9 @@ declare module '@polkadot/api/types/storage' {
916917
**/
917918
canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []> & QueryableStorageEntry<ApiType, []>;
918919
/**
919-
* The threshold for when users can start calling `chill_other` for other validators / nominators.
920-
* The threshold is compared to the actual number of validators / nominators (`CountFor*`) in
921-
* the system compared to the configured max (`Max*Count`).
920+
* The threshold for when users can start calling `chill_other` for other validators /
921+
* nominators. The threshold is compared to the actual number of validators / nominators
922+
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
922923
**/
923924
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
924925
/**

0 commit comments

Comments
 (0)