Expand description
Testing utils for staking. Provides some common functions to setup staking state, such as bonding validators, nominators, and generating different types of solutions.
Functions§
- clear_
validators_ and_ nominators  - This function removes all validators and nominators from storage.
 - create_
funded_ user  - Grab a funded user.
 - create_
funded_ user_ with_ balance  - Grab a funded user with max Balance.
 - create_
stash_ and_ dead_ payee  - Create a stash and controller pair, where payouts go to a dead payee account. This is used to test worst case payout scenarios.
 - create_
stash_ controller  - Create a stash and controller pair.
 - create_
stash_ controller_ with_ balance  - Create a stash and controller pair with fixed balance.
 - create_
unique_ stash_ controller  - Create a unique stash and controller pair.
 - create_
validators  - create 
maxvalidators. - create_
validators_ with_ nominators_ for_ era  - This function generates validators and nominators who are randomly nominating
edge_per_nominatorrandom validators (untilto_nominateif provided). - create_
validators_ with_ seed  - create 
maxvalidators, with a seed to help unintentional prevent account collisions. - current_
era  - get the current era.
 - migrate_
to_ old_ currency