model

package
v1.7.41 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountTransferParams

type AccountTransferParams struct {
	Recipient string
	Sender    string
	Amount    coin.Coins
}

type Allowance

type Allowance struct {
	Type string `mapstructure:"@type" json:"@type"`
}

type AllowedMsgAllowance

type AllowedMsgAllowance struct {
	Type            string    `mapstructure:"@type" json:"@type"`
	Allowance       Allowance `mapstructure:"allowance" json:"allowance,omitempty"`
	AllowedMessages []string  `mapstructure:"allowed_messages" json:"allowedMessages,omitempty"`
}

type BasicAllowance

type BasicAllowance struct {
	Type       string                        `mapstructure:"@type" json:"@type"`
	SpendLimit []MsgGrantAllowanceSpendLimit `mapstructure:"spend_limit" json:"spendLimit"`
	Expiration string                        `mapstructure:"expiration" json:"expiration"`
}

type Block

type Block struct {
	Height          int64            `json:"height" fake:"{blockheight}"`
	Hash            string           `json:"hash" fake:"{blockhash}"`
	Time            utctime.UTCTime  `json:"time" fake:"{utctime}"`
	AppHash         string           `json:"appHash" fake:"{blockapphash}"`
	ProposerAddress string           `json:"proposerAddress" fake:"{validatoraddress}"`
	Txs             []string         `json:"txs" fake:"skip"`
	Signatures      []BlockSignature `json:"signature" fakesize:"3"`
	Evidences       []BlockEvidence  `json:"evidences" fake:"skip"`
}

func (*Block) String

func (block *Block) String() string

type BlockEvent added in v1.5.1

type BlockEvent struct {
	Type       string                `json:"type"`
	Attributes []BlockEventAttribute `json:"attributes"`
}

type BlockEventAttribute added in v1.5.1

type BlockEventAttribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type BlockEvidence

type BlockEvidence struct {
	Type  string `json:"type"`
	Value struct {
		VoteA struct {
			Type    int    `json:"type"`
			Height  string `json:"height"`
			Round   int    `json:"round"`
			BlockID struct {
				Hash  string `json:"hash"`
				Parts struct {
					Total int    `json:"total"`
					Hash  string `json:"hash"`
				} `json:"parts"`
			} `json:"block_id"`
			Timestamp        utctime.UTCTime `json:"timestamp"`
			ValidatorAddress string          `json:"validator_address"`
			ValidatorIndex   int             `json:"validator_index"`
			Signature        string          `json:"signature"`
		} `json:"vote_a"`
		VoteB struct {
			Type    int    `json:"type"`
			Height  string `json:"height"`
			Round   int    `json:"round"`
			BlockID struct {
				Hash  string `json:"hash"`
				Parts struct {
					Total int    `json:"total"`
					Hash  string `json:"hash"`
				} `json:"parts"`
			} `json:"block_id"`
			Timestamp        utctime.UTCTime `json:"timestamp"`
			ValidatorAddress string          `json:"validator_address"`
			ValidatorIndex   int             `json:"validator_index"`
			Signature        string          `json:"signature"`
		} `json:"vote_b"`
		// TODO: Breaking changes to snake case in the future
		TotalVotingPower string          `json:"TotalVotingPower"`
		ValidatorPower   string          `json:"ValidatorPower"`
		Timestamp        utctime.UTCTime `json:"Timestamp"`
	} `json:"value"`
}

type BlockResults

type BlockResults struct {
	Height                int64                             `json:"height"`
	TxsResults            []BlockResultsTxsResult           `json:"txsResults"`
	BeginBlockEvents      []BlockResultsEvent               `json:"beginBlockEvents"`
	EndBlockEvents        []BlockResultsEvent               `json:"endBlockEvents"`
	ValidatorUpdates      []BlockResultsValidatorUpdate     `json:"validatorUpdates"`
	ConsensusParamUpdates BlockResultsConsensusParamUpdates `json:"consensusParamUpdates"`
}

func (*BlockResults) String

func (results *BlockResults) String() string

type BlockResultsConsensusParamUpdates

type BlockResultsConsensusParamUpdates struct {
	Block     BlockResultsConsensusParamUpdatesBlock      `json:"block"`
	Evidence  BlockResultsConsensusParamUpdatesEvidence   `json:"evidence"`
	Validator BlockResultsConsensusParamsUpdatesValidator `json:"validator"`
}

type BlockResultsConsensusParamUpdatesBlock

type BlockResultsConsensusParamUpdatesBlock struct {
	MaxBytes string `json:"maxBytes"`
	MaxGas   string `json:"maxGas"`
}

type BlockResultsConsensusParamUpdatesEvidence

type BlockResultsConsensusParamUpdatesEvidence struct {
	MaxAgeNumBlocks string `json:"maxAgeNumBlocks"`
	MaxAgeDuration  string `json:"maxAgeDuration"`
	MaxBytes        string `json:"maxBytes"`
}

type BlockResultsConsensusParamsUpdatesValidator

type BlockResultsConsensusParamsUpdatesValidator struct {
	PubKeyTypes []string `json:"pubKeyTypes"`
}

type BlockResultsEvent

