model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 1 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address string `json:"address"` //
	Type    string `json:"type"`    //
	Height  int64  `json:"height"`  //
}

type AccountBalance

type AccountBalance struct {
	Address string `json:"address"` //
	Height  int64  `json:"height"`  //
	Coins   Coins  `json:"coins"`   //
}

type AcknowledgementMessage

type AcknowledgementMessage struct {
	SourcePort         string `json:"source_port"`         //
	SourceChannel      string `json:"source_channel"`      //
	DestinationPort    string `json:"destination_port"`    //
	DestinationChannel string `json:"destination_channel"` //
	Data               []byte `json:"data"`                //
	TimeoutTimestamp   uint64 `json:"timeout_timestamp"`   //
	Signer             string `json:"signer"`              //
	Height             int64  `json:"height"`              //
	MsgIndex           int64  `json:"msg_index"`           //
	TxHash             string `json:"tx_hash"`             //
}

type AnnualProvision

type AnnualProvision struct {
	Height           int64   `json:"height"`            //
	Amount           int64   `json:"amount"`            //
	AnnualProvisions float64 `json:"annual_provisions"` //
	BondedRatio      float64 `json:"bonded_ratio"`      //
	Inflation        float64 `json:"inflation"`         //
}

type AuthzGrant

type AuthzGrant struct {
	Height         int64     `json:"height"`          //
	GranterAddress string    `json:"granter_address"` //
	GranteeAddress string    `json:"grantee_address"` //
	MsgType        string    `json:"msg_type"`        //
	Expiration     time.Time `json:"expiration"`      //
}

type BandwidthParams added in v1.2.0

type BandwidthParams struct {
	Height int64              `json:"height"` //
	Params RawBandwidthParams `json:"params"` //
}

BandwidthParams represents bandwidth params

type Block

type Block struct {
	Height          int64     `json:"height"`           //
	Hash            string    `json:"hash"`             //
	NumTxs          int64     `json:"num_txs"`          //
	TotalGas        uint64    `json:"total_gas"`        //
	ProposerAddress string    `json:"proposer_address"` //
	Timestamp       time.Time `json:"timestamp"`        //
}

type CancelUnbondingDelegationMessage

type CancelUnbondingDelegationMessage struct {
	Height           int64  `json:"height"`            //
	TxHash           string `json:"tx_hash"`           //
	MsgIndex         int64  `json:"msg_index"`         //
	ValidatorAddress string `json:"validator_address"` //
	DelegatorAddress string `json:"delegator_address"` //
}

type Coin

type Coin struct {
	Denom  string  `json:"denom"`  //
	Amount float64 `json:"amount"` //
}

type Coins

type Coins []Coin

type CommunityPool

type CommunityPool struct {
	Coins  Coins `json:"coins"`  //
	Height int64 `json:"height"` //
}

type CreateRouteMessage added in v1.2.0

type CreateRouteMessage struct {
	Source      string `json:"source"`      //
	Destination string `json:"destination"` //
	Name        string `json:"name"`        //
	TxHash      string `json:"tx_hash"`     //
	Height      int64  `json:"height"`      //
	MsgIndex    int64  `json:"msg_index"`   //
}

type CreateValidatorMessage

type CreateValidatorMessage struct {
	Height            int64                       `json:"height"`              //
	TxHash            string                      `json:"tx_hash"`             //
	MsgIndex          int64                       `json:"msg_index"`           //
	DelegatorAddress  string                      `json:"delegator_address"`   //
	ValidatorAddress  string                      `json:"validator_address"`   //
	Description       ValidatorMessageDescription `json:"description"`         //
	CommissionRates   float64                     `json:"commission_rates"`    //
	MinSelfDelegation int64                       `json:"min_self_delegation"` //
	Pubkey            string                      `json:"pubkey"`              //
}
type Cyberlink struct {
	ParticleFrom string `json:"particle_from"` //
	ParticleTo   string `json:"particle_to"`   //
	Neuron       string `json:"neuron"`        //
	Timestamp    string `json:"timestamp"`     //
	TxHash       string `json:"tx_hash"`       //
	Height       int64  `json:"height"`        //
}

Cyberlink represents cyber_link

type CyberlinkMessage added in v1.1.2

type CyberlinkMessage struct {
	TxHash       string `json:"tx_hash"`       //
	Neuron       string `json:"neuron"`        //
	ParticleFrom string `json:"particle_from"` //
	ParticleTo   string `json:"particle_to"`   //
	Height       int64  `json:"height"`        //
	MsgIndex     int64  `json:"msg_index"`     //
	LinkIndex    int64  `json:"link_index"`    //
}

CyberlinkMessage represents cyber_link message

type DMNParams added in v1.2.0

type DMNParams struct {
	Height int64        `json:"height"` //
	Params RawDMNParams `json:"params"` //
}

DMNParams represents RawDMNParams with Height

type Delegation

type Delegation struct {
	OperatorAddress  string `json:"operator_address"`  //
	DelegatorAddress string `json:"delegator_address"` //
	Coin             Coin   `json:"coin"`              //
	Height           int64  `json:"height"`            //
	IsActive         bool   `json:"is_active"`         //
}

type DelegationMessage

type DelegationMessage struct {
	Delegation
	TxHash   string `json:"tx_hash"`   //
	MsgIndex int64  `json:"msg_index"` //
}

type DelegationReward

type DelegationReward struct {
	Height           int64  `json:"height"`            //
	OperatorAddress  string `json:"operator_address"`  //
	DelegatorAddress string `json:"delegator_address"` //
	WithdrawAddress  string `json:"withdraw_address"`  //
	Coins            Coins  `json:"coins"`             //
}

type DelegationRewardMessage

type DelegationRewardMessage struct {
	Coins            Coins  `json:"coins"`             //
	Height           int64  `json:"height"`            //
	DelegatorAddress string `json:"delegator_address"` //
	OperatorAddress  string `json:"operator_address"`  //
	TxHash           string `json:"tx_hash"`           //
	MsgIndex         int64  `json:"msg_index"`         //
}

type DeleteRouteMessage added in v1.2.0

type DeleteRouteMessage struct {
	Source      string `json:"source"`      //
	Destination string `json:"destination"` //
	TxHash      string `json:"tx_hash"`     //
	Height      int64  `json:"height"`      //
	MsgIndex    int64  `json:"msg_index"`   //
}

type DenomTrace added in v0.1.1

type DenomTrace struct {
	DenomHash string `json:"denom_hash"` //
	Path      string `json:"path"`       //
	BaseDenom string `json:"base_denom"` //
}

type DepositParams

type DepositParams struct {
	MinDeposit       Coins `json:"min_deposit,omitempty"`        //
	MaxDepositPeriod int64 `json:"max_deposit_period,omitempty"` //
}

DepositParams contains the data of the deposit parameters of the x/gov module

type DistributionCommission

type DistributionCommission struct {
	Height          int64  `json:"height"`           //
	OperatorAddress string `json:"operator_address"` //
	Amount          Coin   `json:"amount"`           //
}

type DistributionParams

type DistributionParams struct {
	Height int64                 `json:"height"` //
	Params RawDistributionParams `json:"params"` //
}

type DistributionReward

type DistributionReward struct {
	Height          int64  `json:"height"`           //
	OperatorAddress string `json:"operator_address"` //
	Amount          Coin   `json:"amount"`           //
}

type EditRouteMessage added in v1.2.0

type EditRouteMessage struct {
	Source      string `json:"source"`      //
	Destination string `json:"destination"` //
	Value       Coin   `json:"value"`       //
	TxHash      string `json:"tx_hash"`     //
	Height      int64  `json:"height"`      //
	MsgIndex    int64  `json:"msg_index"`   //
}

type EditRouteNameMessage added in v1.2.0

type EditRouteNameMessage struct {
	Source      string `json:"source"`      //
	Destination string `json:"destination"` //
	Name        string `json:"name"`        //
	TxHash      string `json:"tx_hash"`     //
	Height      int64  `json:"height"`      //
	MsgIndex    int64  `json:"msg_index"`   //
}

type EditValidatorMessage

type EditValidatorMessage struct {
	Height      int64                       `json:"height"`      //
	Hash        string                      `json:"tx_hash"`     //
	Index       int64                       `json:"msg_index"`   //
	Description ValidatorMessageDescription `json:"description"` //
}

type ExecMessage

type ExecMessage struct {
	Height   int64    `json:"height"`    //
	MsgIndex int64    `json:"msg_index"` //
	TxHash   string   `json:"tx_hash"`   //
	Grantee  string   `json:"grantee"`   //
	Msgs     [][]byte `json:"msgs"`      //
}

