types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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"

	// query method type
	QueryGrpc = 1
	QueryLcd  = 2

	DefaultGasLimit      = "250000"
	DefaultGasPrice      = "850000000000"
	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 added in v0.0.4

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 AuthzExecMsg struct {
	Grantee      string
	ExecFile     string
	ExecTxString string
}

type AuthzGrantMsg

type AuthzGrantMsg struct {
	Grantee           string
	Granter           string
	SpendLimit        string
	Expiration        string
	MsgType           string
	AllowValidators   []string
	DenyValidators    []string
	AuthorizationType string
}

type AuthzRevokeMsg

type AuthzRevokeMsg struct {
	Grantee string
	Granter string
	MsgType string
}

type BankBalancesMsg

type BankBalancesMsg struct {
	Address string
	Denom   string
}

type BankSendMsg

type BankSendMsg struct {
	FromAddress string
	ToAddress   string
	Amount      string
}

type BlockMsg added in v0.0.12

type BlockMsg struct {
	Height string
}

type BlockResponse

type BlockResponse struct {
	BlockHeader  *ethtypes.Header      `json:"blockHeader"`
	Transactions ethtypes.Transactions `json:"transactions"`
	Uncles       []*ethtypes.Header    `json:"uncles"`
}

type CallSolContractMsg

type CallSolContractMsg struct {
	ContractAddress      string
	ContractFuncCallName string
	Args                 []interface{}
	ABI                  string
	Bytecode             string
	ABIJsonFilePath      string
	BytecodeJsonFilePath string
	FromByteAddress      string
}

type CallSolContractResponse

type CallSolContractResponse struct {
	ContractResponse []string `json:"contract_response"`
}

Responses

type CancelSoftwareUpgradeMsg

type CancelSoftwareUpgradeMsg struct {
	Title       string
	Description string
	Deposit     string
}

type ClearContractAdminMsg

type ClearContractAdminMsg struct {
	ContractAddress string
}

type CodeInfoMsg

type CodeInfoMsg struct {
	CodeId string
}

type CommunityPoolSpendMsg

type CommunityPoolSpendMsg struct {
	Title        string
	Description  string
	Recipient    string
	Amount       string
	Deposit      string
	JsonFilePath string
}

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 DelegateMsg struct {
	Amount  string
	ValAddr string
}

type DenomMetadataMsg

type DenomMetadataMsg struct {
	Denom string
}

type DeploySolContractMsg

type DeploySolContractMsg struct {
	ABI                  string
	Bytecode             string
	ABIJsonFilePath      string
	BytecodeJsonFilePath string
	Args                 []interface{}
}

type DownloadMsg

type DownloadMsg struct {
	CodeId           string
	DownloadFileName string
}

type EditValidatorMsg

type EditValidatorMsg struct {
	Website           string
	SecurityContact   string
	Identity          string
	Details           string
	Moniker           string
	CommissionRate    string
	MinSelfDelegation string
}

type EncodeTxMsg

type EncodeTxMsg struct {
	FileName string
}

type EstimateGasResponse added in v0.0.6

type EstimateGasResponse struct {
	EstimateGas uint64 `json:"eth_estimateGas"`
}

type EthAccountsResponse added in v0.0.6

type EthAccountsResponse struct {
	EthAccounts []string `json:"eth_accounts"`
}

type EthBlockNumberResponse

type EthBlockNumberResponse struct {
	BlockNumber uint64 `json:"block_number"`
}

type EthChainIdResponse

type EthChainIdResponse struct {
	ChainID *big.Int `json:"chain_id"`
}

type EthCoinbaseResponse added in v0.0.6

type EthCoinbaseResponse struct {
	Coinbase string `json:"eth_coinbase"`
}

type EthGetBlockTransactionCountMsg added in v0.0.6

type EthGetBlockTransactionCountMsg struct {
	BlockHash   string
	BlockHeight string
}

type EthGetBlockTransactionCountResponse added in v0.0.6

type EthGetBlockTransactionCountResponse struct {
	EthGetBlockTransactionCountHex string   `json:"eth_getBlockTransactionCount_hex"`
	EthGetBlockTransactionCount    *big.Int `json:"eth_getBlockTransactionCount"`
}

type EthGetFilterChangesMsg added in v0.0.6

type EthGetFilterChangesMsg struct {
	FilterId string
}

type EthGetFilterChangesResponse added in v0.0.6

type EthGetFilterChangesResponse struct {
	GetFilterChanges []string `json:"eth_getFilterChanges"`
}

type EthGetFilterLogsMsg added in v0.0.6

type EthGetFilterLogsMsg struct {
	FilterId string
}

type EthGetFilterLogsResponse added in v0.0.6

type EthGetFilterLogsResponse struct {
	GetFilterLogs []string `json:"eth_getFilterLogs"`
}

type EthGetLogsMsg added in v0.0.6

type EthGetLogsMsg struct {
	BlockHash string
	FromBlock string
	ToBlock   string
	Address   []string
	Topics    []string
}

type EthGetLogsResponse added in v0.0.6

type EthGetLogsResponse struct {
	GetLogs interface{} `json:"eth_getLogs"`
}

type EthNewBlockFilterResponse added in v0.0.6

type EthNewBlockFilterResponse struct {
	NewBlockFilter interface{} `json:"eth_newBlockFilter"`
}

type EthNewFilterMsg added in v0.0.6

type EthNewFilterMsg struct {
	FromBlock string
	ToBlock   string
	Address   []string
	Topics    []string
}

type EthNewFilterResponse added in v0.0.6

type EthNewFilterResponse struct {
	NewFilter interface{} `json:"eth_newFilter"`
}

type EthNewPendingTransactionFilterResponse added in v0.0.6

type EthNewPendingTransactionFilterResponse struct {
	NewPendingTransactionFilter interface{} `json:"eth_newPendingTransactionFilter"`
}

type EthProtocolVersionResponse added in v0.0.6

type EthProtocolVersionResponse struct {
	EthProtocolVersionHex string   `json:"eth_protocolVersion_hex"`
	EthProtocolVersion    *big.Int `json:"eth_protocolVersion"`
}

type EthSyncingResponse added in v0.0.6

type EthSyncingResponse struct {
	EthSyncing bool `json:"eth_syncing"`
}

type EthUninstallFilterMsg added in v0.1.0

type EthUninstallFilterMsg struct {
	FilterId string
}

type EthUninstallFilterResponse added in v0.0.6

type EthUninstallFilterResponse struct {
	UninstallFilter bool `json:"eth_uninstallFilter"`
}

type ExecuteMsg

type ExecuteMsg struct {
	ContractAddress string
	Amount          string
	ExecMsg         string
}

type FeeGrantMsg added in v0.0.5

type FeeGrantMsg struct {
	Grantee     string
	Granter     string
	SpendLimit  string
	Expiration  string
	Period      string
	PeriodLimit string
	AllowedMsg  []string
}

type FundCommunityPoolMsg

type FundCommunityPoolMsg struct {
	Amount string
}

type FundFeeCollectorMsg added in v0.0.3

type FundFeeCollectorMsg struct {
	DepositorAddr string
	Amount        string
}

type GetBlockByHashHeightMsg

type GetBlockByHashHeightMsg struct {
	BlockHash   string
	BlockHeight string
}

type GetTransactionByBlockHashAndIndexMsg added in v0.0.6

type GetTransactionByBlockHashAndIndexMsg struct {
	BlockHash string
	Index     string
}

type GetTransactionByHashMsg

type GetTransactionByHashMsg struct {
	TxHash string
}

type GetTransactionReceiptMsg added in v0.0.6

type GetTransactionReceiptMsg struct {
	TransactionHash string
}

type GovDepositMsg

type GovDepositMsg struct {
	ProposalID string
	Deposit    string
}

type GovParamsMsg

type GovParamsMsg struct {
	ParamType string
}

type HistoricalInfoMsg

type HistoricalInfoMsg struct {
	Height string
}

type IbcChannelClientStateMsg added in v0.0.10

type IbcChannelClientStateMsg struct {
	ChannelId string
	PortId    string
}

type IbcChannelConnectionsMsg added in v0.0.10

type IbcChannelConnectionsMsg struct {
	ConnectionId string
}

type IbcChannelMsg added in v0.0.10

type IbcChannelMsg struct {
	PortId    string
	ChannelId string
}

type IbcChannelNextSequenceMsg added in v0.0.10

type IbcChannelNextSequenceMsg struct {
	ChannelId string
	PortId    string
}

type IbcChannelPacketAckMsg added in v0.0.10

type IbcChannelPacketAckMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelPacketCommitmentsMsg added in v0.0.10

type IbcChannelPacketCommitmentsMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelPacketReceiptMsg added in v0.0.10

type IbcChannelPacketReceiptMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelUnreceivedAcksMsg added in v0.0.10

type IbcChannelUnreceivedAcksMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelUnreceivedPacketsMsg added in v0.0.10

type IbcChannelUnreceivedPacketsMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcClientConnectionsMsg added in v0.0.10

type IbcClientConnectionsMsg struct {
	ClientId string
}

type IbcClientConsensusStateHeightsMsg added in v0.0.10

type IbcClientConsensusStateHeightsMsg struct {
	ClientId string
}

type IbcClientConsensusStateMsg added in v0.0.10

type IbcClientConsensusStateMsg struct {
	ClientId     string
	Height       string
	LatestHeight bool
}

type IbcClientConsensusStatesMsg added in v0.0.10

type IbcClientConsensusStatesMsg struct {
	ClientId string
}

type IbcClientStateMsg added in v0.0.10

type IbcClientStateMsg struct {
	ClientId string
}

type IbcClientStatusMsg added in v0.0.10

type IbcClientStatusMsg struct {
	ClientId string
}

type IbcConnectionMsg added in v0.0.10

type IbcConnectionMsg struct {
	ConnectionId string
}

type IbcDenomHashMsg added in v0.0.10

type IbcDenomHashMsg struct {
	Trace string
}

type IbcDenomTraceMsg added in v0.0.10

type IbcDenomTraceMsg struct {
	HashDenom string
}

type IbcEscrowAddressMsg added in v0.0.10

type IbcEscrowAddressMsg struct {
	ChannelId string
	PortId    string
}

type InstantiateMsg

type InstantiateMsg struct {
	CodeId  string
	Amount  string
	Label   string
	InitMsg string
	Admin   string
	NoAdmin string
}

type InvariantBrokenMsg

type InvariantBrokenMsg struct {
	ModuleName     string
	InvariantRoute string
}

type InvokeSolContractMsg

type InvokeSolContractMsg struct {
	ContractAddress      string
	ContractFuncCallName string
	Args                 []interface{}
	ABI                  string
	Bytecode             string
	ABIJsonFilePath      string
	BytecodeJsonFilePath string
	FromByteAddress      string
}

type ListContractByCodeMsg

type ListContractByCodeMsg struct {
	CodeId string
}

type MigrateMsg

type MigrateMsg struct {
	ContractAddress string
	CodeId          string
	MigrateMsg      string
}

type NetListeningResponse added in v0.0.6

type NetListeningResponse struct {
	NetListening bool `json:"net_listening"`
}

type NetPeerCountResponse added in v0.0.6

type NetPeerCountResponse struct {
	NetPeerCount int `json:"net_peerCount"`
}

type NetVersionResponse added in v0.0.6

type NetVersionResponse struct {
	NetVersion string `json:"net_version"`
}

type Pagination

type Pagination struct {
	PageKey    string
	Offset     uint64
	Limit      uint64
	CountTotal bool
	Page       uint64
	Reverse    bool
}

type ParamChangeMsg

type ParamChangeMsg struct {
	Title        string
	Description  string
	Changes      []string
	Deposit      string
	JsonFilePath string
}

type ProposerMsg

type ProposerMsg struct {
	ProposalID string
}

type QueryAccAddressMsg

type QueryAccAddressMsg struct {
	Address string
}

type QueryAuthzGrantMsg

type QueryAuthzGrantMsg struct {
	Grantee string
	Granter string
	MsgType string
}

type QueryDelegationMsg

type QueryDelegationMsg struct {
	DelegatorAddr string
	ValidatorAddr string
}

type QueryDepositMsg

type QueryDepositMsg struct {
	ProposalID string
	Depositor  string
}

type QueryDistCommissionMsg

type QueryDistCommissionMsg struct {
	ValidatorAddr string
}

type QueryDistRewardsMsg

type QueryDistRewardsMsg struct {
	ValidatorAddr string
	DelegatorAddr string
}

type QueryDistSlashesMsg

type QueryDistSlashesMsg struct {
	ValidatorAddr string
	StartHeight   string
	EndHeight     string
}

type QueryEvidenceMsg

type QueryEvidenceMsg struct {
	Hash string
}

type QueryFeeGrantMsg added in v0.0.5

type QueryFeeGrantMsg struct {
	Grantee string
	Granter string
}

type QueryModulesVersionMsg

type QueryModulesVersionMsg struct {
	ModuleName string
}

type QueryMsg

type QueryMsg struct {
	ContractAddress string
	QueryMsg        string
}

type QueryProposalMsg

type QueryProposalMsg struct {
	ProposalID string
}