type BlockResultsEvent struct {
	Type       string                       `json:"type"`
	Attributes []BlockResultsEventAttribute `json:"attributes"`
}

type BlockResultsEventAttribute

type BlockResultsEventAttribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
	Index bool   `json:"index"`
}

type BlockResultsTxsResult

type BlockResultsTxsResult struct {
	Code      int                        `json:"code"`
	Data      string                     `json:"data"`
	Log       []BlockResultsTxsResultLog `json:"log"`
	RawLog    string                     `json:"rawLog"`
	Info      string                     `json:"info"`
	GasWanted string                     `json:"gasWanted"`
	GasUsed   string                     `json:"gasUsed"`
	Events    []BlockResultsEvent        `json:"events"`
	Codespace string                     `json:"codespace"`
}

type BlockResultsTxsResultLog

type BlockResultsTxsResultLog struct {
	MsgIndex int                 `json:"msgIndex"`
	Events   []BlockResultsEvent `json:"events"`
}

type BlockResultsValidatorPubKey

type BlockResultsValidatorPubKey struct {
	Type   string `json:"type"`
	Pubkey string `json:"pubkey"`
}

type BlockResultsValidatorUpdate

type BlockResultsValidatorUpdate struct {
	Pubkey     BlockResultsValidatorPubKey `json:"pubkey"`
	Address    string                      `json:"address"`
	MaybePower *big.Int                    `json:"power"`
}

type BlockSignature

type BlockSignature struct {
	BlockIdFlag      int             `json:"blockIdFlag" fake:"+int"`
	ValidatorAddress string          `json:"validatorAddress" fake:"{validatoraddress}"`
	Timestamp        utctime.UTCTime `json:"timestamp" fake:"{utctime}"`
	Signature        string          `json:"signature" fake:"{commitsignature}"`
}

type CompleteBondingParams

type CompleteBondingParams struct {
	Delegator string
	Validator string
	Amount    coin.Coins
}

type CosmosTx added in v1.5.1

type CosmosTx struct {
	Body       CosmosTxBody     `json:"body"`
	AuthInfo   CosmosTxAuthInfo `json:"auth_info"`
	Signatures []string         `json:"signatures"`
}

type CosmosTxAuthInfo added in v1.5.1

type CosmosTxAuthInfo struct {
	SignerInfos []CosmosTxSignerInfo `json:"signer_infos"`
	Fee         CosmosTxAuthInfoFee  `json:"fee"`
	Tip         *CosmosTxTip         `json:"tip"`
}

type CosmosTxAuthInfoFee added in v1.5.1

type CosmosTxAuthInfoFee struct {
	Amount   []CosmosTxAuthInfoFeeAmount `json:"amount"`
	GasLimit string                      `json:"gas_limit"`
	Payer    string                      `json:"payer"`
	Granter  string                      `json:"granter"`
}

type CosmosTxAuthInfoFeeAmount added in v1.5.1

type CosmosTxAuthInfoFeeAmount struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type CosmosTxBody added in v1.5.1

type CosmosTxBody struct {
	Messages                    []map[string]interface{} `json:"messages"`
	Memo                        string                   `json:"memo"`
	TimeoutHeight               string                   `json:"timeout_height"`
	ExtensionOptions            []interface{}            `json:"extension_options"`
	NonCriticalExtensionOptions []interface{}            `json:"non_critical_extension_options"`
}

type CosmosTxSignerInfo added in v1.5.1

type CosmosTxSignerInfo struct {
	MaybePublicKey *CosmosTxSignerInfoPublicKey `json:"public_key"`
	ModeInfo       CosmosTxSignerInfoModeInfo   `json:"mode_info"`
	Sequence       string                       `json:"sequence"`
}

type CosmosTxSignerInfoModeInfo added in v1.5.1

type CosmosTxSignerInfoModeInfo struct {
	MaybeSingle *CosmosTxSignerInfoModeInfoSingle `json:"single,omitempty"`
	MaybeMulti  *CosmosTxSignerInfoModeInfoMulti  `json:"multi,omitempty"`
}

type CosmosTxSignerInfoModeInfoMulti added in v1.5.1

type CosmosTxSignerInfoModeInfoMulti struct {
	Bitarray  CosmosTxSignerInfoModeInfoMultiBitarray         `json:"bitarray"`
	ModeInfos []CosmosTxSignerInfoModeInfoMultiSingleModeInfo `json:"mode_infos"`
}

type CosmosTxSignerInfoModeInfoMultiBitarray added in v1.5.1

type CosmosTxSignerInfoModeInfoMultiBitarray struct {
	ExtraBitsStored int64  `json:"extra_bits_stored"`
	Elems           string `json:"elems"`
}

type CosmosTxSignerInfoModeInfoMultiSingleModeInfo added in v1.5.1

type CosmosTxSignerInfoModeInfoMultiSingleModeInfo struct {
	Single CosmosTxSignerInfoModeInfoSingle `json:"single"`
}

type CosmosTxSignerInfoModeInfoSingle added in v1.5.1

type CosmosTxSignerInfoModeInfoSingle struct {
	Mode string `json:"mode"`
}

type CosmosTxSignerInfoPublicKey added in v1.5.1

type CosmosTxSignerInfoPublicKey struct {
	Type            string                                 `json:"@type"`
	MaybeThreshold  *int                                   `json:"threshold,omitempty"`
	MaybePublicKeys []CosmosTxSignerInfoPublicKeyPublicKey `json:"public_keys,omitempty"`
	MaybeKey        *string                                `json:"key,omitempty"`
}

type CosmosTxSignerInfoPublicKeyPublicKey added in v1.5.1

type CosmosTxSignerInfoPublicKeyPublicKey struct {
	Type string `json:"@type"`
	Key  string `json:"key"`
}

type CosmosTxTip added in v1.6.8

type CosmosTxTip struct {
	Amount []CosmosTxTipAmount `json:"amount"`
	Tipper string              `json:"tipper"`
}

type CosmosTxTipAmount added in v1.6.8

type CosmosTxTipAmount struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type CosmosTxWithHash added in v1.6.3

type CosmosTxWithHash struct {
	Tx   CosmosTx `json:"tx"`
	Hash string   `json:"hash"`
}

type CreateBlockRawEventParams added in v1.5.2

type CreateBlockRawEventParams struct {
	BlockHash  string
	BlockTime  utctime.UTCTime
	FromResult string
	Data       DataParams
}

type CreateRawTransactionParams added in v1.5.2

type CreateRawTransactionParams struct {
	TxHash        string
	Index         int
	Code          int
	Log           string
	Signers       []TransactionSigner
	Fee           coin.Coins
	FeePayer      string
	FeeGranter    string
	GasWanted     int
	GasUsed       int
	Memo          string
	TimeoutHeight int64
	Messages      []map[string]interface{}
}

type CreateTransactionParams

type CreateTransactionParams struct {
	TxHash        string
	Index         int
	Code          int
	Log           string
	MsgCount      int
	Signers       []TransactionSigner
	Fee           coin.Coins
	FeePayer      string
	FeeGranter    string
	GasWanted     int
	GasUsed       int
	Memo          string
	TimeoutHeight int64
}

type CronosSendToIBCHeight

type CronosSendToIBCHeight struct {
	RevisionNumber uint64 `json:"revisionNumber,string"`
	RevisionHeight uint64 `json:"revisionHeight,string"`
}

type CronosSendToIBCParams

type CronosSendToIBCParams struct {
	TxHash             string                `json:"txHash"`
	EthereumTxHash     string                `json:"ethereumTxHash"`
	SourcePort         string                `json:"sourcePort"`
	SourceChannel      string                `json:"sourceChannel"`
	Token              CronosSendToIBCToken  `json:"token"`
	Sender             string                `json:"sender"`
	Receiver           string                `json:"receiver"`
	TimeoutHeight      CronosSendToIBCHeight `json:"timeoutHeight"`
	TimeoutTimestamp   string                `json:"timeoutTimestamp"`
	PacketDataHex      string                `json:"packetDataHex"`
	PacketSequence     uint64                `json:"packetSequence,string"`
	DestinationPort    string                `json:"destinationPort"`
	DestinationChannel string                `json:"destinationChannel"`
	ChannelOrdering    string                `json:"channelOrdering"`
	ConnectionID       string                `json:"connectionId"`
}

type CronosSendToIBCToken

type CronosSendToIBCToken struct {
	Denom  string              `json:"denom"`
	Amount *json.NumericString `json:"amount"`
}

type DataParams added in v1.5.2

type DataParams struct {
	Type    string            `json:"type"`
	Content BlockResultsEvent `json:"content"`
}

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type FungibleTokenPacketData

type FungibleTokenPacketData struct {
	Sender   string              `json:"sender"`
	Receiver string              `json:"receiver"`
	Denom    string              `json:"denom"`
	Amount   *json.NumericString `json:"amount"`
}

type GenericAuthorization

type GenericAuthorization struct {
	Msg string `mapstructure:"msg" json:"msg,omitempty"`
}

type GenericGrant

type GenericGrant struct {
	Authorization GenericAuthorization `mapstructure:"authorization" json:"authorization"`
	Expiration    string               `mapstructure:"expiration" json:"expiration"`
}

type GravityEthereumSendToCosmosHandledEventParams

type GravityEthereumSendToCosmosHandledEventParams struct {
	Module                    string     `json:"module"`
	Sender                    string     `json:"sender"`
	Receiver                  string     `json:"receiver"`
	Amount                    coin.Coins `json:"amount"`
	BridgeChainId             uint64     `json:"bridgeChainId"`
	EthereumTokenContract     string     `json:"tokenContract"`
	Nonce                     uint64     `json:"nonce"`
	EthereumEventVoteRecordId []byte     `json:"ethereumEventVoteRecordId"`
}

type LegacyTx added in v1.3.21

type LegacyTx struct {
	Type     string `mapstructure:"@type" json:"@type"`
	Nonce    string `mapstructure:"nonce" json:"nonce"`
	GasPrice string `mapstructure:"gas_price" json:"gasPrice"`
	Gas      string `mapstructure:"gas" json:"gas"`
	To       string `mapstructure:"to" json:"to"`
	Value    string `mapstructure:"value" json:"value"`
	Data     string `mapstructure:"data" json:"data"`
	V        string `mapstructure:"v" json:"v"`
	R        string `mapstructure:"r" json:"r"`
	S        string `mapstructure:"s" json:"s"`
}

