testnetify

package
v0.32.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

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

func TrimQuotes(data string) string

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 AuthState

type AuthState struct {
	// contains filtered or unexported fields
}

type BankState

type BankState struct {
	// contains filtered or unexported fields
}

type CertState

type CertState 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 added in v0.22.8

func (ga *GenesisState) DecreaseSupply(cdc codec.Codec, coins ...sdk.Coin) error

func (*GenesisState) DelegateToPool added in v0.22.8

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 added in v0.22.8

func (ga *GenesisState) IncreaseSupply(cdc codec.Codec, coins ...sdk.Coin) error

func (*GenesisState) SendFromModuleToModule added in v0.22.8

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 GovState

type GovState struct {
	// contains filtered or unexported fields
}

type IBCConfig

type IBCConfig struct {
	Prune bool `json:"prune"`
}

type IBCState

type IBCState struct {
	// contains filtered or unexported fields
}

type JSONCoin added in v0.22.5

type JSONCoin struct {
	sdk.Coin
}

func (*JSONCoin) UnmarshalJSON added in v0.22.5

func (k *JSONCoin) UnmarshalJSON(data []byte) error

type JSONCoins added in v0.22.5

type JSONCoins []JSONCoin

func (JSONCoins) ToSDK added in v0.22.5

func (k JSONCoins) ToSDK() sdk.Coins

type MarketState

type MarketState struct {
	// contains filtered or unexported fields
}

type ProviderState

type ProviderState struct {
	// contains filtered or unexported fields
}

type PubKey

type PubKey struct {
	cryptotypes.PubKey
}

func (*PubKey) UnmarshalJSON

func (k *PubKey) UnmarshalJSON(data []byte) error

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

type VotingPeriod struct {
	time.Duration
}

func (*VotingPeriod) UnmarshalJSON

func (t *VotingPeriod) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL