simulation

package
v0.0.0-...-878d61a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomDelegations

func GetRandomDelegations(ctx sdk.Context, k valsetkeeper.Keeper, sim *furysimtypes.SimCtx, delegatorAddr sdk.AccAddress) ([]types.ValidatorPreference, error)

func GetRandomValAndWeights

func GetRandomValAndWeights(ctx sdk.Context, k valsetkeeper.Keeper, sim *furysimtypes.SimCtx, remainingWeight sdk.Dec) ([]types.ValidatorPreference, error)

func RandomValidator

func RandomValidator(ctx sdk.Context, sim *furysimtypes.SimCtx) *stakingtypes.Validator

func RandomWeight

func RandomWeight(maxVal sdk.Dec) (sdk.Dec, error)

Random float point from 0-1

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL