types

package
v3.1.0-rc01 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type SimRollapp

type SimRollapp struct {
	// rollappId is the unique identifier of the rollapp chain.
	// The rollappId follows the same standard as cosmos chain_id.
	RollappId string
	// maxSequencers is the maximum number of sequencers.
	MaxSequencers uint64
	// permissionedAddresses is a bech32-encoded address list of the
	// sequencers that are allowed to serve this rollappId.
	// In the case of an empty list, the rollapp is considered permissionless.
	PermissionedAddresses []string
	// Sequencers is a list of indexes of sequencers in
	// GlobalSequencerAddressesList by joining order
	Sequencers []int
	// LastHeight is the last updated rollapp height
	LastHeight uint64
	// LastCreationHeight is the last block height that an update was created in
	LastCreationHeight uint64
}

type SimSequencer

type SimSequencer struct {
	// Account is the account of the sequencer account.
	Account simtypes.Account
	// creator is the bech32-encoded address of the account sent the transaction (sequencer creator)
	Creator string
	// RollappIndex is the index of the rollapp in GlobalRollappList
	RollappIndex int
}

Jump to

Keyboard shortcuts

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