type Fee

type Fee struct {
	Coins    Coins  `json:"coins"`     //
	GasLimit uint64 `json:"gas_limit"` //
	Payer    string `json:"payer"`     //
	Granter  string `json:"granter"`   //
}

type FeeAllowance

type FeeAllowance struct {
	Height     int64     `json:"height"`     //
	Granter    string    `json:"granter"`    //
	Grantee    string    `json:"grantee"`    //
	Allowance  []byte    `json:"allowance"`  //
	Expiration time.Time `json:"expiration"` //
}

type GovParams

type GovParams struct {
	DepositParams DepositParams `json:"deposit_params"` //
	VotingParams  VotingParams  `json:"voting_params"`  //
	TallyParams   TallyParams   `json:"tally_params"`   //
	Height        int64         `json:"height"`         //
}

type GrantAllowanceMessage

type GrantAllowanceMessage struct {
	Height     int64     `json:"height"`     //
	MsgIndex   int64     `json:"msg_index"`  //
	TxHash     string    `json:"tx_hash"`    //
	Granter    string    `json:"granter"`    //
	Grantee    string    `json:"grantee"`    //
	Expiration time.Time `json:"expiration"` //
	Allowance  []byte    `json:"allowance"`  //
}

type GrantMessage

type GrantMessage struct {
	Height     int64     `json:"height"`     //
	MsgIndex   int64     `json:"msg_index"`  //
	TxHash     string    `json:"tx_hash"`    //
	Granter    string    `json:"granter"`    //
	Grantee    string    `json:"grantee"`    //
	MsgType    string    `json:"msg_type"`   //
	Expiration time.Time `json:"expiration"` //
}

type GridParams added in v1.2.0

type GridParams struct {
	Height int64         `json:"height"` //
	Params RawGridParams `json:"params"` //
}

GridParams represents RawGridParams with Height

type HandleValidatorSignature

type HandleValidatorSignature struct {
	OperatorAddress string `json:"operator_address"` //
	Power           string `json:"power"`            //
	Reason          string `json:"reason"`           //
	Jailed          string `json:"jailed"`           //
	Burned          Coin   `json:"burned"`           //
	Height          int64  `json:"height"`           //
}

type InvestmintMessage added in v1.2.0

type InvestmintMessage struct {
	Height   int64  `json:"height"`    //
	MsgIndex int64  `json:"msg_index"` //
	TxHash   string `json:"tx_hash"`   //
	Neuron   string `json:"neuron"`    //
	Amount   Coin   `json:"amount"`    //
	Resource string `json:"resource"`  //
	Length   uint64 `json:"length"`    //
}

InvestmintMessage represents investmint message

type LiquidityPool added in v0.1.5

type LiquidityPool struct {
	PoolID                uint64 `json:"pool_id"`                 //
	ReserveAccountAddress string `json:"reserve_account_address"` //
	ADenom                string `json:"a_denom"`                 //
	BDenom                string `json:"b_denom"`                 //
	PoolCoinDenom         string `json:"pool_coin_denom"`         //
	LiquidityA            Coin   `json:"liquidity_a"`             //
	LiquidityB            Coin   `json:"liquidity_b"`             //
}

type Message

type Message struct {
	TransactionHash           string   `json:"transaction_hash"`            //
	Type                      string   `json:"type"`                        //
	Signer                    string   `json:"signer"`                      //
	InvolvedAccountsAddresses []string `json:"involved_accounts_addresses"` //
	Value                     []byte   `json:"value"`                       //
	MsgIndex                  int64    `json:"msg_index"`                   //
}

type MintParams

type MintParams struct {
	Height int64         `json:"height"` //
	Params RawMintParams `json:"params"` //
}

type MultiSendMessage

type MultiSendMessage struct {
	Coins       Coins    `json:"coins"`        //
	AddressFrom string   `json:"address_from"` //
	AddressesTo []string `json:"addresses_to"` //
	TxHash      string   `json:"tx_hash"`      //
	Height      int64    `json:"height"`       //
	MsgIndex    int64    `json:"msg_index"`    //
}

type Particle added in v1.2.0

