Documentation ¶
Index ¶
- type AccountTransferParams
- type Allowance
- type AllowedMsgAllowance
- type BasicAllowance
- type Block
- type BlockEvidence
- type BlockResults
- type BlockResultsConsensusParamUpdates
- type BlockResultsConsensusParamUpdatesBlock
- type BlockResultsConsensusParamUpdatesEvidence
- type BlockResultsConsensusParamsUpdatesValidator
- type BlockResultsEvent
- type BlockResultsEventAttribute
- type BlockResultsTxsResult
- type BlockResultsTxsResultLog
- type BlockResultsValidatorPubKey
- type BlockResultsValidatorUpdate
- type BlockSignature
- type CompleteBondingParams
- type CreateTransactionParams
- type CronosSendToIBCHeight
- type CronosSendToIBCParams
- type CronosSendToIBCToken
- type Duration
- type FungibleTokenPacketData
- type GenericAuthorization
- type GenericGrant
- type GravityEthereumSendToCosmosHandledEventParams
- type MintParams
- type MsgBeginRedelegateParams
- type MsgCreateValidatorParams
- type MsgCreateVestingAccountAmount
- type MsgCreateVestingAccountParams
- type MsgDelegateParams
- type MsgDepositParams
- type MsgEditValidatorParams
- type MsgExecMsg
- type MsgExecParams
- type MsgFundCommunityPoolParams
- type MsgGrantAllowanceParams
- type MsgGrantAllowancePeriodCanSpend
- type MsgGrantAllowancePeriodSpendLimit
- type MsgGrantAllowanceSpendLimit
- type MsgGrantMaxTokens
- type MsgGrantParams
- type MsgGrantSpendLimit
- type MsgMultiSendInput
- type MsgMultiSendOutput
- type MsgMultiSendParams
- type MsgNFTBurnNFTParams
- type MsgNFTEditNFTParams
- type MsgNFTIssueDenomParams
- type MsgNFTMintNFTParams
- type MsgNFTTransferNFTParams
- type MsgRevokeAllowanceParams
- type MsgRevokeParams
- type MsgSetWithdrawAddressParams
- type MsgSubmitCancelSoftwareUpgradeProposalContent
- type MsgSubmitCancelSoftwareUpgradeProposalParams
- type MsgSubmitCommunityPoolSpendProposalContent
- type MsgSubmitCommunityPoolSpendProposalParams
- type MsgSubmitParamChangeProposalChange
- type MsgSubmitParamChangeProposalContent
- type MsgSubmitParamChangeProposalParams
- type MsgSubmitProposalContent
- type MsgSubmitSoftwareUpgradeProposalContent
- type MsgSubmitSoftwareUpgradeProposalParams
- type MsgSubmitSoftwareUpgradeProposalPlan
- type MsgSubmitTextProposalContent
- type MsgSubmitTextProposalParams
- type MsgUndelegateParams
- type MsgUnjailParams
- type MsgVoteParams
- type MsgWithdrawDelegatorRewardParams
- type MsgWithdrawValidatorCommissionParams
- type PeriodicAllowance
- type PowerChangeParams
- type RawBlock
- type RawBlockSignature
- type RawCronosSendToIBCParams
- type RawMsgCreateVestingAccount
- type RawMsgExec
- type RawMsgGenericGrant
- type RawMsgGrantAllowedMsgAllowance
- type RawMsgGrantBasicAllowance
- type RawMsgGrantPeriodicAllowance
- type RawMsgRevoke
- type RawMsgRevokeAllowance
- type RawMsgSendGrant
- type RawMsgStakeGrant
- type RawMsgSubmitCommunityPoolSpendProposalContent
- type RawMsgSubmitSoftwareUpgradeProposalContent
- type RawMsgSubmitSoftwareUpgradeProposalPlan
- type SendAuthorization
- type SendGrant
- type SlashValidatorParams
- type StakeAuthorization
- type StakeGrant
- type TransactionSigner
- type TransactionSignerInfo
- type ValidatorCommission
- type ValidatorDescription
- type Validators
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountTransferParams ¶
type AllowedMsgAllowance ¶
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"` }
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 BlockResultsConsensusParamsUpdatesValidator ¶
type BlockResultsConsensusParamsUpdatesValidator struct {
PubKeyTypes []string `json:"pubKeyTypes"`
}
type BlockResultsEvent ¶
type BlockResultsEvent struct { Type string `json:"type"` Attributes []BlockResultsEventAttribute `json:"attributes"` }
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 BlockResultsValidatorUpdate ¶
type BlockResultsValidatorUpdate struct { Pubkey BlockResultsValidatorPubKey `json:"pubkey"` Address string `json:"address"` MaybePower *big.Int `json:"power"` }
type BlockSignature ¶
type CompleteBondingParams ¶
type CreateTransactionParams ¶
type CronosSendToIBCHeight ¶
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 FungibleTokenPacketData ¶
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 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 MsgCreateVestingAccountParams ¶
type MsgCreateVestingAccountParams struct {
RawMsgCreateVestingAccount
}
type MsgDelegateParams ¶
type MsgDepositParams ¶
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 MsgGrantAllowanceParams ¶
type MsgGrantAllowanceParams struct { MaybeBasicAllowance *RawMsgGrantBasicAllowance `json:"maybeBasicAllowance"` MaybePeriodicAllowance *RawMsgGrantPeriodicAllowance `json:"maybePeriodicAllowance"` MaybeAllowedMsgAllowance *RawMsgGrantAllowedMsgAllowance `json:"maybeAllowedMsgAllowance"` }
type MsgGrantMaxTokens ¶
type MsgGrantParams ¶
type MsgGrantParams struct { MaybeSendGrant *RawMsgSendGrant `json:"maybeSendGrant"` MaybeStakeGrant *RawMsgStakeGrant `json:"maybeStakeGrant"` MaybeGenericGrant *RawMsgGenericGrant `json:"maybeGenericGrant"` }
type MsgGrantSpendLimit ¶
type MsgMultiSendInput ¶
type MsgMultiSendOutput ¶
type MsgMultiSendParams ¶
type MsgMultiSendParams struct { Inputs []MsgMultiSendInput `json:"inputs"` Outputs []MsgMultiSendOutput `json:"outputs"` }
type MsgNFTBurnNFTParams ¶
type MsgNFTEditNFTParams ¶
type MsgNFTIssueDenomParams ¶
type MsgNFTMintNFTParams ¶
type MsgNFTTransferNFTParams ¶
type MsgRevokeAllowanceParams ¶
type MsgRevokeAllowanceParams struct {
RawMsgRevokeAllowance
}
type MsgRevokeParams ¶
type MsgRevokeParams struct {
RawMsgRevoke
}
type MsgSubmitCancelSoftwareUpgradeProposalParams ¶
type MsgSubmitCancelSoftwareUpgradeProposalParams struct { MaybeProposalId *string `json:"proposalId"` Content MsgSubmitCancelSoftwareUpgradeProposalContent `json:"content"` ProposerAddress string `json:"proposerAddress"` InitialDeposit coin.Coins `json:"initialDeposit"` }
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 MsgSubmitTextProposalParams ¶
type MsgSubmitTextProposalParams struct { MaybeProposalId *string `json:"proposalId"` Content MsgSubmitTextProposalContent `json:"content"` ProposerAddress string `json:"proposerAddress"` InitialDeposit coin.Coins `json:"initialDeposit"` }
type MsgUndelegateParams ¶
type MsgUnjailParams ¶
type MsgUnjailParams struct {
ValidatorAddr string `json:"address"`
}
type MsgVoteParams ¶
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 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
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 RawMsgRevokeAllowance ¶
type RawMsgSendGrant ¶
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 RawMsgSubmitSoftwareUpgradeProposalContent ¶
type RawMsgSubmitSoftwareUpgradeProposalContent struct { Type string `json:"@type"` Title string `json:"title"` Description string `json:"description"` Plan RawMsgSubmitSoftwareUpgradeProposalPlan `json:"plan"` }
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 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 { TransactionSignerInfo Address string `json:"address"` }
type TransactionSignerInfo ¶
type ValidatorCommission ¶
type ValidatorDescription ¶
type Validators ¶
type Validators struct {
Address []string `mapstructure:"address" json:"address,omitempty"`
}
Source Files ¶
- account_transfer.go
- block.go
- blockresults.go
- complete_bonding.go
- cronos_send_to_ibc.go
- duration.go
- ethereum_send_to_cosmos_handled.go
- mint_params.go
- msg_create_validator.go
- msg_create_vesting_account.go
- msg_deposit_params.go
- msg_edit_validator.go
- msg_exec.go
- msg_grant.go
- msg_grant_allowance.go
- msg_nft_burn_nft_params.go
- msg_nft_edit_nft_params.go
- msg_nft_issue_denom_params.go
- msg_nft_mint_nft_params.go
- msg_nft_transfer_nft_params.go
- msg_revoke.go
- msg_revoke_allowance.go
- msg_submit_proposal.go
- msg_vote.go
- msgbeginredelegate.go
- msgdelegate.go
- msgfundcommunitypool.go
- msgmultisend.go
- msgsetwithdrawaddress.go
- msgundelegate.go
- msgunjail.go
- msgwithdrawdelegatorreward.go
- msgwithdrawvalidatorcommission.go
- powerchange.go
- rawblock.go
- slash_validator.go
- transaction.go
- validator.go
Click to show internal directories.
Click to hide internal directories.