package
Version:
v0.1.0-alpha-1
Opens a new window with list of versions in this module.
Published: Nov 8, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Bridge struct {
TopicId string `yaml:"topic_id"`
Networks map[int64]*Network `yaml:"networks"`
}
Structs used to parse the bridge YAML configuration
type Clients struct {
Evm map[int64]Evm `yaml:"evm"`
Hedera Hedera `yaml:"hedera"`
MirrorNode MirrorNode `yaml:"mirror_node"`
}
type Config struct {
Node Node `yaml:"node"`
Bridge Bridge `yaml:"bridge"`
}
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 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 struct {
Operator Operator `yaml:"operator"`
Network string `yaml:"network"`
StartTimestamp int64 `yaml:"start_timestamp"`
}
type MirrorNode struct {
ClientAddress string `yaml:"client_address"`
ApiAddress string `yaml:"api_address"`
PollingInterval time.Duration `yaml:"polling_interval"`
}
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 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 struct {
AccountId string `yaml:"account_id"`
PrivateKey string `yaml:"private_key"`
}
type Token struct {
FeePercentage int64 `yaml:"fee_percentage"`
Networks map[int64]string `yaml:"networks"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.