Versions in this module Expand all Collapse all v0 v0.0.1 Jun 20, 2023 Changes in this version + func ParseYaml(configFile string) error + type Chain struct + ChainID uint64 + ContractAddr common.Address + ContractAddress string + HttpRpcUrl string + Key *ecdsa.PrivateKey + Name string + PrivateKey string + SuppirtCoins []string + WssRpcUrl string + type CoinAmountLimit struct + MaxAmount float64 + MinAmount float64 + Name string + type CrossChain struct + DestChainId uint64 + SrcChainId uint64 + type CrossChainCoin struct + CoinType string + Name string + type CrossChainFee struct + Fixed float64 + FloatRate float64 + Name string + type Log struct + Level string + Path string + type MySQL struct + ShowSQL bool + Uri string + type MysGateConfig struct + Chains []*Chain + CoinAmountLimits []*CoinAmountLimit + Coins map[string]*CrossChainCoin + CrossChainCoins []*CrossChainCoin + Crosschainfee []*CrossChainFee + Crosschains []*CrossChain + Debug bool + Fee map[string]*CrossChainFee + Limit map[string]*CoinAmountLimit + Logger *Log + MySql *MySQL + Router *Router + Service *Service + SupportChains map[uint64]*Chain + SupportCoins []string + SupportCrossChain map[uint64][]uint64 + ZkVerify *ZkVerify + func GetConfig() *MysGateConfig + func (c *MysGateConfig) FindCrossChain(cid uint64) *Chain + func (c *MysGateConfig) GetCoinLimit(coin string) *CoinAmountLimit + func (c *MysGateConfig) GetCrossChainFee(coin string) *CrossChainFee + func (cfg *MysGateConfig) GetChainKey(chain *Chain) (keys []string) + type Router struct + Porters []string + Type string + type Service struct + ServicePort string + type ZkVerify struct + Enable bool + ProofUrl string