Skip to content

Commit 4a1e504

Browse files
authored
1.3 (#1883)
* 1.3 * Pair create update * CHANGELOG update
1 parent ebf3f44 commit 4a1e504

File tree

15 files changed

+84
-80
lines changed

15 files changed

+84
-80
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# 1.3.0-beta.x
1+
# 1.3.1 Feb 18, 2020
22

3+
- Add `@types/bn.js` as a normal dependency, exposed in `*.d.ts` ((Thanks to https://github.com/monitz87)
4+
- Type generation scripts (including `polkadot-types-from-{chain,defs}`) has been moved to the `@polkadot/typegen` package
35
- The `@polkadot/types/codec/create` has been moved to `@polkadot/types/create`, imports from `@polkadot/types` are unaffected
46
- Expose chain properies on registry (and use for API type formatting)
57
- Add `toHuman(isExtended?: boolean)` to all codec types, formatting into a human-readable structure

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"packages": [
1010
"packages/*"
1111
],
12-
"version": "1.3.0-beta.11"
12+
"version": "1.3.0"
1313
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@babel/core": "^7.8.4",
2727
"@babel/register": "^7.8.3",
2828
"@babel/runtime": "^7.8.4",
29-
"@polkadot/dev": "^0.40.17",
29+
"@polkadot/dev": "^0.40.18",
3030
"@polkadot/ts": "^0.2.3",
3131
"copyfiles": "^2.2.0"
3232
}

packages/api-contract/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-contract",
3-
"version": "1.3.0-beta.11",
3+
"version": "1.3.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"keywords": [
@@ -27,10 +27,10 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/api": "^1.3.0-beta.11",
31-
"@polkadot/rpc-core": "^1.3.0-beta.11",
32-
"@polkadot/types": "^1.3.0-beta.11",
33-
"@polkadot/util": "^2.4.0-beta.0",
30+
"@polkadot/api": "^1.3.0",
31+
"@polkadot/rpc-core": "^1.3.0",
32+
"@polkadot/types": "^1.3.0",
33+
"@polkadot/util": "^2.4.1",
3434
"bn.js": "^5.1.1",
3535
"rxjs": "^6.5.4"
3636
}

packages/api-derive/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "1.3.0-beta.11",
3+
"version": "1.3.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"keywords": [
@@ -28,17 +28,17 @@
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
3030
"@babel/runtime": "^7.8.4",
31-
"@polkadot/api": "^1.3.0-beta.11",
32-
"@polkadot/rpc-core": "^1.3.0-beta.11",
33-
"@polkadot/rpc-provider": "^1.3.0-beta.11",
34-
"@polkadot/types": "^1.3.0-beta.11",
35-
"@polkadot/util": "^2.4.0-beta.0",
36-
"@polkadot/util-crypto": "^2.4.0-beta.0",
31+
"@polkadot/api": "^1.3.0",
32+
"@polkadot/rpc-core": "^1.3.0",
33+
"@polkadot/rpc-provider": "^1.3.0",
34+
"@polkadot/types": "^1.3.0",
35+
"@polkadot/util": "^2.4.1",
36+
"@polkadot/util-crypto": "^2.4.1",
3737
"bn.js": "^5.1.1",
3838
"memoizee": "^0.4.14",
3939
"rxjs": "^6.5.4"
4040
},
4141
"devDependencies": {
42-
"@polkadot/keyring": "^2.4.0-beta.0"
42+
"@polkadot/keyring": "^2.4.1"
4343
}
4444
}

packages/api/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "1.3.0-beta.11",
3+
"version": "1.3.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"keywords": [
@@ -27,19 +27,19 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/api-derive": "^1.3.0-beta.11",
31-
"@polkadot/keyring": "^2.4.0-beta.0",
32-
"@polkadot/metadata": "^1.3.0-beta.11",
33-
"@polkadot/rpc-core": "^1.3.0-beta.11",
34-
"@polkadot/rpc-provider": "^1.3.0-beta.11",
35-
"@polkadot/types": "^1.3.0-beta.11",
36-
"@polkadot/util": "^2.4.0-beta.0",
37-
"@polkadot/util-crypto": "^2.4.0-beta.0",
30+
"@polkadot/api-derive": "^1.3.0",
31+
"@polkadot/keyring": "^2.4.1",
32+
"@polkadot/metadata": "^1.3.0",
33+
"@polkadot/rpc-core": "^1.3.0",
34+
"@polkadot/rpc-provider": "^1.3.0",
35+
"@polkadot/types": "^1.3.0",
36+
"@polkadot/util": "^2.4.1",
37+
"@polkadot/util-crypto": "^2.4.1",
3838
"bn.js": "^5.1.1",
3939
"eventemitter3": "^4.0.0",
4040
"rxjs": "^6.5.4"
4141
},
4242
"devDependencies": {
43-
"@polkadot/keyring": "^2.4.0-beta.0"
43+
"@polkadot/keyring": "^2.4.1"
4444
}
4545
}

packages/api/src/promise/Api.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ describe('ApiPromise', (): void => {
1717
const registry = new TypeRegistry();
1818
const keyring = testKeyring({ type: 'ed25519' });
1919
const aliceEd = keyring.addPair(
20-
createPair('ed25519', {
20+
// eslint-disable-next-line @typescript-eslint/unbound-method
21+
createPair({ toSS58: keyring.encodeAddress, type: 'ed25519' }, {
2122
secretKey: hexToU8a('0xabf8e5bdbe30c65656c0a3cbd181ff8a56294a69dfedd27982aace4a7690911588dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee'),
2223
publicKey: hexToU8a('0x88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee')
2324
})

packages/jsonrpc/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/jsonrpc",
3-
"version": "1.3.0-beta.11",
3+
"version": "1.3.0",
44
"description": "Method definitions for the Polkadot RPC layer",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,7 +27,7 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/jsonrpc#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/types": "^1.3.0-beta.11",
31-
"@polkadot/util": "^2.4.0-beta.0"
30+
"@polkadot/types": "^1.3.0",
31+
"@polkadot/util": "^2.4.1"
3232
}
3333
}

packages/metadata/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/metadata",
3-
"version": "1.3.0-beta.11",
3+
"version": "1.3.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,12 +27,12 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/types": "^1.3.0-beta.11",
31-
"@polkadot/util": "^2.4.0-beta.0",
32-
"@polkadot/util-crypto": "^2.4.0-beta.0",
30+
"@polkadot/types": "^1.3.0",
31+
"@polkadot/util": "^2.4.1",
32+
"@polkadot/util-crypto": "^2.4.1",
3333
"bn.js": "^5.1.1"
3434
},
3535
"devDependencies": {
36-
"@polkadot/keyring": "^2.4.0-beta.0"
36+
"@polkadot/keyring": "^2.4.1"
3737
}
3838
}

packages/rpc-core/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-core",
3-
"version": "1.3.0-beta.11",
3+
"version": "1.3.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,15 +27,15 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/jsonrpc": "^1.3.0-beta.11",
31-
"@polkadot/metadata": "^1.3.0-beta.11",
32-
"@polkadot/rpc-provider": "^1.3.0-beta.11",
33-
"@polkadot/types": "^1.3.0-beta.11",
34-
"@polkadot/util": "^2.4.0-beta.0",
30+
"@polkadot/jsonrpc": "^1.3.0",
31+
"@polkadot/metadata": "^1.3.0",
32+
"@polkadot/rpc-provider": "^1.3.0",
33+
"@polkadot/types": "^1.3.0",
34+
"@polkadot/util": "^2.4.1",
3535
"memoizee": "^0.4.14",
3636
"rxjs": "^6.5.4"
3737
},
3838
"devDependencies": {
39-
"@polkadot/keyring": "^2.4.0-beta.0"
39+
"@polkadot/keyring": "^2.4.1"
4040
}
4141
}

0 commit comments

Comments
 (0)