Skip to content

Commit d7b4adc

Browse files
authored
Bump metadata (#5363)
* Bump metadata * Fix lint
1 parent ef97ea7 commit d7b4adc

File tree

31 files changed

+490
-394
lines changed

31 files changed

+490
-394
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+
## 9.10.1 Dec 4, 2022
4+
5+
Changes:
6+
7+
- Update to latest Polkadot, Kusama & Substrate metadata
8+
- Update to `@polkadot/util` 10.2.1
9+
10+
311
## 9.9.4 Nov 28, 2022
412

513
Changes:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@babel/core": "^7.20.2",
4040
"@babel/register": "^7.18.9",
4141
"@babel/runtime": "^7.20.1",
42-
"@polkadot/dev": "^0.67.163",
42+
"@polkadot/dev": "^0.67.167",
4343
"@polkadot/typegen": "workspace:packages/typegen",
4444
"@types/jest": "^29.2.3",
4545
"copyfiles": "^2.4.1"

packages/api-augment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@polkadot/types": "9.9.5-1-x",
3030
"@polkadot/types-augment": "9.9.5-1-x",
3131
"@polkadot/types-codec": "9.9.5-1-x",
32-
"@polkadot/util": "^10.1.14"
32+
"@polkadot/util": "^10.2.1"
3333
},
3434
"devDependencies": {
3535
"@polkadot/types-support": "9.9.5-1-x"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ declare module '@polkadot/api-base/types/storage' {
10971097
/**
10981098
* Past code of parachains. The parachains themselves may not be registered anymore,
10991099
* but we also keep their code on-chain for the same amount of time as outdated code
1100-
* to keep it available for secondary checkers.
1100+
* to keep it available for approval checkers.
11011101
**/
11021102
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
11031103
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ declare module '@polkadot/api-base/types/storage' {
10001000
/**
10011001
* Past code of parachains. The parachains themselves may not be registered anymore,
10021002
* but we also keep their code on-chain for the same amount of time as outdated code
1003-
* to keep it available for secondary checkers.
1003+
* to keep it available for approval checkers.
10041004
**/
10051005
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
10061006
/**

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,32 @@ declare module '@polkadot/api-base/types/consts' {
239239
* Changing this value for an existing chain might need a storage migration.
240240
**/
241241
depositPerItem: u128 & AugmentedConst<ApiType>;
242+
/**
243+
* The maximum length of a contract code in bytes. This limit applies to the instrumented
244+
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
245+
* a wasm binary below this maximum size.
246+
**/
247+
maxCodeLen: u32 & AugmentedConst<ApiType>;
248+
/**
249+
* The maximum allowable length in bytes for storage keys.
250+
**/
251+
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
242252
/**
243253
* Cost schedule and limits.
244254
**/
245255
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
256+
/**
257+
* Make contract callable functions marked as `#[unstable]` available.
258+
*
259+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
260+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
261+
* experiment with new features.
262+
*
263+
* # Warning
264+
*
265+
* Do **not** set to `true` on productions chains.
266+
**/
267+
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
246268
/**
247269
* Generic const
248270
**/

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ declare module '@polkadot/api-base/types/storage' {
271271
* NOTE: This is only used in the case that this pallet is used to store balances.
272272
**/
273273
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
274+
/**
275+
* The total units of outstanding deactivated balance in the system.
276+
**/
277+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
274278
/**
275279
* Any liquidity locks on some account balances.
276280
* NOTE: Should only be accessed when setting, changing and freeing a lock.
@@ -1711,6 +1715,10 @@ declare module '@polkadot/api-base/types/storage' {
17111715
* Proposal indices that have been approved but not yet awarded.
17121716
**/
17131717
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1718+
/**
1719+
* The amount which has been reported as inactive to Currency.
1720+
**/
1721+
inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
17141722
/**
17151723
* Number of proposals that have been made.
17161724
**/

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

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -403,44 +403,45 @@ declare module '@polkadot/api-base/types/submittable' {
403403
create: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, u128]>;
404404
/**
405405
* Destroy all accounts associated with a given asset.
406+
*
406407
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
407-
* asset is in a `Destroying` state
408+
* asset is in a `Destroying` state.
408409
*
409-
* Due to weight restrictions, this function may need to be called multiple
410-
* times to fully destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a
411-
* time.
410+
* Due to weight restrictions, this function may need to be called multiple times to fully
411+
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
412412
*
413413
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
414414
* asset.
415415
*
416-
* Each call Emits the `Event::DestroyedAccounts` event.
416+
* Each call emits the `Event::DestroyedAccounts` event.
417417
**/
418418
destroyAccounts: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
419419
/**
420-
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit),
420+
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
421+
*
421422
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
422-
* asset is in a `Destroying` state
423+
* asset is in a `Destroying` state.
423424
*
424-
* Due to weight restrictions, this function may need to be called multiple
425-
* times to fully destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a
426-
* time.
425+
* Due to weight restrictions, this function may need to be called multiple times to fully
426+
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
427427
*
428428
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
429429
* asset.
430430
*
431-
* Each call Emits the `Event::DestroyedApprovals` event.
431+
* Each call emits the `Event::DestroyedApprovals` event.
432432
**/
433433
destroyApprovals: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
434434
/**
435435
* Complete destroying asset and unreserve currency.
436+
*
436437
* `finish_destroy` should only be called after `start_destroy` has been called, and the
437438
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
438439
* hand.
439440
*
440441
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
441442
* asset.
442443
*
443-
* Each successful call Emits the `Event::Destroyed` event.
444+
* Each successful call emits the `Event::Destroyed` event.
444445
**/
445446
finishDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
446447
/**
@@ -645,17 +646,17 @@ declare module '@polkadot/api-base/types/submittable' {
645646
**/
646647
setTeam: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
647648
/**
648-
* Start the process of destroying a class of fungible asset
649-
* start_destroy is the first in a series of extrinsics that should be called, to allow
650-
* destroying an asset.
649+
* Start the process of destroying a fungible asset class.
650+
*
651+
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
652+
* destruction of an asset class.
651653
*
652-
* The origin must conform to `ForceOrigin` or must be Signed and the sender must be the
653-
* owner of the asset `id`.
654+
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
654655
*
655656
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
656657
* asset.
657658
*
658-
* Assets must be freezed before calling start_destroy.
659+
* The asset class must be frozen before calling `start_destroy`.
659660
**/
660661
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
661662
/**

packages/api-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@babel/runtime": "^7.20.1",
2727
"@polkadot/rpc-core": "9.9.5-1-x",
2828
"@polkadot/types": "9.9.5-1-x",
29-
"@polkadot/util": "^10.1.14",
29+
"@polkadot/util": "^10.2.1",
3030
"rxjs": "^7.5.7"
3131
}
3232
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"@polkadot/types": "9.9.5-1-x",
2929
"@polkadot/types-codec": "9.9.5-1-x",
3030
"@polkadot/types-create": "9.9.5-1-x",
31-
"@polkadot/util": "^10.1.14",
32-
"@polkadot/util-crypto": "^10.1.14",
31+
"@polkadot/util": "^10.2.1",
32+
"@polkadot/util-crypto": "^10.2.1",
3333
"rxjs": "^7.5.7"
3434
},
3535
"devDependencies": {
3636
"@polkadot/api-augment": "9.9.5-1-x",
37-
"@polkadot/keyring": "^10.1.14"
37+
"@polkadot/keyring": "^10.2.1"
3838
}
3939
}

0 commit comments

Comments
 (0)