type Particle struct {
	Particle  string `json:"particle"`  //
	Neuron    string `json:"neuron"`    //
	Timestamp string `json:"timestamp"` //
	TxHash    string `json:"tx_hash"`   //
	Height    int64  `json:"height"`    //
}

Particle represents a particle

type Proposal

type Proposal struct {
	ID              uint64    `json:"id"`                //
	Title           string    `json:"title"`             //
	Description     string    `json:"description"`       //
	ProposalRoute   string    `json:"proposal_route"`    //
	ProposalType    string    `json:"proposal_type"`     //
	ProposerAddress string    `json:"proposer_address"`  //
	Status          string    `json:"status"`            //
	Content         []byte    `json:"content"`           //
	SubmitTime      time.Time `json:"submit_time"`       //
	DepositEndTime  time.Time `json:"deposit_end_time"`  //
	VotingStartTime time.Time `json:"voting_start_time"` //
	VotingEndTime   time.Time `json:"voting_end_time"`   //
}

type ProposalDeposit

type ProposalDeposit struct {
	ProposalID       uint64 `json:"proposal_id"`       //
	DepositorAddress string `json:"depositor_address"` //
	Coins            Coins  `json:"coins"`             //
	Height           int64  `json:"height"`            //
}

type ProposalDepositMessage

type ProposalDepositMessage struct {
	ProposalDeposit
	TxHash   string `json:"tx_hash"`   //
	MsgIndex int64  `json:"msg_index"` //
}

type ProposalTallyResult

type ProposalTallyResult struct {
	ProposalID uint64 `json:"proposal_id"`  //
	Yes        int64  `json:"yes"`          //
	No         int64  `json:"no"`           //
	Abstain    int64  `json:"abstain"`      //
	NoWithVeto int64  `json:"no_with_veto"` //
	Height     int64  `json:"height"`       //
}

type ProposalVoteMessage

type ProposalVoteMessage struct {
	ProposalID   uint64 `json:"proposal_id"` //
	VoterAddress string `json:"voter"`       //
	Option       string `json:"option"`      //
	TxHash       string `json:"tx_hash"`     //
	Height       int64  `json:"height"`      //
	MsgIndex     int64  `json:"msg_index"`   //
}

type ProposerReward

type ProposerReward struct {
	Height          int64  `json:"height"`           //
	OperatorAddress string `json:"operator_address"` //
	Reward          Coin   `json:"reward"`           //
}

type RankParams added in v1.2.0

type RankParams struct {
	Height int64         `json:"height"` //
	Params RawRankParams `json:"params"` //
}

RankParams represents RParams with Height

type RawBandwidthParams added in v1.2.0

type RawBandwidthParams struct {
	RecoveryPeriod    uint64  `json:"recovery_period"`     //
	AdjustPricePeriod uint64  `json:"adjust_price_period"` //
	BasePrice         float64 `json:"base_price"`          //
	BaseLoad          float64 `json:"base_load"`           //
	MaxBlockBandwidth uint64  `json:"max_block_bandwidth"` //
}

RawBandwidthParams represents bandwidth_params

type RawDMNParams added in v1.2.0

type RawDMNParams struct {
	MaxSlots int64 `json:"max_slots"`
	MaxGas   int64 `json:"max_gas"`
	FeeTTL   int64 `json:"fee_ttl"`
}

RawDMNParams represents dmn_params

type RawDistributionParams added in v1.2.0

type RawDistributionParams struct {
	CommunityTax        float64 `json:"community_tax"`         //
	BaseProposerReward  float64 `json:"base_proposer_reward"`  //
	BonusProposerReward float64 `json:"bonus_proposer_reward"` //
	WithdrawAddrEnabled bool    `json:"withdraw_addr_enabled"` //
}

type RawGridParams added in v1.2.0

type RawGridParams struct {
	MaxRoutes int64 `json:"max_routes"` //
}

RawGridParams represents grid_params

type RawMintParams added in v1.2.0

type RawMintParams struct {
	MintDenom           string  `json:"mint_denom"`            //
	InflationRateChange float64 `json:"inflation_rate_change"` //
	InflationMax        float64 `json:"inflation_max"`         //
	InflationMin        float64 `json:"inflation_min"`         //
	GoalBonded          float64 `json:"goal_bonded"`           //
	BlocksPerYear       uint64  `json:"blocks_per_year"`       //
}

type RawRankParams added in v1.2.0

