model

package
v0.0.0-...-8f00dc6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Daemon  DaemonConfig `yaml:"daemon"`
	Rules   []Rule       `yaml:"rules"`
	Wallets []Wallet     `yaml:"wallets"`
}

type DaemonConfig

type DaemonConfig struct {
	ContextTimeoutDuration         int           `yaml:"context_timeout_duration"`
	TransferMonitorFrequency       time.Duration `yaml:"transfer_monitor_frequency"`
	TransferMonitorTimeoutDuration time.Duration `yaml:"transfer_monitor_timeout_duration"`
}

type Rule

type Rule struct {
	Direction   string   `yaml:"direction" json:"direction"`
	Name        string   `yaml:"name" json:"name"`
	Description string   `yaml:"description" json:"description"` // Optional
	Schedule    string   `yaml:"schedule" json:"schedule"`
	Wallets     []string `yaml:"wallets" json:"wallets"`
}

type TransferDetails

type TransferDetails struct {
	Direction   TransferDirection
	WalletNames []string
	OperationId string
	RuleName    string
}

type TransferDirection

type TransferDirection string
const (
	HotToCold TransferDirection = "trading_to_cold_custody"
	ColdToHot TransferDirection = "cold_custody_to_trading"
)

type Wallet

type Wallet struct {
	Name        string `yaml:"name" json:"name"`
	Asset       string `yaml:"asset" json:"asset"`
	Description string `yaml:"description" json:"description"` // Optional
	Type        string `yaml:"type" json:"type"`
	WalletId    string `yaml:"wallet_id" json:"wallet_id"`
}

Jump to

Keyboard shortcuts

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