Documentation ¶
Overview ¶
Package integration contains integration test utils.
Index ¶
Constants ¶
View Source
const ( // AnomDenom is anom name . AnomDenom = "anom" // ChainName is default test chain name. ChainName = "chain-1" // ChainFlag is default chain flag. ChainFlag = "--chain-id=" + ChainName // KeyRingFlag is default keyring flag. KeyRingFlag = "--keyring-backend=test" // ChainDenom is default chain denom. ChainDenom = AnomDenom // MinGlobalSelfDelegation is the value for app_state.staking.params.min_global_self_delegation. MinGlobalSelfDelegation = "250000000000000000000000" // 250k noms // MinSelfDelegationFlag is the generic min-self-delegation for a validator. MinSelfDelegationFlag = "--min-self-delegation=" + MinGlobalSelfDelegation // ValidatorGenesysAmount is default validator genesys amount. ValidatorGenesysAmount = "1000000000000000000000000" + ChainDenom // 1m noms // TestChainValidatorStakeAmount is default validator genesys stake amount. TestChainValidatorStakeAmount = MinGlobalSelfDelegation + ChainDenom // TestChainValidator1Name is default validator name. TestChainValidator1Name = "validator1" // OnomyGrpcHost is default host. OnomyGrpcHost = "127.0.0.1" // OnomyGrpcPort is default port. OnomyGrpcPort = "9090" )
Variables ¶
This section is empty.
Functions ¶
func ExecuteChainCmd ¶
ExecuteChainCmd executes any cmd on the onomyd cli.
Types ¶
type OnomyChain ¶
OnomyChain is test struct for the chain running.
func NewOnomyChain ¶
func NewOnomyChain() (*OnomyChain, error)
NewOnomyChain creates a new OnomyChain.
func (*OnomyChain) GetAccountBalance ¶
func (oc *OnomyChain) GetAccountBalance(address string) ([]sdkTypes.Coin, error)
GetAccountBalance return the 'address' balance.
Click to show internal directories.
Click to hide internal directories.