config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Datadir                   = "DATADIR"
	WalletAddr                = "WALLET_ADDR"
	SignerAddr                = "SIGNER_ADDR"
	RoundInterval             = "ROUND_INTERVAL"
	Port                      = "PORT"
	EventDbType               = "EVENT_DB_TYPE"
	DbType                    = "DB_TYPE"
	DbUrl                     = "PG_DB_URL"
	EventDbUrl                = "PG_EVENT_DB_URL"
	SchedulerType             = "SCHEDULER_TYPE"
	TxBuilderType             = "TX_BUILDER_TYPE"
	LiveStoreType             = "LIVE_STORE_TYPE"
	RedisUrl                  = "REDIS_URL"
	RedisTxNumOfRetries       = "REDIS_NUM_OF_RETRIES"
	LogLevel                  = "LOG_LEVEL"
	VtxoTreeExpiry            = "VTXO_TREE_EXPIRY"
	UnilateralExitDelay       = "UNILATERAL_EXIT_DELAY"
	BoardingExitDelay         = "BOARDING_EXIT_DELAY"
	EsploraURL                = "ESPLORA_URL"
	NoMacaroons               = "NO_MACAROONS"
	NoTLS                     = "NO_TLS"
	TLSExtraIP                = "TLS_EXTRA_IP"
	TLSExtraDomain            = "TLS_EXTRA_DOMAIN"
	UnlockerType              = "UNLOCKER_TYPE"
	UnlockerFilePath          = "UNLOCKER_FILE_PATH"
	UnlockerPassword          = "UNLOCKER_PASSWORD"
	NoteUriPrefix             = "NOTE_URI_PREFIX"
	MarketHourStartTime       = "MARKET_HOUR_START_TIME"
	MarketHourEndTime         = "MARKET_HOUR_END_TIME"
	MarketHourPeriod          = "MARKET_HOUR_PERIOD"
	MarketHourRoundInterval   = "MARKET_HOUR_ROUND_INTERVAL"
	OtelCollectorEndpoint     = "OTEL_COLLECTOR_ENDPOINT"
	OtelPushInterval          = "OTEL_PUSH_INTERVAL"
	RoundMaxParticipantsCount = "ROUND_MAX_PARTICIPANTS_COUNT"
	RoundMinParticipantsCount = "ROUND_MIN_PARTICIPANTS_COUNT"
	UtxoMaxAmount             = "UTXO_MAX_AMOUNT"
	VtxoMaxAmount             = "VTXO_MAX_AMOUNT"
	UtxoMinAmount             = "UTXO_MIN_AMOUNT"
	VtxoMinAmount             = "VTXO_MIN_AMOUNT"
	AllowCSVBlockType         = "ALLOW_CSV_BLOCK_TYPE"

	DefaultPort = 7070
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Datadir         string
	Port            uint32
	DbMigrationPath string
	NoTLS           bool
	NoMacaroons     bool
	LogLevel        int
	TLSExtraIPs     []string
	TLSExtraDomains []string

	DbType              string
	EventDbType         string
	DbDir               string
	DbUrl               string
	EventDbUrl          string
	EventDbDir          string
	RoundInterval       int64
	SchedulerType       string
	TxBuilderType       string
	LiveStoreType       string
	RedisUrl            string
	RedisTxNumOfRetries int
	WalletAddr          string
	SignerAddr          string
	VtxoTreeExpiry      arklib.RelativeLocktime
	UnilateralExitDelay arklib.RelativeLocktime
	BoardingExitDelay   arklib.RelativeLocktime
	NoteUriPrefix       string
	AllowCSVBlockType   bool

	MarketHourStartTime     int64
	MarketHourEndTime       int64
	MarketHourPeriod        int64
	MarketHourRoundInterval int64
	OtelCollectorEndpoint   string
	OtelPushInterval        int64

	EsploraURL string

	UnlockerType     string
	UnlockerFilePath string // file unlocker
	UnlockerPassword string // env unlocker

	RoundMinParticipantsCount int64
	RoundMaxParticipantsCount int64
	UtxoMaxAmount             int64
	UtxoMinAmount             int64
	VtxoMaxAmount             int64
	VtxoMinAmount             int64
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) AdminService

func (c *Config) AdminService() application.AdminService

func (*Config) AppService

func (c *Config) AppService() (application.Service, error)

func (*Config) IndexerService

func (c *Config) IndexerService() application.IndexerService

func (*Config) SignerService added in v0.7.1

func (c *Config) SignerService() (ports.SignerService, error)

func (*Config) String

func (c *Config) String() string

func (*Config) UnlockerService

func (c *Config) UnlockerService() ports.Unlocker

func (*Config) Validate

func (c *Config) Validate() error

func (*Config) WalletService

func (c *Config) WalletService() ports.WalletService

Jump to

Keyboard shortcuts

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