Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct { UseLocalConfig bool `yaml:"use_local_config" json:"useLocalConfig,omitempty"` ConfigTopicId string `yaml:"config_topic_id" json:"configTopicId,omitempty"` PollingInterval time.Duration `yaml:"polling_interval" json:"pollingInterval,omitempty"` TopicId string `yaml:"topic_id" json:"topicId,omitempty"` Networks map[uint64]*Network `yaml:"networks" json:"networks,omitempty"` MonitoredAccounts map[string]string `yaml:"monitored_accounts" json:"monitoredAccounts,omitempty"` }
Structs used to parse the bridge YAML configuration
type Clients ¶
type Clients struct { Evm map[uint64]Evm `yaml:"evm"` Hedera Hedera `yaml:"hedera"` MirrorNode MirrorNode `yaml:"mirror_node"` CoinGecko CoinGecko `yaml:"coingecko"` CoinMarketCap CoinMarketCap `yaml:"coin_market_cap"` }
type CoinGecko ¶
type CoinGecko struct {
ApiAddress string `yaml:"api_address" json:"apiAddress,omitempty"`
}
type CoinMarketCap ¶
type MirrorNode ¶
type Monitoring ¶
type Network ¶
type Network struct { Name string `yaml:"name" json:"name,omitempty"` BridgeAccount string `yaml:"bridge_account" json:"bridgeAccount,omitempty"` PayerAccount string `yaml:"payer_account" json:"payerAccount,omitempty"` RouterContractAddress string `yaml:"router_contract_address" json:"routerContractAddress,omitempty"` Members []string `yaml:"members" json:"members,omitempty"` Tokens Tokens `yaml:"tokens" json:"tokens,omitempty"` }
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"` Monitoring Monitoring `yaml:"monitoring"` BridgeConfigTopicId Monitoring `yaml:"bridge_config_topic_id"` }
Structs used to parse the node YAML configuration
type Token ¶
type Token struct { Fee int64 `yaml:"fee" json:"fee,omitempty"` // Represent a constant fee for Non-Fungible tokens. Applies only for Hedera Native Tokens FeeAmountInUsd string `yaml:"fee_amount_in_usd" json:"feeAmountInUsd,omitempty"` // Represent a dynamic fee amount in $USD for Non-Fungible tokens. Applies only for Hedera Native Tokens FeePercentage int64 `yaml:"fee_percentage" json:"feePercentage,omitempty"` // Represents a constant fee for Fungible Tokens. Applies only for Hedera Native Tokens MinFeeAmountInUsd string `yaml:"min_fee_amount_in_usd" json:"minFeeAmountInUsd,omitempty"` // Represents a constant minimum fee amount in USD which is needed for the validator not to be on a loss MinAmount *big.Int `yaml:"min_amount" json:"minAmount,omitempty"` // Represents a constant for minimum amount which is used when there is no 'coin_gecko_id' or 'coin_market_cap_id' supplied in the config. Networks map[uint64]string `yaml:"networks" json:"networks,omitempty"` CoinGeckoId string `yaml:"coin_gecko_id" json:"coinGeckoId,omitempty"` CoinMarketCapId string `yaml:"coin_market_cap_id" json:"coinMarketCapId,omitempty"` }
Click to show internal directories.
Click to hide internal directories.