engine

package
v0.0.0-...-ef390af Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ExplorerURL               string
	PrivateKey                string
	ChainID                   *big.Int
	ConfirmNum                int64
	MaxTrackRetry             int64
	ERC721SwapAgentAddresses  map[string]common.Address
	ERC1155SwapAgentAddresses map[string]common.Address
}

type Dependencies

type Dependencies struct {
	Client           map[string]client.ETHClient
	DB               *gorm.DB
	Recorder         map[string]recorder.IRecorder
	ERC721SwapAgent  map[string]erc721agent.SwapAgent
	ERC721Token      map[string]erc721token.IToken
	ERC1155SwapAgent map[string]erc1155agent.SwapAgent
	ERC1155Token     map[string]erc1155token.IToken
}

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(c *Config, d *Dependencies) *Engine

func (*Engine) Start

func (e *Engine) Start()

type Recorder

type Recorder interface {
}

Jump to

Keyboard shortcuts

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