types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 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"
	// 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 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

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

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 EthChainIdResponse struct {
	ChainID *big.Int `json:"chain_id"`
}

type EthCoinbaseResponse

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

type EthGetBlockTransactionCountMsg

type EthGetBlockTransactionCountMsg struct {
	BlockHash   string
	BlockHeight string
}

type EthGetBlockTransactionCountResponse

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

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 EthGetLogsMsg struct {
	BlockHash string
	FromBlock string
	ToBlock   string
	Address   []string
	Topics    []string
}

type EthGetLogsResponse

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

type EthNewBlockFilterResponse

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

type EthNewFilterMsg

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

type EthNewFilterResponse

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

type EthNewPendingTransactionFilterResponse

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

type EthProtocolVersionResponse

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

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 ExecuteMsg struct {
	ContractAddress string
	Amount          string
	ExecMsg         string
}

type FeeGrantMsg

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

type FundFeeCollectorMsg struct {
	DepositorAddr string
	Amount        string
}

type GetBlockByHashHeightMsg

type GetBlockByHashHeightMsg struct {
	BlockHash   string
	BlockHeight string
}

type GetTransactionByBlockHashAndIndexMsg

type GetTransactionByBlockHashAndIndexMsg struct {
	BlockHash string
	Index     string
}

type GetTransactionByHashMsg

type GetTransactionByHashMsg struct {
	TxHash string
}

type GetTransactionReceiptMsg

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

type IbcChannelClientStateMsg struct {
	ChannelId string
	PortId    string
}

type IbcChannelConnectionsMsg

type IbcChannelConnectionsMsg struct {
	ConnectionId string
}

type IbcChannelMsg

type IbcChannelMsg struct {
	PortId    string
	ChannelId string
}

type IbcChannelNextSequenceMsg

type IbcChannelNextSequenceMsg struct {
	ChannelId string
	PortId    string
}

type IbcChannelPacketAckMsg

type IbcChannelPacketAckMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelPacketCommitmentsMsg

type IbcChannelPacketCommitmentsMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelPacketReceiptMsg

type IbcChannelPacketReceiptMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelUnreceivedAcksMsg

type IbcChannelUnreceivedAcksMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcChannelUnreceivedPacketsMsg

type IbcChannelUnreceivedPacketsMsg struct {
	ChannelId string
	PortId    string
	Sequence  string
}

type IbcClientConnectionsMsg

type IbcClientConnectionsMsg struct {
	ClientId string
}

type IbcClientConsensusStateHeightsMsg

type IbcClientConsensusStateHeightsMsg struct {
	ClientId string
}

type IbcClientConsensusStateMsg

type IbcClientConsensusStateMsg struct {
	ClientId     string
	Height       string
	LatestHeight bool
}

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

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

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 RegisterVolunteerValidatorMsg added in v0.1.3

type RegisterVolunteerValidatorMsg struct {
	Title        string
	Description  string
	Deposit      string
	Amount       string
	ValPubKey    string
	Moniker      string
	Identity     string
	Website      string
	Security     string
	Details      string
	JsonFilePath string
}

type RevokeFeeGrantMsg

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

type SetWithdrawAddrMsg struct {
	WithdrawAddr string
}

type SignTxMsg

type SignTxMsg struct {
	UnsignedFileName string
	SignatureOnly    bool
	MultisigAddress  string
	Overwrite        bool
	Amino            bool
	Offline          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

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
	SignatureOnly  bool
	Amino          bool
	KeyringPath    string
	KeyringBackend string
}

type TxRes

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

type UnbondMsg

type UnbondMsg struct {
	Amount  string
	ValAddr string
}

type UnregisterVolunteerValidatorMsg added in v0.1.3

type UnregisterVolunteerValidatorMsg struct {
	Title        string
	Description  string
	Deposit      string
	ValAddress   string
	JsonFilePath string
}

type ValidateSignaturesMsg

type ValidateSignaturesMsg struct {
	FileName string
	ChainID  string
	Offline  bool
}

type ValidatorOutstandingRewardsMsg

type ValidatorOutstandingRewardsMsg struct {
	ValidatorAddr string
}

type ValidatorSetMsg

type ValidatorSetMsg struct {
	Height string
}

type VoteMsg

type VoteMsg struct {
	ProposalID string
	Option     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 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