Documentation
¶
Index ¶
- Variables
- func GetConfig(config interface{}, path string) error
- func GetLoggerFor(ctx string) *log.Entry
- func InitLogger(level string, format string)
- func LoadHederaFees(tokens parser.Tokens) (res struct{ ... })
- type Bridge
- type BridgeEvm
- type BridgeHedera
- type Clients
- type CoinGecko
- type CoinMarketCap
- type Config
- type Database
- type Evm
- type GCEFormatter
- type Hedera
- type HederaToken
- type MirrorNode
- type Monitoring
- type Node
- type Operator
- type Recovery
- type RetryPolicy
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSkipNotFound = errors.New("could not find skips for log level")
)
Functions ¶
func GetLoggerFor ¶
GetLoggerFor returns a logger defined with a context
func InitLogger ¶
InitLogger sets the initial configuration of the used logger
Types ¶
type Bridge ¶ added in v1.4.0
type Bridge struct {
TopicId string
Hedera *BridgeHedera
EVMs map[uint64]BridgeEvm
CoinMarketCapIds map[uint64]map[string]string
CoinGeckoIds map[uint64]map[string]string
MinAmounts map[uint64]map[string]*big.Int
MonitoredAccounts map[string]string
BlacklistedAccounts []string
}
func (Bridge) LoadStaticMinAmountsForWrappedFungibleTokens ¶ added in v1.4.0
type BridgeHedera ¶ added in v1.4.0
type Clients ¶ added in v1.4.0
type Clients struct {
Evm map[uint64]Evm
Hedera Hedera
MirrorNode MirrorNode
CoinGecko CoinGecko
CoinMarketCap CoinMarketCap
}
type CoinMarketCap ¶ added in v1.4.0
type GCEFormatter ¶ added in v1.4.0
type GCEFormatter struct {
// contains filtered or unexported fields
}
func NewGCEFormatter ¶ added in v1.4.0
func NewGCEFormatter(withSourceInfo bool) *GCEFormatter
type Hedera ¶
type HederaToken ¶ added in v1.4.0
type HederaToken struct {
Fee int64
FeePercentage int64
MinFeeAmountInUsd string
MinAmount *big.Int
Networks map[uint64]string
ReleaseTimestamp uint64
}
func NewHederaTokenFromToken ¶ added in v1.4.0
func NewHederaTokenFromToken(token parser.Token) HederaToken
type MirrorNode ¶
type MirrorNode struct {
ClientAddress string
ApiAddress string
PollingInterval time.Duration
QueryMaxLimit int64
QueryDefaultLimit int64
RetryPolicy RetryPolicy
RequestTimeout int
}
func (*MirrorNode) DefaultOrConfig ¶ added in v1.4.0
func (m *MirrorNode) DefaultOrConfig(cfg *parser.MirrorNode) *MirrorNode
type Monitoring ¶ added in v1.4.0
type Node ¶ added in v1.4.0
type RetryPolicy ¶ added in v1.4.0
func (*RetryPolicy) DefaultOrConfig ¶ added in v1.4.0
func (r *RetryPolicy) DefaultOrConfig(cfg *parser.RetryPolicy) *RetryPolicy
Click to show internal directories.
Click to hide internal directories.