Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add rust code types
  • Loading branch information
kianenigma committed Mar 9, 2019
commit 28b959b5675a2f7208b142cf65b23b4d298550ec
8 changes: 4 additions & 4 deletions srml/staking/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The staking module contains many public storage items and (im)mutable functions.

An arbitrary account pair, given that the associated stash has the required funds, can become stakers via the following call:

```
```rust
// bond account 3 as stash
// account 4 as controller
// with stash value 1500 units
Expand All @@ -49,7 +49,7 @@ Staking::bond(Origin::signed(3), 4, 1500, RewardDestination::Controller);

To state desire in becoming a validator:

```
```rust
// controller account 4 states desire for validation with the given preferences.
Staking::validate(Origin::signed(4), ValidatorPrefs::default());
```
Expand All @@ -58,14 +58,14 @@ Note that, as mentioned, the stash account is transparent in such calls and only

Similarly, to state desire in nominating:

```
```rust
// controller account 4 nominates for account 10 and 20.
Staking::nominate(Origin::signed(4), vec![20, 10]);
```

Finally, account 4 can withdraw from any of the above roles via

```
```rust
Staking::chill(Origin::signed(4));
```

Expand Down