Documentation ¶
Index ¶
- func GetAccountPrefix() string
- func ParseBase64Event(event abci.Event) (sdk.StringEvent, error)
- func SetAccountPrefix(prefix string)
- type Client
- func (c *Client) BroadcastBatchMsg(msgs []types.Msg) (string, error)
- func (c *Client) BroadcastTx(tx []byte) (string, error)
- func (c *Client) CalculateGas(txf clientTx.Factory, msgs ...sdk.Msg) (uint64, error)
- func (c *Client) ChangeEndpoint()
- func (c *Client) ConstructAndSignTx(msgs ...types.Msg) ([]byte, error)
- func (c *Client) Ctx() client.Context
- func (c *Client) CurrentEndpointIndex() int
- func (c *Client) GetAccount() (client.Account, error)
- func (c *Client) GetBlockResults(height int64) (*ctypes.ResultBlockResults, error)
- func (c *Client) GetBlockTxs(height int64) ([]*types.TxResponse, error)
- func (c *Client) GetBlockTxsWithParseErrSkip(height int64) ([]*types.TxResponse, error)
- func (c *Client) GetChainId() (string, error)
- func (c *Client) GetCurrentBlockHeight() (int64, error)
- func (c *Client) GetDenom() string
- func (c *Client) GetFromAddress() types.AccAddress
- func (c *Client) GetFromName() string
- func (c *Client) GetLegacyAmino() *codec.LegacyAmino
- func (c *Client) GetRpcClient() *rpcClient.Client
- func (c *Client) GetSequence(height int64, addr types.AccAddress) (uint64, error)
- func (c *Client) GetTxConfig() client.TxConfig
- func (c *Client) GetTxs(events []string, page, limit int, orderBy string) (*types.SearchTxsResult, error)
- func (c *Client) GetTxsWithParseErrSkip(events []string, page, limit int, orderBy string) (*types.SearchTxsResult, int, error)
- func (c *Client) QueryAccount(addr types.AccAddress) (client.Account, error)
- func (c *Client) QueryActDetail(denom string, cycle uint64) (*stafiHubRMintRewardTypes.QueryActDetailResponse, error)
- func (c *Client) QueryActLatestCycle(denom string) (*stafiHubRMintRewardTypes.QueryActLatestCycleResponse, error)
- func (c *Client) QueryAddressPrefix(denom string) (*stafiHubXRBankTypes.QueryAddressPrefixResponse, error)
- func (c *Client) QueryAllSigningInfos(height int64) (*xSlashingTypes.QuerySigningInfosResponse, error)
- func (c *Client) QueryBalance(addr types.AccAddress, denom string, height int64) (*xBankTypes.QueryBalanceResponse, error)
- func (c *Client) QueryBlock(height int64) (*ctypes.ResultBlock, error)
- func (c *Client) QueryBondRecord(denom, txHash string) (*stafiHubXLedgerTypes.QueryGetBondRecordResponse, error)
- func (c *Client) QueryBondedDenom() (*xStakeTypes.QueryParamsResponse, error)
- func (c *Client) QueryBridgeProposalDetail(chainId uint32, depositNonce uint64, resourceId, amount, receiver string) (*stafiHubXBridgeTypes.QueryProposalDetailResponse, error)
- func (c *Client) QueryChainEra(denom string) (*stafiHubXLedgerTypes.QueryGetChainEraResponse, error)
- func (c *Client) QueryCurrentEraContinuable(denom string) (bool, error)
- func (c *Client) QueryCycleSeconds(denom string) (*stafiHubXRValidatorTypes.QueryCycleSecondsResponse, error)
- func (c *Client) QueryDelegation(delegatorAddr types.AccAddress, validatorAddr types.ValAddress, height int64) (*xStakeTypes.QueryDelegationResponse, error)
- func (c *Client) QueryDelegationRewards(delegatorAddr types.AccAddress, validatorAddr types.ValAddress, height int64) (*xDistriTypes.QueryDelegationRewardsResponse, error)
- func (c *Client) QueryDelegationTotalRewards(delegatorAddr types.AccAddress, height int64) (*xDistriTypes.QueryDelegationTotalRewardsResponse, error)
- func (c *Client) QueryDelegations(delegatorAddr types.AccAddress, height int64) (*xStakeTypes.QueryDelegatorDelegationsResponse, error)
- func (c *Client) QueryEraRate(denom string, era uint32) (*stafiHubXLedgerTypes.QueryGetEraExchangeRateResponse, error)
- func (c *Client) QueryEraSnapShotList(denom string, era uint32) (*stafiHubXLedgerTypes.QueryGetEraSnapshotResponse, error)
- func (c *Client) QueryIcaPoolList(denom string) (*stafiHubXLedgerTypes.QueryIcaPoolListResponse, error)
- func (c *Client) QueryInterchainTxStatus(propId string) (*stafiHubXLedgerTypes.QueryInterchainTxStatusResponse, error)
- func (c *Client) QueryLatestDealedCycle(denom, poolAddress string) (*stafiHubXRValidatorTypes.QueryLatestDealedCycleResponse, error)
- func (c *Client) QueryLatestLsmProposalId() (*stafiHubXLedgerTypes.QueryLatestLsmBondProposalIdResponse, error)
- func (c *Client) QueryLatestVotedCycle(denom, poolAddress string) (*stafiHubXRValidatorTypes.QueryLatestVotedCycleResponse, error)
- func (c *Client) QueryPoolDetail(denom, pool string) (*stafiHubXLedgerTypes.QueryGetPoolDetailResponse, error)
- func (c *Client) QueryPoolUnbond(denom, pool string, era uint32) (*stafiHubXLedgerTypes.QueryPoolUnbondingsResponse, error)
- func (c *Client) QueryPools(denom string) (*stafiHubXLedgerTypes.QueryBondedPoolsByDenomResponse, error)
- func (c *Client) QueryRParams(denom string) (*stafiHubXLedgerTypes.QueryGetRParamsResponse, error)
- func (c *Client) QueryRValidatorList(denom, poolAddress string) (*stafiHubXRValidatorTypes.QueryRValidatorListResponse, error)
- func (c *Client) QueryRate(denom string) (*stafiHubXLedgerTypes.QueryGetExchangeRateResponse, error)
- func (c *Client) QueryShuffleSeconds(denom string) (*stafiHubXRValidatorTypes.QueryShuffleSecondsResponse, error)
- func (c *Client) QuerySignature(denom, pool string, era uint32, txType stafiHubXLedgerTypes.OriginalTxType, ...) (*stafiHubXLedgerTypes.QueryGetSignatureResponse, error)
- func (c *Client) QuerySigningInfo(consAddr string, height int64) (*xSlashingTypes.QuerySigningInfoResponse, error)
- func (c *Client) QuerySnapshot(shotId string) (*stafiHubXLedgerTypes.QueryGetSnapshotResponse, error)
- func (c *Client) QuerySupplyOf(denom string, height int64) (*xBankTypes.QuerySupplyOfResponse, error)
- func (c *Client) QueryTxByHash(hashHexStr string) (*types.TxResponse, error)
- func (c *Client) QueryUnbondingDelegation(delegatorAddr types.AccAddress, validatorAddr types.ValAddress, height int64) (*xStakeTypes.QueryUnbondingDelegationResponse, error)
- func (c *Client) QueryValidators(height int64) (*xStakeTypes.QueryValidatorsResponse, error)
- func (c *Client) Retry(f func() (interface{}, error)) (interface{}, error)
- func (c *Client) SetFromName(fromName string) error
- func (c *Client) Sign(fromName string, toBeSigned []byte) ([]byte, cryptoTypes.PubKey, error)
- func (c *Client) SingleTransferTo(toAddr types.AccAddress, amount types.Coins) (string, error)
- func (c *Client) SubmitBridgeProposal(msg *stafiHubXBridgeTypes.MsgVoteProposal) (string, []byte, error)
- func (c *Client) SubmitProposal(content stafiHubXRvoteTypes.Content) (string, []byte, error)
- func (c *Client) SubmitSignature(sigMsg *stafiHubXLedgerTypes.MsgSubmitSignature) (string, []byte, error)
- type EncodingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountPrefix ¶
func GetAccountPrefix() string
func ParseBase64Event ¶ added in v1.12.0
func ParseBase64Event(event abci.Event) (sdk.StringEvent, error)
func SetAccountPrefix ¶
func SetAccountPrefix(prefix string)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
stafihub client
func (*Client) BroadcastBatchMsg ¶
func (*Client) CalculateGas ¶ added in v1.0.2
func (*Client) ChangeEndpoint ¶ added in v1.0.0
func (c *Client) ChangeEndpoint()
func (*Client) ConstructAndSignTx ¶
func (*Client) CurrentEndpointIndex ¶ added in v1.7.1
func (*Client) GetBlockResults ¶ added in v1.9.1
func (c *Client) GetBlockResults(height int64) (*ctypes.ResultBlockResults, error)
func (*Client) GetBlockTxs ¶
func (c *Client) GetBlockTxs(height int64) ([]*types.TxResponse, error)
func (*Client) GetBlockTxsWithParseErrSkip ¶ added in v1.6.1
func (c *Client) GetBlockTxsWithParseErrSkip(height int64) ([]*types.TxResponse, error)
will skip txs that parse failed
func (*Client) GetChainId ¶
func (*Client) GetCurrentBlockHeight ¶
func (*Client) GetFromAddress ¶
func (c *Client) GetFromAddress() types.AccAddress
func (*Client) GetFromName ¶
func (*Client) GetLegacyAmino ¶
func (c *Client) GetLegacyAmino() *codec.LegacyAmino
func (*Client) GetRpcClient ¶ added in v1.12.0
func (*Client) GetSequence ¶
func (*Client) GetTxConfig ¶
func (*Client) GetTxsWithParseErrSkip ¶
func (*Client) QueryAccount ¶
func (*Client) QueryActDetail ¶ added in v1.9.4
func (c *Client) QueryActDetail(denom string, cycle uint64) (*stafiHubRMintRewardTypes.QueryActDetailResponse, error)
func (*Client) QueryActLatestCycle ¶ added in v1.9.4
func (c *Client) QueryActLatestCycle(denom string) (*stafiHubRMintRewardTypes.QueryActLatestCycleResponse, error)
func (*Client) QueryAddressPrefix ¶
func (c *Client) QueryAddressPrefix(denom string) (*stafiHubXRBankTypes.QueryAddressPrefixResponse, error)
func (*Client) QueryAllSigningInfos ¶ added in v1.5.0
func (c *Client) QueryAllSigningInfos(height int64) (*xSlashingTypes.QuerySigningInfosResponse, error)
func (*Client) QueryBalance ¶
func (c *Client) QueryBalance(addr types.AccAddress, denom string, height int64) (*xBankTypes.QueryBalanceResponse, error)
func (*Client) QueryBlock ¶
func (c *Client) QueryBlock(height int64) (*ctypes.ResultBlock, error)
func (*Client) QueryBondRecord ¶
func (c *Client) QueryBondRecord(denom, txHash string) (*stafiHubXLedgerTypes.QueryGetBondRecordResponse, error)
func (*Client) QueryBondedDenom ¶
func (c *Client) QueryBondedDenom() (*xStakeTypes.QueryParamsResponse, error)
func (*Client) QueryBridgeProposalDetail ¶
func (c *Client) QueryBridgeProposalDetail(chainId uint32, depositNonce uint64, resourceId, amount, receiver string) (*stafiHubXBridgeTypes.QueryProposalDetailResponse, error)
func (*Client) QueryChainEra ¶
func (c *Client) QueryChainEra(denom string) (*stafiHubXLedgerTypes.QueryGetChainEraResponse, error)
func (*Client) QueryCurrentEraContinuable ¶ added in v1.9.5
func (*Client) QueryCycleSeconds ¶ added in v1.1.0
func (c *Client) QueryCycleSeconds(denom string) (*stafiHubXRValidatorTypes.QueryCycleSecondsResponse, error)
func (*Client) QueryDelegation ¶
func (c *Client) QueryDelegation(delegatorAddr types.AccAddress, validatorAddr types.ValAddress, height int64) (*xStakeTypes.QueryDelegationResponse, error)
func (*Client) QueryDelegationRewards ¶
func (c *Client) QueryDelegationRewards(delegatorAddr types.AccAddress, validatorAddr types.ValAddress, height int64) (*xDistriTypes.QueryDelegationRewardsResponse, error)
func (*Client) QueryDelegationTotalRewards ¶
func (c *Client) QueryDelegationTotalRewards(delegatorAddr types.AccAddress, height int64) (*xDistriTypes.QueryDelegationTotalRewardsResponse, error)
func (*Client) QueryDelegations ¶
func (c *Client) QueryDelegations(delegatorAddr types.AccAddress, height int64) (*xStakeTypes.QueryDelegatorDelegationsResponse, error)
func (*Client) QueryEraRate ¶
func (c *Client) QueryEraRate(denom string, era uint32) (*stafiHubXLedgerTypes.QueryGetEraExchangeRateResponse, error)
func (*Client) QueryEraSnapShotList ¶
func (c *Client) QueryEraSnapShotList(denom string, era uint32) (*stafiHubXLedgerTypes.QueryGetEraSnapshotResponse, error)
func (*Client) QueryIcaPoolList ¶ added in v1.4.0
func (c *Client) QueryIcaPoolList(denom string) (*stafiHubXLedgerTypes.QueryIcaPoolListResponse, error)
func (*Client) QueryInterchainTxStatus ¶ added in v1.4.0
func (c *Client) QueryInterchainTxStatus(propId string) (*stafiHubXLedgerTypes.QueryInterchainTxStatusResponse, error)
func (*Client) QueryLatestDealedCycle ¶ added in v1.3.0
func (c *Client) QueryLatestDealedCycle(denom, poolAddress string) (*stafiHubXRValidatorTypes.QueryLatestDealedCycleResponse, error)
func (*Client) QueryLatestLsmProposalId ¶ added in v1.11.1
func (c *Client) QueryLatestLsmProposalId() (*stafiHubXLedgerTypes.QueryLatestLsmBondProposalIdResponse, error)
func (*Client) QueryLatestVotedCycle ¶ added in v1.2.0
func (c *Client) QueryLatestVotedCycle(denom, poolAddress string) (*stafiHubXRValidatorTypes.QueryLatestVotedCycleResponse, error)
func (*Client) QueryPoolDetail ¶
func (c *Client) QueryPoolDetail(denom, pool string) (*stafiHubXLedgerTypes.QueryGetPoolDetailResponse, error)
func (*Client) QueryPoolUnbond ¶
func (c *Client) QueryPoolUnbond(denom, pool string, era uint32) (*stafiHubXLedgerTypes.QueryPoolUnbondingsResponse, error)
func (*Client) QueryPools ¶
func (c *Client) QueryPools(denom string) (*stafiHubXLedgerTypes.QueryBondedPoolsByDenomResponse, error)
func (*Client) QueryRParams ¶
func (c *Client) QueryRParams(denom string) (*stafiHubXLedgerTypes.QueryGetRParamsResponse, error)
func (*Client) QueryRValidatorList ¶ added in v1.1.0
func (c *Client) QueryRValidatorList(denom, poolAddress string) (*stafiHubXRValidatorTypes.QueryRValidatorListResponse, error)
func (*Client) QueryRate ¶ added in v1.8.1
func (c *Client) QueryRate(denom string) (*stafiHubXLedgerTypes.QueryGetExchangeRateResponse, error)
func (*Client) QueryShuffleSeconds ¶ added in v1.1.0
func (c *Client) QueryShuffleSeconds(denom string) (*stafiHubXRValidatorTypes.QueryShuffleSecondsResponse, error)
func (*Client) QuerySignature ¶
func (c *Client) QuerySignature(denom, pool string, era uint32, txType stafiHubXLedgerTypes.OriginalTxType, proposalId string) (*stafiHubXLedgerTypes.QueryGetSignatureResponse, error)
func (*Client) QuerySigningInfo ¶ added in v1.5.0
func (c *Client) QuerySigningInfo(consAddr string, height int64) (*xSlashingTypes.QuerySigningInfoResponse, error)
func (*Client) QuerySnapshot ¶
func (c *Client) QuerySnapshot(shotId string) (*stafiHubXLedgerTypes.QueryGetSnapshotResponse, error)
func (*Client) QuerySupplyOf ¶ added in v1.9.4
func (c *Client) QuerySupplyOf(denom string, height int64) (*xBankTypes.QuerySupplyOfResponse, error)
func (*Client) QueryTxByHash ¶
func (c *Client) QueryTxByHash(hashHexStr string) (*types.TxResponse, error)
no 0x prefix
func (*Client) QueryUnbondingDelegation ¶
func (c *Client) QueryUnbondingDelegation(delegatorAddr types.AccAddress, validatorAddr types.ValAddress, height int64) (*xStakeTypes.QueryUnbondingDelegationResponse, error)
func (*Client) QueryValidators ¶ added in v1.5.0
func (c *Client) QueryValidators(height int64) (*xStakeTypes.QueryValidatorsResponse, error)
func (*Client) SetFromName ¶
update clientCtx.FromName and clientCtx.FromAddress
func (*Client) SingleTransferTo ¶
func (*Client) SubmitBridgeProposal ¶ added in v1.7.0
func (c *Client) SubmitBridgeProposal(msg *stafiHubXBridgeTypes.MsgVoteProposal) (string, []byte, error)
func (*Client) SubmitProposal ¶
func (*Client) SubmitSignature ¶
func (c *Client) SubmitSignature(sigMsg *stafiHubXLedgerTypes.MsgSubmitSignature) (string, []byte, error)
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Marshaler codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
EncodingConfig specifies the concrete encoding types to use for a given app. This is provided for compatibility between protobuf and amino implementations.
func MakeEncodingConfig ¶
func MakeEncodingConfig() EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
Click to show internal directories.
Click to hide internal directories.