Documentation ¶
Index ¶
- func SimulationCommand(appPath string, options ...SimappOption) step.Option
- type ChainCmd
- func (c ChainCmd) AddGenesisAccountCommand(address, coins string) step.Option
- func (c ChainCmd) AddKeyCommand(accountName, coinType string) step.Option
- func (c ChainCmd) AddVestingAccountCommand(address, originalCoins, vestingCoins string, vestingEndTime int64) step.Option
- func (c ChainCmd) BankSendCommand(fromAddress, toAddress, amount string) step.Option
- func (c ChainCmd) CollectGentxsCommand() step.Option
- func (c ChainCmd) Copy(options ...Option) ChainCmd
- func (c ChainCmd) ExportCommand() step.Option
- func (c ChainCmd) GentxCommand(validatorName string, selfDelegation string, options ...GentxOption) step.Option
- func (c ChainCmd) ImportKeyCommand(accountName, keyFile string) step.Option
- func (c ChainCmd) InitCommand(moniker string) step.Option
- func (c ChainCmd) IsAutoChainIDDetectionEnabled() bool
- func (c ChainCmd) KeyringBackend() KeyringBackend
- func (c ChainCmd) KeyringPassword() string
- func (c ChainCmd) LaunchpadRestServerCommand(apiAddress, rpcAddress string) step.Option
- func (c ChainCmd) LaunchpadSetConfigCommand(name, value string) step.Option
- func (c ChainCmd) ListKeysCommand() step.Option
- func (c ChainCmd) QueryTxCommand(txHash string) step.Option
- func (c ChainCmd) QueryTxEventsCommand(query string) step.Option
- func (c ChainCmd) RecoverKeyCommand(accountName, coinType string) step.Option
- func (c ChainCmd) SDKVersion() cosmosver.Version
- func (c ChainCmd) ShowKeyAddressCommand(accountName string) step.Option
- func (c ChainCmd) ShowNodeIDCommand() step.Option
- func (c ChainCmd) StartCommand(options ...string) step.Option
- func (c ChainCmd) StatusCommand() step.Option
- func (c ChainCmd) UnsafeResetCommand() step.Option
- func (c ChainCmd) ValidateGenesisCommand() step.Option
- type GentxOption
- func GentxWithCommissionMaxChangeRate(commissionMaxChangeRate string) GentxOption
- func GentxWithCommissionMaxRate(commissionMaxRate string) GentxOption
- func GentxWithCommissionRate(commissionRate string) GentxOption
- func GentxWithDetails(details string) GentxOption
- func GentxWithGasPrices(gasPrices string) GentxOption
- func GentxWithIdentity(identity string) GentxOption
- func GentxWithMinSelfDelegation(minSelfDelegation string) GentxOption
- func GentxWithMoniker(moniker string) GentxOption
- func GentxWithSecurityContact(securityContact string) GentxOption
- func GentxWithWebsite(website string) GentxOption
- type KeyringBackend
- type Option
- func WithAutoChainIDDetection() Option
- func WithChainID(chainID string) Option
- func WithHome(home string) Option
- func WithKeyringBackend(keyringBackend KeyringBackend) Option
- func WithKeyringPassword(password string) Option
- func WithLaunchpadCLI(cliCmd string) Option
- func WithLaunchpadCLIHome(cliHome string) Option
- func WithLegacySendCommand() Option
- func WithNodeAddress(addr string) Option
- func WithVersion(v cosmosver.Version) Option
- type SimappOption
- func SimappWithBlockSize(blockSize int) SimappOption
- func SimappWithCommit(commit bool) SimappOption
- func SimappWithEnable(enable bool) SimappOption
- func SimappWithExportParamsHeight(exportParamsHeight int) SimappOption
- func SimappWithExportParamsPath(exportParamsPath string) SimappOption
- func SimappWithExportStatePath(exportStatePath string) SimappOption
- func SimappWithExportStatsPath(exportStatsPath string) SimappOption
- func SimappWithGenesis(genesis string) SimappOption
- func SimappWithGenesisTime(genesisTime int64) SimappOption
- func SimappWithInitialBlockHeight(initialBlockHeight int) SimappOption
- func SimappWithLean(lean bool) SimappOption
- func SimappWithNumBlocks(numBlocks int) SimappOption
- func SimappWithParams(params string) SimappOption
- func SimappWithPeriod(period uint) SimappOption
- func SimappWithPrintAllInvariants(printAllInvariants bool) SimappOption
- func SimappWithSeed(seed int64) SimappOption
- func SimappWithSimulateEveryOperation(simulateEveryOperation bool) SimappOption
- func SimappWithVerbose(verbose bool) SimappOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimulationCommand ¶
func SimulationCommand(appPath string, options ...SimappOption) step.Option
SimulationCommand returns the cli command for simapp tests
Types ¶
type ChainCmd ¶
type ChainCmd struct {
// contains filtered or unexported fields
}
func (ChainCmd) AddGenesisAccountCommand ¶
AddGenesisAccountCommand returns the command to add a new account in the genesis file of the chain
func (ChainCmd) AddKeyCommand ¶
AddKeyCommand returns the command to add a new key in the chain keyring
func (ChainCmd) AddVestingAccountCommand ¶
func (c ChainCmd) AddVestingAccountCommand(address, originalCoins, vestingCoins string, vestingEndTime int64) step.Option
AddVestingAccountCommand returns the command to add a delayed vesting account in the genesis file of the chain
func (ChainCmd) BankSendCommand ¶
BankSendCommand returns the command for transferring tokens.
func (ChainCmd) CollectGentxsCommand ¶
CollectGentxsCommand returns the command to gather the gentxs in /gentx dir into the genesis file of the chain
func (ChainCmd) ExportCommand ¶
ExportCommand returns the command to export the state of the blockchain into a genesis file
func (ChainCmd) GentxCommand ¶
func (c ChainCmd) GentxCommand( validatorName string, selfDelegation string, options ...GentxOption, ) step.Option
GentxCommand returns the command to generate a gentx for the chain
func (ChainCmd) ImportKeyCommand ¶
ImportKeyCommand returns the command to import a key into the chain keyring from a key file
func (ChainCmd) InitCommand ¶
InitCommand returns the command to initialize the chain
func (ChainCmd) IsAutoChainIDDetectionEnabled ¶
func (ChainCmd) KeyringBackend ¶
func (c ChainCmd) KeyringBackend() KeyringBackend
KeyringBackend returns the underlying keyring backend.
func (ChainCmd) KeyringPassword ¶
KeyringPassword returns the underlying keyring password.
func (ChainCmd) LaunchpadRestServerCommand ¶
LaunchpadRestServerCommand returns the command to start the CLI REST server
func (ChainCmd) LaunchpadSetConfigCommand ¶
LaunchpadSetConfigCommand returns the command to set config value
func (ChainCmd) ListKeysCommand ¶
ListKeysCommand returns the command to print the list of a keys in the chain keyring
func (ChainCmd) QueryTxCommand ¶
QueryTxCommand returns the command to query tx
func (ChainCmd) QueryTxEventsCommand ¶
QueryTxEventsCommand returns the command to query events.
func (ChainCmd) RecoverKeyCommand ¶
RecoverKeyCommand returns the command to recover a key into the chain keyring from a mnemonic
func (ChainCmd) SDKVersion ¶
func (ChainCmd) ShowKeyAddressCommand ¶
ShowKeyAddressCommand returns the command to print the address of a key in the chain keyring
func (ChainCmd) ShowNodeIDCommand ¶
ShowNodeIDCommand returns the command to print the node ID of the node for the chain
func (ChainCmd) StartCommand ¶
StartCommand returns the command to start the daemon of the chain
func (ChainCmd) StatusCommand ¶
StatusCommand returns the command that fetches node's status.
func (ChainCmd) UnsafeResetCommand ¶
UnsafeResetCommand returns the command to reset the blockchain database
func (ChainCmd) ValidateGenesisCommand ¶
ValidateGenesisCommand returns the command to check the validity of the chain genesis
type GentxOption ¶
GentxOption for the GentxCommand
func GentxWithCommissionMaxChangeRate ¶
func GentxWithCommissionMaxChangeRate(commissionMaxChangeRate string) GentxOption
GentxWithCommissionMaxChangeRate provides commission max change rate option for the gentx command
func GentxWithCommissionMaxRate ¶
func GentxWithCommissionMaxRate(commissionMaxRate string) GentxOption
GentxWithCommissionMaxRate provides commission max rate option for the gentx command
func GentxWithCommissionRate ¶
func GentxWithCommissionRate(commissionRate string) GentxOption
GentxWithCommissionRate provides commission rate option for the gentx command
func GentxWithDetails ¶
func GentxWithDetails(details string) GentxOption
GentxWithDetails provides validator details option for the gentx command
func GentxWithGasPrices ¶
func GentxWithGasPrices(gasPrices string) GentxOption
GentxWithGasPrices provides gas price option for the gentx command
func GentxWithIdentity ¶
func GentxWithIdentity(identity string) GentxOption
GentxWithIdentity provides validator identity option for the gentx command
func GentxWithMinSelfDelegation ¶
func GentxWithMinSelfDelegation(minSelfDelegation string) GentxOption
GentxWithMinSelfDelegation provides minimum self delegation option for the gentx command
func GentxWithMoniker ¶
func GentxWithMoniker(moniker string) GentxOption
GentxWithMoniker provides moniker option for the gentx command
func GentxWithSecurityContact ¶
func GentxWithSecurityContact(securityContact string) GentxOption
GentxWithSecurityContact provides validator security contact option for the gentx command
func GentxWithWebsite ¶
func GentxWithWebsite(website string) GentxOption
GentxWithWebsite provides validator website option for the gentx command
type KeyringBackend ¶
type KeyringBackend string
const ( KeyringBackendUnspecified KeyringBackend = "" KeyringBackendOS KeyringBackend = "os" KeyringBackendFile KeyringBackend = "file" KeyringBackendPass KeyringBackend = "pass" KeyringBackendTest KeyringBackend = "test" KeyringBackendKwallet KeyringBackend = "kwallet" )
func KeyringBackendFromString ¶
func KeyringBackendFromString(kb string) (KeyringBackend, error)
KeyringBackendFromString returns the keyring backend from its string
type Option ¶
type Option func(*ChainCmd)
Option configures ChainCmd.
func WithAutoChainIDDetection ¶
func WithAutoChainIDDetection() Option
WithAutoChainIDDetection finds out the chain id by communicating with the node running.
func WithChainID ¶
WithChainID provides a specific chain ID for the commands that accept this option
func WithKeyringBackend ¶
func WithKeyringBackend(keyringBackend KeyringBackend) Option
WithKeyringBackend provides a specific keyring backend for the commands that accept this option
func WithKeyringPassword ¶
WithKeyringPassword provides a password to unlock keyring
func WithLaunchpadCLI ¶
WithLaunchpadCLI provides the CLI application name for the blockchain this is necessary for Launchpad applications since it has two different binaries but not needed by Stargate applications
func WithLaunchpadCLIHome ¶
WithLaunchpadCLIHome replaces the default home used by the Launchpad chain CLI
func WithLegacySendCommand ¶
func WithLegacySendCommand() Option
WithLegacySendCommand will make the command use the legacy tx send syntax from launchpad on stargate chains. e.g.: CosmWasm
func WithNodeAddress ¶
WithNodeAddress sets the node address for the commands that needs to make an API request to the node that has a different node address other than the default one.
func WithVersion ¶
WithVersion sets the version of the blockchain. when this is not provided, latest version of SDK is assumed.
type SimappOption ¶
SimappOption for the SimulateCommand
func SimappWithBlockSize ¶
func SimappWithBlockSize(blockSize int) SimappOption
SimappWithBlockSize provides blockSize option for the simapp command
func SimappWithCommit ¶
func SimappWithCommit(commit bool) SimappOption
SimappWithCommit provides commit option for the simapp command
func SimappWithEnable ¶
func SimappWithEnable(enable bool) SimappOption
SimappWithEnable provides enable option for the simapp command
func SimappWithExportParamsHeight ¶
func SimappWithExportParamsHeight(exportParamsHeight int) SimappOption
SimappWithExportParamsHeight provides exportParamsHeight option for the simapp command
func SimappWithExportParamsPath ¶
func SimappWithExportParamsPath(exportParamsPath string) SimappOption
SimappWithExportParamsPath provides exportParamsPath option for the simapp command
func SimappWithExportStatePath ¶
func SimappWithExportStatePath(exportStatePath string) SimappOption
SimappWithExportStatePath provides exportStatePath option for the simapp command
func SimappWithExportStatsPath ¶
func SimappWithExportStatsPath(exportStatsPath string) SimappOption
SimappWithExportStatsPath provides exportStatsPath option for the simapp command
func SimappWithGenesis ¶
func SimappWithGenesis(genesis string) SimappOption
SimappWithGenesis provides genesis option for the simapp command
func SimappWithGenesisTime ¶
func SimappWithGenesisTime(genesisTime int64) SimappOption
SimappWithGenesisTime provides genesisTime option for the simapp command
func SimappWithInitialBlockHeight ¶
func SimappWithInitialBlockHeight(initialBlockHeight int) SimappOption
SimappWithInitialBlockHeight provides initialBlockHeight option for the simapp command
func SimappWithLean ¶
func SimappWithLean(lean bool) SimappOption
SimappWithLean provides lean option for the simapp command
func SimappWithNumBlocks ¶
func SimappWithNumBlocks(numBlocks int) SimappOption
SimappWithNumBlocks provides numBlocks option for the simapp command
func SimappWithParams ¶
func SimappWithParams(params string) SimappOption
SimappWithParams provides params option for the simapp command
func SimappWithPeriod ¶
func SimappWithPeriod(period uint) SimappOption
SimappWithPeriod provides period option for the simapp command
func SimappWithPrintAllInvariants ¶
func SimappWithPrintAllInvariants(printAllInvariants bool) SimappOption
SimappWithPrintAllInvariants provides printAllInvariants option for the simapp command
func SimappWithSeed ¶
func SimappWithSeed(seed int64) SimappOption
SimappWithSeed provides seed option for the simapp command
func SimappWithSimulateEveryOperation ¶
func SimappWithSimulateEveryOperation(simulateEveryOperation bool) SimappOption
SimappWithSimulateEveryOperation provides simulateEveryOperation option for the simapp command
func SimappWithVerbose ¶
func SimappWithVerbose(verbose bool) SimappOption
SimappWithVerbose provides verbose option for the simapp command