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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.