Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { // router swap identifier Identifier string // router swap type SwapType string // test module name Module string // rpc listen port Port int // sign with this private key instead of MPC SignWithPrivateKey string SignerAddress string // allow call into router from contract AllowCallByContract bool // is debug mode (print more logs) IsDebugMode bool // gatesway config Gateway *tokens.GatewayConfig // chain config Chain *tokens.ChainConfig // token config Token *tokens.TokenConfig // swap config Swap *SwapConfig // all chain ids (pass 'miss token config' checking) AllChainIDs []string // contains filtered or unexported fields }
Config test config struct
func (*Config) GetAllChainIDs ¶
GetAllChainIDs get all chainIDs
func (*Config) GetFeeConfig ¶ added in v3.6.0
GetFeeConfig get fee config
func (*Config) GetSwapConfig ¶
func (c *Config) GetSwapConfig() *tokens.SwapConfig
GetSwapConfig get swap config
type SwapConfig ¶
type SwapConfig struct { SwapFeeRatePerMillion uint64 MaximumSwapFee string MinimumSwapFee string MaximumSwap string BigValueThreshold string MinimumSwap string // contains filtered or unexported fields }
SwapConfig swap config
func (*SwapConfig) CheckConfig ¶
func (c *SwapConfig) CheckConfig() error
CheckConfig check swap config
Click to show internal directories.
Click to hide internal directories.