-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
...tocol-components/accounts/account-info.md → ...ata-structure/account-data-structure-2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
```rs | ||
#[derive(Clone, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode)] | ||
pub struct AccountInfo<Nonce, AccountData> { | ||
/// The number of transactions this account has sent. | ||
/// The number of transactions this account has sent | ||
pub nonce: Nonce, | ||
/// The number of other modules that currently depend on this account's existence. The account | ||
/// cannot be reaped until this is zero. | ||
/// cannot be reaped until this is zero | ||
pub consumers: RefCount, | ||
/// The number of other modules that allow this account to exist. The account may not be reaped | ||
/// until this and `sufficients` are both zero. | ||
/// until this and `sufficients` are both zero | ||
pub providers: RefCount, | ||
/// The number of modules that allow this account to exist for their own purposes only. The | ||
/// account may not be reaped until this and `providers` are both zero. | ||
/// account may not be reaped until this and `providers` are both zero | ||
pub sufficients: RefCount, | ||
/// The additional data that belongs to this account. Used to store the balance(s) in a lot of | ||
/// chains. | ||
/// chains | ||
pub data: AccountData, | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters