Skip to content

Commit a7e824f

Browse files
authored
6.2.1 (#4016)
* 6.2.1 * CHANGELOG * Bump static metadata * CHANGELOG
1 parent 9d5fb2b commit a7e824f

37 files changed

+315
-445
lines changed

CHANGELOG.md

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

3+
## 6.2.1 Oct 4, 2021
4+
5+
Upgrade priority: Low. Maintenance updates.
6+
7+
Contributed:
8+
9+
- Cater for new asset fee payment extension (Thanks to https://github.com/apopiak)
10+
11+
Changes:
12+
13+
- Extend error messages for malformed `queryMulti` inputs
14+
- Correctly handle non-map queries passed to `queryMulti` in map form
15+
- Use new metadata v14 lookup type in derive results
16+
- Adjust definitions to infer TS types in `.multi` queries
17+
- Fix TS lookup enum generation with nested Option & Tuple
18+
- Bump static metadata for latest Substrate, Polkadot & Kusama
19+
20+
321
## 6.1.2 Sep 29, 2021
422

523
Upgrade priority: Low. Recommended for 6.x users using historic queries.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
"@types/jest": "^27.0.2",
3636
"copyfiles": "^2.4.1"
3737
},
38-
"version": "6.1.3-3",
38+
"version": "6.2.0",
3939
"packageManager": "[email protected]"
4040
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "6.1.3-3",
3+
"version": "6.2.0",
44
"type": "module",
55
"description": "Interfaces for interacting with contracts and contract ABIs",
66
"main": "index.js",
@@ -20,8 +20,8 @@
2020
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2121
"dependencies": {
2222
"@babel/runtime": "^7.15.4",
23-
"@polkadot/api": "6.1.3-3",
24-
"@polkadot/types": "6.1.3-3",
23+
"@polkadot/api": "6.2.0",
24+
"@polkadot/types": "6.2.0",
2525
"@polkadot/util": "^7.4.1",
2626
"rxjs": "^7.3.0"
2727
}

packages/api-contract/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api-contract', version: '6.1.3-3' };
6+
export const packageInfo = { name: '@polkadot/api-contract', version: '6.2.0' };

packages/api-derive/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "6.1.3-3",
3+
"version": "6.2.0",
44
"type": "module",
55
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
66
"main": "index.js",
@@ -20,15 +20,15 @@
2020
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2121
"dependencies": {
2222
"@babel/runtime": "^7.15.4",
23-
"@polkadot/api": "6.1.3-3",
24-
"@polkadot/rpc-core": "6.1.3-3",
25-
"@polkadot/types": "6.1.3-3",
23+
"@polkadot/api": "6.2.0",
24+
"@polkadot/rpc-core": "6.2.0",
25+
"@polkadot/types": "6.2.0",
2626
"@polkadot/util": "^7.4.1",
2727
"@polkadot/util-crypto": "^7.4.1",
2828
"rxjs": "^7.3.0"
2929
},
3030
"devDependencies": {
3131
"@polkadot/keyring": "^7.4.1",
32-
"@polkadot/rpc-provider": "6.1.3-3"
32+
"@polkadot/rpc-provider": "6.2.0"
3333
}
3434
}

packages/api-derive/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api-derive', version: '6.1.3-3' };
6+
export const packageInfo = { name: '@polkadot/api-derive', version: '6.2.0' };

packages/api/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "6.1.3-3",
3+
"version": "6.2.0",
44
"type": "module",
55
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
66
"main": "index.js",
@@ -20,12 +20,12 @@
2020
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2121
"dependencies": {
2222
"@babel/runtime": "^7.15.4",
23-
"@polkadot/api-derive": "6.1.3-3",
23+
"@polkadot/api-derive": "6.2.0",
2424
"@polkadot/keyring": "^7.4.1",
25-
"@polkadot/rpc-core": "6.1.3-3",
26-
"@polkadot/rpc-provider": "6.1.3-3",
27-
"@polkadot/types": "6.1.3-3",
28-
"@polkadot/types-known": "6.1.3-3",
25+
"@polkadot/rpc-core": "6.2.0",
26+
"@polkadot/rpc-provider": "6.2.0",
27+
"@polkadot/types": "6.2.0",
28+
"@polkadot/types-known": "6.2.0",
2929
"@polkadot/util": "^7.4.1",
3030
"@polkadot/util-crypto": "^7.4.1",
3131
"eventemitter3": "^4.0.7",

packages/api/src/augment/events.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -180,47 +180,28 @@ declare module '@polkadot/api/types/events' {
180180
contracts: {
181181
/**
182182
* A code with the specified hash was removed.
183-
* \[code_hash\]
184183
*
185184
* This happens when the last contract that uses this code hash was removed.
186185
**/
187186
CodeRemoved: AugmentedEvent<ApiType, [H256]>;
188187
/**
189-
* Code with the specified hash has been stored. \[code_hash\]
188+
* Code with the specified hash has been stored.
190189
**/
191190
CodeStored: AugmentedEvent<ApiType, [H256]>;
192191
/**
193192
* A custom event emitted by the contract.
194-
* \[contract, data\]
195-
*
196-
* # Params
197-
*
198-
* - `contract`: The contract that emitted the event.
199-
* - `data`: Data supplied by the contract. Metadata generated during contract compilation
200-
* is needed to decode it.
201193
**/
202194
ContractEmitted: AugmentedEvent<ApiType, [AccountId32, Bytes]>;
203195
/**
204-
* Contract deployed by address at the specified address. \[deployer, contract\]
196+
* Contract deployed by address at the specified address.
205197
**/
206198
Instantiated: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
207199
/**
208200
* Triggered when the current schedule is updated.
209-
* \[version\]
210-
*
211-
* # Params
212-
*
213-
* - `version`: The version of the newly set schedule.
214201
**/
215202
ScheduleUpdated: AugmentedEvent<ApiType, [u32]>;
216203
/**
217204
* Contract has been removed.
218-
* \[contract, beneficiary\]
219-
*
220-
* # Params
221-
*
222-
* - `contract`: The contract that was terminated.
223-
* - `beneficiary`: The account that received the contracts remaining balance.
224205
*
225206
* # Note
226207
*

packages/api/src/augment/tx.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,8 +2572,8 @@ declare module '@polkadot/api/types/submittable' {
25722572
* The dispatch origin of this function must be signed.
25732573
*
25742574
* # <weight>
2575-
* - Complexity: `O(1)` in number of key types.
2576-
* Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
2575+
* - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
2576+
* of `T::Keys::key_ids()` which is fixed.
25772577
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
25782578
* - DbWrites: `NextKeys`, `origin account`
25792579
* - DbWrites per key id: `KeyOwner`
@@ -2588,8 +2588,8 @@ declare module '@polkadot/api/types/submittable' {
25882588
* The dispatch origin of this function must be signed.
25892589
*
25902590
* # <weight>
2591-
* - Complexity: `O(1)`
2592-
* Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
2591+
* - Complexity: `O(1)`. Actual cost depends on the number of length of
2592+
* `T::Keys::key_ids()` which is fixed.
25932593
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
25942594
* - DbWrites: `origin account`, `NextKeys`
25952595
* - DbReads per key id: `KeyOwner`

packages/api/src/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api', version: '6.1.3-3' };
6+
export const packageInfo = { name: '@polkadot/api', version: '6.2.0' };

0 commit comments

Comments
 (0)