Versions in this module Expand all Collapse all v3 v3.0.1 Oct 29, 2024 v3.0.0 Oct 29, 2024 Changes in this version + func WriteFile(name string, dir string, contents []byte) error + type AppConstructor = func(val Validator) servertypes.Application + func NewAppConstructor(encodingCfg params.EncodingConfig) AppConstructor + type CLILogger struct + func NewCLILogger(cmd *cobra.Command) CLILogger + func (s CLILogger) Log(args ...interface{}) + func (s CLILogger) Logf(format string, args ...interface{}) + type Config struct + APIAddress string + AccountRetriever client.AccountRetriever + AccountTokens math.Int + AppConstructor AppConstructor + BondDenom string + BondedTokens math.Int + ChainID string + CleanupDir bool + Codec codec.Codec + EnableTMLogging bool + GRPCAddress string + GenesisState simapp.GenesisState + InterfaceRegistry codectypes.InterfaceRegistry + JSONRPCAddress string + KeyringOptions []keyring.Option + LegacyAmino *codec.LegacyAmino + MinGasPrices string + NumValidators int + PrintMnemonic bool + PruningStrategy string + RPCAddress string + SigningAlgo string + StakingTokens math.Int + TimeoutCommit time.Duration + TxConfig client.TxConfig + func DefaultConfig() Config + type Logger interface + Log func(args ...interface{}) + Logf func(format string, args ...interface{}) + type Network struct + BaseDir string + Config Config + Logger Logger + Validators []*Validator + func New(l Logger, baseDir string, cfg Config) (*Network, error) + func (n *Network) Cleanup() + func (n *Network) LatestHeight() (int64, error) + func (n *Network) WaitForHeight(h int64) (int64, error) + func (n *Network) WaitForHeightWithTimeout(h int64, t time.Duration) (int64, error) + func (n *Network) WaitForNextBlock() error + type Validator struct + APIAddress string + Address sdk.AccAddress + AppConfig *config.Config + ClientCtx client.Context + Ctx *server.Context + Dir string + JSONRPCClient *ethclient.Client + Moniker string + NodeID string + P2PAddress string + PubKey cryptotypes.PubKey + RPCAddress string + RPCClient tmclient.Client + ValAddress sdk.ValAddress Other modules containing this package github.com/cvn-network/cvn/v2