type RawRankParams struct {
	CalculationPeriod int64   `json:"calculation_period"`
	DampingFactor     float64 `json:"damping_factor"`
	Tolerance         float64 `json:"tolerance"`
}

RawRankParams represents rank_params

type RawSlashingParams added in v1.2.0

type RawSlashingParams struct {
	DowntimeJailDuration    time.Duration `json:"downtime_jail_duration"`     //
	SignedBlocksWindow      int64         `json:"signed_blocks_window"`       //
	MinSignedPerWindow      float64       `json:"min_signed_per_window"`      //
	SlashFractionDoubleSign float64       `json:"slash_fraction_double_sign"` //
	SlashFractionDowntime   float64       `json:"slash_fraction_downtime"`    //
}

type RawStakingParams added in v1.2.0

type RawStakingParams struct {
	UnbondingTime     time.Duration `json:"unbonding_time"`      //
	MaxValidators     uint64        `json:"max_validators"`      //
	MaxEntries        uint64        `json:"max_entries"`         //
	HistoricalEntries uint64        `json:"historical_entries"`  //
	BondDenom         string        `json:"bond_denom"`          //
	MinCommissionRate float64       `json:"min_commission_rate"` //
}

type RecvPacketMessage

type RecvPacketMessage struct {
	SourcePort         string `json:"source_port"`         //
	SourceChannel      string `json:"source_channel"`      //
	DestinationPort    string `json:"destination_port"`    //
	DestinationChannel string `json:"destination_channel"` //
	Signer             string `json:"signer"`              //
	Data               []byte `json:"data"`                //
	TimeoutTimestamp   uint64 `json:"timeout_timestamp"`   //
	Height             int64  `json:"height"`              //
	MsgIndex           int64  `json:"msg_index"`           //
	TxHash             string `json:"tx_hash"`             //
}

type Redelegation

type Redelegation struct {
	CompletionTime      time.Time `json:"completion_time"`       //
	Coin                Coin      `json:"coin"`                  //
	DelegatorAddress    string    `json:"delegator_address"`     //
	SrcValidatorAddress string    `json:"src_validator_address"` //
	DstValidatorAddress string    `json:"dst_validator_address"` //
	Height              int64     `json:"height"`                //
}

type RedelegationMessage

type RedelegationMessage struct {
	Redelegation
	TxHash   string `json:"tx_hash"`   //
	MsgIndex int64  `json:"msg_index"` //
}

type RevokeAllowanceMessage

type RevokeAllowanceMessage struct {
	Height   int64  `json:"height"`    //
	MsgIndex int64  `json:"msg_index"` //
	TxHash   string `json:"tx_hash"`   //
	Granter  string `json:"granter"`   //
	Grantee  string `json:"grantee"`   //
}

type RevokeMessage

type RevokeMessage struct {
	Height   int64  `json:"height"`    //
	MsgIndex int64  `json:"msg_index"` //
	TxHash   string `json:"tx_hash"`   //
	Granter  string `json:"granter"`   //
	Grantee  string `json:"grantee"`   //
	MsgType  string `json:"msg_type"`  //
}

type Route added in v1.2.0

type Route struct {
	Source      string `json:"source"`      //
	Destination string `json:"destination"` //
	Alias       string `json:"alias"`       //
	Timestamp   string `json:"timestamp"`   //
	TxHash      string `json:"tx_hash"`     //
	Value       Coins  `json:"value"`       //
	Height      int64  `json:"height"`      //
	IsActive    bool   `json:"is_active"`   //
}

type SendMessage

type SendMessage struct {
	Coins       Coins  `json:"coins"`        //
	AddressFrom string `json:"address_from"` //
	AddressTo   string `json:"address_to"`   //
	TxHash      string `json:"tx_hash"`      //
	Height      int64  `json:"height"`       //
	MsgIndex    int64  `json:"msg_index"`    //
}

type SetWithdrawAddressMessage

type SetWithdrawAddressMessage struct {
	Height           int64  `json:"height"`            //
	DelegatorAddress string `json:"delegator_address"` //
	WithdrawAddress  string `json:"withdraw_address"`  //
	TxHash           string `json:"tx_hash"`           //
	MsgIndex         int64  `json:"msg_index"`         //
}

type SignersInfo

