decred.org/dcrdex@v1.0.5/server/asset/eth/config.go (about)

     1  // This code is available on the terms of the project LICENSE.md file,
     2  // also available online at https://blueoakcouncil.org/license/1.0.0.
     3  
     4  package eth
     5  
     6  import (
     7  	"github.com/decred/dcrd/dcrutil/v4"
     8  )
     9  
    10  var ethHomeDir = dcrutil.AppDataDir("ethereum", false)
    11  
    12  // For tokens, the file at the config path can contain overrides for
    13  // token gas values. Gas used for token swaps is dependent on the token contract
    14  // implementation, and can change without notice. The operator can specify
    15  // custom gas values to be used for funding balance validation calculations.
    16  type configuredTokenGases struct {
    17  	Swap   uint64 `ini:"swap"`
    18  	Redeem uint64 `ini:"redeem"`
    19  }