config

package
v0.0.0-...-3c6bf7d Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address         string   `yaml:"address"`
	Passphrase      string   `yaml:"passphrase"`
	InputAmount     *big.Int `yaml:"amount"`
	Recipient       string   `yaml:"recipient"`
	MaxGasFee       *big.Int `yaml:"max_gas_fee"`
	MinReturnAmount *big.Int `yaml:"min_return_amount"`

	PrivKey string `yaml:"priv_key"` // optional, set this empty to use keystore
}

type Config

type Config struct {
	ChainID           int64     `yaml:"chain_id"`
	NodeRPC           string    `yaml:"node_rpc"`
	GasPriceEndpoint  string    `yaml:"gas_price_endpoint"`
	KeystoreDir       string    `yaml:"keystore_dir"`
	RouterAddress     string    `yaml:"router_address"`
	InputToken        string    `yaml:"input_token"`
	OutputToken       string    `yaml:"output_token"`
	FeeTier           int64     `yaml:"fee_tier"`
	GasTipMultiplier  float64   `yaml:"gas_tip_multiplier"`
	StartTime         time.Time `yaml:"start_time"`
	GasLimit          int64     `yaml:"gas_limit"`
	MinReturnAmount   *big.Int  `yaml:"min_return_amount"`
	Weth              string    `yaml:"weth"`
	Accounts          []Account `yaml:"accounts"`
	SkipCheckTxStatus bool      `yaml:"skip_check_tx_status"`
}

func LoadFromFile

func LoadFromFile(fpath string) (Config, error)

Jump to

Keyboard shortcuts

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