FIXME: https://github.com/crypto-com/chain-indexing/issues/730

type MintParams

type MintParams struct {
	BondedRatio      string
	Inflation        string
	AnnualProvisions coin.DecCoin
	Amount           coin.Coins
}

type MsgBeginRedelegateParams

type MsgBeginRedelegateParams struct {
	DelegatorAddress    string    `json:"delegatorAddress"`
	ValidatorSrcAddress string    `json:"validatorSrcAddress"`
	ValidatorDstAddress string    `json:"validatorDstAddress"`
	Amount              coin.Coin `json:"amount"`
	AutoClaimedRewards  coin.Coin `json:"autoClaimedRewards"`
}

type MsgCreateValidatorParams

type MsgCreateValidatorParams struct {
	Description       ValidatorDescription `json:"description"`
	Commission        ValidatorCommission  `json:"commission"`
	MinSelfDelegation string               `json:"minSelfDelegation"`
	DelegatorAddress  string               `json:"delegatorAddress"`
	ValidatorAddress  string               `json:"validatorAddress"`
	TendermintPubkey  string               `json:"tendermintPubkey"`
	Amount            coin.Coin            `json:"amount"`
}

type MsgCreateVestingAccountAmount

type MsgCreateVestingAccountAmount struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgCreateVestingAccountParams

type MsgCreateVestingAccountParams struct {
	RawMsgCreateVestingAccount
}

type MsgDelegateParams

type MsgDelegateParams struct {
	DelegatorAddress   string    `json:"delegatorAddress"`
	ValidatorAddress   string    `json:"validatorAddress"`
	Amount             coin.Coin `json:"amount"`
	AutoClaimedRewards coin.Coin `json:"autoClaimedRewards"`
}

type MsgDepositParams

type MsgDepositParams struct {
	ProposalId string     `json:"proposalId"`
	Depositor  string     `json:"depositor"`
	Amount     coin.Coins `json:"amount"`
}

type MsgEditValidatorParams

type MsgEditValidatorParams struct {
	Description            ValidatorDescription `json:"description"`
	ValidatorAddress       string               `json:"validatorAddress"`
	MaybeCommissionRate    *string              `json:"commissionRate"`
	MaybeMinSelfDelegation *string              `json:"minSelfDelegation"`
}

type MsgEthereumTx added in v1.3.21

type MsgEthereumTx struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgEthereumTxParams added in v1.3.21

type MsgEthereumTxParams struct {
	RawMsgEthereumTx
}

type MsgExecMsg

type MsgExecMsg struct {
	Type string `mapstructure:"@type" json:"@type"`
}

type MsgExecParams

type MsgExecParams struct {
	RawMsgExec
}

type MsgFundCommunityPoolParams

type MsgFundCommunityPoolParams struct {
	Depositor string     `json:"depositor"`
	Amount    coin.Coins `json:"amount"`
}

type MsgGrantAllowanceParams

type MsgGrantAllowanceParams struct {
	MaybeBasicAllowance      *RawMsgGrantBasicAllowance      `json:"maybeBasicAllowance"`
	MaybePeriodicAllowance   *RawMsgGrantPeriodicAllowance   `json:"maybePeriodicAllowance"`
	MaybeAllowedMsgAllowance *RawMsgGrantAllowedMsgAllowance `json:"maybeAllowedMsgAllowance"`
}

type MsgGrantAllowancePeriodCanSpend

type MsgGrantAllowancePeriodCanSpend struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgGrantAllowancePeriodSpendLimit

type MsgGrantAllowancePeriodSpendLimit struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgGrantAllowanceSpendLimit

type MsgGrantAllowanceSpendLimit struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgGrantMaxTokens

type MsgGrantMaxTokens struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgGrantParams

type MsgGrantParams struct {
	MaybeSendGrant    *RawMsgSendGrant    `json:"maybeSendGrant"`
	MaybeStakeGrant   *RawMsgStakeGrant   `json:"maybeStakeGrant"`
	MaybeGenericGrant *RawMsgGenericGrant `json:"maybeGenericGrant"`
}

type MsgGrantSpendLimit

type MsgGrantSpendLimit struct {
	Denom  string `mapstructure:"denom" json:"denom,omitempty"`
	Amount string `mapstructure:"amount" json:"amount"`
}

type MsgMultiSendInput

type MsgMultiSendInput struct {
	Address string     `json:"address"`
	Amount  coin.Coins `json:"amount"`
}

type MsgMultiSendOutput

type MsgMultiSendOutput struct {
	Address string     `json:"address"`
	Amount  coin.Coins `json:"amount"`
}

type MsgMultiSendParams

type MsgMultiSendParams struct {
	Inputs  []MsgMultiSendInput  `json:"inputs"`
	Outputs []MsgMultiSendOutput `json:"outputs"`
}

type MsgNFTBurnNFTParams

type MsgNFTBurnNFTParams struct {
	DenomId string `json:"denomId"`
	TokenId string `json:"tokenId"`
	Sender  string `json:"sender"`
}

