Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
type CosmosClient ¶
type CosmosClient struct { *goClient.CosmosClient // contains filtered or unexported fields }
func NewCosmosClient ¶
func NewCosmosClient(cfg CosmosClientConfig, store *store.Store, log logger.Logger) (*CosmosClient, error)
NewCosmosClient creates a new cosmos client.
func (*CosmosClient) ListenToTxs ¶
func (c *CosmosClient) ListenToTxs(ctx context.Context, txResult chan interface{}, startBlk *big.Int)
func (*CosmosClient) ParseCosmosMsgReceiver ¶
func (c *CosmosClient) ParseCosmosMsgReceiver(msg sdk.Msg) string
ParseCosmosMsgReceiver returns the recipients of the given Cosmos message.
func (*CosmosClient) ParseCosmosMsgSender ¶
func (c *CosmosClient) ParseCosmosMsgSender(msg sdk.Msg) string
ParseCosmosMsgSender returns the sender of the given Cosmos message.
func (*CosmosClient) ParseCosmosMsgValue ¶
func (c *CosmosClient) ParseCosmosMsgValue(msg sdk.Msg) float64
ParseCosmosMsgValue returns the value of the given Cosmos message.
type CosmosClientConfig ¶
type CosmosClientConfig struct { goClient.CosmosClientConfig Enabled bool `json:"Enabled"` }
func DefaultConfig ¶
func DefaultConfig() CosmosClientConfig
func (CosmosClientConfig) IsValid ¶
func (cfg CosmosClientConfig) IsValid() (bool, error)
IsValid checks if the current CosmosClientConfig is valid.
Click to show internal directories.
Click to hide internal directories.