Documentation ¶
Index ¶
- func Cmd() *cobra.Command
- func GetDistributionGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *distributiontypes.GenesisState
- func GetGovGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *govtypes.GenesisState
- func GetIBCGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *ibccoretypes.GenesisState
- func GetSlashingGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *slashingtypes.GenesisState
- func TrimQuotes(data string) string
- type AccAddress
- type AccountConfig
- type AccountsConfig
- type AuditState
- type AuthState
- type BankState
- type CertState
- type ConsAddress
- type Delegator
- type DeploymentState
- type DistributionState
- type EscrowConfig
- type EscrowState
- type GenesisState
- func (ga *GenesisState) AddNewAccount(cdc codec.Codec, addr sdk.AccAddress, pubkey cryptotypes.PubKey) error
- func (ga *GenesisState) AddNewValidator(cdc codec.Codec, addr sdk.ValAddress, pk cryptotypes.PubKey, name string, ...) error
- func (ga *GenesisState) DecreaseBalances(cdc codec.Codec, addr sdk.AccAddress, coins sdk.Coins) error
- func (ga *GenesisState) DecreaseSupply(cdc codec.Codec, coins ...sdk.Coin) error
- func (ga *GenesisState) DelegateToPool(cdc codec.Codec, from, to sdk.AccAddress, amt sdk.Coins) error
- func (ga *GenesisState) IncreaseBalances(cdc codec.Codec, addr sdk.AccAddress, coins sdk.Coins) error
- func (ga *GenesisState) IncreaseDelegatorStake(cdc codec.Codec, addr sdk.AccAddress, val sdk.ValAddress, coins sdk.Coins) error
- func (ga *GenesisState) IncreaseSupply(cdc codec.Codec, coins ...sdk.Coin) error
- func (ga *GenesisState) SendFromModuleToModule(cdc codec.Codec, from, to sdk.AccAddress, amt sdk.Coins) error
- type GenesisValidators
- type GovConfig
- type GovState
- type IBCConfig
- type IBCState
- type JSONCoin
- type JSONCoins
- type MarketState
- type ProviderState
- type PubKey
- type SlashingState
- type StakingState
- type StakingValidators
- type ValAddress
- type ValidatorConfig
- type ValidatorsConfig
- type VotingPeriod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistributionGenesisStateFromAppState ¶
func GetDistributionGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *distributiontypes.GenesisState
func GetGovGenesisStateFromAppState ¶
func GetGovGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *govtypes.GenesisState
func GetIBCGenesisStateFromAppState ¶
func GetIBCGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *ibccoretypes.GenesisState
func GetSlashingGenesisStateFromAppState ¶
func GetSlashingGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *slashingtypes.GenesisState
func TrimQuotes ¶
Types ¶
type AccAddress ¶
type AccAddress struct {
sdk.AccAddress
}
func (*AccAddress) UnmarshalJSON ¶
func (s *AccAddress) UnmarshalJSON(data []byte) error
type AccountConfig ¶
type AccountConfig struct { Address AccAddress `json:"address"` PubKey PubKey `json:"pubkey"` Coins JSONCoins `json:"coins,omitempty"` }
type AccountsConfig ¶
type AccountsConfig struct { Add []AccountConfig `json:"add,omitempty"` Del []AccAddress `json:"del,omitempty"` }
type AuditState ¶
type AuditState struct {
// contains filtered or unexported fields
}
type ConsAddress ¶
type ConsAddress struct {
sdk.ConsAddress
}
func (*ConsAddress) UnmarshalJSON ¶
func (s *ConsAddress) UnmarshalJSON(data []byte) error
type Delegator ¶
type Delegator struct { Address AccAddress `json:"address"` Coins JSONCoins `json:"coins"` }
type DeploymentState ¶
type DeploymentState struct {
// contains filtered or unexported fields
}
type DistributionState ¶
type DistributionState struct {
// contains filtered or unexported fields
}
type EscrowConfig ¶
type EscrowConfig struct {
PatchDanglingPayments bool `json:"patch_dangling_payments"`
}
type EscrowState ¶
type EscrowState struct {
// contains filtered or unexported fields
}
type GenesisState ¶
type GenesisState struct {
// contains filtered or unexported fields
}
func NewGenesisState ¶
func NewGenesisState(sp *yacspin.Spinner, state map[string]json.RawMessage, doc *tmtypes.GenesisDoc) (*GenesisState, error)
func (*GenesisState) AddNewAccount ¶
func (ga *GenesisState) AddNewAccount(cdc codec.Codec, addr sdk.AccAddress, pubkey cryptotypes.PubKey) error
func (*GenesisState) AddNewValidator ¶
func (ga *GenesisState) AddNewValidator( cdc codec.Codec, addr sdk.ValAddress, pk cryptotypes.PubKey, name string, rates stakingtypes.CommissionRates, ) error
func (*GenesisState) DecreaseBalances ¶
func (ga *GenesisState) DecreaseBalances(cdc codec.Codec, addr sdk.AccAddress, coins sdk.Coins) error
func (*GenesisState) DecreaseSupply ¶
func (*GenesisState) DelegateToPool ¶
func (ga *GenesisState) DelegateToPool(cdc codec.Codec, from, to sdk.AccAddress, amt sdk.Coins) error
func (*GenesisState) IncreaseBalances ¶
func (ga *GenesisState) IncreaseBalances(cdc codec.Codec, addr sdk.AccAddress, coins sdk.Coins) error
IncreaseBalances increases the balance of an account and the overall supply of corresponding token by the same amount
func (*GenesisState) IncreaseDelegatorStake ¶
func (ga *GenesisState) IncreaseDelegatorStake( cdc codec.Codec, addr sdk.AccAddress, val sdk.ValAddress, coins sdk.Coins, ) error
func (*GenesisState) IncreaseSupply ¶
func (*GenesisState) SendFromModuleToModule ¶
func (ga *GenesisState) SendFromModuleToModule(cdc codec.Codec, from, to sdk.AccAddress, amt sdk.Coins) error
type GenesisValidators ¶
type GenesisValidators []tmtypes.GenesisValidator
func (GenesisValidators) Len ¶
func (u GenesisValidators) Len() int
func (GenesisValidators) Less ¶
func (u GenesisValidators) Less(i, j int) bool
func (GenesisValidators) Swap ¶
func (u GenesisValidators) Swap(i, j int)
type GovConfig ¶
type GovConfig struct { VotingParams *struct { VotingPeriod VotingPeriod `json:"voting_period,omitempty"` } `json:"voting_params,omitempty"` }
type JSONCoin ¶
func (*JSONCoin) UnmarshalJSON ¶
type MarketState ¶
type MarketState struct {
// contains filtered or unexported fields
}
type ProviderState ¶
type ProviderState struct {
// contains filtered or unexported fields
}
type SlashingState ¶
type SlashingState struct {
// contains filtered or unexported fields
}
type StakingState ¶
type StakingState struct {
// contains filtered or unexported fields
}
type StakingValidators ¶
type StakingValidators []stakingtypes.Validator
func (StakingValidators) Len ¶
func (u StakingValidators) Len() int
func (StakingValidators) Less ¶
func (u StakingValidators) Less(i, j int) bool
func (StakingValidators) Swap ¶
func (u StakingValidators) Swap(i, j int)
type ValAddress ¶
type ValAddress struct {
sdk.ValAddress
}
func (*ValAddress) UnmarshalJSON ¶
func (s *ValAddress) UnmarshalJSON(data []byte) error
type ValidatorConfig ¶
type ValidatorConfig struct { PubKey PubKey `json:"pubkey"` Name string `json:"name"` Bonded bool `json:"bonded"` Delegators []Delegator `json:"delegators,omitempty"` Rates stakingtypes.CommissionRates `json:"rates"` }
type ValidatorsConfig ¶
type ValidatorsConfig struct { Add []ValidatorConfig `json:"add,omitempty"` Del []AccAddress `json:"del,omitempty"` }
type VotingPeriod ¶
func (*VotingPeriod) UnmarshalJSON ¶
func (t *VotingPeriod) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.