type SignersInfo struct {
	PublicKey string `json:"public_key"` //
	Sequence  uint64 `json:"sequence"`   //

}

type SlashingParams added in v0.1.9

type SlashingParams struct {
	Height int64             `json:"height"` //
	Params RawSlashingParams `json:"params"` //
}

type StakingParams

type StakingParams struct {
	Params RawStakingParams `json:"params"` //
	Height int64            `json:"height"` //
}

type StakingPool

type StakingPool struct {
	Height          int64 `json:"height"`            //
	NotBondedTokens int64 `json:"not_bonded_tokens"` //
	BondedTokens    int64 `json:"bonded_tokens"`     //
}

type SubmitProposalMessage

type SubmitProposalMessage struct {
	Height         int64  `json:"height"`          //
	TxHash         string `json:"tx_hash"`         //
	MsgIndex       int64  `json:"msg_index"`       //
	Proposer       string `json:"proposer"`        //
	InitialDeposit Coins  `json:"initial_deposit"` //
	Title          string `json:"title"`           //
	Description    string `json:"description"`     //
	Type           string `json:"type"`            //
	ProposalID     uint64 `json:"proposal_id"`     //
}

type Supply

type Supply struct {
	Height int64 `json:"height"` //
	Coins  Coins `json:"coins"`  //
}

type Swap added in v0.1.4

type Swap struct {
	Height                    int64   `json:"height"`                       //
	MsgIndex                  uint32  `json:"msg_index"`                    //
	BatchIndex                uint32  `json:"batch_index"`                  //
	PoolID                    uint32  `json:"pool_id"`                      //
	SwapRequester             string  `json:"swap_requester"`               //
	OfferCoinDenom            string  `json:"offer_coin_denom"`             //
	OfferCoinAmount           float64 `json:"offer_coin_amount"`            //
	DemandCoinDenom           string  `json:"demand_coin_denom"`            //
	ExchangedDemandCoinAmount float64 `json:"exchanged_demand_coin_amount"` //
	TransactedCoinAmount      float64 `json:"transacted_coin_amount"`       //
	RemainingOfferCoinAmount  float64 `json:"remaining_offer_coin_amount"`  //
	OfferCoinFeeAmount        float64 `json:"offer_coin_fee_amount"`        //
	OrderExpiryHeight         int64   `json:"order_expiry_height"`          //
	ExchangedCoinFeeAmount    float64 `json:"exchanged_coin_fee_amount"`    //
	OrderPrice                float64 `json:"order_price"`                  //
	SwapPrice                 float64 `json:"swap_price"`                   //
	Success                   bool    `json:"success"`                      //
}

type TallyParams

type TallyParams struct {
	Quorum        float64 `json:"quorum,omitempty"`         //
	Threshold     float64 `json:"threshold,omitempty"`      //
	VetoThreshold float64 `json:"veto_threshold,omitempty"` //
}

TallyParams contains the tally parameters of the x/gov module

type Transaction

type Transaction struct {
	Hash        string        `json:"hash"`          //
	Height      int64         `json:"height"`        //
	Success     bool          `json:"success"`       //
	Messages    [][]byte      `json:"messages"`      //
	Memo        string        `json:"memo"`          //
	Signatures  []string      `json:"signatures"`    //
	Signer      string        `json:"signer"`        //
	GasWanted   int64         `json:"gas_wanted"`    //
	GasUsed     int64         `json:"gas_used"`      //
	RawLog      string        `json:"raw_log"`       //
	Logs        []byte        `json:"logs"`          //
	SignerInfos []SignersInfo `json:"signer_infos"`  //
	Fee         *Fee          `json:"fee,omitempty"` //
}

type TransferMessage

type TransferMessage struct {
	SourceChannel string `json:"source_channel"` //
	Coin          Coin   `json:"coin"`           //
	Sender        string `json:"sender"`         //
	Receiver      string `json:"receiver"`       //
	Height        int64  `json:"height"`         //
	MsgIndex      int64  `json:"msg_index"`      //
	TxHash        string `json:"tx_hash"`        //
}

type UnbondingDelegation

type UnbondingDelegation struct {
	CompletionTime   time.Time `json:"completion_time"`   //
	Coin             Coin      `json:"coin"`              //
	DelegatorAddress string    `json:"delegator_address"` //
	OperatorAddress  string    `json:"operator_address"`  //
	Height           int64     `json:"height"`            //
}

