clients

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientsFromConfig

func NewClientsFromConfig(cfg ClientsConfig, store *store.Store, log logger.Logger) (map[string]Client, error)

NewClientsFromConfig creates new Client's from the given config.

Types

type Client

type Client interface {
	ListenToTxs(ctx context.Context, resultChan chan interface{}, fromBlk *big.Int)
}

type ClientsConfig

type ClientsConfig struct {
	Evm          evm.EvmClientConfig       `json:"Evm"`
	Cosmos       cosmos.CosmosClientConfig `json:"Cosmos"`
	TikiExchange tiki.TikiClientConfig     `json:"TikiExchange"`
}

func DefaultConfig

func DefaultConfig() ClientsConfig

func (ClientsConfig) IsValid

func (cfg ClientsConfig) IsValid() (bool, error)

IsValid checks if the current ClientsConfig is valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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