Skip to content

Commit

Permalink
0.91 (#1377)
Browse files Browse the repository at this point in the history
* Deps & CHANGELOG

* Current master metadata (format only)

* 0.91
  • Loading branch information
jacogr authored Sep 9, 2019
1 parent 0ea4d69 commit 05d697c
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 64 deletions.
13 changes: 9 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# 0.91.0-beta.x
# 0.91.1

- This release was focussed on stability, with a number of cleanups and bug-fixes
- Adjustments for Substrate 1.x chain detection (with auto-types) and Substrate 2.x support has been extended with all latest types
- The `getRuntimeVersion` and `subscribeRuntimeVersion` RPCs are now only available on the `rpc.state.*` endpoints. This aligns with the Substrate implementation.
- The `author_insertKey` RPC's last argument `publicKey` is now required, as to reflect Substrate implementation.
- Support for extrinsics with versions that is not in the base Substrate implementation (V1-V3) can now be done by providing an implementation for `ExtrinsicUnknown`
- **Breaking change** SignerPayload is registered and can be overrode now.
- SignerPayload is renamed to SignerPayloadJSON
- SignerPayloadJSON, SignerPayloadRawBase and SignerPayloadRaw are all moved to `@polkadot/types`
- Redeemed balance calculation if `api.derive` now returns the correct values again (bugfix)
- added the `yarn chain:info [--ws URL]` utility to extract a calls-only metadata version
- Missing types are now logged via a `console.warn`, not via `.error`
- `Extrinsic`, `ExtrinsicPayload` & `SignerPayload` is registered in the type registry and can be overriden now
- **Breaking change** `SignerPayload` is renamed to `SignerPayloadJSON`
- **Breaking change** `SignerPayloadJSON`, `SignerPayloadRawBase` and `SignerPayloadRaw` are all moved to `@polkadot/types`

# 0.90.1

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "0.91.0-beta.23"
"version": "0.91.0"
}
4 changes: 2 additions & 2 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"keywords": [
Expand All @@ -27,6 +27,6 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/types": "^0.91.0-beta.23"
"@polkadot/types": "^0.91.0"
}
}
8 changes: 4 additions & 4 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"keywords": [
Expand Down Expand Up @@ -28,10 +28,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/api": "^0.91.0-beta.23",
"@polkadot/types": "^0.91.0-beta.23"
"@polkadot/api": "^0.91.0",
"@polkadot/types": "^0.91.0"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.7"
"@polkadot/keyring": "^1.2.1"
}
}
10 changes: 5 additions & 5 deletions packages/api-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-metadata",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"publishConfig": {
Expand All @@ -27,11 +27,11 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/types": "^0.91.0-beta.23",
"@polkadot/util": "^1.2.0-beta.7",
"@polkadot/util-crypto": "^1.2.0-beta.7"
"@polkadot/types": "^0.91.0",
"@polkadot/util": "^1.2.1",
"@polkadot/util-crypto": "^1.2.1"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.7"
"@polkadot/keyring": "^1.2.1"
}
}
16 changes: 8 additions & 8 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"keywords": [
Expand All @@ -27,14 +27,14 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/api-derive": "^0.91.0-beta.23",
"@polkadot/api-metadata": "^0.91.0-beta.23",
"@polkadot/rpc-core": "^0.91.0-beta.23",
"@polkadot/rpc-provider": "^0.91.0-beta.23",
"@polkadot/types": "^0.91.0-beta.23",
"@polkadot/util-crypto": "^1.2.0-beta.7"
"@polkadot/api-derive": "^0.91.0",
"@polkadot/api-metadata": "^0.91.0",
"@polkadot/rpc-core": "^0.91.0",
"@polkadot/rpc-provider": "^0.91.0",
"@polkadot/types": "^0.91.0",
"@polkadot/util-crypto": "^1.2.1"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.7"
"@polkadot/keyring": "^1.2.1"
}
}
10 changes: 5 additions & 5 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
Expand All @@ -27,10 +27,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/jsonrpc": "^0.91.0-beta.23",
"@polkadot/rpc-provider": "^0.91.0-beta.23",
"@polkadot/types": "^0.91.0-beta.23",
"@polkadot/util": "^1.2.0-beta.7",
"@polkadot/jsonrpc": "^0.91.0",
"@polkadot/rpc-provider": "^0.91.0",
"@polkadot/types": "^0.91.0",
"@polkadot/util": "^1.2.1",
"rxjs": "^6.5.3"
}
}
10 changes: 5 additions & 5 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
Expand All @@ -27,16 +27,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/api-metadata": "^0.91.0-beta.23",
"@polkadot/util": "^1.2.0-beta.7",
"@polkadot/util-crypto": "^1.2.0-beta.7",
"@polkadot/api-metadata": "^0.91.0",
"@polkadot/util": "^1.2.1",
"@polkadot/util-crypto": "^1.2.1",
"@types/nock": "^10.0.3",
"eventemitter3": "^4.0.0",
"isomorphic-fetch": "^2.2.1",
"websocket": "^1.0.29"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.7",
"@polkadot/keyring": "^1.2.1",
"mock-socket": "^9.0.0",
"nock": "^11.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/type-jsonrpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/jsonrpc",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Method definitions for the Polkadot RPC layer",
"main": "index.js",
"publishConfig": {
Expand Down
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "0.91.0-beta.23",
"version": "0.91.0",
"description": "Implementation of the Parity codec",
"main": "index.js",
"keywords": [
Expand All @@ -27,12 +27,12 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/util": "^1.2.0-beta.7",
"@polkadot/util-crypto": "^1.2.0-beta.7",
"@polkadot/util": "^1.2.1",
"@polkadot/util-crypto": "^1.2.1",
"@types/memoizee": "^0.4.2",
"memoizee": "^0.4.14"
},
"devDependencies": {
"@polkadot/keyring": "^1.2.0-beta.7"
"@polkadot/keyring": "^1.2.1"
}
}
8 changes: 4 additions & 4 deletions packages/types/src/Metadata/v7/static-substrate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4103,7 +4103,7 @@
{
"name": "TombstoneDeposit",
"type": "BalanceOf",
"value": "0x10000000000000000000000000000000",
"value": "0x00407a10f35a00000000000000000000",
"documentation": [
" The minimum amount required to generate a tombstone."
]
Expand All @@ -4120,15 +4120,15 @@
{
"name": "RentByteFee",
"type": "BalanceOf",
"value": "0x04000000000000000000000000000000",
"value": "0x00407a10f35a00000000000000000000",
"documentation": [
" Price of a byte of storage per one block interval. Should be greater than 0."
]
},
{
"name": "RentDepositOffset",
"type": "BalanceOf",
"value": "0xe8030000000000000000000000000000",
"value": "0x00008a5d784563010000000000000000",
"documentation": [
" The amount of funds a contract should deposit in order to offset",
" the cost of one byte.",
Expand All @@ -4142,7 +4142,7 @@
{
"name": "SurchargeReward",
"type": "BalanceOf",
"value": "0x96000000000000000000000000000000",
"value": "0x0080a1a76b4a35000000000000000000",
"documentation": [
" Reward that is received by the party whose touch has led",
" to removal of a contract."
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/Metadata/v7/static.ts

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1841,14 +1841,14 @@
typescript "^3.6.2"
vuepress "^1.0.3"

"@polkadot/keyring@^1.2.0-beta.7":
version "1.2.0-beta.7"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-1.2.0-beta.7.tgz#57f3e95acf714af6b234bfe3070c530723188c7b"
integrity sha512-8TWQ178inFw5iXdylD2ws1FlpLmj/EI2hsZGxphFmV3GK1yC9zBvplfTdKWpjIvCReczF2gKghovj7bg7oyRfw==
"@polkadot/keyring@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-1.2.1.tgz#eead04a939784991dd52e9bd0d5b805ddc92e4fd"
integrity sha512-NDoOK5lNqC9TERuF47RqctZ1An4uScPR8S0dcZOZRG5z/q2DTq9Awt0AgOQflG8fwugrcwrsN2f+IFsS98gyBA==
dependencies:
"@babel/runtime" "^7.5.5"
"@polkadot/util" "^1.2.0-beta.7"
"@polkadot/util-crypto" "^1.2.0-beta.7"
"@polkadot/util" "^1.2.1"
"@polkadot/util-crypto" "^1.2.1"

"@polkadot/ts@^0.1.71":
version "0.1.71"
Expand All @@ -1857,14 +1857,14 @@
dependencies:
"@types/chrome" "^0.0.88"

"@polkadot/util-crypto@^1.2.0-beta.7":
version "1.2.0-beta.7"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-1.2.0-beta.7.tgz#ef41d1547e7fd523741d2dfa6a094d3ab5982c62"
integrity sha512-J8Q3wb81fR/lTJzTyMOj6ONZDAG3Xjywx747fPAvTFPgP+iHolpy1tI3ZUOPyCugppJYb9VAJtZHNX8ZH7VZqg==
"@polkadot/util-crypto@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-1.2.1.tgz#ec1ad6e7c69904846c4279f781eba3044abd671e"
integrity sha512-IO3Ua9v+VMEczincDHrgxt2MIHvB4CyfBZwBYRZuchwQ6hDV613j34BQzKwszRfUn7h0WEc562a4a4mj9gRRdA==
dependencies:
"@babel/runtime" "^7.5.5"
"@polkadot/util" "^1.2.0-beta.7"
"@polkadot/wasm-crypto" "^0.14.0-beta.3"
"@polkadot/util" "^1.2.1"
"@polkadot/wasm-crypto" "^0.14.1"
"@types/bip39" "^2.4.2"
"@types/bs58" "^4.0.0"
"@types/pbkdf2" "^3.0.0"
Expand All @@ -1879,10 +1879,10 @@
tweetnacl "^1.0.1"
xxhashjs "^0.2.2"

"@polkadot/util@^1.2.0-beta.7":
version "1.2.0-beta.7"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-1.2.0-beta.7.tgz#50aa8d34830fd2867f2e23c3c8d79b8f26904344"
integrity sha512-ESIdiGC91qQG6k4M0iB4Ed/sQfS0ugJsEpZFCoB3lN39uyn0V6ohAeAITDwdjLAkMeD7XhhFSr6mB+wEVkiv5Q==
"@polkadot/util@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-1.2.1.tgz#a6de04aa04a30b51e3ac8e1dbf53d3c45f8e6189"
integrity sha512-N8mnCEbLFd0RH/ro3D+A4kSWCtHDjJJ/WgUvHYw7Ez1pX8Gdl2s5OJt0LuljRVa0iB/56kXD8wBpzU2eOU6RrA==
dependencies:
"@babel/runtime" "^7.5.5"
"@types/bn.js" "^4.11.5"
Expand All @@ -1892,10 +1892,10 @@
ip-regex "^4.1.0"
moment "^2.24.0"

"@polkadot/wasm-crypto@^0.14.0-beta.3":
version "0.14.0-beta.4"
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-0.14.0-beta.4.tgz#4a1e26039d0b29f8cb33dad3c303a1a633cab9a8"
integrity sha512-43pbFomW1AyNGV761xTMA13j9GKLZa2VQhZDoq67ZoPUtVhpREbuVUFumFKaLIXttuO39VLm3OzJgIJMjsZ8lA==
"@polkadot/wasm-crypto@^0.14.1":
version "0.14.1"
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-0.14.1.tgz#f4923bba22d7c68a4be3575ba27790947b212633"
integrity sha512-Xng7L2Z8TNZa/5g6pot4O06Jf0ohQRZdvfl8eQL+E/L2mcqJYC1IjkMxJBSBuQEV7hisWzh9mHOy5WCcgPk29Q==

"@types/babel__core@^7.1.0":
version "7.1.3"
Expand Down

0 comments on commit 05d697c

Please sign in to comment.