Add metadata constants to scripts/MetadataMd (#1131)

* Add metadata constants to scripts/MetadataMd

* Use name instead of prefix for Extrinsics

Since the js api uses the name and not the prefix (api.tx.name.xx)
and finality_tracker doesn't have a prefix

* Lint
This commit is contained in:
Axel Chalon
2019-07-16 22:55:03 +02:00
committed by Jaco Greeff
parent 76d3ac7769
commit 0196829a48
6 changed files with 227 additions and 9 deletions
+8 -8
View File
@@ -9,15 +9,15 @@ _The following sections contain Extrinsics methods are part of the default Subst
- **[collective](#collective)**
- **[contract](#contract)**
- **[contracts](#contracts)**
- **[democracy](#democracy)**
- **[council](#council)**
- **[elections](#elections)**
- **[](#)**
- **[finalityTracker](#finalityTracker)**
- **[grandpaFinality](#grandpaFinality)**
- **[grandpa](#grandpa)**
- **[session](#session)**
@@ -88,7 +88,7 @@ ___
___
### contract
### contracts
▸ **call**(dest: `Address`, value: `Compact<BalanceOf>`, gas_limit: `Compact<Gas>`, data: `Bytes`)
- **summary**: Makes a call to an account, optionally transferring some balance. * If the account is a smart-contract account, the associated code will be executed and any value will be transferred. * If the account is a regular account, any value will be transferred. * If no account exists and the call value is not less than `existential_deposit`, a regular account will be created and any value will be transferred.
@@ -167,7 +167,7 @@ ___
___
### council
### elections
▸ **presentWinner**(candidate: `Address`, total: `Compact<BalanceOf>`, index: `Compact<VoteIndex>`)
- **summary**: Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates. Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()` `signed` should have at least # <weight> - O(voters) compute. - One DB change. # </weight>
@@ -202,7 +202,7 @@ ___
___
###
### finalityTracker
▸ **finalHint**(hint: `Compact<BlockNumber>`)
- **summary**: Hint that the author of this block thinks the best finalized block is the given number.
@@ -210,7 +210,7 @@ ___
___
### grandpaFinality
### grandpa
▸ **reportMisbehavior**(_report: `Bytes`)
- **summary**: Report some misbehavior.