Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagTraceStore = "trace-store" FlagTestnetRootDir = "testnet-rootdir" KeyTestnetRootDir = FlagTestnetRootDir KeyIsTestnet = "is-testnet" KeyTestnetConfig = "testnet-config" KeyTestnetTriggerUpgrade = "testnet-trigger-upgrade" )
Variables ¶
This section is empty.
Functions ¶
func GetCmd ¶ added in v0.38.5
func GetCmd(testnetAppCreator types.AppCreator) *cobra.Command
GetCmd uses the provided chainID and operatorAddress as well as the local private validator key to control the network represented in the data folder. This is useful to create testnets nearly identical to your mainnet environment.
func TrimQuotes ¶
Types ¶
type AccAddress ¶
type AccAddress struct {
sdk.AccAddress
}
func (*AccAddress) UnmarshalJSON ¶
func (s *AccAddress) UnmarshalJSON(data []byte) error
type ConsAddress ¶
type ConsAddress struct {
sdk.ConsAddress
}
func (*ConsAddress) UnmarshalJSON ¶
func (s *ConsAddress) UnmarshalJSON(data []byte) error
type Keys ¶ added in v0.38.5
type Keys struct {
Priv PrivValidatorKey `json:"priv"`
Node NodeKey `json:"node"`
}
type PrivValidatorKey ¶ added in v0.38.5
type PrivValidatorKey struct {
Address types.Address `json:"address"`
PubKey crypto.PubKey `json:"pub_key"`
PrivKey crypto.PrivKey `json:"priv_key"`
}
func (*PrivValidatorKey) UnmarshalJSON ¶ added in v0.38.5
func (k *PrivValidatorKey) UnmarshalJSON(data []byte) error
type TestnetConfig ¶ added in v0.38.5
type TestnetConfig struct {
ChainID string `json:"chain_id"`
Validators TestnetValidators `json:"validators"`
Accounts []akash.TestnetAccount `json:"accounts"`
Gov akash.TestnetGovConfig `json:"gov"`
// contains filtered or unexported fields
}
type TestnetValidator ¶ added in v0.38.5
type TestnetValidator struct {
Moniker string `json:"moniker"`
Operator AccAddress `json:"operator"`
Status stakingtypes.BondStatus `json:"status"`
Commission stakingtypes.Commission `json:"commission"`
MinSelfDelegation sdk.Int `json:"min_self_delegation"`
Home string `json:"home"`
Delegations []akash.TestnetDelegation `json:"delegations"`
// contains filtered or unexported fields
}
type TestnetValidators ¶ added in v0.38.5
type TestnetValidators []TestnetValidator
type ValAddress ¶
type ValAddress struct {
sdk.ValAddress
}
func (*ValAddress) UnmarshalJSON ¶
func (s *ValAddress) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.