diff --git a/docs/METHODS_EVENTS.md b/docs/METHODS_EVENTS.md index 5fe90bea96..e9a5261385 100644 --- a/docs/METHODS_EVENTS.md +++ b/docs/METHODS_EVENTS.md @@ -13,8 +13,6 @@ Events are emitted for certain operations on the runtime. The following sections - **[democracy](#democracy)** -- **[fees](#fees)** - - **[grandpa](#grandpa)** - **[indices](#indices)** @@ -119,6 +117,8 @@ ___ ▸ **Cancelled**(`ReferendumIndex`) +▸ **Delegated**(`AccountId`, `AccountId`) + ▸ **Executed**(`ReferendumIndex`, `bool`) ▸ **NotPassed**(`ReferendumIndex`) @@ -131,13 +131,7 @@ ___ ▸ **Tabled**(`PropIndex`, `Balance`, `Vec`) -___ - - -### fees - -▸ **Charged**(`u32`, `Amount`) -- **summary**: Fee charged (extrinsic_index, fee_amount) +▸ **Undelegated**(`AccountId`) ___ diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md index 25e8d386e7..7c8f1e8abc 100644 --- a/docs/METHODS_EXTRINSICS.md +++ b/docs/METHODS_EXTRINSICS.md @@ -73,7 +73,7 @@ ___ - **summary**: Make a call to a specified account, optionally transferring some balance. ▸ **create**(endowment: `Compact`, gas_limit: `Compact`, code_hash: `CodeHash`, data: `Bytes`) -- **summary**: Create a new contract, optionally transfering some balance to the created account. Creation is executed as follows: - the destination address is computed based on the sender and hash of the code. - account is created at the computed address. - the `ctor_code` is executed in the context of the newly created account. Buffer returned after the execution is saved as the `code` of the account. That code will be invoked upon any message received by this account. +- **summary**: Create a new contract, optionally transferring some balance to the created account. Creation is executed as follows: - the destination address is computed based on the sender and hash of the code. - account is created at the computed address. - the `ctor_code` is executed in the context of the newly created account. Buffer returned after the execution is saved as the `code` of the account. That code will be invoked upon any message received by this account. ▸ **putCode**(gas_limit: `Compact`, code: `Bytes`) - **summary**: Stores code in the storage. You can instantiate contracts only with stored code. @@ -148,6 +148,9 @@ ___ ▸ **cancelReferendum**(ref_index: `Compact`) - **summary**: Remove a referendum. +▸ **delegate**(to: `AccountId`, lock_periods: `LockPeriods`) +- **summary**: Delegate vote. + ▸ **propose**(proposal: `Proposal`, value: `Compact`) - **summary**: Propose a sensitive action to be taken. @@ -157,6 +160,9 @@ ___ ▸ **startReferendum**(proposal: `Proposal`, threshold: `VoteThreshold`, delay: `BlockNumber`) - **summary**: Start a referendum. +▸ **undelegate**() +- **summary**: Undelegate vote. + ▸ **vote**(ref_index: `Compact`, vote: `Vote`) - **summary**: Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; otherwise it is a vote to keep the status quo. diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md index 17d92e3146..1af02a2e0b 100644 --- a/docs/METHODS_STORAGE.md +++ b/docs/METHODS_STORAGE.md @@ -15,8 +15,6 @@ _The following sections contain Storage methods are part of the default Substrat - **[democracy](#democracy)** -- **[fees](#fees)** - - **[grandpaFinality](#grandpaFinality)** - **[indices](#indices)** @@ -59,6 +57,12 @@ ___ ▸ **totalIssuance**(): `Balance` - **summary**: The total amount of stake on the system. +▸ **transactionBaseFee**(): `Balance` +- **summary**: The fee to be paid for making a transaction; the base. + +▸ **transactionByteFee**(): `Balance` +- **summary**: The fee to be paid for making a transaction; the per-byte portion. + ▸ **transferFee**(): `Balance` - **summary**: The fee required to make a transfer. @@ -218,6 +222,9 @@ ___ ### democracy +▸ **delegations**(`AccountId`): `(AccountId,LockPeriods)` +- **summary**: Get the account (and lock periods) to which another account is delegating vote. + ▸ **depositOf**(`PropIndex`): `Option<(BalanceOf,Vec)>` - **summary**: Those who have locked a deposit. @@ -263,20 +270,6 @@ ___ ___ -### fees - -▸ **currentTransactionFee**(`u32`): `AssetOf` -- **summary**: The `extrinsic_index => accumulated_fees` map, containing records to track the overall charged fees for each transaction. All records should be removed at finalise stage. - -▸ **transactionBaseFee**(): `AssetOf` -- **summary**: The fee to be paid for making a transaction; the base. - -▸ **transactionByteFee**(): `AssetOf` -- **summary**: The fee to be paid for making a transaction; the per-byte portion. - -___ - - ### grandpaFinality ▸ **nextForced**(): `Option` diff --git a/lerna.json b/lerna.json index 97fa34b6bb..c343a00a35 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.50.1" + "version": "0.51.0-beta.0" } diff --git a/package.json b/package.json index ebcb1b4f8b..09e3b962c1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.50.1", + "version": "0.51.0-beta.0", "private": true, "engines": { "node": ">=10.13.0", diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index b25d9c21d9..626622bedc 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -31,8 +31,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/api": "^0.50.1", - "@polkadot/types": "^0.50.1", + "@polkadot/api": "^0.51.0-beta.0", + "@polkadot/types": "^0.51.0-beta.0", "@types/memoizee": "^0.4.2", "memoizee": "^0.4.14" } diff --git a/packages/api/package.json b/packages/api/package.json index 7bd619da80..6ce99c2b9a 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -30,12 +30,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/api-derive": "^0.50.1", - "@polkadot/extrinsics": "^0.50.1", - "@polkadot/rpc-provider": "^0.50.1", - "@polkadot/rpc-rx": "^0.50.1", - "@polkadot/storage": "^0.50.1", - "@polkadot/types": "^0.50.1", + "@polkadot/api-derive": "^0.51.0-beta.0", + "@polkadot/extrinsics": "^0.51.0-beta.0", + "@polkadot/rpc-provider": "^0.51.0-beta.0", + "@polkadot/rpc-rx": "^0.51.0-beta.0", + "@polkadot/storage": "^0.51.0-beta.0", + "@polkadot/types": "^0.51.0-beta.0", "@polkadot/util-crypto": "^0.40.1" } } diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 9104198f0a..08ad8dbf7e 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/jsonrpc": "^0.50.1", - "@polkadot/rpc-provider": "^0.50.1", - "@polkadot/types": "^0.50.1", + "@polkadot/jsonrpc": "^0.51.0-beta.0", + "@polkadot/rpc-provider": "^0.51.0-beta.0", + "@polkadot/types": "^0.51.0-beta.0", "@polkadot/util": "^0.40.1" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 4bdf119ed0..da55a5aa1c 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -31,7 +31,7 @@ "dependencies": { "@babel/runtime": "^7.4.0", "@polkadot/keyring": "^0.40.1", - "@polkadot/storage": "^0.50.1", + "@polkadot/storage": "^0.51.0-beta.0", "@polkadot/util": "^0.40.1", "@polkadot/util-crypto": "^0.40.1", "@types/nock": "^9.3.1", diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index cecb9b9f04..489c6fd849 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/rpc-core": "^0.50.1", - "@polkadot/rpc-provider": "^0.50.1", + "@polkadot/rpc-core": "^0.51.0-beta.0", + "@polkadot/rpc-provider": "^0.51.0-beta.0", "@types/memoizee": "^0.4.2", "@types/rx": "^4.1.1", "memoizee": "^0.4.14", diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index c41be8cd53..4e78eaa0ee 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.50.1", + "version": "0.51.0-beta.0", "main": "index.js", "repository": "https://github.com/polkadot-js/api.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/types": "^0.50.1", + "@polkadot/types": "^0.51.0-beta.0", "@polkadot/util": "^0.40.1" } } diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 2d651bbf76..8b1847f6b8 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "engines": { diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 0d486ccbb5..6e3df7f552 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "engines": { @@ -31,7 +31,7 @@ "dependencies": { "@babel/runtime": "^7.4.0", "@polkadot/keyring": "^0.40.1", - "@polkadot/types": "^0.50.1", + "@polkadot/types": "^0.51.0-beta.0", "@polkadot/util": "^0.40.1", "@polkadot/util-crypto": "^0.40.1" } diff --git a/packages/types/package.json b/packages/types/package.json index 479743a1bc..2b60064727 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.50.1", + "version": "0.51.0-beta.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [