Documentation ¶
Index ¶
- Constants
- func Retry(f func() (interface{}, error)) (interface{}, error)
- type Client
- func (c *Client) BroadcastTx(tx []byte) (string, error)
- func (c *Client) ConstructAndSignTx(msgs ...types.Msg) ([]byte, error)
- func (c *Client) Ctx() client.Context
- func (c *Client) GetAccount() (client.Account, error)
- func (c *Client) GetBlockTxs(height int64) ([]*types.TxResponse, 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) 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) QueryAccount(addr types.AccAddress) (client.Account, 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) QueryChainEra(denom string) (*stafiHubXLedgerTypes.QueryGetChainEraResponse, 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) QueryEraContinuable(denom string, era uint32) (bool, error)
- func (c *Client) QueryEraSnapShotList(denom string, era uint32) (*stafiHubXLedgerTypes.QueryGetEraSnapshotResponse, error)
- func (c *Client) QueryPoolDetail(denom, pool string) (*stafiHubXLedgerTypes.QueryGetPoolDetailResponse, error)
- func (c *Client) QueryPoolUnbond(denom, pool string, era uint32) (*stafiHubXLedgerTypes.QueryGetPoolUnbondResponse, error)
- func (c *Client) QueryPools(denom string) (*stafiHubXLedgerTypes.QueryPoolsByDenomResponse, error)
- func (c *Client) QuerySignature(denom, pool string, era uint32, txType stafiHubXLedgerTypes.OriginalTxType, ...) (*stafiHubXLedgerTypes.QueryGetSignatureResponse, error)
- func (c *Client) QuerySnapshot(shotId []byte) (*stafiHubXLedgerTypes.QueryGetSnapshotResponse, 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) 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) error
- func (c *Client) SubmitProposal(content stafiHubXRvoteTypes.Content) (string, []byte, error)
- func (c *Client) SubmitSignature(sigMsg *stafiHubXLedgerTypes.MsgSubmitSignature) (string, []byte, error)
- type EncodingConfig
Constants ¶
View Source
const AccountPrefix = "fis"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
stafihub client
func (*Client) ConstructAndSignTx ¶
func (*Client) GetBlockTxs ¶
func (c *Client) GetBlockTxs(height int64) ([]*types.TxResponse, error)
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) GetSequence ¶
func (*Client) GetTxConfig ¶
func (*Client) QueryAccount ¶
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) QueryChainEra ¶
func (c *Client) QueryChainEra(denom string) (*stafiHubXLedgerTypes.QueryGetChainEraResponse, 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) QueryEraContinuable ¶
func (*Client) QueryEraSnapShotList ¶
func (c *Client) QueryEraSnapShotList(denom string, era uint32) (*stafiHubXLedgerTypes.QueryGetEraSnapshotResponse, 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.QueryGetPoolUnbondResponse, error)
func (*Client) QueryPools ¶
func (c *Client) QueryPools(denom string) (*stafiHubXLedgerTypes.QueryPoolsByDenomResponse, error)
func (*Client) QuerySignature ¶
func (c *Client) QuerySignature(denom, pool string, era uint32, txType stafiHubXLedgerTypes.OriginalTxType, proposalId []byte) (*stafiHubXLedgerTypes.QueryGetSignatureResponse, error)
func (*Client) QuerySnapshot ¶
func (c *Client) QuerySnapshot(shotId []byte) (*stafiHubXLedgerTypes.QueryGetSnapshotResponse, 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) SetFromName ¶
update clientCtx.FromName and clientCtx.FromAddress
func (*Client) SingleTransferTo ¶
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.