Documentation ¶
Index ¶
- type ChainExplorerDispatcher
- func (cea *ChainExplorerDispatcher) GetAccountBalance(request *account.AccountBalanceRequest) (*account.AccountBalanceResponse, error)
- func (cea *ChainExplorerDispatcher) GetAccountUtxo(request *account.AccountUtxoRequest) ([]account.AccountUtxoResponse, error)
- func (cea *ChainExplorerDispatcher) GetChainExplorer(request *chain.SupportChainExplorerRequest) (*chain.SupportChainExplorerResponse, error)
- func (cea *ChainExplorerDispatcher) GetEstimateGasFee(request *gas_fee.GasEstimateFeeRequest) (*gas_fee.GasEstimateFeeResponse, error)
- func (cea *ChainExplorerDispatcher) GetMultiAccountBalance(request *account.AccountBalanceRequest) ([]*account.AccountBalanceResponse, error)
- func (cea *ChainExplorerDispatcher) GetTokenList(request *token.TokenRequest) ([]token.TokenResponse, error)
- func (cea *ChainExplorerDispatcher) GetTxByAddress(request *account.AccountTxRequest) (*account.TransactionResponse[account.AccountTxResponse], error)
- func (cea *ChainExplorerDispatcher) GetTxByHash(request *transaction.TxRequest) (*transaction.TxResponse, error)
- func (d *ChainExplorerDispatcher) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- type ChainExplorerName
- type CommonReply
- type CommonRequest
- type ExplorerClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainExplorerDispatcher ¶
type ChainExplorerDispatcher struct {
RegistryExplorer map[ChainExplorerName]explorer.ChainExplorerAdaptor
}
func NewExplorerClient ¶
func NewExplorerClient(cliConfigs []ExplorerClientConfig) (*ChainExplorerDispatcher, error)
func (*ChainExplorerDispatcher) GetAccountBalance ¶
func (cea *ChainExplorerDispatcher) GetAccountBalance(request *account.AccountBalanceRequest) (*account.AccountBalanceResponse, error)
func (*ChainExplorerDispatcher) GetAccountUtxo ¶
func (cea *ChainExplorerDispatcher) GetAccountUtxo(request *account.AccountUtxoRequest) ([]account.AccountUtxoResponse, error)
func (*ChainExplorerDispatcher) GetChainExplorer ¶
func (cea *ChainExplorerDispatcher) GetChainExplorer(request *chain.SupportChainExplorerRequest) (*chain.SupportChainExplorerResponse, error)
func (*ChainExplorerDispatcher) GetEstimateGasFee ¶
func (cea *ChainExplorerDispatcher) GetEstimateGasFee(request *gas_fee.GasEstimateFeeRequest) (*gas_fee.GasEstimateFeeResponse, error)
func (*ChainExplorerDispatcher) GetMultiAccountBalance ¶
func (cea *ChainExplorerDispatcher) GetMultiAccountBalance(request *account.AccountBalanceRequest) ([]*account.AccountBalanceResponse, error)
func (*ChainExplorerDispatcher) GetTokenList ¶
func (cea *ChainExplorerDispatcher) GetTokenList(request *token.TokenRequest) ([]token.TokenResponse, error)
func (*ChainExplorerDispatcher) GetTxByAddress ¶
func (cea *ChainExplorerDispatcher) GetTxByAddress(request *account.AccountTxRequest) (*account.TransactionResponse[account.AccountTxResponse], error)
func (*ChainExplorerDispatcher) GetTxByHash ¶
func (cea *ChainExplorerDispatcher) GetTxByHash(request *transaction.TxRequest) (*transaction.TxResponse, error)
func (*ChainExplorerDispatcher) Interceptor ¶
func (d *ChainExplorerDispatcher) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
type ChainExplorerName ¶
type ChainExplorerName = string
type CommonReply ¶
type CommonReply = chain.SupportChainExplorerResponse
type CommonRequest ¶
type CommonRequest interface {
GetChainExporerName() string
}
Click to show internal directories.
Click to hide internal directories.