type UnbondingDelegationMessage

type UnbondingDelegationMessage struct {
	UnbondingDelegation
	TxHash   string `json:"tx_hash"`   //
	MsgIndex int64  `json:"msg_index"` //
}

type UnjailMessage

type UnjailMessage struct {
	Height          int64  `json:"height"`           //
	Hash            string `json:"tx_hash"`          //
	Index           int64  `json:"msg_index"`        //
	OperatorAddress string `json:"operator_address"` //
}

type Validator

type Validator struct {
	ConsensusAddress string `json:"consensus_address"` //
	OperatorAddress  string `json:"operator_address"`  //
	ConsensusPubkey  string `json:"consensus_pubkey"`  //
	Height           int64  `json:"height"`            //
}

type ValidatorCommission

type ValidatorCommission struct {
	Height          int64   `json:"height"`           //
	OperatorAddress string  `json:"operator_address"` //
	Commission      float64 `json:"commission"`       //
	MaxChangeRate   float64 `json:"max_change_rate"`  //
	MaxRate         float64 `json:"max_rate"`         //
}

type ValidatorDescription

type ValidatorDescription struct {
	OperatorAddress string `json:"operator_address"` //
	Moniker         string `json:"moniker"`          //
	Identity        string `json:"identity"`         //
	Website         string `json:"website"`          //
	SecurityContact string `json:"security_contact"` //
	Details         string `json:"details"`          //
	Height          int64  `json:"height"`           //
}

type ValidatorInfo

type ValidatorInfo struct {
	ConsensusAddress    string `json:"consensus_address"`     //
	OperatorAddress     string `json:"operator_address"`      //
	SelfDelegateAddress string `json:"self_delegate_address"` //
	MinSelfDelegation   int64  `json:"min_self_delegation"`   //
	Height              int64  `json:"height"`                //
}

type ValidatorMessageDescription

type ValidatorMessageDescription struct {
	Moniker         string `json:"moniker,omitempty"`          //
	Identity        string `json:"identity,omitempty"`         //
	Website         string `json:"website,omitempty"`          //
	SecurityContact string `json:"security_contact,omitempty"` //
	Details         string `json:"details,omitempty"`          //
}

type ValidatorPreCommit added in v1.2.0

type ValidatorPreCommit struct {
	Height           int64     `json:"height"`            //
	ValidatorAddress string    `json:"validator_address"` //
	BlockIDFlag      uint64    `json:"block_id_flag"`     //
	Timestamp        time.Time `json:"timestamp"`         //
}

type ValidatorStatus

type ValidatorStatus struct {
	Height           int64  `json:"height"`            //
	ConsensusAddress string `json:"consensus_address"` //
	Status           int64  `json:"status"`            //
	Jailed           bool   `json:"jailed"`            //
}

type ValidatorVotingPower added in v0.1.11

type ValidatorVotingPower struct {
	Height           int64  `json:"height"`            //
	VotingPower      int64  `json:"voting_power"`      //
	ValidatorAddress string `json:"validator_address"` //
	ProposerPriority int64  `json:"proposer_priority"` //
}

type VoteWeightedMessage

type VoteWeightedMessage struct {
	Height             int64                `json:"height"`               //
	TxHash             string               `json:"tx_hash"`              //
	MsgIndex           int64                `json:"msg_index"`            //
	ProposalId         uint64               `json:"proposal_id"`          //
	Voter              string               `json:"voter"`                //
	WeightedVoteOption []WeightedVoteOption `json:"weighted_vote_option"` //
}

type VotingParams

type VotingParams struct {
	VotingPeriod int64 `json:"voting_period,omitempty"` //
}

VotingParams contains the voting parameters of the x/gov module

type WeightedVoteOption

type WeightedVoteOption struct {
	Option int32   `json:"option,omitempty"` //
	Weight float64 `json:"weight"`           //
}

type WithdrawValidatorCommissionMessage

type WithdrawValidatorCommissionMessage struct {
	Height             int64  `json:"height"`              //
	TxHash             string `json:"tx_hash"`             //
	MsgIndex           int64  `json:"msg_index"`           //
	WithdrawCommission Coins  `json:"withdraw_commission"` //
	OperatorAddress    string `json:"operator_address"`    //
}

Jump to

Keyboard shortcuts

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