exporter

package
v0.0.0-...-e6d60d5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	*HsmConfig

	EthAddress          map[uint64]common.Address
	WEthAddress         map[uint64]common.Address
	USDTAddress         map[uint64]common.Address
	USDCAddress         map[uint64]common.Address
	DAIAddress          map[uint64]common.Address
	RawL1BridgeContract *bind.BoundContract
	RawL2BridgeContract map[uint64]*bind.BoundContract
	L1BridgeContract    *bridge.L1PoolManager
	L2BridgeContract    map[uint64]*bridge.L2PoolManager

	*TransferMultiple
	// contains filtered or unexported fields
}

func NewExporter

func NewExporter(ctx context.Context, exporterConfig config.Exporter, hsmCfg *HsmConfig, db *database.DB, chainRpcCfg []*config.RPC, shutdown context.CancelCauseFunc, priKey *ecdsa.PrivateKey, l1ChainID uint64, multipleCfg *TransferMultiple) (*Exporter, error)

func (*Exporter) Start

func (er *Exporter) Start(ctx context.Context) error

func (*Exporter) Stop

func (er *Exporter) Stop(ctx context.Context) error

func (*Exporter) Stopped

func (er *Exporter) Stopped() bool

func (*Exporter) WithdrawToL1

func (er *Exporter) WithdrawToL1(l2ChainId uint64, ethereumChainId uint64, withdrawAmount *big.Int, tokenAddress common.Address, l2Client node.EthClient) (*types.Receipt, error)

type HsmConfig

type HsmConfig struct {
	EnableHsm  bool
	HsmAPIName string
	HsmCreden  string
	HsmAddress string
}

type TransferMultiple

type TransferMultiple struct {
	L1Multiple uint64
	L2Multiple uint64
}

Jump to

Keyboard shortcuts

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