types

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// New mnemonic entropy size
	DefaultEntropySize = 256
	// Xpla base denomination
	XplaDenom = "axpriv"
	// Xpla default key algorithm name
	DefaultXplaKeyAlgo = "eth_secp256k1"
	// Xpla tool default name
	XplaToolDefaultName = "xpriv"

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

func SetChainConfig()

Types

type AcceptMsg

type AcceptMsg struct {
	ParticipantDID     string
	AdminDIDKey        string
	AdminDIDPassphrase string
	AdminDIDKeyPath    string
}

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 AddAdminMsg

type AddAdminMsg struct {
	NewAdminDIDKey         string
	NewAdminAddress        string
	InitAdminDIDKey        string
	InitAdminDIDPassphrase string
	InitAdminDIDKeyPath    string
}

type AnchorAccMsg

type AnchorAccMsg struct {
	ValidatorAddr string
}

type AnchorBalancesMsg

type AnchorBalancesMsg struct {
	ValidatorAddr string
}

type AnchorBlockMsg

type AnchorBlockMsg struct {
	PrivChainHeight    string
	AnchorContractAddr string
}

type AnchorInfoMsg

type AnchorInfoMsg struct {
	PrivChainHeight string
}

type AnchorTxBodyMsg

type AnchorTxBodyMsg struct {
	PrivChainHeight string
}

type AnchorVerifyMsg

type AnchorVerifyMsg struct {
	PrivChainHeight    string
	AnchorContractAddr string
}

type AppliedMsg

type AppliedMsg struct {
	UpgradeName 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
}

type CallSolContractResponse

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

Responses

type CancelSoftwareUpgradeMsg

type CancelSoftwareUpgradeMsg struct {
	Title       string
	Description string
	Deposit     string
}

type ChangeAnchorAccMsg

type ChangeAnchorAccMsg struct {
	AnchorAccountAddr string
	ValidatorAddr     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 CreateDIDMsg

type CreateDIDMsg struct {
	DIDMnemonic    string
	DIDPassphrase  string
	SaveDIDKeyPath string
	Moniker        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 DIDByMonikerMsg added in v0.0.2

type DIDByMonikerMsg struct {
	Moniker string
}

type DeactivateDIDMsg

type DeactivateDIDMsg struct {
	DID           string
	KeyID         string
	DIDPassphrase string
	DIDKeyPath    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 DenyMsg

type DenyMsg struct {
	ParticipantDID string
	AdminDID       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 ExileMsg

type ExileMsg struct {
	ParticipantDID 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 GenDIDSignMsg

type GenDIDSignMsg struct {
	DIDKey        string
	DIDPassphrase string
	DIDKeyPath    string
}

type GetBlockByHashHeightMsg

type GetBlockByHashHeightMsg struct {
	BlockHash   string
	BlockHeight string
}

type GetDIDMsg

type GetDIDMsg struct {
	DIDOrMoniker 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 GetVPMsg

type GetVPMsg struct {
	DIDKey        string
	DIDSignBase64 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 InitialAdminMsg

type InitialAdminMsg struct {
	InitAdminDIDKey string
	DIDPassphrase   string
	DIDKeyPath      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
}

type IssueVCMsg

type IssueVCMsg struct {
	DIDKey        string
	DIDSignBase64 string
}

type ListContractByCodeMsg

type ListContractByCodeMsg struct {
	CodeId string
}

type MigrateMsg

type MigrateMsg struct {
	ContractAddress string
	CodeId          string
	MigrateMsg      string
}

type MonikerByDIDMsg added in v0.0.2

type MonikerByDIDMsg struct {
	DID 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 ParticipateMsg

type ParticipateMsg struct {
	ParticipantDIDKey string
	DIDPassphrase     string
	DIDKeyPath        string
}

type ParticipateSequenceMsg added in v0.0.2

type ParticipateSequenceMsg struct {
	DID string
}

type ParticipateStateMsg

type ParticipateStateMsg struct {
	DID string
}

type ProposerMsg

type ProposerMsg struct {
	ProposalID string
}

type QueryAccAddressMsg

type QueryAccAddressMsg struct {
	Address 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 QuitMsg

type QuitMsg struct {
	ParticipantDIDKey string
	DIDPassphrase     string
	DIDKeyPath        string
}

type RedelegateMsg

type RedelegateMsg struct {
	Amount     string
	ValSrcAddr string
	ValDstAddr string
}

type RegisterAnchorAccMsg

type RegisterAnchorAccMsg struct {
	AnchorAccountAddr string
	ValidatorAddr     string
}

type ReplaceDIDMonikerMsg added in v0.0.2

type ReplaceDIDMonikerMsg struct {
	DID           string
	KeyId         string
	DIDPassphrase string
	DIDKeyPath    string
	NewMoniker    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
	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

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 UpdateDIDMsg

type UpdateDIDMsg struct {
	DID             string
	KeyID           string
	DIDDocumentPath string
	DIDPassphrase   string
	DIDKeyPath      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