Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 28b959b

Browse files
committed
Add rust code types
1 parent 7df2b19 commit 28b959b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

srml/staking/README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The staking module contains many public storage items and (im)mutable functions.
3939

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

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

5050
To state desire in becoming a validator:
5151

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

5959
Similarly, to state desire in nominating:
6060

61-
```
61+
```rust
6262
// controller account 4 nominates for account 10 and 20.
6363
Staking::nominate(Origin::signed(4), vec![20, 10]);
6464
```
6565

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

68-
```
68+
```rust
6969
Staking::chill(Origin::signed(4));
7070
```
7171

0 commit comments

Comments
 (0)