Documentation ¶
Index ¶
- Constants
- Variables
- func SetChainConfig()
- type AccountInfoMsg
- type AccountInfoResponse
- type AppliedMsg
- type AuthzExecMsg
- type AuthzGrantMsg
- type AuthzRevokeMsg
- type BankBalancesMsg
- type BankSendMsg
- type BlockMsg
- type BlockResponse
- type CallSolContractMsg
- type CallSolContractResponse
- type CancelSoftwareUpgradeMsg
- type ClearContractAdminMsg
- type CodeInfoMsg
- type CommunityPoolSpendMsg
- type ContractHistoryMsg
- type ContractInfoMsg
- type ContractStateAllMsg
- type CreateValidatorMsg
- type DecodeTxMsg
- type DelegateMsg
- type DenomMetadataMsg
- type DeploySolContractMsg
- type DownloadMsg
- type EditValidatorMsg
- type EncodeTxMsg
- type EstimateGasResponse
- type EthAccountsResponse
- type EthBlockNumberResponse
- type EthChainIdResponse
- type EthCoinbaseResponse
- type EthGetBlockTransactionCountMsg
- type EthGetBlockTransactionCountResponse
- type EthGetFilterChangesMsg
- type EthGetFilterChangesResponse
- type EthGetFilterLogsMsg
- type EthGetFilterLogsResponse
- type EthGetLogsMsg
- type EthGetLogsResponse
- type EthNewBlockFilterResponse
- type EthNewFilterMsg
- type EthNewFilterResponse
- type EthNewPendingTransactionFilterResponse
- type EthProtocolVersionResponse
- type EthSyncingResponse
- type EthUninstallFilterMsg
- type EthUninstallFilterResponse
- type ExecuteMsg
- type FeeGrantMsg
- type FundCommunityPoolMsg
- type FundFeeCollectorMsg
- type GetBlockByHashHeightMsg
- type GetTransactionByBlockHashAndIndexMsg
- type GetTransactionByHashMsg
- type GetTransactionReceiptMsg
- type GovDepositMsg
- type GovParamsMsg
- type HistoricalInfoMsg
- type IbcChannelClientStateMsg
- type IbcChannelConnectionsMsg
- type IbcChannelMsg
- type IbcChannelNextSequenceMsg
- type IbcChannelPacketAckMsg
- type IbcChannelPacketCommitmentsMsg
- type IbcChannelPacketReceiptMsg
- type IbcChannelUnreceivedAcksMsg
- type IbcChannelUnreceivedPacketsMsg
- type IbcClientConnectionsMsg
- type IbcClientConsensusStateHeightsMsg
- type IbcClientConsensusStateMsg
- type IbcClientConsensusStatesMsg
- type IbcClientStateMsg
- type IbcClientStatusMsg
- type IbcConnectionMsg
- type IbcDenomHashMsg
- type IbcDenomTraceMsg
- type IbcEscrowAddressMsg
- type InstantiateMsg
- type InvariantBrokenMsg
- type InvokeSolContractMsg
- type ListContractByCodeMsg
- type MigrateMsg
- type NetListeningResponse
- type NetPeerCountResponse
- type NetVersionResponse
- type Pagination
- type ParamChangeMsg
- type ProposerMsg
- type QueryAccAddressMsg
- type QueryAuthzGrantMsg
- type QueryDelegationMsg
- type QueryDepositMsg
- type QueryDistCommissionMsg
- type QueryDistRewardsMsg
- type QueryDistSlashesMsg
- type QueryEvidenceMsg
- type QueryFeeGrantMsg
- type QueryModulesVersionMsg
- type QueryMsg
- type QueryProposalMsg
- type QueryProposalsMsg
- type QueryRedelegationMsg
- type QueryTxMsg
- type QueryTxsByEventsMsg
- type QueryUnbondingDelegationMsg
- type QueryValidatorMsg
- type QueryVoteMsg
- type RedelegateMsg
- type RegisterVolunteerValidatorMsg
- type RevokeFeeGrantMsg
- type SendCoinMsg
- type SetContractAdminMsg
- type SetWithdrawAddrMsg
- type SignTxMsg
- type SigningInfoMsg
- type SoftwareUpgradeMsg
- type StoreMsg
- type SubmitProposalMsg
- type SubspaceMsg
- type SuggestGasPriceResponse
- type TallyMsg
- type TotalMsg
- type TxMultiSignMsg
- type TxRes
- type UnbondMsg
- type UnregisterVolunteerValidatorMsg
- type ValidateSignaturesMsg
- type ValidatorOutstandingRewardsMsg
- type ValidatorSetMsg
- type VoteMsg
- type Web3ClientVersionResponse
- type Web3Sha3Msg
- type Web3Sha3Response
- type WeightedVoteMsg
- type WithdrawRewardsMsg
Constants ¶
View Source
const ( // New mnemonic entropy size DefaultEntropySize = 256 // Xpla base denomination XplaDenom = "axpla" // Xpla default key algorithm name DefaultXplaKeyAlgo = "eth_secp256k1" // Xpla tool default name XplaToolDefaultName = "xpla" // axpla base denom unit BaseDenomUnit = 18 // query method type QueryGrpc = 1 QueryLcd = 2 DefaultGasLimit = "250000" DefaultGasPrice = "5100000000000" DefaultGasAdjustment = "1.75" DefaultAccNum = 0 DefaultAccSeq = 0 )
Variables ¶
View Source
var ( DefaultTokens = sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction) DefaultAmount = DefaultTokens.String() + XplaDenom DefaultCommissionRate = "0.1" DefaultCommissionMaxRate = "0.2" DefaultCommissionMaxChangeRate = "0.01" DefaultMinSelfDelegation = "1" DefaultHomeDir = ".xpla" Memo string )
Functions ¶
func SetChainConfig ¶
func SetChainConfig()
Types ¶
type AccountInfoMsg ¶
type AccountInfoMsg struct {
Account string
}
type AccountInfoResponse ¶
type AccountInfoResponse struct { Account string `json:"account"` Bech32Account string `json:"bech32_account"` Balance *big.Int `json:"balance"` Nonce uint64 `json:"nonce"` Storage string `json:"storage"` Code string `json:"code"` PendingBalance *big.Int `json:"pending_balance"` PendingNonce uint64 `json:"pending_nonce"` PendingStorage string `json:"pending_storage"` PendingCode string `json:"pending_code"` PendingTransactionCount uint `json:"pending_transaction_count"` }
type AppliedMsg ¶
type AppliedMsg struct {
UpgradeName string
}
type AuthzExecMsg ¶
type AuthzGrantMsg ¶
type AuthzRevokeMsg ¶
type BankBalancesMsg ¶
type BankSendMsg ¶
type BlockResponse ¶
type CallSolContractMsg ¶
type CallSolContractResponse ¶
type CallSolContractResponse struct {
ContractResponse []string `json:"contract_response"`
}
Responses
type ClearContractAdminMsg ¶
type ClearContractAdminMsg struct {
ContractAddress string
}
type CodeInfoMsg ¶
type CodeInfoMsg struct {
CodeId string
}
type CommunityPoolSpendMsg ¶
type ContractHistoryMsg ¶
type ContractHistoryMsg struct {
ContractAddress string
}
type ContractInfoMsg ¶
type ContractInfoMsg struct {
ContractAddress string
}
type ContractStateAllMsg ¶
type ContractStateAllMsg struct {
ContractAddress string
}
type CreateValidatorMsg ¶
type CreateValidatorMsg struct { NodeKey string PrivValidatorKey string ValidatorAddress string HomeDir string Website string SecurityContact string Identity string Moniker string Amount string Details string CommissionRate string CommissionMaxRate string CommissionMaxChangeRate string MinSelfDelegation string ServerIp string }
type DecodeTxMsg ¶
type DecodeTxMsg struct {
EncodedByteString string
}
type DelegateMsg ¶
type DenomMetadataMsg ¶
type DenomMetadataMsg struct {
Denom string
}
type DeploySolContractMsg ¶
type DownloadMsg ¶
type EditValidatorMsg ¶
type EncodeTxMsg ¶
type EncodeTxMsg struct {
FileName string
}
type EstimateGasResponse ¶
type EstimateGasResponse struct {
EstimateGas uint64 `json:"eth_estimateGas"`
}
type EthAccountsResponse ¶
type EthAccountsResponse struct {
EthAccounts []string `json:"eth_accounts"`
}
type EthBlockNumberResponse ¶
type EthBlockNumberResponse struct {
BlockNumber uint64 `json:"block_number"`
}
type EthChainIdResponse ¶
type EthCoinbaseResponse ¶
type EthCoinbaseResponse struct {
Coinbase string `json:"eth_coinbase"`
}
type EthGetFilterChangesMsg ¶
type EthGetFilterChangesMsg struct {
FilterId string
}
type EthGetFilterChangesResponse ¶
type EthGetFilterChangesResponse struct {
GetFilterChanges []string `json:"eth_getFilterChanges"`
}
type EthGetFilterLogsMsg ¶
type EthGetFilterLogsMsg struct {
FilterId string
}
type EthGetFilterLogsResponse ¶
type EthGetFilterLogsResponse struct {
GetFilterLogs []string `json:"eth_getFilterLogs"`
}
type EthGetLogsMsg ¶
type EthGetLogsResponse ¶
type EthGetLogsResponse struct {
GetLogs interface{} `json:"eth_getLogs"`
}
type EthNewBlockFilterResponse ¶
type EthNewBlockFilterResponse struct {
NewBlockFilter interface{} `json:"eth_newBlockFilter"`
}
type EthNewFilterMsg ¶
type EthNewFilterResponse ¶
type EthNewFilterResponse struct {
NewFilter interface{} `json:"eth_newFilter"`
}
type EthNewPendingTransactionFilterResponse ¶
type EthNewPendingTransactionFilterResponse struct {
NewPendingTransactionFilter interface{} `json:"eth_newPendingTransactionFilter"`
}
type EthSyncingResponse ¶
type EthSyncingResponse struct {
EthSyncing bool `json:"eth_syncing"`
}
type EthUninstallFilterMsg ¶
type EthUninstallFilterMsg struct {
FilterId string
}
type EthUninstallFilterResponse ¶
type EthUninstallFilterResponse struct {
UninstallFilter bool `json:"eth_uninstallFilter"`
}
type ExecuteMsg ¶
type FeeGrantMsg ¶
type FundCommunityPoolMsg ¶
type FundCommunityPoolMsg struct {
Amount string
}
type FundFeeCollectorMsg ¶
type GetBlockByHashHeightMsg ¶
type GetTransactionByHashMsg ¶
type GetTransactionByHashMsg struct {
TxHash string
}
type GetTransactionReceiptMsg ¶
type GetTransactionReceiptMsg struct {
TransactionHash string
}
type GovDepositMsg ¶
type GovParamsMsg ¶
type GovParamsMsg struct {
ParamType string
}
type HistoricalInfoMsg ¶
type HistoricalInfoMsg struct {
Height string
}
type IbcChannelConnectionsMsg ¶
type IbcChannelConnectionsMsg struct {
ConnectionId string
}
type IbcChannelMsg ¶
type IbcChannelPacketAckMsg ¶
type IbcClientConnectionsMsg ¶
type IbcClientConnectionsMsg struct {
ClientId string
}
type IbcClientConsensusStateHeightsMsg ¶
type IbcClientConsensusStateHeightsMsg struct {
ClientId string
}
type IbcClientConsensusStatesMsg ¶
type IbcClientConsensusStatesMsg struct {
ClientId string
}
type IbcClientStateMsg ¶
type IbcClientStateMsg struct {
ClientId string
}
type IbcClientStatusMsg ¶
type IbcClientStatusMsg struct {
ClientId string
}
type IbcConnectionMsg ¶
type IbcConnectionMsg struct {
ConnectionId string
}
type IbcDenomHashMsg ¶
type IbcDenomHashMsg struct {
Trace string
}
type IbcDenomTraceMsg ¶
type IbcDenomTraceMsg struct {
HashDenom string
}
type IbcEscrowAddressMsg ¶
type InstantiateMsg ¶
type InvariantBrokenMsg ¶
type InvokeSolContractMsg ¶
type ListContractByCodeMsg ¶
type ListContractByCodeMsg struct {
CodeId string
}
type MigrateMsg ¶
type NetListeningResponse ¶
type NetListeningResponse struct {
NetListening bool `json:"net_listening"`
}
type NetPeerCountResponse ¶
type NetPeerCountResponse struct {
NetPeerCount int `json:"net_peerCount"`
}
type NetVersionResponse ¶
type NetVersionResponse struct {
NetVersion string `json:"net_version"`
}
type Pagination ¶
type ParamChangeMsg ¶
type ProposerMsg ¶
type ProposerMsg struct {
ProposalID string
}
type QueryAccAddressMsg ¶
type QueryAccAddressMsg struct {
Address string
}
type QueryAuthzGrantMsg ¶
type QueryDelegationMsg ¶
type QueryDepositMsg ¶
type QueryDistCommissionMsg ¶
type QueryDistCommissionMsg struct {
ValidatorAddr string
}
type QueryDistRewardsMsg ¶
type QueryDistSlashesMsg ¶
type QueryEvidenceMsg ¶
type QueryEvidenceMsg struct {
Hash string
}
type QueryFeeGrantMsg ¶
type QueryModulesVersionMsg ¶
type QueryModulesVersionMsg struct {
ModuleName string
}
type QueryProposalMsg ¶
type QueryProposalMsg struct {
ProposalID string
}
type QueryProposalsMsg ¶
type QueryRedelegationMsg ¶
type QueryTxMsg ¶
type QueryTxsByEventsMsg ¶
type QueryValidatorMsg ¶
type QueryValidatorMsg struct {
ValidatorAddr string
}
type QueryVoteMsg ¶
type RedelegateMsg ¶
type RegisterVolunteerValidatorMsg ¶ added in v0.1.3
type RevokeFeeGrantMsg ¶
type SendCoinMsg ¶
type SetContractAdminMsg ¶
type SetWithdrawAddrMsg ¶
type SetWithdrawAddrMsg struct {
WithdrawAddr string
}
type SigningInfoMsg ¶
type SoftwareUpgradeMsg ¶
type SubmitProposalMsg ¶
type SubspaceMsg ¶
type SuggestGasPriceResponse ¶
type TxMultiSignMsg ¶
type UnregisterVolunteerValidatorMsg ¶ added in v0.1.3
type ValidateSignaturesMsg ¶
type ValidatorOutstandingRewardsMsg ¶
type ValidatorOutstandingRewardsMsg struct {
ValidatorAddr string
}
type ValidatorSetMsg ¶
type ValidatorSetMsg struct {
Height string
}
type Web3ClientVersionResponse ¶
type Web3ClientVersionResponse struct {
Web3ClientVersion string `json:"web3_clientVersion"`
}
type Web3Sha3Msg ¶
type Web3Sha3Msg struct {
InputParam string
}
type Web3Sha3Response ¶
type Web3Sha3Response struct {
Web3Sha3 string `json:"web3_sha3"`
}
type WeightedVoteMsg ¶
type WithdrawRewardsMsg ¶
Source Files ¶
- chain.go
- core_auth_msg.go
- core_authz_msg.go
- core_bank_msg.go
- core_base_msg.go
- core_crisis_msg.go
- core_distribution_msg.go
- core_evidence_msg.go
- core_evm_msg.go
- core_feegrant_msg.go
- core_gov_msg.go
- core_ibc_msg.go
- core_params_msg.go
- core_reward_msg.go
- core_slashing_msg.go
- core_staking_msg.go
- core_upgrade_msg.go
- core_volunteer_msg.go
- core_wasm_msg.go
- pagination.go
- response.go
- types.go
Click to show internal directories.
Click to hide internal directories.