diff --git a/package.json b/package.json index 9cc1767c33..70f4fc5801 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@types/jest": "^26.0.19", "copyfiles": "^2.4.1" }, - "version": "3.1.2-10" + "version": "3.1.2-11" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index ff8fe8d1af..f74244a310 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "module": "index.mjs", @@ -14,10 +14,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.1.2-10", - "@polkadot/types": "3.1.2-10", + "@polkadot/api": "3.1.2-11", + "@polkadot/types": "3.1.2-11", "@polkadot/util": "^5.2.1", - "@polkadot/x-rxjs": "3.1.2-10", + "@polkadot/x-rxjs": "3.1.2-11", "bn.js": "^4.11.9" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index f3ac865021..5692a95af5 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "module": "index.mjs", @@ -14,16 +14,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.1.2-10", - "@polkadot/rpc-core": "3.1.2-10", - "@polkadot/types": "3.1.2-10", + "@polkadot/api": "3.1.2-11", + "@polkadot/rpc-core": "3.1.2-11", + "@polkadot/types": "3.1.2-11", "@polkadot/util": "^5.2.1", "@polkadot/util-crypto": "^5.2.1", - "@polkadot/x-rxjs": "3.1.2-10", + "@polkadot/x-rxjs": "3.1.2-11", "bn.js": "^4.11.9" }, "devDependencies": { "@polkadot/keyring": "^5.2.1", - "@polkadot/rpc-provider": "3.1.2-10" + "@polkadot/rpc-provider": "3.1.2-11" } } diff --git a/packages/api/package.json b/packages/api/package.json index 5e57faa7e4..79f2ecaba4 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "module": "index.mjs", @@ -17,16 +17,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api-derive": "3.1.2-10", + "@polkadot/api-derive": "3.1.2-11", "@polkadot/keyring": "^5.2.1", - "@polkadot/metadata": "3.1.2-10", - "@polkadot/rpc-core": "3.1.2-10", - "@polkadot/rpc-provider": "3.1.2-10", - "@polkadot/types": "3.1.2-10", - "@polkadot/types-known": "3.1.2-10", + "@polkadot/metadata": "3.1.2-11", + "@polkadot/rpc-core": "3.1.2-11", + "@polkadot/rpc-provider": "3.1.2-11", + "@polkadot/types": "3.1.2-11", + "@polkadot/types-known": "3.1.2-11", "@polkadot/util": "^5.2.1", "@polkadot/util-crypto": "^5.2.1", - "@polkadot/x-rxjs": "3.1.2-10", + "@polkadot/x-rxjs": "3.1.2-11", "bn.js": "^4.11.9", "eventemitter3": "^4.0.7" } diff --git a/packages/api/src/augment/rpc.ts b/packages/api/src/augment/rpc.ts index 29fe2e6302..f3741ac7b3 100644 --- a/packages/api/src/augment/rpc.ts +++ b/packages/api/src/augment/rpc.ts @@ -11,7 +11,7 @@ import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; import type { ContractCallRequest, ContractExecResult } from '@polkadot/types/interfaces/contracts'; import type { CreatedBlock } from '@polkadot/types/interfaces/engine'; -import type { EthCallRequest, EthFilter, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth'; +import type { EthAccount, EthCallRequest, EthFilter, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth'; import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; @@ -192,6 +192,10 @@ declare module '@polkadot/rpc-core/types.jsonrpc' { * Returns logs matching given filter object. **/ getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable>>; + /** + * Returns proof for account and storage. + **/ + getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable>; /** * Returns content of the storage at given address. **/ diff --git a/packages/metadata/package.json b/packages/metadata/package.json index be517d9ba0..ceab80af50 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "module": "index.mjs", @@ -17,8 +17,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.1.2-10", - "@polkadot/types-known": "3.1.2-10", + "@polkadot/types": "3.1.2-11", + "@polkadot/types-known": "3.1.2-11", "@polkadot/util": "^5.2.1", "@polkadot/util-crypto": "^5.2.1", "bn.js": "^4.11.9" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index f96443051a..d9a9e89bc9 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "module": "index.mjs", @@ -14,11 +14,11 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.1.2-10", - "@polkadot/rpc-provider": "3.1.2-10", - "@polkadot/types": "3.1.2-10", + "@polkadot/metadata": "3.1.2-11", + "@polkadot/rpc-provider": "3.1.2-11", + "@polkadot/types": "3.1.2-11", "@polkadot/util": "^5.2.1", - "@polkadot/x-rxjs": "3.1.2-10" + "@polkadot/x-rxjs": "3.1.2-11" }, "devDependencies": { "@polkadot/keyring": "^5.2.1" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 1c4877f0f8..88ef18230c 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Transport providers for the API", "main": "index.js", "module": "index.mjs", @@ -14,7 +14,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.1.2-10", + "@polkadot/types": "3.1.2-11", "@polkadot/util": "^5.2.1", "@polkadot/util-crypto": "^5.2.1", "@polkadot/x-fetch": "^5.2.1", @@ -24,7 +24,7 @@ }, "devDependencies": { "@polkadot/keyring": "^5.2.1", - "@polkadot/metadata": "3.1.2-10", + "@polkadot/metadata": "3.1.2-11", "mock-socket": "^9.0.3", "nock": "^13.0.5" } diff --git a/packages/typegen/package.json b/packages/typegen/package.json index fb726b7c4c..765aabaf74 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Type generation scripts", "main": "index.js", "module": "index.mjs", @@ -23,10 +23,10 @@ "@babel/core": "^7.12.10", "@babel/register": "^7.12.10", "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.1.2-10", - "@polkadot/metadata": "3.1.2-10", - "@polkadot/rpc-provider": "3.1.2-10", - "@polkadot/types": "3.1.2-10", + "@polkadot/api": "3.1.2-11", + "@polkadot/metadata": "3.1.2-11", + "@polkadot/rpc-provider": "3.1.2-11", + "@polkadot/types": "3.1.2-11", "@polkadot/util": "^5.2.1", "handlebars": "^4.7.6", "websocket": "^1.0.33", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 75d20156fa..e6f8d84874 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "module": "index.mjs", @@ -14,7 +14,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.1.2-10", + "@polkadot/types": "3.1.2-11", "@polkadot/util": "^5.2.1", "bn.js": "^4.11.9" }, diff --git a/packages/types/package.json b/packages/types/package.json index 266a00ff42..9c461f58f0 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "Implementation of the Parity codec", "main": "index.js", "module": "index.mjs", @@ -17,10 +17,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.1.2-10", + "@polkadot/metadata": "3.1.2-11", "@polkadot/util": "^5.2.1", "@polkadot/util-crypto": "^5.2.1", - "@polkadot/x-rxjs": "3.1.2-10", + "@polkadot/x-rxjs": "3.1.2-11", "@types/bn.js": "^4.11.6", "bn.js": "^4.11.9" }, diff --git a/packages/types/src/interfaces/eth/types.ts b/packages/types/src/interfaces/eth/types.ts index 88edbb4bfe..6ab6ed76d2 100644 --- a/packages/types/src/interfaces/eth/types.ts +++ b/packages/types/src/interfaces/eth/types.ts @@ -265,8 +265,8 @@ export interface EthTransactionStatus extends Struct { /** @name EthWork */ export interface EthWork extends Struct { - readonly pow_hash: H256; - readonly seed_hash: H256; + readonly powHash: H256; + readonly seedHash: H256; readonly target: H256; readonly number: Option; } diff --git a/packages/x-rxjs/package.json b/packages/x-rxjs/package.json index 6e7a1a4d08..9b7fbe2887 100644 --- a/packages/x-rxjs/package.json +++ b/packages/x-rxjs/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-rxjs", - "version": "3.1.2-10", + "version": "3.1.2-11", "description": "A pass-through interface for RxJs (allowing node + mjs usage)", "main": "index.js", "sideEffects": false, diff --git a/yarn.lock b/yarn.lock index db062c5b8f..dcdc3d118e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1691,46 +1691,46 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.1.2-10 - "@polkadot/types": 3.1.2-10 + "@polkadot/api": 3.1.2-11 + "@polkadot/types": 3.1.2-11 "@polkadot/util": ^5.2.1 - "@polkadot/x-rxjs": 3.1.2-10 + "@polkadot/x-rxjs": 3.1.2-11 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api-derive@3.1.2-10, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@3.1.2-11, @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.12.5 - "@polkadot/api": 3.1.2-10 + "@polkadot/api": 3.1.2-11 "@polkadot/keyring": ^5.2.1 - "@polkadot/rpc-core": 3.1.2-10 - "@polkadot/rpc-provider": 3.1.2-10 - "@polkadot/types": 3.1.2-10 + "@polkadot/rpc-core": 3.1.2-11 + "@polkadot/rpc-provider": 3.1.2-11 + "@polkadot/types": 3.1.2-11 "@polkadot/util": ^5.2.1 "@polkadot/util-crypto": ^5.2.1 - "@polkadot/x-rxjs": 3.1.2-10 + "@polkadot/x-rxjs": 3.1.2-11 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api@3.1.2-10, @polkadot/api@workspace:packages/api": +"@polkadot/api@3.1.2-11, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api-derive": 3.1.2-10 + "@polkadot/api-derive": 3.1.2-11 "@polkadot/keyring": ^5.2.1 - "@polkadot/metadata": 3.1.2-10 - "@polkadot/rpc-core": 3.1.2-10 - "@polkadot/rpc-provider": 3.1.2-10 - "@polkadot/types": 3.1.2-10 - "@polkadot/types-known": 3.1.2-10 + "@polkadot/metadata": 3.1.2-11 + "@polkadot/rpc-core": 3.1.2-11 + "@polkadot/rpc-provider": 3.1.2-11 + "@polkadot/types": 3.1.2-11 + "@polkadot/types-known": 3.1.2-11 "@polkadot/util": ^5.2.1 "@polkadot/util-crypto": ^5.2.1 - "@polkadot/x-rxjs": 3.1.2-10 + "@polkadot/x-rxjs": 3.1.2-11 bn.js: ^4.11.9 eventemitter3: ^4.0.7 languageName: unknown @@ -1843,14 +1843,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@3.1.2-10, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@3.1.2-11, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.2.1 - "@polkadot/types": 3.1.2-10 - "@polkadot/types-known": 3.1.2-10 + "@polkadot/types": 3.1.2-11 + "@polkadot/types-known": 3.1.2-11 "@polkadot/util": ^5.2.1 "@polkadot/util-crypto": ^5.2.1 bn.js: ^4.11.9 @@ -1866,28 +1866,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@3.1.2-10, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@3.1.2-11, @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.12.5 "@polkadot/keyring": ^5.2.1 - "@polkadot/metadata": 3.1.2-10 - "@polkadot/rpc-provider": 3.1.2-10 - "@polkadot/types": 3.1.2-10 + "@polkadot/metadata": 3.1.2-11 + "@polkadot/rpc-provider": 3.1.2-11 + "@polkadot/types": 3.1.2-11 "@polkadot/util": ^5.2.1 - "@polkadot/x-rxjs": 3.1.2-10 + "@polkadot/x-rxjs": 3.1.2-11 languageName: unknown linkType: soft -"@polkadot/rpc-provider@3.1.2-10, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@3.1.2-11, @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.12.5 "@polkadot/keyring": ^5.2.1 - "@polkadot/metadata": 3.1.2-10 - "@polkadot/types": 3.1.2-10 + "@polkadot/metadata": 3.1.2-11 + "@polkadot/types": 3.1.2-11 "@polkadot/util": ^5.2.1 "@polkadot/util-crypto": ^5.2.1 "@polkadot/x-fetch": ^5.2.1 @@ -1915,10 +1915,10 @@ __metadata: "@babel/core": ^7.12.10 "@babel/register": ^7.12.10 "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.1.2-10 - "@polkadot/metadata": 3.1.2-10 - "@polkadot/rpc-provider": 3.1.2-10 - "@polkadot/types": 3.1.2-10 + "@polkadot/api": 3.1.2-11 + "@polkadot/metadata": 3.1.2-11 + "@polkadot/rpc-provider": 3.1.2-11 + "@polkadot/types": 3.1.2-11 "@polkadot/util": ^5.2.1 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.12 @@ -1934,28 +1934,28 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@3.1.2-10, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@3.1.2-11, @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.12.5 - "@polkadot/types": 3.1.2-10 + "@polkadot/types": 3.1.2-11 "@polkadot/util": ^5.2.1 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/types@3.1.2-10, @polkadot/types@workspace:packages/types": +"@polkadot/types@3.1.2-11, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.2.1 - "@polkadot/metadata": 3.1.2-10 + "@polkadot/metadata": 3.1.2-11 "@polkadot/util": ^5.2.1 "@polkadot/util-crypto": ^5.2.1 - "@polkadot/x-rxjs": 3.1.2-10 + "@polkadot/x-rxjs": 3.1.2-11 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown @@ -2053,7 +2053,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-rxjs@3.1.2-10, @polkadot/x-rxjs@workspace:packages/x-rxjs": +"@polkadot/x-rxjs@3.1.2-11, @polkadot/x-rxjs@workspace:packages/x-rxjs": version: 0.0.0-use.local resolution: "@polkadot/x-rxjs@workspace:packages/x-rxjs" dependencies: