simulation

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAccount

func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool)

FindAccount find a specific address from an account list

func GetMerkleProof

func GetMerkleProof() (item, jProof string)

Generate merkle proof with similar operation as jackal provider daemon but the file used to generate is much simpler Returns json encoding of merkle proof

func GetMerkleRoot

func GetMerkleRoot() string

Generate merkle root with similar operation as jackal provider daemon

func ParamChanges

func ParamChanges(r *rand.Rand) []simtypes.ParamChange

func RandIPv4Url

func RandIPv4Url(r *rand.Rand) string

Generate random IPv4 url e.g http://1.1.1.1 It may not be unique

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

func SimulateMsgAddProviderClaimer

func SimulateMsgAddProviderClaimer(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgBuyStorage

func SimulateMsgBuyStorage(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgInitProvider

func SimulateMsgInitProvider(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgRemoveProviderClaimer

func SimulateMsgRemoveProviderClaimer(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgSetProviderIP

func SimulateMsgSetProviderIP(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgSetProviderTotalSpace

func SimulateMsgSetProviderTotalSpace(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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