utils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 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"`
}

JumpstartTxnJSON defines a JumpStart JSON input to be parsed from a JSON file.

func NewAllowListedValidatorSetChangeProposalJSON

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

NewAllowListedValidatorSetChangeProposalJSON returns AllowListedValidatorSetChangeProposalJSON struct with input values

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:"gstake_params" yaml:"gstake_params"`
	HostAccounts          types.HostAccounts          `json:"host_accounts" yaml:"host_accounts"`
}

JumpstartTxnJSON defines a Jump start JSON input to be parsed from a JSON file.

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:"gstake_deposit_fee" yaml:"gstake_deposit_fee"`
	PstakeRestakeFee    string `json:"gstake_restake_fee" yaml:"gstake_restake_fee"`
	PstakeUnstakeFee    string `json:"gstake_unstake_fee" yaml:"gstake_unstake_fee"`
	PstakeRedemptionFee string `json:"gstake_redemption_fee" yaml:"gstake_redemption_fee"`
	Deposit             string `json:"deposit" yaml:"deposit"`
}

MinDepositAndFeeChangeProposalJSON defines a MinDepositAndFeeChangeProposal JSON input to be parsed from a JSON file. Deposit is used by gov module to change status of proposal.

func NewMinDepositAndFeeChangeJSON

func NewMinDepositAndFeeChangeJSON(title, description, minDeposit, gstakeDepositFee, gstakeRestakeFee,
	gstakeUnstakeFee, gstakeRedemptionFee, deposit string) MinDepositAndFeeChangeProposalJSON

NewMinDepositAndFeeChangeJSON returns MinDepositAndFeeChangeProposalJSON struct with input values

func ParseMinDepositAndFeeChangeProposalJSON

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

ParseMinDepositAndFeeChangeProposalJSON reads and parses a MinDepositAndFeeChangeProposalJSON from file.

type PstakeFeeAddressChangeProposalJSON added in v0.1.4

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

PstakeFeeAddressChangeProposalJSON defines a PstakeFeeAddressChangeProposal JSON input to be parsed from a JSON file. Deposit is used by gov module to change status of proposal.

func NewPstakeFeeAddressChangeProposalJSON added in v0.1.4

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

NewPstakeFeeAddressChangeProposalJSON returns PstakeFeeAddressChangeProposalJSON struct with input values

func ParsePstakeFeeAddressChangeProposalJSON added in v0.1.4

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

ParsePstakeFeeAddressChangeProposalJSON reads and parses a PstakeFeeAddressChangeProposal from file.

type PstakeParams added in v0.1.4

type PstakeParams struct {
	PstakeDepositFee    string `json:"gstake_deposit_fee" yaml:"gstake_deposit_fee"`
	PstakeRestakeFee    string `json:"gstake_restake_fee" yaml:"gstake_restake_fee"`
	PstakeUnstakeFee    string `json:"gstake_unstake_fee" yaml:"gstake_unstake_fee"`
	PstakeRedemptionFee string `json:"gstake_redemption_fee" yaml:"gstake_redemption_fee"`
	PstakeFeeAddress    string `json:"gstake_fee_address" yaml:"gstake_fee_address"`
}

PstakeParams defines the fees and address for register host chain proposal's PstakeParams

Jump to

Keyboard shortcuts

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