From 536369261f40bc8b60902ec917c396e80a1986e3 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 21 Apr 2020 07:10:16 +0000 Subject: [PATCH] [CI Skip] 1.11.0-beta.35 skip-checks: true --- lerna.json | 2 +- packages/api-contract/package.json | 8 +-- packages/api-derive/package.json | 10 +-- packages/api/package.json | 14 ++--- packages/api/src/augment/rpc.ts | 6 +- packages/metadata/package.json | 6 +- packages/rpc-core/package.json | 8 +-- packages/rpc-provider/package.json | 6 +- packages/typegen/package.json | 10 +-- packages/types-known/package.json | 4 +- packages/types/package.json | 4 +- packages/types/src/augment/registry.ts | 5 +- packages/types/src/interfaces/state/types.ts | 8 ++- yarn.lock | 66 ++++++++++---------- 14 files changed, 85 insertions(+), 72 deletions(-) diff --git a/lerna.json b/lerna.json index 69625e31ad..6c4af442b0 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "1.11.0-beta.34" + "version": "1.11.0-beta.35" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index f114c5ec0f..3dbe8e872b 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/api": "1.11.0-beta.34", - "@polkadot/rpc-core": "1.11.0-beta.34", - "@polkadot/types": "1.11.0-beta.34", + "@polkadot/api": "1.11.0-beta.35", + "@polkadot/rpc-core": "1.11.0-beta.35", + "@polkadot/types": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "bn.js": "^5.1.1", "rxjs": "^6.5.5" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 67f74c17cd..bf2d3a221d 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,10 +28,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/api": "1.11.0-beta.34", - "@polkadot/rpc-core": "1.11.0-beta.34", - "@polkadot/rpc-provider": "1.11.0-beta.34", - "@polkadot/types": "1.11.0-beta.34", + "@polkadot/api": "1.11.0-beta.35", + "@polkadot/rpc-core": "1.11.0-beta.35", + "@polkadot/rpc-provider": "1.11.0-beta.35", + "@polkadot/types": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "@polkadot/util-crypto": "^2.8.1", "bn.js": "^5.1.1", diff --git a/packages/api/package.json b/packages/api/package.json index 6a710b26fb..ab6d0832c2 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "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.2", - "@polkadot/api-derive": "1.11.0-beta.34", + "@polkadot/api-derive": "1.11.0-beta.35", "@polkadot/keyring": "^2.8.1", - "@polkadot/metadata": "1.11.0-beta.34", - "@polkadot/rpc-core": "1.11.0-beta.34", - "@polkadot/rpc-provider": "1.11.0-beta.34", - "@polkadot/types": "1.11.0-beta.34", - "@polkadot/types-known": "1.11.0-beta.34", + "@polkadot/metadata": "1.11.0-beta.35", + "@polkadot/rpc-core": "1.11.0-beta.35", + "@polkadot/rpc-provider": "1.11.0-beta.35", + "@polkadot/types": "1.11.0-beta.35", + "@polkadot/types-known": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "@polkadot/util-crypto": "^2.8.1", "bn.js": "^5.1.1", diff --git a/packages/api/src/augment/rpc.ts b/packages/api/src/augment/rpc.ts index a6a11edc35..a3b80d3738 100644 --- a/packages/api/src/augment/rpc.ts +++ b/packages/api/src/augment/rpc.ts @@ -17,7 +17,7 @@ import { StorageKind } from '@polkadot/types/interfaces/offchain'; import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; import { RpcMethods } from '@polkadot/types/interfaces/rpc'; import { AccountId, BlockNumber, H256, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime'; -import { RuntimeVersion } from '@polkadot/types/interfaces/state'; +import { ReadProof, RuntimeVersion } from '@polkadot/types/interfaces/state'; import { ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo } from '@polkadot/types/interfaces/system'; declare module '@polkadot/rpc-core/types.jsonrpc' { @@ -199,6 +199,10 @@ declare module '@polkadot/rpc-core/types.jsonrpc' { * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged) **/ getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable>>; + /** + * Returns proof of storage entries at a specific block state + **/ + getReadProof: AugmentedRpc<(keys: Vec | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable>; /** * Get the runtime version **/ diff --git a/packages/metadata/package.json b/packages/metadata/package.json index cae5f72ea3..ef2481822f 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/types": "1.11.0-beta.34", - "@polkadot/types-known": "1.11.0-beta.34", + "@polkadot/types": "1.11.0-beta.35", + "@polkadot/types-known": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "@polkadot/util-crypto": "^2.8.1", "bn.js": "^5.1.1" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 828d6af731..d966ba955c 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/metadata": "1.11.0-beta.34", - "@polkadot/rpc-provider": "1.11.0-beta.34", - "@polkadot/types": "1.11.0-beta.34", + "@polkadot/metadata": "1.11.0-beta.35", + "@polkadot/rpc-provider": "1.11.0-beta.35", + "@polkadot/types": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "memoizee": "^0.4.14", "rxjs": "^6.5.5" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 7e6c88de13..e40dbf8315 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/metadata": "1.11.0-beta.34", - "@polkadot/types": "1.11.0-beta.34", + "@polkadot/metadata": "1.11.0-beta.35", + "@polkadot/types": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "@polkadot/util-crypto": "^2.8.1", "bn.js": "^5.1.1", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 0056cd4769..11d301a113 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,10 +36,10 @@ "@babel/core": "^7.9.0", "@babel/register": "^7.9.0", "@babel/runtime": "^7.9.2", - "@polkadot/api": "1.11.0-beta.34", - "@polkadot/metadata": "1.11.0-beta.34", - "@polkadot/rpc-provider": "1.11.0-beta.34", - "@polkadot/types": "1.11.0-beta.34", + "@polkadot/api": "1.11.0-beta.35", + "@polkadot/metadata": "1.11.0-beta.35", + "@polkadot/rpc-provider": "1.11.0-beta.35", + "@polkadot/types": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "websocket": "^1.0.31", "yargs": "^15.3.1" diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 8c01439b34..96f025f420 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/types": "1.11.0-beta.34", + "@polkadot/types": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "bn.js": "^5.1.1" }, diff --git a/packages/types/package.json b/packages/types/package.json index b575eb5db8..4751dfe3c1 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "1.11.0-beta.34", + "version": "1.11.0-beta.35", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/metadata": "1.11.0-beta.34", + "@polkadot/metadata": "1.11.0-beta.35", "@polkadot/util": "^2.8.1", "@polkadot/util-crypto": "^2.8.1", "@types/bn.js": "^4.11.6", diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 20e372914a..847f649c4b 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -36,7 +36,7 @@ import { SchedulePeriod, SchedulePriority, Scheduled, TaskAddress } from '@polka import { FullIdentification, IdentificationTuple, Keys, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6 } from '@polkadot/types/interfaces/session'; import { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; import { ActiveEraInfo, CompactAssignments, CompactScore, ElectionCompute, ElectionResult, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, PhragmenScore, Points, ReleasesStaking, RewardDestination, RewardPoint, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196 } from '@polkadot/types/interfaces/staking'; -import { ApiId, KeyValueOption, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state'; +import { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state'; import { AccountInfo, ChainProperties, ChainType, DigestOf, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Health, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, Phase, RefCount } from '@polkadot/types/interfaces/system'; import { OpenTip, OpenTipFinder, OpenTipTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; import { Multiplier } from '@polkadot/types/interfaces/txpayment'; @@ -1672,6 +1672,9 @@ declare module '@polkadot/types/types/registry' { KeyValueOption: KeyValueOption; 'Option': Option; 'Vec': Vec; + ReadProof: ReadProof; + 'Option': Option; + 'Vec': Vec; RuntimeVersionApi: RuntimeVersionApi; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/interfaces/state/types.ts b/packages/types/src/interfaces/state/types.ts index 569dd43ec3..2788c68811 100644 --- a/packages/types/src/interfaces/state/types.ts +++ b/packages/types/src/interfaces/state/types.ts @@ -3,7 +3,7 @@ import { ITuple } from '@polkadot/types/types'; import { Option, Struct, U8aFixed, Vec } from '@polkadot/types/codec'; -import { StorageKey, Text, u32 } from '@polkadot/types/primitive'; +import { Bytes, StorageKey, Text, u32 } from '@polkadot/types/primitive'; import { Hash, StorageData } from '@polkadot/types/interfaces/runtime'; /** @name ApiId */ @@ -12,6 +12,12 @@ export interface ApiId extends U8aFixed {} /** @name KeyValueOption */ export interface KeyValueOption extends ITuple<[StorageKey, Option]> {} +/** @name ReadProof */ +export interface ReadProof extends Struct { + readonly at: Hash; + readonly proof: Vec; +} + /** @name RuntimeVersion */ export interface RuntimeVersion extends Struct { readonly specName: Text; diff --git a/yarn.lock b/yarn.lock index 67d3a7815c..af8da9c05d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2607,25 +2607,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/api": 1.11.0-beta.34 - "@polkadot/rpc-core": 1.11.0-beta.34 - "@polkadot/types": 1.11.0-beta.34 + "@polkadot/api": 1.11.0-beta.35 + "@polkadot/rpc-core": 1.11.0-beta.35 + "@polkadot/types": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 bn.js: ^5.1.1 rxjs: ^6.5.5 languageName: unknown linkType: soft -"@polkadot/api-derive@1.11.0-beta.34, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@1.11.0-beta.35, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/api": 1.11.0-beta.34 + "@polkadot/api": 1.11.0-beta.35 "@polkadot/keyring": ^2.8.1 - "@polkadot/rpc-core": 1.11.0-beta.34 - "@polkadot/rpc-provider": 1.11.0-beta.34 - "@polkadot/types": 1.11.0-beta.34 + "@polkadot/rpc-core": 1.11.0-beta.35 + "@polkadot/rpc-provider": 1.11.0-beta.35 + "@polkadot/types": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@polkadot/util-crypto": ^2.8.1 bn.js: ^5.1.1 @@ -2634,18 +2634,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@1.11.0-beta.34, @polkadot/api@workspace:packages/api": +"@polkadot/api@1.11.0-beta.35, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/api-derive": 1.11.0-beta.34 + "@polkadot/api-derive": 1.11.0-beta.35 "@polkadot/keyring": ^2.8.1 - "@polkadot/metadata": 1.11.0-beta.34 - "@polkadot/rpc-core": 1.11.0-beta.34 - "@polkadot/rpc-provider": 1.11.0-beta.34 - "@polkadot/types": 1.11.0-beta.34 - "@polkadot/types-known": 1.11.0-beta.34 + "@polkadot/metadata": 1.11.0-beta.35 + "@polkadot/rpc-core": 1.11.0-beta.35 + "@polkadot/rpc-provider": 1.11.0-beta.35 + "@polkadot/types": 1.11.0-beta.35 + "@polkadot/types-known": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@polkadot/util-crypto": ^2.8.1 bn.js: ^5.1.1 @@ -2752,43 +2752,43 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@1.11.0-beta.34, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@1.11.0-beta.35, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.8.1 - "@polkadot/types": 1.11.0-beta.34 - "@polkadot/types-known": 1.11.0-beta.34 + "@polkadot/types": 1.11.0-beta.35 + "@polkadot/types-known": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@polkadot/util-crypto": ^2.8.1 bn.js: ^5.1.1 languageName: unknown linkType: soft -"@polkadot/rpc-core@1.11.0-beta.34, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@1.11.0-beta.35, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.8.1 - "@polkadot/metadata": 1.11.0-beta.34 - "@polkadot/rpc-provider": 1.11.0-beta.34 - "@polkadot/types": 1.11.0-beta.34 + "@polkadot/metadata": 1.11.0-beta.35 + "@polkadot/rpc-provider": 1.11.0-beta.35 + "@polkadot/types": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 memoizee: ^0.4.14 rxjs: ^6.5.5 languageName: unknown linkType: soft -"@polkadot/rpc-provider@1.11.0-beta.34, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@1.11.0-beta.35, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.8.1 - "@polkadot/metadata": 1.11.0-beta.34 - "@polkadot/types": 1.11.0-beta.34 + "@polkadot/metadata": 1.11.0-beta.35 + "@polkadot/types": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@polkadot/util-crypto": ^2.8.1 bn.js: ^5.1.1 @@ -2816,10 +2816,10 @@ __metadata: "@babel/core": ^7.9.0 "@babel/register": ^7.9.0 "@babel/runtime": ^7.9.2 - "@polkadot/api": 1.11.0-beta.34 - "@polkadot/metadata": 1.11.0-beta.34 - "@polkadot/rpc-provider": 1.11.0-beta.34 - "@polkadot/types": 1.11.0-beta.34 + "@polkadot/api": 1.11.0-beta.35 + "@polkadot/metadata": 1.11.0-beta.35 + "@polkadot/rpc-provider": 1.11.0-beta.35 + "@polkadot/types": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@types/websocket": ^1.0.0 "@types/yargs": ^15.0.4 @@ -2834,25 +2834,25 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@1.11.0-beta.34, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@1.11.0-beta.35, @polkadot/types-known@workspace:packages/types-known": version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/types": 1.11.0-beta.34 + "@polkadot/types": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@types/bn.js": ^4.11.6 bn.js: ^5.1.1 languageName: unknown linkType: soft -"@polkadot/types@1.11.0-beta.34, @polkadot/types@workspace:packages/types": +"@polkadot/types@1.11.0-beta.35, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.8.1 - "@polkadot/metadata": 1.11.0-beta.34 + "@polkadot/metadata": 1.11.0-beta.35 "@polkadot/util": ^2.8.1 "@polkadot/util-crypto": ^2.8.1 "@types/bn.js": ^4.11.6