type MsgNFTEditNFTParams

type MsgNFTEditNFTParams struct {
	DenomId   string `json:"denomId"`
	TokenId   string `json:"tokenId"`
	TokenName string `json:"tokenName"`
	URI       string `json:"uri"`
	Data      string `json:"data"`
	Sender    string `json:"sender"`
}

type MsgNFTIssueDenomParams

type MsgNFTIssueDenomParams struct {
	DenomId   string `json:"denomId"`
	DenomName string `json:"denomName"`
	Schema    string `json:"schema"`
	Sender    string `json:"sender"`
}

type MsgNFTMintNFTParams

type MsgNFTMintNFTParams struct {
	DenomId   string `json:"denomId"`
	TokenId   string `json:"tokenId"`
	TokenName string `json:"tokenName"`
	URI       string `json:"uri"`
	Data      string `json:"data"`
	Sender    string `json:"sender"`
	Recipient string `json:"recipient"`
}

type MsgNFTTransferNFTParams

type MsgNFTTransferNFTParams struct {
	TokenId   string `json:"tokenId"`
	DenomId   string `json:"denomId"`
	Sender    string `json:"sender"`
	Recipient string `json:"recipient"`
}

type MsgRevokeAllowanceParams

type MsgRevokeAllowanceParams struct {
	RawMsgRevokeAllowance
}

type MsgRevokeParams

type MsgRevokeParams struct {
	RawMsgRevoke
}

type MsgSetSendEnabled added in v1.7.22

type MsgSetSendEnabled struct {
	Authority     string        `json:"authority"`
	SendEnabled   []SendEnabled `json:"send_enabled"`
	UseDefaultFor []string      `json:"use_default_for"`
}

type MsgSetWithdrawAddressParams

type MsgSetWithdrawAddressParams struct {
	DelegatorAddress string `json:"delegatorAddress"`
	WithdrawAddress  string `json:"withdrawAddress"`
}

type MsgSubmitCancelSoftwareUpgradeProposalContent

