* 1.13

* Add grandpa_roundState RPC

* RPC interfaces
This commit is contained in:
Jaco Greeff
2020-05-06 20:22:18 +02:00
committed by GitHub
parent 92f62bfa15
commit a1ad90c2b4
17 changed files with 150 additions and 74 deletions
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "1.13.0-beta.19",
"version": "1.13.0",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"keywords": [
@@ -27,13 +27,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.9.6",
"@polkadot/api-derive": "1.13.0-beta.19",
"@polkadot/api-derive": "1.13.0",
"@polkadot/keyring": "^2.9.1",
"@polkadot/metadata": "1.13.0-beta.19",
"@polkadot/rpc-core": "1.13.0-beta.19",
"@polkadot/rpc-provider": "1.13.0-beta.19",
"@polkadot/types": "1.13.0-beta.19",
"@polkadot/types-known": "1.13.0-beta.19",
"@polkadot/metadata": "1.13.0",
"@polkadot/rpc-core": "1.13.0",
"@polkadot/rpc-provider": "1.13.0",
"@polkadot/types": "1.13.0",
"@polkadot/types-known": "1.13.0",
"@polkadot/util": "^2.9.1",
"@polkadot/util-crypto": "^2.9.1",
"bn.js": "^5.1.1",
+7
View File
@@ -13,6 +13,7 @@ import { AuthorityId } from '@polkadot/types/interfaces/consensus';
import { ContractCallRequest, ContractExecResult } from '@polkadot/types/interfaces/contracts';
import { CreatedBlock } from '@polkadot/types/interfaces/engine';
import { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import { ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
import { StorageKind } from '@polkadot/types/interfaces/offchain';
import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
@@ -140,6 +141,12 @@ declare module '@polkadot/rpc-core/types.jsonrpc' {
**/
finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification | string | Uint8Array) => Observable<bool>>;
};
grandpa: {
/**
* Returns the state of the current best round state as well as the ongoing background rounds
**/
roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
};
offchain: {
/**
* Get offchain local storage under given key and prefix