Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain struct { WssRpcUrl string `yaml:"wss_rpc_url"` HttpRpcUrl string `yaml:"http_rpc_url"` PrivateKey string `yaml:"private_key"` Key *ecdsa.PrivateKey ChainID uint64 `yaml:"chain_id"` ContractAddress string `yaml:"contract_address"` ContractAddr common.Address Name string `yaml:"name"` SuppirtCoins []string `yaml:"support_coins"` }
type CoinAmountLimit ¶
type CrossChain ¶
type CrossChainCoin ¶
type CrossChainFee ¶
type MysGateConfig ¶
type MysGateConfig struct { SupportChains map[uint64]*Chain SupportCrossChain map[uint64][]uint64 Coins map[string]*CrossChainCoin Fee map[string]*CrossChainFee Limit map[string]*CoinAmountLimit Router *Router `yaml:"router"` SupportCoins []string `yaml:"support_coins"` CoinAmountLimits []*CoinAmountLimit `yaml:"cross_chain_coin_limit"` CrossChainCoins []*CrossChainCoin `yaml:"cross_chain_coins"` Crosschainfee []*CrossChainFee `yaml:"cross_chain_fees"` Chains []*Chain `yaml:"chains"` Crosschains []*CrossChain `yaml:"cross_chains"` Service *Service `yaml:"service"` Logger *Log `yaml:"log"` Debug bool `yaml:"debug"` MySql *MySQL `yaml:"mysql"` ZkVerify *ZkVerify `yaml:"zk_verify"` }
func GetConfig ¶
func GetConfig() *MysGateConfig
func (*MysGateConfig) FindCrossChain ¶
func (c *MysGateConfig) FindCrossChain(cid uint64) *Chain
func (*MysGateConfig) GetChainKey ¶
func (cfg *MysGateConfig) GetChainKey(chain *Chain) (keys []string)
func (*MysGateConfig) GetCoinLimit ¶
func (c *MysGateConfig) GetCoinLimit(coin string) *CoinAmountLimit
func (*MysGateConfig) GetCrossChainFee ¶
func (c *MysGateConfig) GetCrossChainFee(coin string) *CrossChainFee
Click to show internal directories.
Click to hide internal directories.