Rename types in docs to match exports (#1424)

This commit is contained in:
Stefanie Doll
2019-09-27 16:32:11 +02:00
committed by GitHub
parent 8b0ef159c0
commit b231b7b8cb
+15 -18
View File
@@ -37,7 +37,7 @@ These primitive types are available:
| [[AccountIndex]] | A wrapper around an AccountIndex, which is a shortened, variable-length encoding for an Account | | [[AccountIndex]] | A wrapper around an AccountIndex, which is a shortened, variable-length encoding for an Account |
| [[AccountInfo]] | An Account information structure for contracts | | [[AccountInfo]] | An Account information structure for contracts |
| [[Address]] | A wrapper around an AccountId and/or AccountIndex that is encoded with a prefix | | [[Address]] | A wrapper around an AccountId and/or AccountIndex that is encoded with a prefix |
| [[Bool]] | Representation for a boolean value in the system | | [[bool]] | Representation for a boolean value in the system |
| [[Bytes]] | A Bytes wrapper for `Vec<u8>` | | [[Bytes]] | A Bytes wrapper for `Vec<u8>` |
| [[Call]] | Extrinsic function descriptor, as defined in [the extrinsic format for a node](https://github.com/paritytech/wiki/blob/master/Extrinsic.md#the-extrinsic-format-for-node) | | [[Call]] | Extrinsic function descriptor, as defined in [the extrinsic format for a node](https://github.com/paritytech/wiki/blob/master/Extrinsic.md#the-extrinsic-format-for-node) |
| [[Data]] | A raw data structure. It is an encoding of a U8a without any length encoding | | [[Data]] | A raw data structure. It is an encoding of a U8a without any length encoding |
@@ -50,12 +50,12 @@ These primitive types are available:
| [[H256]] | Hash containing 256 bits (32 bytes), typically used in blocks, extrinsics and as a sane default | | [[H256]] | Hash containing 256 bits (32 bytes), typically used in blocks, extrinsics and as a sane default |
| [[H512]] | Hash containing 512 bits (64 bytes), typically used for signatures | | [[H512]] | Hash containing 512 bits (64 bytes), typically used for signatures |
| [[Hash]] | The default hash that is used accross the system. It is just a thin wrapper around [[H256]] | [[Hash]] | The default hash that is used accross the system. It is just a thin wrapper around [[H256]]
| [[I8]] | An 8-bit signed integer | | [[i8]] | An 8-bit signed integer |
| [[I16]] | A 16-bit signed integer | | [[i16]] | A 16-bit signed integer |
| [[I32]] | A 32-bit signed integer | | [[i32]] | A 32-bit signed integer |
| [[I64]] | A 64-bit signed integer | | [[i64]] | A 64-bit signed integer |
| [[I128]] | A 128-bit signed integer | | [[i128]] | A 128-bit signed integer |
| [[I256]] | A 256-bit signed integer | | [[i256]] | A 256-bit signed integer |
| [[Moment]] | A wrapper around seconds/timestamps. Internally the representation only has second precicion (aligning with Rust) | | [[Moment]] | A wrapper around seconds/timestamps. Internally the representation only has second precicion (aligning with Rust) |
| [[Null]] | Implements a type that does not contain anything (apart from `null`) | | [[Null]] | Implements a type that does not contain anything (apart from `null`) |
| [[Origin]] | Where Origin occurs, it should be ignored as an internal-only value | | [[Origin]] | Where Origin occurs, it should be ignored as an internal-only value |
@@ -65,13 +65,13 @@ These primitive types are available:
| [[StorageKey]] | A representation of a storage key (typically hashed) in the system | | [[StorageKey]] | A representation of a storage key (typically hashed) in the system |
| [[Text]] | This is a string wrapper, along with the length. | | [[Text]] | This is a string wrapper, along with the length. |
| [[Type]] | This is a extended version of String, specifically to handle types | | [[Type]] | This is a extended version of String, specifically to handle types |
| [[U8]] | An 8-bit unsigned integer | | [[u8]] | An 8-bit unsigned integer |
| [[U16]] | A 16-bit unsigned integer | | [[u16]] | A 16-bit unsigned integer |
| [[U32]] | A 32-bit unsigned integer | | [[u32]] | A 32-bit unsigned integer |
| [[U64]] | A 64-bit unsigned integer | | [[u64]] | A 64-bit unsigned integer |
| [[U128]] | A 128-bit unsigned integer | | [[u128]] | A 128-bit unsigned integer |
| [[U256]] | A 256-bit unsigned integer | | [[u256]] | A 256-bit unsigned integer |
| [[USize]] | A System default unsigned number, typically used in RPC to report non-consensus data | | [[uSize]] | A System default unsigned number, typically used in RPC to report non-consensus data |
| [[Weight]] | Numeric range of a transaction weight. | | [[Weight]] | Numeric range of a transaction weight. |
| [[WeightMultiplier]] | Representation of a weight multiplier. This represents how a fee value can be computed from a weighted transaction. | | [[WeightMultiplier]] | Representation of a weight multiplier. This represents how a fee value can be computed from a weighted transaction. |
@@ -82,6 +82,7 @@ These custom types implement specific types that are found as part of the Substr
| **Types** | | | **Types** | |
| --- | --- | | --- | --- |
| [[AccountNonce]] | The Nonce or number of transactions sent by a specific account |
| [[Amount]] | The Substrate Amount representation as a [[Balance]] | | [[Amount]] | The Substrate Amount representation as a [[Balance]] |
| [[ApprovalFlag]] | Approval flag, implemented as a [[U32]] | | [[ApprovalFlag]] | Approval flag, implemented as a [[U32]] |
| [[AssetOf]] | The Substrate AssetOf representation as a [[Balance]] | | [[AssetOf]] | The Substrate AssetOf representation as a [[Balance]] |
@@ -111,12 +112,8 @@ These custom types implement specific types that are found as part of the Substr
| [[LockIdentifier]] | The Substrate LockIdentifier for staking | | [[LockIdentifier]] | The Substrate LockIdentifier for staking |
| [[LockPeriods]] | A number of lock periods | | [[LockPeriods]] | A number of lock periods |
| [[MemberCount]] | A number of council members | | [[MemberCount]] | A number of council members |
| [[MisbehaviorKind]] | An [[EnumType]] containing a Bft misbehaviour |
| [[MisbehaviorReport]] | A Misbehaviour report of [[MisbehavioirKind]] against a specific [[AuthorityId]] |
| [[NewAccountOutcome]] | Enum to track the outcome for creation of an [[AccountId]] | | [[NewAccountOutcome]] | Enum to track the outcome for creation of an [[AccountId]] |
| [[NextAuthority]] | The next authority available as [[SessionKey]] | | [[NextAuthority]] | The next authority available as [[SessionKey]] |
| [[Nonce]] | The Nonce or number of transactions sent by a specific account |
| [[NonceCompact]] | The Compact<Nonce> or number of transactions sent by a specific account |
| [[OpaqueKey]] | A key represented as a [[Bytes]] | | [[OpaqueKey]] | A key represented as a [[Bytes]] |
| [[Perbill]] | Parts per billion (see also [[Permill]]) | | [[Perbill]] | Parts per billion (see also [[Permill]]) |
| [[Permill]] | Parts per million (See also [[Perbill]]) | | [[Permill]] | Parts per million (See also [[Perbill]]) |