Skip to content

Commit

Permalink
0.10 (#109)
Browse files Browse the repository at this point in the history
* 0.10

* Rewrite yarn.lock
  • Loading branch information
jacogr authored Feb 26, 2020
1 parent f44f5ea commit ad5f75a
Show file tree
Hide file tree
Showing 10 changed files with 603 additions and 798 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# 0.10.0-beta.x
# 0.10.1 Feb 26, 2020

- Add support for file syntax for tx params (`@path`) to api-cli (Thanks to https://github.com/coriolinus)
- Add support for sudo txs (via `--sudo`) to api-cli (Thanks to https://github.com/coriolinus)
- Cleanup global install docs with correct argument order (Thanks to https://github.com/coriolinus)
- Allow passing signer tx params in file (Thanks to https://github.com/kwingram25)
- Transaction submission output now is displayed in `.toHuman` format
- Bump api & util (support for composite accounts)
- Update documentation for composite account support
- `@polkadot/api` 1.3.1
- Update to `@polkadot/api` 1.4.1 & `@polkadot/util` 2.5.1

# 0.9.1 Jan 30, 2020

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.10.0-beta.14"
"version": "0.10.0"
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"packages/*"
],
"resolutions": {
"@polkadot/api": "^1.4.0-beta.0",
"@polkadot/keyring": "^2.4.1",
"@polkadot/util": "^2.4.1",
"@polkadot/util-crypto": "^2.4.1",
"@polkadot/api": "^1.4.1",
"@polkadot/keyring": "^2.5.1",
"@polkadot/util": "^2.5.1",
"@polkadot/util-crypto": "^2.5.1",
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.7.5"
"typescript": "^3.8.2"
},
"scripts": {
"build": "polkadot-dev-build-ts",
Expand All @@ -30,7 +30,7 @@
"@babel/core": "^7.8.4",
"@babel/register": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/dev": "^0.40.18",
"@polkadot/dev": "^0.41.4",
"@polkadot/ts": "^0.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/api-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ $ polkadot-js-api ...

## Other options

The `--ws` param can be used to connect to other Webscoket endpoints, when submitting transactions, you can use the `--seed <seed>` to specify an account seed. To read documentation on a call, use the `--info` command.
The `--ws` param can be used to connect to other Websocket endpoints, when submitting transactions, you can use the `--seed <seed>` to specify an account seed. To read documentation on a call, use the `--info` command.

For a complete list of available commands, you can use `--help`
8 changes: 4 additions & 4 deletions packages/api-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-cli",
"version": "0.10.0-beta.14",
"version": "0.10.0",
"description": "A commandline API interface for interacting with a chain",
"main": "index.js",
"bin": {
Expand Down Expand Up @@ -31,11 +31,11 @@
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@polkadot/api": "^1.4.0-beta.0",
"@polkadot/keyring": "^2.4.1",
"@polkadot/api": "^1.4.1",
"@polkadot/keyring": "^2.5.1",
"yargs": "^15.1.0"
},
"devDependencies": {
"@types/yargs": "^15.0.2"
"@types/yargs": "^15.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/json-serve/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/json-serve",
"version": "0.10.0-beta.14",
"version": "0.10.0",
"description": "A JSON API endpoint server",
"main": "index.js",
"bin": {
Expand Down Expand Up @@ -31,15 +31,15 @@
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@polkadot/api": "^1.4.0-beta.0",
"@polkadot/api": "^1.4.1",
"koa": "^2.11.0",
"koa-route": "^3.2.0",
"yargs": "^15.1.0"
},
"devDependencies": {
"@types/bn.js": "^4.11.6",
"@types/koa": "^2.0.52",
"@types/koa": "^2.11.2",
"@types/koa-route": "^3.2.4",
"@types/yargs": "^15.0.2"
"@types/yargs": "^15.0.4"
}
}
4 changes: 2 additions & 2 deletions packages/json-serve/src/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function percentageFormat (top: BN, bottom: BN): string {
}

function onElectedInfo (info: DerivedStakingElected): void {
totalBonded = info.info.reduce((totalBonded, { stakers }): BN => {
return totalBonded.add(stakers?.total.unwrap() || new BN(0));
totalBonded = info.info.reduce((totalBonded, { exposure }): BN => {
return totalBonded.add(exposure?.total.unwrap() || new BN(0));
}, new BN(0));
}

Expand Down
8 changes: 4 additions & 4 deletions packages/monitor-rpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/monitor-rpc",
"version": "0.10.0-beta.14",
"version": "0.10.0",
"description": "A simple monitor via RPC",
"main": "index.js",
"bin": {
Expand Down Expand Up @@ -31,14 +31,14 @@
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@polkadot/api": "^1.4.0-beta.0",
"@polkadot/api": "^1.4.1",
"koa": "^2.11.0",
"koa-route": "^3.2.0",
"yargs": "^15.1.0"
},
"devDependencies": {
"@types/koa": "^2.0.52",
"@types/koa": "^2.11.2",
"@types/koa-route": "^3.2.4",
"@types/yargs": "^15.0.2"
"@types/yargs": "^15.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/signer-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/signer-cli",
"version": "0.10.0-beta.14",
"version": "0.10.0",
"description": "A commandline signer for offline signature generataion",
"main": "index.js",
"bin": {
Expand Down Expand Up @@ -31,11 +31,11 @@
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@polkadot/api": "^1.4.0-beta.0",
"@polkadot/keyring": "^2.4.1",
"@polkadot/api": "^1.4.1",
"@polkadot/keyring": "^2.5.1",
"yargs": "^15.1.0"
},
"devDependencies": {
"@types/yargs": "^15.0.2"
"@types/yargs": "^15.0.4"
}
}
Loading

0 comments on commit ad5f75a

Please sign in to comment.