evm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMConfig

type EVMConfig struct {
	GeneralChainConfig chain.GeneralChainConfig
	Admin              string
	AcrossPool         string
	HubPool            string
	LiqudityPool       string
	Tokens             map[string]TokenConfig
	// usd bucket -> confirmations
	ConfirmationsByValue map[uint64]uint64
	BlockInterval        *big.Int
	BlockRetryInterval   time.Duration
}

func NewEVMConfig

func NewEVMConfig(chainConfig map[string]interface{}) (*EVMConfig, error)

NewEVMConfig decodes and validates an instance of an EVMConfig from raw chain config

type RawEVMConfig

type RawEVMConfig struct {
	chain.GeneralChainConfig `mapstructure:",squash"`
	Admin                    string                 `mapstructure:"admin"`
	LiqudityPool             string                 `mapstructure:"liquidityPool"`
	AcrossPool               string                 `mapstructure:"acrossPool"`
	HubPool                  string                 `mapstructure:"hubPool"`
	Tokens                   map[string]interface{} `mapstructure:"tokens"`
	ConfirmationsByValue     map[string]interface{} `mapstructure:"confirmationsByValue"`
	BlockInterval            int64                  `mapstructure:"blockInterval" default:"5"`
	BlockRetryInterval       uint64                 `mapstructure:"blockRetryInterval" default:"5"`
}

func (*RawEVMConfig) Validate

func (c *RawEVMConfig) Validate() error

type TokenConfig

type TokenConfig struct {
	Address  common.Address
	Decimals uint8
}

Directories

Path Synopsis
calls
events/mock
Package mock_events is a generated GoMock package.
Package mock_events is a generated GoMock package.
mock
Package mock_message is a generated GoMock package.
Package mock_message is a generated GoMock package.

Jump to

Keyboard shortcuts

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