model

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 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 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"`
}

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 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 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 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 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 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 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 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 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

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

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

Jump to

Keyboard shortcuts

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