type MsgSubmitCancelSoftwareUpgradeProposalContent struct {
	Type        string `json:"@type"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

type MsgSubmitCancelSoftwareUpgradeProposalParams

type MsgSubmitCancelSoftwareUpgradeProposalParams struct {
	MaybeProposalId *string                                       `json:"proposalId"`
	Content         MsgSubmitCancelSoftwareUpgradeProposalContent `json:"content"`
	ProposerAddress string                                        `json:"proposerAddress"`
	InitialDeposit  coin.Coins                                    `json:"initialDeposit"`
}

type MsgSubmitCommunityPoolSpendProposalContent

type MsgSubmitCommunityPoolSpendProposalContent struct {
	Type             string     `json:"@type"`
	Title            string     `json:"title"`
	Description      string     `json:"description"`
	RecipientAddress string     `json:"recipientAddress"`
	Amount           coin.Coins `json:"amount"`
}

type MsgSubmitCommunityPoolSpendProposalParams

type MsgSubmitCommunityPoolSpendProposalParams struct {
	MaybeProposalId *string                                    `json:"proposalId"`
	Content         MsgSubmitCommunityPoolSpendProposalContent `json:"content"`
	ProposerAddress string                                     `json:"proposerAddress"`
	InitialDeposit  coin.Coins                                 `json:"initialDeposit"`
}

type MsgSubmitParamChangeProposalChange

type MsgSubmitParamChangeProposalChange struct {
	Subspace string          `json:"subspace"`
	Key      string          `json:"key"`
	Value    json.RawMessage `json:"value"`
}

type MsgSubmitParamChangeProposalContent

type MsgSubmitParamChangeProposalContent struct {
	Type        string                               `json:"@type"`
	Title       string                               `json:"title"`
	Description string                               `json:"description"`
	Changes     []MsgSubmitParamChangeProposalChange `json:"changes"`
}

type MsgSubmitParamChangeProposalParams

type MsgSubmitParamChangeProposalParams struct {
	MaybeProposalId *string                             `json:"proposalId"`
	Content         MsgSubmitParamChangeProposalContent `json:"content"`
	ProposerAddress string                              `json:"proposerAddress"`
	InitialDeposit  coin.Coins                          `json:"initialDeposit"`
}

type MsgSubmitProposalContent

type MsgSubmitProposalContent struct {
	Type string `json:"@type"`
}

type MsgSubmitSoftwareUpgradeProposalContent

type MsgSubmitSoftwareUpgradeProposalContent struct {
	Type        string                               `json:"@type"`
	Title       string                               `json:"title"`
	Description string                               `json:"description"`
	Plan        MsgSubmitSoftwareUpgradeProposalPlan `json:"plan"`
}

type MsgSubmitSoftwareUpgradeProposalParams

type MsgSubmitSoftwareUpgradeProposalParams struct {
	MaybeProposalId *string                                 `json:"proposalId"`
	Content         MsgSubmitSoftwareUpgradeProposalContent `json:"content"`
	ProposerAddress string                                  `json:"proposerAddress"`
	InitialDeposit  coin.Coins                              `json:"initialDeposit"`
}

type MsgSubmitSoftwareUpgradeProposalPlan

type MsgSubmitSoftwareUpgradeProposalPlan struct {
	Name   string          `json:"name"`
	Time   utctime.UTCTime `json:"time"`
	Height int64           `json:"height"`
	Info   string          `json:"info"`
}

type MsgSubmitTextProposalContent

type MsgSubmitTextProposalContent struct {
	Type        string `json:"@type"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

type MsgSubmitTextProposalParams

type MsgSubmitTextProposalParams struct {
	MaybeProposalId *string                      `json:"proposalId"`
	Content         MsgSubmitTextProposalContent `json:"content"`
	ProposerAddress string                       `json:"proposerAddress"`
	InitialDeposit  coin.Coins                   `json:"initialDeposit"`
}

type MsgSubmitUnknownProposalContent added in v1.4.1

type MsgSubmitUnknownProposalContent struct {
	Type        string      `json:"@type"`
	Title       string      `json:"title"`
	Description string      `json:"description"`
	RawContent  interface{} `json:"rawContent"`
}

type MsgSubmitUnknownProposalParams added in v1.4.1

type MsgSubmitUnknownProposalParams struct {
	MaybeProposalId *string                         `json:"proposalId"`
	Content         MsgSubmitUnknownProposalContent `json:"content"`
	ProposerAddress string                          `json:"proposerAddress"`
	InitialDeposit  coin.Coins                      `json:"initialDeposit"`
}

type MsgUndelegateParams

type MsgUndelegateParams struct {
	DelegatorAddress      string           `json:"delegatorAddress"`
	ValidatorAddress      string           `json:"validatorAddress"`
	Amount                coin.Coin        `json:"amount"`
	MaybeUnbondCompleteAt *utctime.UTCTime `json:"unbondCompleteAt"`
	AutoClaimedRewards    coin.Coin        `json:"autoClaimedRewards"`
}

type MsgUnjailParams

type MsgUnjailParams struct {
	ValidatorAddr string `json:"address"`
}

type MsgVoteParams

type MsgVoteParams struct {
	ProposalId string `json:"proposalId"`
	Voter      string `json:"voter"`
	Option     string `json:"option"`
}

type MsgWithdrawDelegatorRewardParams

type MsgWithdrawDelegatorRewardParams struct {
	DelegatorAddress string     `json:"delegatorAddress"`
	ValidatorAddress string     `json:"validatorAddress"`
	RecipientAddress string     `json:"recipientAddress"`
	Amount           coin.Coins `json:"amount"`
}

type MsgWithdrawValidatorCommissionParams

type MsgWithdrawValidatorCommissionParams struct {
	ValidatorAddress string     `json:"validatorAddress"`
	RecipientAddress string     `json:"recipientAddress"`
	Amount           coin.Coins `json:"amount"`
}

type PeriodicAllowance

type PeriodicAllowance struct {
	Type             string                              `mapstructure:"@type" json:"@type"`
	Basic            BasicAllowance                      `mapstructure:"basic" json:"basic"`
	Period           Duration                            `mapstructure:"period" json:"period"`
	PeriodSpendLimit []MsgGrantAllowancePeriodSpendLimit `mapstructure:"period_spend_limit" json:"periodSpendLimit"`
	PeriodCanSpend   []MsgGrantAllowancePeriodCanSpend   `mapstructure:"period_can_spend" json:"periodCanSpend"`
	PeriodReset      string                              `mapstructure:"period_reset" json:"periodReset"`
}

type PowerChangeParams

type PowerChangeParams struct {
	TendermintPubkey string `json:"tendermintPubkey"`
	Power            string `json:"power"`
}

type RawBlock

type RawBlock struct {
	BlockID struct {
		Hash  string `json:"hash" fake:"{blockheight}"`
		Parts struct {
			Total int    `json:"total"`
			Hash  string `json:"hash"`
		} `json:"parts"`
	} `json:"block_id"`
	Block struct {
		Header struct {
			Version struct {
				Block string `json:"block"`
			} `json:"version"`
			ChainID     string          `json:"chain_id"`
			Height      string          `json:"height"`
			Time        utctime.UTCTime `json:"time"`
			LastBlockID struct {
				Hash  string `json:"hash"`
				Parts struct {
					Total int    `json:"total"`
					Hash  string `json:"hash"`
				} `json:"parts"`
			} `json:"last_block_id"`
			LastCommitHash     string `json:"last_commit_hash"`
			DataHash           string `json:"data_hash"`
			ValidatorsHash     string `json:"validators_hash"`
			NextValidatorsHash string `json:"next_validators_hash"`
			ConsensusHash      string `json:"consensus_hash"`
			AppHash            string `json:"app_hash"`
			LastResultsHash    string `json:"last_results_hash"`
			EvidenceHash       string `json:"evidence_hash"`
			ProposerAddress    string `json:"proposer_address"`
		} `json:"header"`
		Data struct {
			Txs []string `json:"txs"`
		} `json:"data"`
		Evidence struct {
			Evidence []BlockEvidence `json:"evidence"`
		} `json:"evidence"`
		LastCommit struct {
			Height  string `json:"height"`
			Round   int    `json:"round"`
			BlockID struct {
				Hash  string `json:"hash"`
				Parts struct {
					Total int    `json:"total"`
					Hash  string `json:"hash"`
				} `json:"parts"`
			} `json:"block_id"`
			Signatures []RawBlockSignature `json:"signatures"`
		} `json:"last_commit"`
	} `json:"block"`
}

RawBlock defines the structure for Tendermint /block API response JSON

func (*RawBlock) String

func (rawBlock *RawBlock) String() string

type RawBlockSignature

type RawBlockSignature struct {
	BlockIDFlag      int             `json:"block_id_flag"`
	ValidatorAddress string          `json:"validator_address"`
	Timestamp        utctime.UTCTime `json:"timestamp"`
	Signature        *string         `json:"signature"`
}

RawBlockSignature defines the structure for signatures in /block API

type RawCronosSendToIBCParams

type RawCronosSendToIBCParams struct {
	PacketChannelOrdering  string
	PacketConnection       string
	PacketData             string
	PacketDataHex          string
	PacketDstChannel       string
	PacketDstPort          string
	PacketSequence         string
	PacketSrcChannel       string
	PacketSrcPort          string
	PacketTimeoutHeight    string
	PacketTimeoutTimestamp string
}

type RawMsgCreateVestingAccount

type RawMsgCreateVestingAccount struct {
	Type        string                          `mapstructure:"@type" json:"@type"`
	FromAddress string                          `mapstructure:"from_address" json:"fromAddress"`
	ToAddress   string                          `mapstructure:"to_Address" json:"toAddress"`
	Amount      []MsgCreateVestingAccountAmount `mapstructure:"amount" json:"amount"`
	EndTime     int64                           `mapstructure:"end_time" json:"endTime"`
	Delayed     bool                            `mapstructure:"delayed" json:"delayed"`
}

type RawMsgEthereumTx added in v1.3.21

type RawMsgEthereumTx struct {
	Type string `mapstructure:"@type" json:"@type"`
	Size int    `mapstructure:"size" json:"size"`
	// FIXME: https://github.com/crypto-com/chain-indexing/issues/730
	Data LegacyTx `mapstructure:"data" json:"data"`
	From string   `mapstructure:"from" json:"from"`
	Hash string   `mapstructure:"hash" json:"hash"`
}

type RawMsgExec

type RawMsgExec struct {
	Type    string       `mapstructure:"@type" json:"@type"`
	Grantee string       `mapstructure:"grantee" json:"grantee"`
	Msgs    []MsgExecMsg `mapstructure:"msgs" json:"msgs"`
}

type RawMsgGenericGrant

type RawMsgGenericGrant struct {
	Type    string       `mapstructure:"@type" json:"@type"`
	Granter string       `mapstructure:"granter" json:"granter"`
	Grantee string       `mapstructure:"grantee" json:"grantee"`
	Grant   GenericGrant `mapstructure:"grant" json:"grant"`
}

type RawMsgGrantAllowedMsgAllowance

type RawMsgGrantAllowedMsgAllowance struct {
	Type      string              `mapstructure:"@type" json:"@type"`
	Granter   string              `mapstructure:"granter" json:"granter"`
	Grantee   string              `mapstructure:"grantee" json:"grantee"`
	Allowance AllowedMsgAllowance `mapstructure:"allowance" json:"allowance"`
}

type RawMsgGrantBasicAllowance

type RawMsgGrantBasicAllowance struct {
	Type      string         `mapstructure:"@type" json:"@type"`
	Granter   string         `mapstructure:"granter" json:"granter"`
	Grantee   string         `mapstructure:"grantee" json:"grantee"`
	Allowance BasicAllowance `mapstructure:"allowance" json:"allowance"`
}

type RawMsgGrantPeriodicAllowance

type RawMsgGrantPeriodicAllowance struct {
	Type      string            `mapstructure:"@type" json:"@type"`
	Granter   string            `mapstructure:"granter" json:"granter"`
	Grantee   string            `mapstructure:"grantee" json:"grantee"`
	Allowance PeriodicAllowance `mapstructure:"allowance" json:"allowance"`
}

type RawMsgRevoke

type RawMsgRevoke struct {
	Type       string `mapstructure:"@type" json:"@type"`
	Granter    string `mapstructure:"granter" json:"granter"`
	Grantee    string `mapstructure:"grantee" json:"grantee"`
	MsgTypeURL string `mapstructure:"msg_type_url" json:"msgTypeUrl"`
}

type RawMsgRevokeAllowance

type RawMsgRevokeAllowance struct {
	Type    string `mapstructure:"@type" json:"@type"`
	Granter string `mapstructure:"granter" json:"granter"`
	Grantee string `mapstructure:"grantee" json:"grantee"`
}

type RawMsgSendGrant

type RawMsgSendGrant struct {
	Type    string    `mapstructure:"@type" json:"@type"`
	Granter string    `mapstructure:"granter" json:"granter"`
	Grantee string    `mapstructure:"grantee" json:"grantee"`
	Grant   SendGrant `mapstructure:"grant" json:"grant"`
}

type RawMsgStakeGrant

type RawMsgStakeGrant struct {
	Type    string     `mapstructure:"@type" json:"@type"`
	Granter string     `mapstructure:"granter" json:"granter"`
	Grantee string     `mapstructure:"grantee" json:"grantee"`
	Grant   StakeGrant `mapstructure:"grant" json:"grant"`
}

type RawMsgSubmitCommunityPoolSpendProposalContent

type RawMsgSubmitCommunityPoolSpendProposalContent struct {
	Type             string        `json:"@type"`
	Title            string        `json:"title"`
	Description      string        `json:"description"`
	RecipientAddress string        `json:"recipient"`
	Amount           []interface{} `json:"amount"`
}

type RawMsgSubmitSoftwareUpgradeProposalContent

type RawMsgSubmitSoftwareUpgradeProposalContent struct {
	Type        string                                  `json:"@type"`
	Title       string                                  `json:"title"`
	Description string                                  `json:"description"`
	Plan        RawMsgSubmitSoftwareUpgradeProposalPlan `json:"plan"`
}

type RawMsgSubmitSoftwareUpgradeProposalPlan

type RawMsgSubmitSoftwareUpgradeProposalPlan struct {
	Name   string    `json:"name"`
	Time   time.Time `json:"time"`
	Height string    `json:"height"`
	Info   string    `json:"info"`
}

type SendAuthorization

type SendAuthorization struct {
	SpendLimit []MsgGrantSpendLimit `mapstructure:"spend_limit" json:"spendLimit"`
}

type SendEnabled added in v1.7.22

type SendEnabled struct {
	Denom   string `json:"denom"`
	Enabled bool   `json:"enabled"`
}

type SendGrant

type SendGrant struct {
	Authorization SendAuthorization `mapstructure:"authorization" json:"authorization"`
	Expiration    string            `mapstructure:"expiration" json:"expiration"`
}

type SlashValidatorParams

type SlashValidatorParams struct {
	ConsensusNodeAddress string
	SlashedPower         string
	Reason               string
}

type StakeAuthorization

type StakeAuthorization struct {
	MaxTokens         MsgGrantMaxTokens `mapstructure:"max_tokens" json:"maxTokens,omitempty"`
	MaybeAllowList    *Validators       `mapstructure:"allow_list" json:"allowList,omitempty"`
	MaybeDenyList     *Validators       `mapstructure:"deny_list" json:"denyList,omitempty"`
	AuthorizationType string            `mapstructure:"authorization_type" json:"authorizationType,omitempty"`
}

type StakeGrant

type StakeGrant struct {
	Authorization StakeAuthorization `mapstructure:"authorization" json:"authorization"`
	Expiration    string             `mapstructure:"expiration" json:"expiration"`
}

type TransactionSigner

type TransactionSigner struct {
	MaybeKeyInfo *TransactionSignerKeyInfo `json:"keyInfo"`

	Address         string `json:"address"`
	AccountSequence uint64 `json:"accountSequence"`
}

type TransactionSignerKeyInfo added in v1.3.5

type TransactionSignerKeyInfo struct {
	Type           string   `json:"type"`
	IsMultiSig     bool     `json:"isMultiSig"`
	Pubkeys        []string `json:"pubkeys"`
	MaybeThreshold *int     `json:"threshold,omitempty"`
}

type Tx added in v1.5.1

type Tx struct {
	Tx         CosmosTx   `json:"tx"`
	TxResponse TxResponse `json:"tx_response"`
}

type TxResponse added in v1.5.1

type TxResponse struct {
	Height    int64           `json:"height,omitempty"`
	TxHash    string          `json:"txhash,omitempty"`
	Codespace string          `json:"codespace,omitempty"`
	Code      uint32          `json:"code,omitempty"`
	Data      string          `json:"data,omitempty"`
	RawLog    string          `json:"raw_log,omitempty"`
	Logs      []TxResponseLog `json:"logs"`
	Info      string          `json:"info,omitempty"`
	GasWanted int64           `json:"gas_wanted,omitempty"`
	GasUsed   int64           `json:"gas_used,omitempty"`
	Tx        TxResponseTx    `json:"tx,omitempty"`
	Timestamp string          `json:"timestamp,omitempty"`
	Events    []BlockEvent    `json:"events"`
}

type TxResponseLog added in v1.5.1

type TxResponseLog struct {
	MsgIndex uint32       `json:"msg_index,omitempty"`
	Log      string       `json:"log,omitempty"`
	Events   []BlockEvent `json:"events"`
}

type TxResponseTx added in v1.5.1

type TxResponseTx struct {
	Type string `json:"@type"`
	CosmosTx
}

type ValidatorCommission

type ValidatorCommission struct {
	Rate          string `json:"rate"`
	MaxRate       string `json:"maxRate"`
	MaxChangeRate string `json:"maxChangeRate"`
}

type ValidatorDescription

type ValidatorDescription struct {
	Moniker         string `json:"moniker"`
	Identity        string `json:"identity"`
	Website         string `json:"website"`
	SecurityContact string `json:"securityContact"`
	Details         string `json:"details"`
}

type Validators

type Validators struct {
	Address []string `mapstructure:"address" json:"address,omitempty"`
}

Directories

Path Synopsis
gov
v1

Jump to

Keyboard shortcuts

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