config

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfgFile string, cfg *Config) error

Types

type Config

type Config struct {
	DB        db.Config `json:"db"`
	Dapp      Dapp      `json:"dapp,omitempty"`
	Eth       Eth       `json:"eth,omitempty"`
	Fees      []Fee     `json:"fees,omitempty"`
	WhiteList []string  `json:"white_list,omitempty"`
}

type Dapp

type Dapp struct {
	mixin.Keystore
	ClientSecret string `json:"client_secret"`
	Pin          string `json:"pin"`
}

type Eth

type Eth struct {
	Endpoint        string   `json:"endpoint,omitempty"`
	PrivateKey      string   `json:"private_key,omitempty"`
	FactoryContract string   `json:"factory_contract,omitempty"`
	MaxGasPrice     *big.Int `json:"max_gas_price,omitempty"`
}

type Fee added in v0.1.8

type Fee struct {
	Platform   string          `json:"platform"`
	FeeAssetID string          `json:"fee_asset_id,omitempty"`
	FeeAmount  decimal.Decimal `json:"fee_amount,omitempty"`
}

Jump to

Keyboard shortcuts

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