Skip to content

Commit db3b3f6

Browse files
authored
Bump static metadata (#5643)
1 parent 717043c commit db3b3f6

File tree

21 files changed

+1036
-773
lines changed

21 files changed

+1036
-773
lines changed

CHANGELOG.md

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

3+
## master
4+
5+
Changes:
6+
7+
- Update to latest Polkadot, Kusama & Substrate metadata
8+
- Add `module` to `package.json` export map (ESM-only)
9+
10+
311
## 10.6.1 May 7, 2023
412

513
Contributed:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"test:one": "polkadot-dev-run-test --env node"
4141
},
4242
"devDependencies": {
43-
"@polkadot/dev": "^0.73.11",
43+
"@polkadot/dev": "^0.73.17",
4444
"@polkadot/typegen": "workspace:packages/typegen",
45-
"@types/node": "^20.1.0"
45+
"@types/node": "^20.1.3"
4646
},
4747
"resolutions": {
4848
"typescript": "^5.0.4"

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,11 +1296,6 @@ declare module '@polkadot/api-base/types/errors' {
12961296
* Para is not registered in our system.
12971297
**/
12981298
NotRegistered: AugmentedError<ApiType>;
1299-
/**
1300-
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
1301-
* is disabled.
1302-
**/
1303-
PvfCheckDisabled: AugmentedError<ApiType>;
13041299
/**
13051300
* The given validator already has cast a vote.
13061301
**/

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,7 +3493,6 @@ declare module '@polkadot/api-base/types/submittable' {
34933493
/**
34943494
* Make some on-chain remark.
34953495
*
3496-
* ## Complexity
34973496
* - `O(1)`
34983497
**/
34993498
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
@@ -3503,16 +3502,10 @@ declare module '@polkadot/api-base/types/submittable' {
35033502
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
35043503
/**
35053504
* Set the new runtime code.
3506-
*
3507-
* ## Complexity
3508-
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
35093505
**/
35103506
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
35113507
/**
35123508
* Set the new runtime code without doing any checks of the given `code`.
3513-
*
3514-
* ## Complexity
3515-
* - `O(C)` where `C` length of `code`
35163509
**/
35173510
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
35183511
/**

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,11 +1232,6 @@ declare module '@polkadot/api-base/types/errors' {
12321232
* Para is not registered in our system.
12331233
**/
12341234
NotRegistered: AugmentedError<ApiType>;
1235-
/**
1236-
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
1237-
* is disabled.
1238-
**/
1239-
PvfCheckDisabled: AugmentedError<ApiType>;
12401235
/**
12411236
* The given validator already has cast a vote.
12421237
**/

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3326,7 +3326,6 @@ declare module '@polkadot/api-base/types/submittable' {
33263326
/**
33273327
* Make some on-chain remark.
33283328
*
3329-
* ## Complexity
33303329
* - `O(1)`
33313330
**/
33323331
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
@@ -3336,16 +3335,10 @@ declare module '@polkadot/api-base/types/submittable' {
33363335
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
33373336
/**
33383337
* Set the new runtime code.
3339-
*
3340-
* ## Complexity
3341-
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
33423338
**/
33433339
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
33443340
/**
33453341
* Set the new runtime code without doing any checks of the given `code`.
3346-
*
3347-
* ## Complexity
3348-
* - `O(C)` where `C` length of `code`
33493342
**/
33503343
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
33513344
/**

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ declare module '@polkadot/api-base/types/events' {
151151
* Some asset `asset_id` was thawed.
152152
**/
153153
AssetThawed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
154+
/**
155+
* Some account `who` was blocked.
156+
**/
157+
Blocked: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
154158
/**
155159
* Some assets were destroyed.
156160
**/
@@ -199,6 +203,10 @@ declare module '@polkadot/api-base/types/events' {
199203
* Some account `who` was thawed.
200204
**/
201205
Thawed: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
206+
/**
207+
* Some account `who` was created with a deposit from `depositor`.
208+
**/
209+
Touched: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, depositor: AccountId32], { assetId: u32, who: AccountId32, depositor: AccountId32 }>;
202210
/**
203211
* Some assets were transferred.
204212
**/

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

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,19 @@ declare module '@polkadot/api-base/types/submittable' {
276276
* Weight: `O(1)`
277277
**/
278278
approveTransfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
279+
/**
280+
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
281+
*
282+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
283+
*
284+
* - `id`: The identifier of the account's asset.
285+
* - `who`: The account to be unblocked.
286+
*
287+
* Emits `Blocked`.
288+
*
289+
* Weight: `O(1)`
290+
**/
291+
block: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
279292
/**
280293
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
281294
*
@@ -506,7 +519,9 @@ declare module '@polkadot/api-base/types/submittable' {
506519
**/
507520
forceTransfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, Compact<u128>]>;
508521
/**
509-
* Disallow further unprivileged transfers from an account.
522+
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
523+
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
524+
* account that does not have an entry, use `touch_other` first.
510525
*
511526
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
512527
*
@@ -546,16 +561,31 @@ declare module '@polkadot/api-base/types/submittable' {
546561
**/
547562
mint: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
548563
/**
549-
* Return the deposit (if any) of an asset account.
564+
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
565+
* account.
550566
*
551567
* The origin must be Signed.
552568
*
553-
* - `id`: The identifier of the asset for the account to be created.
569+
* - `id`: The identifier of the asset for which the caller would like the deposit
570+
* refunded.
554571
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
555572
*
556573
* Emits `Refunded` event when successful.
557574
**/
558575
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
576+
/**
577+
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
578+
*
579+
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
580+
* order to burn a non-zero balance of the asset, the caller must be the account and should
581+
* use `refund`.
582+
*
583+
* - `id`: The identifier of the asset for the account holding a deposit.
584+
* - `who`: The account to refund.
585+
*
586+
* Emits `Refunded` event when successful.
587+
**/
588+
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
559589
/**
560590
* Set the metadata for an asset.
561591
*
@@ -620,7 +650,7 @@ declare module '@polkadot/api-base/types/submittable' {
620650
**/
621651
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
622652
/**
623-
* Allow unprivileged transfers from an account again.
653+
* Allow unprivileged transfers to and from an account again.
624654
*
625655
* Origin must be Signed and the sender should be the Admin of the asset `id`.
626656
*
@@ -656,6 +686,19 @@ declare module '@polkadot/api-base/types/submittable' {
656686
* Emits `Touched` event when successful.
657687
**/
658688
touch: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
689+
/**
690+
* Create an asset account for `who`.
691+
*
692+
* A deposit will be taken from the signer account.
693+
*
694+
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
695+
* must have sufficient funds for a deposit to be taken.
696+
* - `id`: The identifier of the asset for the account to be created.
697+
* - `who`: The account to be created.
698+
*
699+
* Emits `Touched` event when successful.
700+
**/
701+
touchOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
659702
/**
660703
* Move some assets from the sender account to another.
661704
*
@@ -4580,7 +4623,7 @@ declare module '@polkadot/api-base/types/submittable' {
45804623
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
45814624
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
45824625
**/
4583-
bond: AugmentedSubmittable<(controller: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, PalletStakingRewardDestination]>;
4626+
bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, PalletStakingRewardDestination]>;
45844627
/**
45854628
* Add some extra amount that have appeared in the stash `free_balance` into the balance up
45864629
* for staking.
@@ -4792,7 +4835,10 @@ declare module '@polkadot/api-base/types/submittable' {
47924835
**/
47934836
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
47944837
/**
4795-
* (Re-)set the controller of a stash.
4838+
* (Re-)sets the controller of a stash to the stash itself. This function previously
4839+
* accepted a `controller` argument to set the controller to an account other than the
4840+
* stash itself. This functionality has now been removed, now only setting the controller
4841+
* to the stash, if it is not already.
47964842
*
47974843
* Effects will be felt instantly (as soon as this function is completed successfully).
47984844
*
@@ -4804,7 +4850,7 @@ declare module '@polkadot/api-base/types/submittable' {
48044850
* - Contains a limited number of reads.
48054851
* - Writes are limited to the `origin` account key.
48064852
**/
4807-
setController: AugmentedSubmittable<(controller: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
4853+
setController: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
48084854
/**
48094855
* Set the validators who cannot be slashed (if any).
48104856
*
@@ -5043,7 +5089,6 @@ declare module '@polkadot/api-base/types/submittable' {
50435089
/**
50445090
* Make some on-chain remark.
50455091
*
5046-
* ## Complexity
50475092
* - `O(1)`
50485093
**/
50495094
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
@@ -5053,16 +5098,10 @@ declare module '@polkadot/api-base/types/submittable' {
50535098
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
50545099
/**
50555100
* Set the new runtime code.
5056-
*
5057-
* ## Complexity
5058-
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
50595101
**/
50605102
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
50615103
/**
50625104
* Set the new runtime code without doing any checks of the given `code`.
5063-
*
5064-
* ## Complexity
5065-
* - `O(C)` where `C` length of `code`
50665105
**/
50675106
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
50685107
/**

packages/types-augment/src/lookup/polkadot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ export default {
23482348
* Lookup757: polkadot_runtime_parachains::paras::pallet::Error<T>
23492349
**/
23502350
PolkadotRuntimeParachainsParasPalletError: {
2351-
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled', 'CannotUpgradeCode']
2351+
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'CannotUpgradeCode']
23522352
},
23532353
/**
23542354
* Lookup759: polkadot_runtime_parachains::initializer::BufferedSessionChange

0 commit comments

Comments
 (0)