Compare commits

..
10 Commits
Author SHA1 Message Date
Github Actions 19510c1ede [CI Skip] release/stable 1.27.1
skip-checks: true
2020-08-03 07:18:56 +00:00
Jaco Greeff 97b5c699b1 1.27 (#2462) 2020-08-03 09:08:09 +02:00
Github Actions d2befda86e [CI Skip] release/beta 1.27.0-beta.3
skip-checks: true
2020-07-31 09:46:53 +00:00
Jaco Greeff 740348b48f Bump deps (#2460) 2020-07-31 11:34:00 +02:00
Github Actions 9e2a5cf532 [CI Skip] release/beta 1.27.0-beta.2
skip-checks: true
2020-07-30 16:28:52 +00:00
Jaco Greeff 6df466d9ea Known types for Rococo (#2459)
* Known types for Rococo

* Update rococo.ts
2020-07-30 18:17:32 +02:00
Github Actions e2a2ac2842 [CI Skip] release/beta 1.27.0-beta.1
skip-checks: true
2020-07-28 11:11:30 +00:00
sung wu 5adc846e45 update doc - "create instance" page (#2456)
poc-3.polkadot.io is not available right now. use rpc.polkadot.io instead.
2020-07-28 12:59:27 +02:00
Github Actions 75aa310837 [CI Skip] release/beta 1.27.0-beta.0
skip-checks: true
2020-07-28 10:27:07 +00:00
Jaco Greeff ce0523eb1c Raw toHuman Ascii detection (#2455) 2020-07-28 12:17:26 +02:00
17 changed files with 764 additions and 662 deletions
+6
View File
@@ -1,5 +1,11 @@
# CHANGELOG
## 1.27.1 Aug 3, 2020
- Remove outdated example poc-3 RPC reference (Thanks to https://github.com/swswsw)
- Raw/Bytes `toHuman` detects ASCII sequence for text output
- Add know types for the Rococo chain
## 1.26.1 Jul 27, 2020
- Update docs for the new `system.accountNextIndex` (Thanks to https://github.com/shawntabrizi)
+1 -1
View File
@@ -8,7 +8,7 @@ import { ApiPromise, WsProvider } from '@polkadot/api';
...
// Construct
const wsProvider = new WsProvider('wss://poc-3.polkadot.io');
const wsProvider = new WsProvider('wss://rpc.polkadot.io');
const api = await ApiPromise.create({ provider: wsProvider });
// Do something
+1 -1
View File
@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "1.26.1"
"version": "1.27.1"
}
+6 -6
View File
@@ -24,15 +24,15 @@
"test:watch": "polkadot-dev-run-test --watch"
},
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/core": "^7.11.0",
"@babel/register": "^7.10.5",
"@babel/runtime": "^7.10.5",
"@polkadot/dev": "^0.55.28",
"@polkadot/ts": "^0.3.29",
"@babel/runtime": "^7.11.0",
"@polkadot/dev": "^0.55.30",
"@polkadot/ts": "^0.3.31",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^26.0.7",
"@types/jest": "^26.0.8",
"@vuepress/plugin-search": "^1.5.2",
"copyfiles": "^2.3.0"
},
"version": "1.26.1"
"version": "1.27.1"
}
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "1.26.1",
"version": "1.27.1",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"keywords": [
@@ -26,12 +26,12 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/api": "1.26.1",
"@polkadot/rpc-core": "1.26.1",
"@polkadot/types": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/api": "1.27.1",
"@polkadot/rpc-core": "1.27.1",
"@polkadot/types": "1.27.1",
"@polkadot/util": "^3.0.1",
"bn.js": "^5.1.2",
"rxjs": "^6.6.0"
"rxjs": "^6.6.2"
}
}
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "1.26.1",
"version": "1.27.1",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"keywords": [
@@ -27,16 +27,16 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/api": "1.26.1",
"@polkadot/rpc-core": "1.26.1",
"@polkadot/rpc-provider": "1.26.1",
"@polkadot/types": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/api": "1.27.1",
"@polkadot/rpc-core": "1.27.1",
"@polkadot/rpc-provider": "1.27.1",
"@polkadot/types": "1.27.1",
"@polkadot/util": "^3.0.1",
"@polkadot/util-crypto": "^3.0.1",
"bn.js": "^5.1.2",
"memoizee": "^0.4.14",
"rxjs": "^6.6.0"
"rxjs": "^6.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^3.0.1"
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "1.26.1",
"version": "1.27.1",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"keywords": [
@@ -26,19 +26,19 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/api-derive": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/api-derive": "1.27.1",
"@polkadot/keyring": "^3.0.1",
"@polkadot/metadata": "1.26.1",
"@polkadot/rpc-core": "1.26.1",
"@polkadot/rpc-provider": "1.26.1",
"@polkadot/types": "1.26.1",
"@polkadot/types-known": "1.26.1",
"@polkadot/metadata": "1.27.1",
"@polkadot/rpc-core": "1.27.1",
"@polkadot/rpc-provider": "1.27.1",
"@polkadot/types": "1.27.1",
"@polkadot/types-known": "1.27.1",
"@polkadot/util": "^3.0.1",
"@polkadot/util-crypto": "^3.0.1",
"bn.js": "^5.1.2",
"eventemitter3": "^4.0.4",
"rxjs": "^6.6.0"
"rxjs": "^6.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^3.0.1"
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "1.26.1",
"version": "1.27.1",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"publishConfig": {
@@ -26,9 +26,9 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/types": "1.26.1",
"@polkadot/types-known": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/types": "1.27.1",
"@polkadot/types-known": "1.27.1",
"@polkadot/util": "^3.0.1",
"@polkadot/util-crypto": "^3.0.1",
"bn.js": "^5.1.2"
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "1.26.1",
"version": "1.27.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
@@ -26,13 +26,13 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/metadata": "1.26.1",
"@polkadot/rpc-provider": "1.26.1",
"@polkadot/types": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/metadata": "1.27.1",
"@polkadot/rpc-provider": "1.27.1",
"@polkadot/types": "1.27.1",
"@polkadot/util": "^3.0.1",
"memoizee": "^0.4.14",
"rxjs": "^6.6.0"
"rxjs": "^6.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^3.0.1"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "1.26.1",
"version": "1.27.1",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
@@ -26,9 +26,9 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/metadata": "1.26.1",
"@polkadot/types": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/metadata": "1.27.1",
"@polkadot/types": "1.27.1",
"@polkadot/util": "^3.0.1",
"@polkadot/util-crypto": "^3.0.1",
"bn.js": "^5.1.2",
@@ -39,6 +39,6 @@
"devDependencies": {
"@polkadot/keyring": "^3.0.1",
"mock-socket": "^9.0.3",
"nock": "^13.0.2"
"nock": "^13.0.3"
}
}
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "1.26.1",
"version": "1.27.1",
"description": "Type generation scripts",
"main": "index.js",
"bin": {
@@ -33,13 +33,13 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
"dependencies": {
"@babel/core": "^7.10.5",
"@babel/core": "^7.11.0",
"@babel/register": "^7.10.5",
"@babel/runtime": "^7.10.5",
"@polkadot/api": "1.26.1",
"@polkadot/metadata": "1.26.1",
"@polkadot/rpc-provider": "1.26.1",
"@polkadot/types": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/api": "1.27.1",
"@polkadot/metadata": "1.27.1",
"@polkadot/rpc-provider": "1.27.1",
"@polkadot/types": "1.27.1",
"@polkadot/util": "^3.0.1",
"handlebars": "^4.7.6",
"websocket": "^1.0.31",
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "1.26.1",
"version": "1.27.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
@@ -26,8 +26,8 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/types": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/types": "1.27.1",
"@polkadot/util": "^3.0.1",
"bn.js": "^5.1.2"
},
+2
View File
@@ -7,6 +7,7 @@ import { OverrideVersionedType } from '@polkadot/types/types';
import centrifugeChain from './centrifuge-chain';
import kusama from './kusama';
import polkadot from './polkadot';
import rococo from './rococo';
import westend from './westend';
// Type overrides for specific spec types & versions as given in runtimeVersion
@@ -14,6 +15,7 @@ const typesSpec: Record<string, OverrideVersionedType[]> = {
'centrifuge-chain': centrifugeChain,
kusama,
polkadot,
rococo,
westend
};
+22
View File
@@ -0,0 +1,22 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
Address: 'AccountId',
Keys: 'SessionKeys5',
LookupSource: 'AccountId'
};
const versioned: OverrideVersionedType[] = [
{
minmax: [0, undefined],
types: {
...sharedTypes
}
}
];
export default versioned;
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "1.26.1",
"version": "1.27.1",
"description": "Implementation of the Parity codec",
"main": "index.js",
"keywords": [
@@ -26,14 +26,14 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.10.5",
"@polkadot/metadata": "1.26.1",
"@babel/runtime": "^7.11.0",
"@polkadot/metadata": "1.27.1",
"@polkadot/util": "^3.0.1",
"@polkadot/util-crypto": "^3.0.1",
"@types/bn.js": "^4.11.6",
"bn.js": "^5.1.2",
"memoizee": "^0.4.14",
"rxjs": "^6.6.0"
"rxjs": "^6.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^3.0.1",
+1 -1
View File
@@ -117,7 +117,7 @@ export default class Raw extends Uint8Array implements IU8a {
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
*/
public toHuman (): AnyJson {
return this.isUtf8
return this.isAscii
? this.toUtf8()
: this.toJSON();
}
+674 -602
View File
File diff suppressed because it is too large Load Diff