Versions in this module Expand all Collapse all v0 v0.0.1 Sep 25, 2024 Changes in this version + const AWSConfig + const ConfigDBPass + const ConfigDBUserName + const ConfigFilePath + const ConfigType + const DBDialectMysql + const DBDialectSqlite3 + const FlagConfigAwsRegion + const FlagConfigAwsSecretKey + const FlagConfigBlsPrivateKey + const FlagConfigDbPass + const FlagConfigDbUsername + const FlagConfigPath + const FlagConfigPrivateKey + const FlagConfigType + const KeyTypeAWSPrivateKey + const KeyTypeLocalPrivateKey + const LocalConfig + func GetSecret(secretName, region string) (string, error) + func SendTelegramMessage(identity string, botId string, chatId string, msg string) + type AdminConfig struct + Port uint16 + func (cfg *AdminConfig) Validate() + type AlertConfig struct + Identity string + TelegramBotId string + TelegramChatId string + type BSCConfig struct + AWSRegion string + AWSSecretName string + ChainId uint64 + GasLimit uint64 + GasPrice uint64 + KeyType string + NumberOfBlocksForFinality uint64 + OpBNB bool + PrivateKey string + RPCAddrs []string + StartHeight uint64 + func (cfg *BSCConfig) IsOpCrossChain() bool + func (cfg *BSCConfig) Validate() + type Config struct + AdminConfig AdminConfig + AlertConfig AlertConfig + BSCConfig BSCConfig + DBConfig DBConfig + GreenfieldConfig GreenfieldConfig + LogConfig LogConfig + RelayConfig RelayConfig + VotePoolConfig VotePoolConfig + func ParseConfigFromFile(filePath string) *Config + func ParseConfigFromJson(content string) *Config + func (cfg *Config) Validate() + type DBConfig struct + AWSRegion string + AWSSecretName string + Dialect string + KeyType string + MaxIdleConns int + MaxOpenConns int + Password string + Url string + Username string + func (cfg *DBConfig) Validate() + type GreenfieldConfig struct + AWSBlsSecretName string + AWSRegion string + AWSSecretName string + BlsPrivateKey string + ChainId uint64 + ChainIdString string + FeeAmount int64 + GasLimit int64 + KeyType string + MonitorChannelList []uint8 + PrivateKey string + RPCAddrs []string + StartHeight uint64 + UseWebsocket bool + func (cfg *GreenfieldConfig) Validate() + type LogConfig struct + Compress bool + Filename string + Level string + MaxAgeToRetainLogFilesInDays int + MaxBackupsOfLogFiles int + MaxFileSizeInMB int + UseConsoleLogger bool + UseFileLogger bool + func (cfg *LogConfig) Validate() + type RelayConfig struct + BSCSequenceUpdateLatency int64 + BSCToGreenfieldInturnRelayerTimeout int64 + CrossChainContractAddr string + GreenfieldLightClientContractAddr string + GreenfieldSequenceUpdateLatency int64 + GreenfieldToBSCInturnRelayerTimeout int64 + RelayerHubContractAddr string + SrcZkmeSBTContractAddr string + func (cfg *RelayConfig) Validate() + type VotePoolConfig struct + BroadcastIntervalInMillisecond int64 + QueryIntervalInMillisecond int64 + VotesBatchMaxSizePerInterval int64 + func (cfg *VotePoolConfig) Validate()