Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface {
GetAccountInfo(ctx context.Context, addr cosmostypes.AccAddress) (cosmosauth.Account, error)
}
func NewAuthService ¶
func NewAuthService(client httpclient.Client) AuthService
type BankService ¶
type BankService interface {
GetBalance(ctx context.Context, acc cosmostypes.AccAddress) (GetBalanceResponse, error)
}
func NewBankService ¶
func NewBankService(client httpclient.Client) BankService
type ContractService ¶
type ContractService interface { GetCodeID(ctx context.Context, codeId uint64) (terrawasm.CodeInfo, error) GetContractInfo(ctx context.Context, addr cosmostypes.AccAddress) (terrawasm.ContractInfo, error) QueryContractStore(ctx context.Context, addr cosmostypes.AccAddress, query interface{}, resp interface{}) error }
func NewContractService ¶
func NewContractService(client httpclient.Client) ContractService
type GetBalanceResponse ¶
type GetBalanceResponse struct { Height uint64 `json:"height"` Balance cosmostypes.Coins `json:"balance"` }
type GetTaxCapResponse ¶
type GetTaxCapResponse struct { Height uint64 `json:"height"` TaxCap cosmostypes.Int `json:"tax_cap"` }
type GetTaxRateResponse ¶
type GetTaxRateResponse struct { Height uint64 `json:"height"` TaxRate cosmostypes.Dec `json:"tax_rate"` }
type QueryTxRequest ¶
type QueryTxResponse ¶
type QueryTxResponse struct { TotalCount cosmostypes.Int `json:"total_count"` Count cosmostypes.Int `json:"count"` PageNumber cosmostypes.Int `json:"page_number"` PageTotal cosmostypes.Int `json:"page_total"` Limit cosmostypes.Int `json:"limit"` Txs []cosmostypes.TxResponse `json:"txs"` }
type TendermintService ¶
type TendermintService interface { GetNodeInfo(ctx context.Context) (p2p.DefaultNodeInfo, error) GetSyncStatus(ctx context.Context) (cosmosrpc.SyncingResponse, error) GetBlockByHeight(ctx context.Context, height *uint64) (tdmttypes.BlockID, *tdmttypes.Block, error) }
func NewTendermintService ¶
func NewTendermintService(client httpclient.Client) TendermintService
type TransactionService ¶
type TransactionService interface { GetTxByHash(ctx context.Context, txHash string) (cosmostypes.TxResponse, error) QueryTx(ctx context.Context, req QueryTxRequest) (QueryTxResponse, error) BroadcastTx( ctx context.Context, tx terraauth.StdTx, mode types.BroadcastMode, ) (cosmostypes.TxResponse, error) EstimateFee( ctx context.Context, from string, msg terraauth.StdSignMsg, gasAdjustment string, gasPrices cosmostypes.DecCoins, ) (terraauth.StdFee, error) }
func NewTransactionService ¶
func NewTransactionService(client httpclient.Client) TransactionService
type TreasuryService ¶
type TreasuryService interface { CalculateTax(ctx context.Context, coin cosmostypes.Coin) (cosmostypes.Int, error) GetTaxRate(ctx context.Context) (GetTaxRateResponse, error) GetTaxCap(ctx context.Context, denom string) (GetTaxCapResponse, error) }
func NewTreasuryService ¶
func NewTreasuryService(client httpclient.Client) TreasuryService
Click to show internal directories.
Click to hide internal directories.