adapters

package
Version: v0.0.0-...-2f116a2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBridge

type DBridge struct {
	CLient *ethclient.Client
	Name   string
	Url    string
	Lambda bool
	Func   func(*bridges.Helper) (*Output, error)
}

func NewDBridge

func NewDBridge(ethClient *ethclient.Client, name, url string, f func(*bridges.Helper) (*Output, error)) (a *DBridge, err error)

func (*DBridge) Opts

func (ap *DBridge) Opts() *bridges.Opts

func (*DBridge) Run

func (ap *DBridge) Run(helper *bridges.Helper) (interface{}, error)

type Output

type Output struct {
	ChainId  string       `json:"chainId"`
	BlockNum string       `json:"blockNum"`
	TxHash   string       `json:"txhash"`
	Data2    bridges.JSON `json:"Data2"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL