Documentation
¶
Index ¶
- func GetCmd(testnetAppCreator types.AppCreator) *cobra.Command
- func NewCometABCIWrapper(app servertypes.ABCI) abci.Application
- func TrimQuotes(data string) string
- type AccAddress
- type ConsAddress
- type Keys
- type NodeKey
- type PrivValidatorKey
- type TestnetConfig
- type TestnetValidator
- type TestnetValidators
- type ValAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmd ¶
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 NewCometABCIWrapper ¶
func NewCometABCIWrapper(app servertypes.ABCI) abci.Application
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 ¶
type Keys struct {
Priv PrivValidatorKey `json:"priv"`
Node NodeKey `json:"node"`
}
type PrivValidatorKey ¶
type PrivValidatorKey struct {
Address types.Address `json:"address"`
PubKey crypto.PubKey `json:"pub_key"`
PrivKey crypto.PrivKey `json:"priv_key"`
}
func (*PrivValidatorKey) UnmarshalJSON ¶
func (k *PrivValidatorKey) UnmarshalJSON(data []byte) error
type TestnetConfig ¶
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 ¶
type TestnetValidator struct {
Moniker string `json:"moniker"`
Operator AccAddress `json:"operator"`
Status stakingtypes.BondStatus `json:"status"`
Commission stakingtypes.Commission `json:"commission"`
MinSelfDelegation sdkmath.Int `json:"min_self_delegation"`
Home string `json:"home"`
Delegations []akash.TestnetDelegation `json:"delegations"`
// contains filtered or unexported fields
}
type TestnetValidators ¶
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.