type QueryProposalsMsg

type QueryProposalsMsg struct {
	Depositor string
	Voter     string
	Status    string
}

type QueryRedelegationMsg

type QueryRedelegationMsg struct {
	DelegatorAddr    string
	SrcValidatorAddr string
	DstValidatorAddr string
}

type QueryTxMsg

type QueryTxMsg struct {
	Value string
	Type  string
}

type QueryTxsByEventsMsg

type QueryTxsByEventsMsg struct {
	Events string
	Page   string
	Limit  string
}

type QueryUnbondingDelegationMsg

type QueryUnbondingDelegationMsg struct {
	DelegatorAddr string
	ValidatorAddr string
}

type QueryValidatorMsg

type QueryValidatorMsg struct {
	ValidatorAddr string
}

type QueryVoteMsg

type QueryVoteMsg struct {
	ProposalID string
	VoterAddr  string
}

type RedelegateMsg

type RedelegateMsg struct {
	Amount     string
	ValSrcAddr string
	ValDstAddr string
}

type RevokeFeeGrantMsg added in v0.0.5

type RevokeFeeGrantMsg struct {
	Grantee string
	Granter string
}

type SendCoinMsg

type SendCoinMsg struct {
	Amount      string
	FromAddress string
	ToAddress   string
}

type SetContractAdminMsg

type SetContractAdminMsg struct {
	NewAdmin        string
	ContractAddress string
}

type SetWithdrawAddrMsg added in v0.1.3

type SetWithdrawAddrMsg struct {
	WithdrawAddr string
}

type SignTxMsg

type SignTxMsg struct {
	UnsignedFileName string
	SignatureOnly    bool
	MultisigAddress  string
	FromAddress      string
	Overwrite        bool
	Amino            bool
}

type SigningInfoMsg

type SigningInfoMsg struct {
	ConsPubKey string
	ConsAddr   string
}

type SoftwareUpgradeMsg

type SoftwareUpgradeMsg struct {
	UpgradeName   string
	Title         string
	Description   string
	UpgradeHeight string
	UpgradeInfo   string
	Deposit       string
}

type StoreMsg added in v0.0.4

type StoreMsg struct {
	FilePath              string
	InstantiatePermission string
}

type SubmitProposalMsg

type SubmitProposalMsg struct {
	Title       string
	Description string
	Type        string
	Deposit     string
}

type SubspaceMsg

type SubspaceMsg struct {
	Subspace string
	Key      string
}

type SuggestGasPriceResponse

type SuggestGasPriceResponse struct {
	GasPrice  *big.Int `json:"gas_price"`
	GasTipCap *big.Int `json:"gas_tip_cap"`
}

type TallyMsg

type TallyMsg struct {
	ProposalID string
}

type TotalMsg

type TotalMsg struct {
	Denom string
}

type TxMultiSignMsg

type TxMultiSignMsg struct {
	FileName       string
	GenerateOnly   bool
	FromName       string
	Offline        bool
	SignatureFiles []string
	OutputDocument string
	SignatureOnly  bool
	Amino          bool
}

type TxRes

type TxRes struct {
	Response   *sdk.TxResponse
	EvmReceipt *evmtypes.Receipt
}

type UnbondMsg

type UnbondMsg struct {
	Amount  string
	ValAddr string
}

type ValidateSignaturesMsg

type ValidateSignaturesMsg struct {
	FileName string
	ChainID  string
	Offline  bool
}

type ValidatorOutstandingRewardsMsg

type ValidatorOutstandingRewardsMsg struct {
	ValidatorAddr string
}

type ValidatorSetMsg added in v0.0.12

type ValidatorSetMsg struct {
	Height string
}

type VoteMsg

type VoteMsg struct {
	ProposalID string
	Option     string
}

type Web3ClientVersionResponse added in v0.0.6

type Web3ClientVersionResponse struct {
	Web3ClientVersion string `json:"web3_clientVersion"`
}

type Web3Sha3Msg added in v0.0.6

type Web3Sha3Msg struct {
	InputParam string
}

type Web3Sha3Response added in v0.0.6

type Web3Sha3Response struct {
	Web3Sha3 string `json:"web3_sha3"`
}

type WeightedVoteMsg

type WeightedVoteMsg struct {
	ProposalID string
	Yes        string
	No         string
	Abstain    string
	NoWithVeto string
}

type WithdrawRewardsMsg

type WithdrawRewardsMsg struct {
	DelegatorAddr string
	ValidatorAddr string
	Commission    bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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