parser

package
v0.1.0-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 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 Bridge

type Bridge struct {
	TopicId  string             `yaml:"topic_id"`
	Networks map[int64]*Network `yaml:"networks"`
}

Structs used to parse the bridge YAML configuration

type Clients

type Clients struct {
	Evm        map[int64]Evm `yaml:"evm"`
	Hedera     Hedera        `yaml:"hedera"`
	MirrorNode MirrorNode    `yaml:"mirror_node"`
}

type Config

type Config struct {
	Node   Node   `yaml:"node"`
	Bridge Bridge `yaml:"bridge"`
}

type Database

type Database struct {
	Host     string `yaml:"host" env:"VALIDATOR_DATABASE_HOST"`
	Name     string `yaml:"name"`
	Password string `yaml:"password"`
	Port     string `yaml:"port"`
	Username string `yaml:"username"`
}

type Evm

type Evm struct {
	BlockConfirmations uint64        `yaml:"block_confirmations"`
	NodeUrl            string        `yaml:"node_url"`
	PrivateKey         string        `yaml:"private_key"`
	StartBlock         int64         `yaml:"start_block"`
	PollingInterval    time.Duration `yaml:"polling_interval"`
}

type Hedera

type Hedera struct {
	Operator       Operator `yaml:"operator"`
	Network        string   `yaml:"network"`
	StartTimestamp int64    `yaml:"start_timestamp"`
}

type MirrorNode

type MirrorNode struct {
	ClientAddress   string        `yaml:"client_address"`
	ApiAddress      string        `yaml:"api_address"`
	PollingInterval time.Duration `yaml:"polling_interval"`
}

type Network

type Network struct {
	BridgeAccount         string           `yaml:"bridge_account"`
	PayerAccount          string           `yaml:"payer_account"`
	RouterContractAddress string           `yaml:"router_contract_address"`
	Members               []string         `yaml:"members"`
	Tokens                map[string]Token `yaml:"tokens"`
}

type Node

type Node struct {
	Database  Database `yaml:"database"`
	Clients   Clients  `yaml:"clients"`
	LogLevel  string   `yaml:"log_level"`
	Port      string   `yaml:"port"`
	Validator bool     `yaml:"validator"`
}

Structs used to parse the node YAML configuration

type Operator

type Operator struct {
	AccountId  string `yaml:"account_id"`
	PrivateKey string `yaml:"private_key"`
}

type Token

type Token struct {
	FeePercentage int64            `yaml:"fee_percentage"`
	Networks      map[int64]string `yaml:"networks"`
}

Jump to

Keyboard shortcuts

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