cosmos

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseClient

type BaseClient struct {
	client.Context
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL