Documentation ¶
Index ¶
- Constants
- func GetBool(key string) bool
- func GetDatadir() string
- func GetDuration(key string) time.Duration
- func GetExplorer() (explorer.Service, error)
- func GetFloat(key string) float64
- func GetInt(key string) int
- func GetMnemonic() []string
- func GetNetwork() (*network.Network, error)
- func GetString(key string) string
- func GetStringSlice(key string) []string
- func IsSet(key string) bool
- func Set(key string, value interface{})
Constants ¶
View Source
const ( // TradeListeningPortKey is the port where the gRPC Trader interface will listen on TradeListeningPortKey = "TRADE_LISTENING_PORT" // OperatorListeningPortKey is the port where the gRPC Operator interface will listen on OperatorListeningPortKey = "OPERATOR_LISTENING_PORT" // ExplorerEndpointKey is the endpoint where the Electrs (for Liquid) REST API is listening ExplorerEndpointKey = "EXPLORER_ENDPOINT" // ExplorerRequestTimeoutKey are the milliseconds to wait for HTTP responses before timeouts ExplorerRequestTimeoutKey = "EXPLORER_REQUEST_TIMEOUT" // DatadirKey is the local data directory to store the internal state of daemon DatadirKey = "DATA_DIR_PATH" // LogLevelKey are the different logging levels. For reference on the values https://godoc.org/github.com/sirupsen/logrus#Level LogLevelKey = "LOG_LEVEL" // DefaultFeeKey is the default swap fee when creating a market DefaultFeeKey = "DEFAULT_FEE" // NetworkKey is the network to use. Either "liquid" or "regtest" NetworkKey = "NETWORK" // BaseAssetKey is the default asset hash to be used as base asset for all markets. Default is LBTC BaseAssetKey = "BASE_ASSET" // QuoteAssetKey is the default asset hash to be used as quote asset for all markets. This is mutually exclusive with BaseAssetKey. QuoteAssetKey = "QUOTE_ASSET" //NativeAssetKey is used to set lbtc hash, used for fee outputs, in regtest network NativeAssetKey = "NATIVE_ASSET" // CrawlIntervalKey is the interval in milliseconds to be used when watching the blockchain via the explorer CrawlIntervalKey = "CRAWL_INTERVAL" // FeeAccountBalanceThresholdKey is the treshold of LBTC balance (in satoshis) for the fee account, after wich we alert the operator that it cannot subsidize anymore swaps FeeAccountBalanceThresholdKey = "FEE_ACCOUNT_BALANCE_THRESHOLD" // TradeExpiryTimeKey is the duration in seconds of lock on unspents we reserve for accpeted trades, before eventually double spending it TradeExpiryTimeKey = "TRADE_EXPIRY_TIME" // TradeSatsPerByte is the sats per byte ratio to use for paying for trades' network fees TradeSatsPerByte = "TRADE_SATS_PER_BYTE" // PriceSlippageKey is the percentage of the slipage for accepting trades compared to current spot price PriceSlippageKey = "PRICE_SLIPPAGE" // TradeTLSKeyKey is the path of the the TLS key for the Trade interface TradeTLSKeyKey = "SSL_KEY" // TradeTLSCertKey is the path of the the TLS certificate for the Trade interface TradeTLSCertKey = "SSL_CERT" // MnemonicKey is the mnemonic of the master private key of the daemon's wallet MnemonicKey = "MNEMONIC" // EnableProfilerKey enables profiler that can be used to investigate performance issues EnableProfilerKey = "ENABLE_PROFILER" // StatsIntervalKey defines interval for printing basic tdex statistics StatsIntervalKey = "STATS_INTERVAL" // NoMacaroonsKey is used to start the daemon without using macaroons auth // service. NoMacaroonsKey = "NO_MACAROONS" // OperatorExtraIP is used to add an extra ip address to the self-signed TLS // certificate for the Operator gRPC interface. OperatorExtraIPKey = "OPERATOR_EXTRA_IP" // OperatorExtraDomain is used to add an extra domain to the self signed TLS // certificate for the Operator gRPC interface. This is useful to add the // onion endpoint in case the daemon is served as a TOR hidden service for // example. OperatorExtraDomainKey = "OPERATOR_EXTRA_DOMAIN" // CBMaxFailingRequestsKey is used in combo with FailingRatio to set the max // number of failing request for the circuit breaker service to change its // internal state and stop making network calls. CBMaxFailingRequestsKey = "MAX_FAILING_REQUESTS" // CBFailingRatioKey is used in combo with MaxFailingRequests to set the // failing ratio over which the circuit breaker service to change its // internal state and stop making network calls. CBFailingRatioKey = "FAILING_RATIO" // RescanRangeStartKey defines the initial index from where the daemon should // start deriving and scanning for addresses of an account during the // restoration of the utxos. RescanRangeStartKey = "RESCAN_START" // RescanGapLimitKey defines the max number of consecutive unused addresses // that cause the restoration to stop. // For example, if set to 20, the utxo set restoration terminates whenever // 20 consecutive unused addresses, or those not involved in any transaction // in the blockchain. RescanGapLimitKey = "RESCAN_GAP_LIMIT" // WalletUnlockPasswordFile defines full path to a file that contains the //password for unlocking the wallet, if provided wallet will be unlocked //automatically WalletUnlockPasswordFile = "WALLET_UNLOCK_PASSWORD_FILE" DbLocation = "db" TLSLocation = "tls" MacaroonsLocation = "macaroons" ProfilerLocation = "stats" MinDefaultPercentageFee = 0.01 MaxDefaultPercentageFee = float64(99) )
Variables ¶
This section is empty.
Functions ¶
func GetExplorer ¶ added in v0.2.0
GetExplorer returns the explorer service to be used by the daemon.
func GetStringSlice ¶ added in v0.4.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.