utils

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowListedValidatorSetChangeProposalJSON

type AllowListedValidatorSetChangeProposalJSON struct {
	Title                 string                      `json:"title" yaml:"title"`
	Description           string                      `json:"description" yaml:"description"`
	AllowListedValidators types.AllowListedValidators `json:"allow_listed_validators" yaml:"allow_listed_validators"`
	Deposit               string                      `json:"deposit" yaml:"deposit"`
}

func NewAllowListedValidatorSetChangeProposalJSON

func NewAllowListedValidatorSetChangeProposalJSON(title, description, deposit string, allowListedValidators types.AllowListedValidators) AllowListedValidatorSetChangeProposalJSON

func ParseAllowListedValidatorSetChangeProposalJSON

func ParseAllowListedValidatorSetChangeProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (AllowListedValidatorSetChangeProposalJSON, error)

ParseAllowListedValidatorSetChangeProposalJSON reads and parses a AllowListedValidatorSetChangeProposalJSON from file.

type JumpstartTxnJSON

type JumpstartTxnJSON struct {
	ChainID               string                      `json:"chain_id" yaml:"chain_id"`
	ConnectionID          string                      `json:"connection_id" yaml:"connection_id"`
	TransferChannel       string                      `json:"transfer_channel" yaml:"transfer_channel"`
	TransferPort          string                      `json:"transfer_port" yaml:"transfer_port"`
	BaseDenom             string                      `json:"base_denom" yaml:"base_denom"`
	MintDenom             string                      `json:"mint_denom" yaml:"mint_denom"`
	MinDeposit            string                      `json:"min_deposit" yaml:"min_deposit"`
	AllowListedValidators types.AllowListedValidators `json:"allow_listed_validators" yaml:"allow_listed_validators"`
	PstakeParams          PstakeParams                `json:"pstake_params" yaml:"pstake_params"`
	HostAccounts          types.HostAccounts          `json:"host_accounts" yaml:"host_accounts"`
}

func ParseJumpstartTxnJSON

func ParseJumpstartTxnJSON(cdc *codec.LegacyAmino, file string) (JumpstartTxnJSON, error)

ParseJumpstartTxnJSON reads and parses a JumpstartTxnJSON from file.

type MinDepositAndFeeChangeProposalJSON

type MinDepositAndFeeChangeProposalJSON struct {
	Title               string `json:"title" yaml:"title"`
	Description         string `json:"description" yaml:"description"`
	MinDeposit          string `json:"min_deposit" yaml:"min_deposit"`
	PstakeDepositFee    string `json:"pstake_deposit_fee" yaml:"pstake_deposit_fee"`
	PstakeRestakeFee    string `json:"pstake_restake_fee" yaml:"pstake_restake_fee"`
	PstakeUnstakeFee    string `json:"pstake_unstake_fee" yaml:"pstake_unstake_fee"`
	PstakeRedemptionFee string `json:"pstake_redemption_fee" yaml:"pstake_redemption_fee"`
	Deposit             string `json:"deposit" yaml:"deposit"`
}

func NewMinDepositAndFeeChangeJSON

func NewMinDepositAndFeeChangeJSON(title, description, minDeposit, pstakeDepositFee, pstakeRestakeFee,
	pstakeUnstakeFee, pstakeRedemptionFee, deposit string) MinDepositAndFeeChangeProposalJSON

func ParseMinDepositAndFeeChangeProposalJSON

func ParseMinDepositAndFeeChangeProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (MinDepositAndFeeChangeProposalJSON, error)

ParseMinDepositAndFeeChangeProposalJSON reads and parses a MinDepositAndFeeChangeProposal from file.

type PstakeFeeAddressChangeProposalJSON

type PstakeFeeAddressChangeProposalJSON struct {
	Title            string `json:"title" yaml:"title"`
	Description      string `json:"description" yaml:"description"`
	PstakeFeeAddress string `json:"pstake_fee_address" yaml:"pstake_fee_address"`
	Deposit          string `json:"deposit" yaml:"deposit"`
}

func NewPstakeFeeAddressChangeProposalJSON

func NewPstakeFeeAddressChangeProposalJSON(title, description, pstakeFeeAddress, deposit string) PstakeFeeAddressChangeProposalJSON

func ParsePstakeFeeAddressChangeProposalJSON

func ParsePstakeFeeAddressChangeProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (PstakeFeeAddressChangeProposalJSON, error)

ParsePstakeFeeAddressChangeProposalJSON reads and parses a PstakeFeeAddressChangeProposal from file.

type PstakeParams

type PstakeParams struct {
	PstakeDepositFee    string `json:"pstake_deposit_fee" yaml:"pstake_deposit_fee"`
	PstakeRestakeFee    string `json:"pstake_restake_fee" yaml:"pstake_restake_fee"`
	PstakeUnstakeFee    string `json:"pstake_unstake_fee" yaml:"pstake_unstake_fee"`
	PstakeRedemptionFee string `json:"pstake_redemption_fee" yaml:"pstake_redemption_fee"`
	PstakeFeeAddress    string `json:"pstake_fee_address" yaml:"pstake_fee_address"`
}

type RegisterHostChainProposalJSON

type RegisterHostChainProposalJSON struct {
	Title                 string                      `json:"title" yaml:"title"`
	Description           string                      `json:"description" yaml:"description"`
	ModuleEnabled         bool                        `json:"module_enabled" yaml:"module_enabled"`
	ChainID               string                      `json:"chain_id" yaml:"chain_id"`
	ConnectionID          string                      `json:"connection_id" yaml:"connection_id"`
	TransferChannel       string                      `json:"transfer_channel" yaml:"transfer_channel"`
	TransferPort          string                      `json:"transfer_port" yaml:"transfer_port"`
	BaseDenom             string                      `json:"base_denom" yaml:"base_denom"`
	MintDenom             string                      `json:"mint_denom" yaml:"mint_denom"`
	MinDeposit            string                      `json:"min_deposit" yaml:"min_deposit"`
	AllowListedValidators types.AllowListedValidators `json:"allow_listed_validators" yaml:"allow_listed_validators"`
	PstakeParams          PstakeParams                `json:"pstake_params" yaml:"pstake_params"`
	Deposit               string                      `json:"deposit" yaml:"deposit"`
}

func NewRegisterChainJSON

func NewRegisterChainJSON(title, description string, moduleEnabled bool, chainID, connectionID, transferChannel, transferPort,
	baseDenom, mintDenom, minDeposit, pstakeFeeAddress, pstakeDepositFee, pstakeRestakeFee, pstakeUnstakeFee, pstakeRedemptionFee, deposit string, allowListedValidators types.AllowListedValidators) RegisterHostChainProposalJSON

func ParseRegisterHostChainProposalJSON

func ParseRegisterHostChainProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (RegisterHostChainProposalJSON, error)

ParseRegisterHostChainProposalJSON reads and parses a RegisterHostChainProposalJSON from file.

Jump to

Keyboard shortcuts

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