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