Compare commits

...
16 Commits
Author SHA1 Message Date
Github Actions 930252e3bc [CI Skip] release/stable 2.6.1
skip-checks: true
2020-11-09 10:48:02 +00:00
Jaco Greeff 613aebd26d 2.6 (#2829) 2020-11-09 11:40:26 +01:00
Github Actions 79e0d807ab [CI Skip] release/beta 2.5.2-6
skip-checks: true
2020-11-09 10:23:02 +00:00
Jaco Greeff 0cbd702c93 Remove peerDeps (explicit) (#2828) 2020-11-09 11:14:22 +01:00
Github Actions e7ee68d138 [CI Skip] release/beta 2.5.2-5
skip-checks: true
2020-11-09 09:19:58 +00:00
Jaco Greeff 46fb44d3d8 Bump metadata (#2826) 2020-11-09 10:12:26 +01:00
Github Actions 2085a0662c [CI Skip] release/beta 2.5.2-4
skip-checks: true
2020-11-08 13:27:05 +00:00
Jaco Greeff 4476f2838a Bump common (#2824) 2020-11-08 14:20:37 +01:00
Github Actions ddd994ea4a [CI Skip] release/beta 2.5.2-3
skip-checks: true
2020-11-06 12:47:40 +00:00
Jaco Greeff 06a325795b Adjust max allowed call gas (5 * 10 ^ 12) (#2821)
* Adjust max allowed call gas (5 * 10 ^ 12)

* Update packages/api-contract/src/base/Contract.ts

* Update dev
2020-11-06 13:40:17 +01:00
Github Actions 67d7df82d3 [CI Skip] release/beta 2.5.2-2
skip-checks: true
2020-11-05 16:28:20 +00:00
Jaco Greeff ca1bd8fa19 Hack for invalid chain-data on proposals (due to mismatched upgrade) (#2820) 2020-11-05 17:19:35 +01:00
Github Actions 33978d5007 [CI Skip] release/beta 2.5.2-1
skip-checks: true
2020-11-03 18:34:53 +00:00
Jaco Greeff b6ff8a400e Swap accountId check (Ethereum-addr chains have === 20) (#2816) 2020-11-03 19:27:39 +01:00
Github Actions 2bc3b711b2 [CI Skip] release/beta 2.5.2-0
skip-checks: true
2020-11-03 17:54:42 +00:00
Jaco Greeff 09348d1197 Bump deps (#2815) 2020-11-03 18:45:31 +01:00
24 changed files with 847 additions and 812 deletions
+13
View File
@@ -1,5 +1,18 @@
# CHANGELOG
## 2.6.1 Nov 9, 2020
Upgrade priority: Low. Should be done alongside an update to `@polkadot/util` to 4.0
Changes:
- Adjust auto-gas to contract RPC call to 5 * 10 ^ 12 (align with Rust)
- Adjust derive AccountId check to take Ethereum-compatible chains into account
- Fallback for chains with invalid council proposal data in derives
- Bump static v12 Metadata (tests) to latest Substrate version
- Bump `@polkadot/{util,util-crypto}` to 4.0 (optimized WASM layers)
## 2.5.1 Nov 2, 2020
Upgrade priority: Low. Recommended for `api-contract` developers.
-102
View File
@@ -1,102 +0,0 @@
# Docker compose file to run Polkadot-JS API e2e test files on supported versions of Polkadot and Substrate
#
# Setup:
# Builds 5 containers with different supported versions of Substrate and Polkadot.
# Runs Polkadot-JS API Tests
#
# Before you can run this script, you need to install Docker and 'Docker Compose' on your machine.
# Please follow the steps described here (including the prerequisites): https://docs.docker.com/compose/install/
#
# Usage:
# 1. BUILD: Run `docker-compose pull && docker-compose up -d` to pull the latest docker imaged and run docker-compose in detached mode. This will run the substrate and polkadot containers in the background.
# 2. INFO: Run `docker ps` to get a list of Docker containers running in the background including their mapped ports on localhost
# 3. TEST: Run `docker-compose logs -f js-api-tests` to run the API tests and print the logs
# 4. QUIT: Run `docker-compose down` to stop and remove all running containers.
#
# Provided Endpoints for localhost:
# - Substrate Master: ws://127.0.0.1:9945/
# - Substrate 1.0: ws://127.0.0.1:9946/
# - Substrate 2.0: ws://127.0.0.1:9947/
# - Polkadot Master: ws://127.0.0.1:9948/
# - Polkadot Alexander: ws://127.0.0.1:9949/
#
# Find more Docker images of Substrate https://hub.docker.com/r/parity/substrate/tags
# Find more Docker images of Polkadot https://hub.docker.com/r/parity/polkadot/tags
version: "3.7"
services:
substrate-master:
image: parity/substrate:latest
ports:
- "9945:9944"
- "9935:9933"
networks:
- internet
command:
- "--dev"
- "--ws-external"
- "--rpc-external"
substrate-1.0:
image: parity/substrate:v1.0.0
ports:
- "9946:9944"
- "9936:9933"
networks:
- internet
command:
- "--dev"
- "--ws-external"
- "--rpc-external"
substrate-2.0:
image: parity/substrate:2.0.0-b65c315a1
ports:
- "9947:9944"
- "9937:9933"
networks:
- internet
command:
- "--dev"
- "--ws-external"
- "--rpc-external"
polkadot-master:
image: parity/polkadot:latest
ports:
- "9948:9944"
- "9938:9933"
networks:
- internet
command:
- "--dev"
- "--ws-external"
- "--rpc-external"
polkadot-alexander:
image: parity/polkadot:v0.4.4
ports:
- "9949:9944"
- "9939:9933"
networks:
- internet
command:
- "--dev"
- "--ws-external"
- "--rpc-external"
# This is the container running the API tests
js-api-tests:
image: node:11
volumes:
- ./:/polkadot-js/api
working_dir: /polkadot-js/api
network_mode: host
tty: true
environment:
- TERM=xterm-256color`
command: bash -c "NODE_ENV=abc /usr/local/bin/yarn && /usr/local/bin/yarn test:all"
networks:
internet:
+4 -3
View File
@@ -5,23 +5,24 @@ const config = require('@polkadot/dev/config/jest');
module.exports = Object.assign({}, config, {
moduleNameMapper: {
'@polkadot/api-contract(.*)$': '<rootDir>/packages/api-contract/src/$1',
'@polkadot/api-derive(.*)$': '<rootDir>/packages/api-derive/src/$1',
'@polkadot/api-(contract|derive)(.*)$': '<rootDir>/packages/api-$1/src/$2',
// eslint-disable-next-line sort-keys
'@polkadot/api(.*)$': '<rootDir>/packages/api/src/$1',
'@polkadot/metadata(.*)$': '<rootDir>/packages/metadata/src/$1',
'@polkadot/rpc-(core|provider)(.*)$': '<rootDir>/packages/rpc-$1/src/$2',
'@polkadot/typegen(.*)$': '<rootDir>/packages/typegen/src/$1',
'@polkadot/types-known(.*)$': '<rootDir>/packages/types-known/src/$1',
// eslint-disable-next-line sort-keys
'@polkadot/types(.*)$': '<rootDir>/packages/types/src/$1'
},
modulePathIgnorePatterns: [
'<rootDir>/packages/api/build',
'<rootDir>/packages/api-derive/build',
'<rootDir>/packages/api-contract/build',
'<rootDir>/packages/api-derive/build',
'<rootDir>/packages/metadata/build',
'<rootDir>/packages/rpc-core/build',
'<rootDir>/packages/rpc-provider/build',
'<rootDir>/packages/typegen/build',
'<rootDir>/packages/types/build',
'<rootDir>/packages/types-known/build'
],
+2 -3
View File
@@ -7,7 +7,6 @@
"packages/*"
],
"resolutions": {
"babel-core": "^7.0.0-bridge.0",
"typescript": "^4.0.5"
},
"scripts": {
@@ -27,11 +26,11 @@
"@babel/core": "^7.12.3",
"@babel/register": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@polkadot/dev": "^0.59.14",
"@polkadot/dev": "^0.59.20",
"@polkadot/ts": "^0.3.53",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^26.0.15",
"copyfiles": "^2.4.0"
},
"version": "2.5.1"
"version": "2.6.1"
}
+4 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "2.5.1",
"version": "2.6.1",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"keywords": [
@@ -27,10 +27,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api": "^2.5.1",
"@polkadot/rpc-core": "^2.5.1",
"@polkadot/types": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/api": "2.6.1",
"@polkadot/types": "2.6.1",
"@polkadot/util": "^4.0.1",
"bn.js": "^5.1.3",
"rxjs": "^6.6.3"
}
+7 -3
View File
@@ -18,6 +18,8 @@ import Abi from '../Abi';
import { applyOnEvent, formatData } from '../util';
import Base from './Base';
// As per Rust, 5 * GAS_PER_SEC
const MAX_CALL_GAS = new BN(5_000_000_000_000).subn(1);
const ERROR_NO_CALL = 'Your node does not expose the contracts.call RPC. This is most probably due to a runtime configuration.';
const l = logger('Contract');
@@ -99,11 +101,13 @@ export default class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
return this.#tx;
}
#getGas = (_gasLimit: BigInt | BN | string | number): BN => {
#getGas = (_gasLimit: BigInt | BN | string | number, isCall = false): BN => {
const gasLimit = bnToBn(_gasLimit);
return gasLimit.lten(0)
? this.api.consts.system.maximumBlockWeight.muln(64).divn(100)
? isCall
? MAX_CALL_GAS
: this.api.consts.system.maximumBlockWeight.muln(64).divn(100)
: gasLimit;
}
@@ -137,7 +141,7 @@ export default class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
send: this._decorateMethod((origin: string | AccountId | Uint8Array) =>
this.api.rx.rpc.contracts.call.json({
dest: this.address,
gasLimit: this.#getGas(gasLimit),
gasLimit: this.#getGas(gasLimit, true),
inputData: message.toU8a(params),
origin,
value
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2020 @polkadot/rpc-core authors & contributors
// Copyright 2017-2020 @polkadot/rpc-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { SubmittableResult } from '@polkadot/api';
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "2.5.1",
"version": "2.6.1",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"keywords": [
@@ -28,17 +28,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api": "^2.5.1",
"@polkadot/rpc-core": "^2.5.1",
"@polkadot/rpc-provider": "^2.5.1",
"@polkadot/types": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/util-crypto": "^3.7.1",
"@polkadot/api": "2.6.1",
"@polkadot/rpc-core": "2.6.1",
"@polkadot/types": "2.6.1",
"@polkadot/util": "^4.0.1",
"@polkadot/util-crypto": "^4.0.1",
"bn.js": "^5.1.3",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.7.1"
"@polkadot/keyring": "^4.0.1",
"@polkadot/rpc-provider": "2.6.1"
}
}
@@ -16,7 +16,7 @@ function retrieve (api: ApiInterfaceRx, address: Address | AccountId | AccountIn
? address
: decodeAddress((address || '').toString());
if (decoded.length === 32) {
if (decoded.length > 8) {
return of(api.registry.createType('AccountId', decoded));
}
@@ -19,7 +19,7 @@ function retrieve (api: ApiInterfaceRx, address: Address | AccountId | AccountIn
? address
: decodeAddress((address || '').toString());
if (decoded.length === 32) {
if (decoded.length > 8) {
const accountId = api.registry.createType('AccountId', decoded);
return api.derive.accounts.idToIndex(accountId).pipe(
@@ -6,18 +6,18 @@ import { Hash, Proposal, Votes } from '@polkadot/types/interfaces';
import { DeriveCollectiveProposal } from '../types';
import { Observable, combineLatest, of } from 'rxjs';
import { map, switchMap } from 'rxjs/operators';
import { catchError, map, switchMap } from 'rxjs/operators';
import { Option } from '@polkadot/types';
import { isFunction } from '@polkadot/util';
import { memo } from '../util';
type Result = [(Hash | Uint8Array | string)[], Option<Proposal>[], Option<Votes>[]];
type Result = [(Hash | Uint8Array | string)[], (Option<Proposal> | null)[], Option<Votes>[]];
function parse (api: ApiInterfaceRx, [hashes, proposals, votes]: Result): DeriveCollectiveProposal[] {
return proposals
.map((proposalOpt, index): DeriveCollectiveProposal | null =>
proposalOpt.isSome
proposalOpt && proposalOpt.isSome
? {
hash: api.registry.createType('Hash', hashes[index]),
proposal: proposalOpt.unwrap(),
@@ -33,7 +33,12 @@ function _proposalsFrom (instanceId: string, api: ApiInterfaceRx, section: 'coun
(isFunction(api.query[section]?.proposals) && hashes.length
? combineLatest<Result>([
of(hashes),
api.query[section].proposalOf.multi<Option<Proposal>>(hashes),
combineLatest(hashes.map((hash) =>
// this should simply be api.query[section].proposalOf.multi<Option<Proposal>>(hashes),
// however we have had cases on Edgeware where the indices have moved around after an
// upgrade, which results in invalid on-chain data
api.query[section].proposalOf(hash).pipe(catchError(() => of(null)))
)),
api.query[section].voting.multi<Option<Votes>>(hashes)
])
: of([[], [], []] as Result)
+10 -13
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "2.5.1",
"version": "2.6.1",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"keywords": [
@@ -27,20 +27,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api-derive": "^2.5.1",
"@polkadot/keyring": "^3.7.1",
"@polkadot/metadata": "^2.5.1",
"@polkadot/rpc-core": "^2.5.1",
"@polkadot/rpc-provider": "^2.5.1",
"@polkadot/types": "^2.5.1",
"@polkadot/types-known": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/util-crypto": "^3.7.1",
"@polkadot/api-derive": "2.6.1",
"@polkadot/keyring": "^4.0.1",
"@polkadot/metadata": "2.6.1",
"@polkadot/rpc-core": "2.6.1",
"@polkadot/rpc-provider": "2.6.1",
"@polkadot/types": "2.6.1",
"@polkadot/types-known": "2.6.1",
"@polkadot/util": "^4.0.1",
"@polkadot/util-crypto": "^4.0.1",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.7.1"
}
}
-11
View File
@@ -134,17 +134,6 @@ declare module '@polkadot/api/types/consts' {
termDuration: BlockNumber & AugmentedConst<ApiType>;
votingBond: BalanceOf & AugmentedConst<ApiType>;
};
finalityTracker: {
[key: string]: Codec;
/**
* The delay after which point things become suspicious. Default is 1000.
**/
reportLatency: BlockNumber & AugmentedConst<ApiType>;
/**
* The number of recent samples to keep from this chain. Default is 101.
**/
windowSize: BlockNumber & AugmentedConst<ApiType>;
};
identity: {
[key: string]: Codec;
/**
+6
View File
@@ -53,6 +53,12 @@ declare module '@polkadot/api/types/storage' {
* Current epoch authorities.
**/
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AuthorityId, BabeAuthorityWeight]>>>> & QueryableStorageEntry<ApiType>;
/**
* Temporary value (cleared at block finalization) that includes the VRF output generated
* at this block. This field should always be populated during block processing unless
* secondary plain slots are enabled (which don't contain a VRF output).
**/
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<MaybeRandomness>> & QueryableStorageEntry<ApiType>;
/**
* Current slot number.
**/
+19 -13
View File
@@ -805,14 +805,6 @@ declare module '@polkadot/api/types/submittable' {
**/
vote: AugmentedSubmittable<(votes: Vec<AccountId> | (AccountId | string | Uint8Array)[], value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
finalityTracker: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
/**
* Hint that the author of this block thinks the best finalized
* block is the given number.
**/
finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
grandpa: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
/**
@@ -3047,9 +3039,9 @@ declare module '@polkadot/api/types/submittable' {
* The dispatch origin for this call must be `Inherent`.
*
* # <weight>
* - `O(T)` where `T` complexity of `on_timestamp_set`
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
* - 1 event handler `on_timestamp_set` `O(T)`.
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
* # </weight>
**/
set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
@@ -3351,9 +3343,7 @@ declare module '@polkadot/api/types/submittable' {
* bypassing `frame_system::Trait::BaseCallFilter`).
*
* # <weight>
* - Base weight: 14.39 + .987 * c µs
* - Plus the sum of the weights of the `calls`.
* - Plus one additional event. (repeat read/write)
* - Complexity: O(C) where C is the number of calls to be batched.
* # </weight>
*
* This will return `Ok` in all circumstances. To determine the success of the batch, an
@@ -3363,6 +3353,22 @@ declare module '@polkadot/api/types/submittable' {
* event is deposited.
**/
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
/**
* Send a batch of dispatch calls and atomically execute them.
* The whole transaction will rollback and fail if any of the calls failed.
*
* May be called from any origin.
*
* - `calls`: The calls to be dispatched from the same origin.
*
* If origin is root then call are dispatch without checking origin filter. (This includes
* bypassing `frame_system::Trait::BaseCallFilter`).
*
* # <weight>
* - Complexity: O(C) where C is the number of calls to be batched.
* # </weight>
**/
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
};
vesting: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "2.5.1",
"version": "2.6.1",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"publishConfig": {
@@ -27,13 +27,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/types": "^2.5.1",
"@polkadot/types-known": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/util-crypto": "^3.7.1",
"@polkadot/types": "2.6.1",
"@polkadot/types-known": "2.6.1",
"@polkadot/util": "^4.0.1",
"@polkadot/util-crypto": "^4.0.1",
"bn.js": "^5.1.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.7.1"
"@polkadot/keyring": "^4.0.1"
}
}
+73 -79
View File
@@ -564,9 +564,7 @@
" bypassing `frame_system::Trait::BaseCallFilter`).",
"",
" # <weight>",
" - Base weight: 14.39 + .987 * c µs",
" - Plus the sum of the weights of the `calls`.",
" - Plus one additional event. (repeat read/write)",
" - Complexity: O(C) where C is the number of calls to be batched.",
" # </weight>",
"",
" This will return `Ok` in all circumstances. To determine the success of the batch, an",
@@ -603,6 +601,30 @@
"",
" The dispatch origin for this call must be _Signed_."
]
},
{
"name": "batch_all",
"args": [
{
"name": "calls",
"type": "Vec<Call>"
}
],
"documentation": [
" Send a batch of dispatch calls and atomically execute them.",
" The whole transaction will rollback and fail if any of the calls failed.",
"",
" May be called from any origin.",
"",
" - `calls`: The calls to be dispatched from the same origin.",
"",
" If origin is root then call are dispatch without checking origin filter. (This includes",
" bypassing `frame_system::Trait::BaseCallFilter`).",
"",
" # <weight>",
" - Complexity: O(C) where C is the number of calls to be batched.",
" # </weight>"
]
}
],
"events": [
@@ -768,6 +790,19 @@
" if per-block initialization has already been called for current block."
]
},
{
"name": "AuthorVrfRandomness",
"modifier": "Default",
"type": {
"Plain": "MaybeRandomness"
},
"fallback": "0x00",
"documentation": [
" Temporary value (cleared at block finalization) that includes the VRF output generated",
" at this block. This field should always be populated during block processing unless",
" secondary plain slots are enabled (which don't contain a VRF output)."
]
},
{
"name": "Lateness",
"modifier": "Default",
@@ -906,9 +941,9 @@
" The dispatch origin for this call must be `Inherent`.",
"",
" # <weight>",
" - `O(T)` where `T` complexity of `on_timestamp_set`",
" - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)",
" - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)",
" - 1 event handler `on_timestamp_set` `O(T)`.",
" - 1 event handler `on_timestamp_set`. Must be `O(1)`.",
" # </weight>"
]
}
@@ -6285,59 +6320,6 @@
"errors": [],
"index": 14
},
{
"name": "FinalityTracker",
"storage": null,
"calls": [
{
"name": "final_hint",
"args": [
{
"name": "hint",
"type": "Compact<BlockNumber>"
}
],
"documentation": [
" Hint that the author of this block thinks the best finalized",
" block is the given number."
]
}
],
"events": null,
"constants": [
{
"name": "WindowSize",
"type": "BlockNumber",
"value": "0x65000000",
"documentation": [
" The number of recent samples to keep from this chain. Default is 101."
]
},
{
"name": "ReportLatency",
"type": "BlockNumber",
"value": "0xe8030000",
"documentation": [
" The delay after which point things become suspicious. Default is 1000."
]
}
],
"errors": [
{
"name": "AlreadyUpdated",
"documentation": [
" Final hint must be updated only once in the block"
]
},
{
"name": "BadHint",
"documentation": [
" Finalized height above block number"
]
}
],
"index": 15
},
{
"name": "Grandpa",
"storage": {
@@ -6559,7 +6541,7 @@
]
}
],
"index": 16
"index": 15
},
{
"name": "Treasury",
@@ -7506,7 +7488,7 @@
]
}
],
"index": 17
"index": 16
},
{
"name": "Contracts",
@@ -7519,7 +7501,7 @@
"type": {
"Plain": "Schedule"
},
"fallback": "0x0000000020a107000000000020a107000000000020a107000000000020a107000000000020a107000000000020a107000000000020a1070000000000e0f7050400000000e024370500000000e0f705040000000020a107000000000020a107000000000080f0fa020000000000e1f5050000000004000000000001001000000000400000002000000000000800",
"fallback": "0x0000000020a107000000000020a107000000000098b23c000000000054923c000000000098033c00000000009241860000000000ecc33b0000000000ba1d3c00000000000a373c0000000000f2398d0000000000ea843b000000000098c73b0000000000f0586600000000000e471e0000000000f89b7f0000000000090100000000000068a95700000000009802000000000000e8a90c2a00000000a84a8e24000000003058af090000000068269e00000000001a88e4000000000004e1ea07000000002d090000000000003090a800000000006e6c601000000000bf07000000000000de22950a000000002cbb2a0200000000830500000000000078dd710b000000003e56cd07000000007c0c7c0a00000000ee01000000000000c802000000000000b49b0f1e00000000d205000000000000cd02000000000000886b3400000000000810000000000000fa05370000000000b40c000000000000e8b7320000000000b9050000000000003444320000000000b80500000000000000040000000000010010000000004000002000000000000800",
"documentation": [
" Current cost schedule for contracts."
]
@@ -7719,7 +7701,7 @@
"documentation": [
" Contract has been evicted and is now in tombstone state.",
" \\[contract, tombstone\\]",
" ",
"",
" # Params",
"",
" - `contract`: `AccountId`: The account ID of the evicted contract.",
@@ -7737,7 +7719,7 @@
"documentation": [
" Restoration for a contract has been successful.",
" \\[donor, dest, code_hash, rent_allowance\\]",
" ",
"",
" # Params",
"",
" - `donor`: `AccountId`: Account ID of the restoring contract",
@@ -7975,9 +7957,15 @@
"documentation": [
" Contract trapped during execution."
]
},
{
"name": "ValueTooLarge",
"documentation": [
" The size defined in `T::MaxValueSize` was exceeded."
]
}
],
"index": 18
"index": 17
},
{
"name": "Sudo",
@@ -8129,7 +8117,7 @@
]
}
],
"index": 19
"index": 18
},
{
"name": "ImOnline",
@@ -8269,7 +8257,7 @@
]
}
],
"index": 20
"index": 19
},
{
"name": "AuthorityDiscovery",
@@ -8278,7 +8266,7 @@
"events": null,
"constants": [],
"errors": [],
"index": 21
"index": 20
},
{
"name": "Offences",
@@ -8372,7 +8360,7 @@
],
"constants": [],
"errors": [],
"index": 22
"index": 21
},
{
"name": "Historical",
@@ -8381,7 +8369,7 @@
"events": null,
"constants": [],
"errors": [],
"index": 23
"index": 22
},
{
"name": "RandomnessCollectiveFlip",
@@ -8407,7 +8395,7 @@
"events": null,
"constants": [],
"errors": [],
"index": 24
"index": 23
},
{
"name": "Identity",
@@ -9147,7 +9135,7 @@
]
}
],
"index": 25
"index": 24
},
{
"name": "Society",
@@ -10129,7 +10117,7 @@
]
}
],
"index": 26
"index": 25
},
{
"name": "Recovery",
@@ -10677,7 +10665,7 @@
]
}
],
"index": 27
"index": 26
},
{
"name": "Vesting",
@@ -10869,7 +10857,7 @@
]
}
],
"index": 28
"index": 27
},
{
"name": "Scheduler",
@@ -11143,9 +11131,9 @@
]
},
{
"name": "FailedToCancel",
"name": "NotFound",
"documentation": [
" Failed to cancel a scheduled call"
" Cannot find the scheduled call."
]
},
{
@@ -11153,9 +11141,15 @@
"documentation": [
" Given target block number is in the past."
]
},
{
"name": "RescheduleNoChange",
"documentation": [
" Reschedule failed because it does not change scheduled time."
]
}
],
"index": 29
"index": 28
},
{
"name": "Proxy",
@@ -11667,7 +11661,7 @@
]
}
],
"index": 30
"index": 29
},
{
"name": "Multisig",
@@ -12093,7 +12087,7 @@
]
}
],
"index": 31
"index": 30
}
],
"extrinsic": {
File diff suppressed because one or more lines are too long
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "2.5.1",
"version": "2.6.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
@@ -27,14 +27,14 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "^2.5.1",
"@polkadot/rpc-provider": "^2.5.1",
"@polkadot/types": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/metadata": "2.6.1",
"@polkadot/rpc-provider": "2.6.1",
"@polkadot/types": "2.6.1",
"@polkadot/util": "^4.0.1",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.7.1"
"@polkadot/keyring": "^4.0.1"
}
}
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "2.5.1",
"version": "2.6.1",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
@@ -27,17 +27,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "^2.5.1",
"@polkadot/types": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/util-crypto": "^3.7.1",
"@polkadot/x-fetch": "^3.7.1",
"@polkadot/x-ws": "^3.7.1",
"@polkadot/types": "2.6.1",
"@polkadot/util": "^4.0.1",
"@polkadot/util-crypto": "^4.0.1",
"@polkadot/x-fetch": "^4.0.1",
"@polkadot/x-ws": "^4.0.1",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@polkadot/keyring": "^3.7.1",
"@polkadot/keyring": "^4.0.1",
"@polkadot/metadata": "2.6.1",
"mock-socket": "^9.0.3",
"nock": "^13.0.4"
}
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "2.5.1",
"version": "2.6.1",
"description": "Type generation scripts",
"main": "index.js",
"bin": {
@@ -36,11 +36,11 @@
"@babel/core": "^7.12.3",
"@babel/register": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@polkadot/api": "^2.5.1",
"@polkadot/metadata": "^2.5.1",
"@polkadot/rpc-provider": "^2.5.1",
"@polkadot/types": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/api": "2.6.1",
"@polkadot/metadata": "2.6.1",
"@polkadot/rpc-provider": "2.6.1",
"@polkadot/types": "2.6.1",
"@polkadot/util": "^4.0.1",
"handlebars": "^4.7.6",
"websocket": "^1.0.32",
"yargs": "^16.1.0"
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "2.5.1",
"version": "2.6.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
@@ -27,8 +27,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/types": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/types": "2.6.1",
"@polkadot/util": "^4.0.1",
"bn.js": "^5.1.3"
},
"devDependencies": {
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "2.5.1",
"version": "2.6.1",
"description": "Implementation of the Parity codec",
"main": "index.js",
"keywords": [
@@ -27,16 +27,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "^2.5.1",
"@polkadot/util": "^3.7.1",
"@polkadot/util-crypto": "^3.7.1",
"@polkadot/metadata": "2.6.1",
"@polkadot/util": "^4.0.1",
"@polkadot/util-crypto": "^4.0.1",
"@types/bn.js": "^4.11.6",
"bn.js": "^5.1.3",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.7.1",
"@polkadot/keyring": "^4.0.1",
"@types/memoizee": "^0.4.4"
}
}
+654 -530
View File
File diff suppressed because it is too large Load Diff