Skip to content

Commit a1ad90c

Browse files
authored
1.13 (#2248)
* 1.13 * Add grandpa_roundState RPC * RPC interfaces
1 parent 92f62bf commit a1ad90c

File tree

17 files changed

+150
-74
lines changed

17 files changed

+150
-74
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 1.13.0-beta.x
1+
# 1.13.1 May 6, 2020
22

33
- Add support for ECDSA keypairs in extrinsic signers (Thanks to https://github.com/akru)
44
- Rework type generation to use templating for better maintenance (Thanks to https://github.com/xlc)
@@ -8,6 +8,7 @@
88
- Revert error swallow for wrong preimage data (temp. override for Kusama upgrade with no migration)
99
- Fix `.encodedLength` calculation on `[Type; N]` types
1010
- Update types & metadata as per latest Substrate master
11+
- Adjust Centrifuge starting version
1112

1213
# 1.12.2 Apr 30, 2020
1314

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.13.0-beta.19"
12+
"version": "1.13.0"
1313
}

packages/api-contract/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "1.13.0-beta.19",
3+
"version": "1.13.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.9.6",
30-
"@polkadot/api": "1.13.0-beta.19",
31-
"@polkadot/rpc-core": "1.13.0-beta.19",
32-
"@polkadot/types": "1.13.0-beta.19",
30+
"@polkadot/api": "1.13.0",
31+
"@polkadot/rpc-core": "1.13.0",
32+
"@polkadot/types": "1.13.0",
3333
"@polkadot/util": "^2.9.1",
3434
"bn.js": "^5.1.1",
3535
"rxjs": "^6.5.5"

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": "1.13.0-beta.19",
3+
"version": "1.13.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"keywords": [
@@ -28,10 +28,10 @@
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
3030
"@babel/runtime": "^7.9.6",
31-
"@polkadot/api": "1.13.0-beta.19",
32-
"@polkadot/rpc-core": "1.13.0-beta.19",
33-
"@polkadot/rpc-provider": "1.13.0-beta.19",
34-
"@polkadot/types": "1.13.0-beta.19",
31+
"@polkadot/api": "1.13.0",
32+
"@polkadot/rpc-core": "1.13.0",
33+
"@polkadot/rpc-provider": "1.13.0",
34+
"@polkadot/types": "1.13.0",
3535
"@polkadot/util": "^2.9.1",
3636
"@polkadot/util-crypto": "^2.9.1",
3737
"bn.js": "^5.1.1",

packages/api/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "1.13.0-beta.19",
3+
"version": "1.13.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"keywords": [
@@ -27,13 +27,13 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.9.6",
30-
"@polkadot/api-derive": "1.13.0-beta.19",
30+
"@polkadot/api-derive": "1.13.0",
3131
"@polkadot/keyring": "^2.9.1",
32-
"@polkadot/metadata": "1.13.0-beta.19",
33-
"@polkadot/rpc-core": "1.13.0-beta.19",
34-
"@polkadot/rpc-provider": "1.13.0-beta.19",
35-
"@polkadot/types": "1.13.0-beta.19",
36-
"@polkadot/types-known": "1.13.0-beta.19",
32+
"@polkadot/metadata": "1.13.0",
33+
"@polkadot/rpc-core": "1.13.0",
34+
"@polkadot/rpc-provider": "1.13.0",
35+
"@polkadot/types": "1.13.0",
36+
"@polkadot/types-known": "1.13.0",
3737
"@polkadot/util": "^2.9.1",
3838
"@polkadot/util-crypto": "^2.9.1",
3939
"bn.js": "^5.1.1",

packages/api/src/augment/rpc.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { AuthorityId } from '@polkadot/types/interfaces/consensus';
1313
import { ContractCallRequest, ContractExecResult } from '@polkadot/types/interfaces/contracts';
1414
import { CreatedBlock } from '@polkadot/types/interfaces/engine';
1515
import { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
16+
import { ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
1617
import { StorageKind } from '@polkadot/types/interfaces/offchain';
1718
import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
1819
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
@@ -140,6 +141,12 @@ declare module '@polkadot/rpc-core/types.jsonrpc' {
140141
**/
141142
finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification | string | Uint8Array) => Observable<bool>>;
142143
};
144+
grandpa: {
145+
/**
146+
* Returns the state of the current best round state as well as the ongoing background rounds
147+
**/
148+
roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
149+
};
143150
offchain: {
144151
/**
145152
* Get offchain local storage under given key and prefix

packages/metadata/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/metadata",
3-
"version": "1.13.0-beta.19",
3+
"version": "1.13.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.9.6",
30-
"@polkadot/types": "1.13.0-beta.19",
31-
"@polkadot/types-known": "1.13.0-beta.19",
30+
"@polkadot/types": "1.13.0",
31+
"@polkadot/types-known": "1.13.0",
3232
"@polkadot/util": "^2.9.1",
3333
"@polkadot/util-crypto": "^2.9.1",
3434
"bn.js": "^5.1.1"

packages/rpc-core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-core",
3-
"version": "1.13.0-beta.19",
3+
"version": "1.13.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.9.6",
30-
"@polkadot/metadata": "1.13.0-beta.19",
31-
"@polkadot/rpc-provider": "1.13.0-beta.19",
32-
"@polkadot/types": "1.13.0-beta.19",
30+
"@polkadot/metadata": "1.13.0",
31+
"@polkadot/rpc-provider": "1.13.0",
32+
"@polkadot/types": "1.13.0",
3333
"@polkadot/util": "^2.9.1",
3434
"memoizee": "^0.4.14",
3535
"rxjs": "^6.5.5"

packages/rpc-core/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ export default class Rpc implements RpcInterface {
8989

9090
public readonly engine!: RpcInterface['engine'];
9191

92+
public readonly grandpa!: RpcInterface['grandpa'];
93+
9294
public readonly offchain!: RpcInterface['offchain'];
9395

9496
public readonly payment!: RpcInterface['payment'];

packages/rpc-provider/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-provider",
3-
"version": "1.13.0-beta.19",
3+
"version": "1.13.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"keywords": [
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.9.6",
30-
"@polkadot/metadata": "1.13.0-beta.19",
31-
"@polkadot/types": "1.13.0-beta.19",
30+
"@polkadot/metadata": "1.13.0",
31+
"@polkadot/types": "1.13.0",
3232
"@polkadot/util": "^2.9.1",
3333
"@polkadot/util-crypto": "^2.9.1",
3434
"bn.js": "^5.1.1",

0 commit comments

Comments
 (0)