Documentation
¶
Index ¶
- Variables
- func AsyncUpdateDepositAddress(ex common.Exchange, tokenID, addr string, wait *sync.WaitGroup, ...)
- func DepositSignerFromConfigFile(secretPath string) *blockchain.EthereumSigner
- func GetChainType(kyberENV string) string
- func GetSetting(kyberENV string, addressSetting *settings.AddressSetting) (*settings.Settings, error)
- func GetSettingDBName(kyberENV string) string
- func HuobiIntermediatorSignerFromFile(secretPath string) *blockchain.EthereumSigner
- func PricingSignerFromConfigFile(secretPath string) *blockchain.EthereumSigner
- func SetInterface(baseURL string)
- type AddressDepositConfig
- type Config
- type ExchangePool
- type SettingPaths
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressConfigs = map[string]common.AddressConfig{ common.DevMode: { Reserve: "0x63825c174ab367968EC60f061753D3bbD36A0D8F", Wrapper: "0x6172AFC8c00c46E0D07ce3AF203828198194620a", Pricing: "0x798AbDA6Cc246D0EDbA912092A2a3dBd3d11191B", Network: "0x818E6FECD516Ecc3849DAf6845e3EC868087B755", InternalNetwork: "0x91a502C678605fbCe581eae053319747482276b9", }, common.StagingMode: { Reserve: "0x2C5a182d280EeB5824377B98CD74871f78d6b8BC", Wrapper: "0x6172AFC8c00c46E0D07ce3AF203828198194620a", Pricing: "0xe3E415a7a6c287a95DC68a01ff036828073fD2e6", Network: "0xC14f34233071543E979F6A79AA272b0AB1B4947D", InternalNetwork: "0x706aBcE058DB29eB36578c463cf295F180a1Fe9C", }, common.MainnetMode: { Reserve: "0x63825c174ab367968EC60f061753D3bbD36A0D8F", Wrapper: "0x6172AFC8c00c46E0D07ce3AF203828198194620a", Pricing: "0x798AbDA6Cc246D0EDbA912092A2a3dBd3d11191B", Network: "0x818E6FECD516Ecc3849DAf6845e3EC868087B755", InternalNetwork: "0x91a502C678605fbCe581eae053319747482276b9", }, common.RopstenMode: { Reserve: "0x0FC1CF3e7DD049F7B42e6823164A64F76fC06Be0", Wrapper: "0x9de0a60F4A489e350cD8E3F249f4080858Af41d3", Pricing: "0x535DE1F5a982c2a896da62790a42723A71c0c12B", Network: "0x0a56d8a49E71da8d7F9C65F95063dB48A3C9560B", }, }
AddressConfigs store token configs according to env mode.
View Source
var BinanceInterfaces = make(map[string]binance.Interface)
View Source
var ConfigPaths = map[string]SettingPaths{ common.DevMode: NewSettingPaths( "dev_setting.json", "fee.json", "dev.db", "dev_analytics.db", "dev_fee_setrate.db", "config.json", infuraMainnetEndpoint, []string{ semidNodeKyberEndpoint, infuraMainnetEndpoint, myCryptoAPIEndpoint, myEtherAPIMainnetEndpoint, }, ), common.KovanMode: NewSettingPaths( "kovan_setting.json", "fee.json", "kovan.db", "kovan_analytics.db", "kovan_fee_setrate.db", "config.json", infuraKovanEndpoint, []string{}, ), common.ProductionMode: NewSettingPaths( "mainnet_setting.json", "fee.json", "mainnet.db", "mainnet_analytics.db", "mainnet_fee_setrate.db", "mainnet_config.json", alchemyapiMainnetEndpoint, []string{ alchemyapiMainnetEndpoint, infuraMainnetEndpoint, semidNodeKyberEndpoint, myCryptoAPIEndpoint, myEtherAPIMainnetEndpoint, mewGivethAPIEndpoint, }, ), common.MainnetMode: NewSettingPaths( "mainnet_setting.json", "fee.json", "mainnet.db", "mainnet_analytics.db", "mainnet_fee_setrate.db", "mainnet_config.json", alchemyapiMainnetEndpoint, []string{ alchemyapiMainnetEndpoint, infuraMainnetEndpoint, semidNodeKyberEndpoint, myCryptoAPIEndpoint, myEtherAPIMainnetEndpoint, mewGivethAPIEndpoint, }, ), common.StagingMode: NewSettingPaths( "staging_setting.json", "fee.json", "staging.db", "staging_analytics.db", "staging_fee_setrate.db", "staging_config.json", alchemyapiMainnetEndpoint, []string{ alchemyapiMainnetEndpoint, infuraMainnetEndpoint, semidNodeKyberEndpoint, myCryptoAPIEndpoint, myEtherAPIMainnetEndpoint, mewGivethAPIEndpoint, }, ), common.SimulationMode: NewSettingPaths( "shared/deployment_dev.json", "fee.json", "core.db", "core_analytics.db", "core_fee_setrate.db", "config.json", localDevChainEndpoint, []string{ localDevChainEndpoint, }, ), common.RopstenMode: NewSettingPaths( "ropsten_setting.json", "fee.json", "ropsten.db", "ropsten_analytics.db", "ropsten_fee_setrate.db", "config.json", infuraRopstenEndpoint, []string{ myEtherAPIRopstenEndpoint, }, ), common.AnalyticDevMode: NewSettingPaths( "shared/deployment_dev.json", "fee.json", "core.db", "core_analytics.db", "core_fee_setrate.db", "config.json", localDevChainEndpoint, []string{ localDevChainEndpoint, }, ), }
View Source
var ExchangeConfigs = map[string]map[common.ExchangeID]common.ExchangeAddresses{ common.DevMode: { "binance": map[string]ethereum.Address{ "ETH": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "OMG": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "KNC": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SNT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ELF": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "POWR": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "MANA": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BAT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "REQ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "GTO": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ENG": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SALT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "APPC": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "RDN": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BQX": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ZIL": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "AST": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "LINK": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ENJ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "AION": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "AE": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BLZ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SUB": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "POE": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "CHAT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BNT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "TUSD": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), }, "huobi": map[string]ethereum.Address{ "ETH": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "ABT": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "POLY": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "LBA": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "EDU": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "CVC": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "WAX": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "PAY": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "DTA": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), }, "stable_exchange": map[string]ethereum.Address{ "ETH": ethereum.HexToAddress("0xFDF28Bf25779ED4cA74e958d54653260af604C20"), "DGX": ethereum.HexToAddress("0xFDF28Bf25779ED4cA74e958d54653260af604C20"), }, }, common.StagingMode: { "binance": map[string]ethereum.Address{ "ETH": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "OMG": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "KNC": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "SNT": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "ELF": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "POWR": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "MANA": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "BAT": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "REQ": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "GTO": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "ENG": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "SALT": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "APPC": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "RDN": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "BQX": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "ZIL": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "AST": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "LINK": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "ENJ": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "AION": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "AE": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "BLZ": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "SUB": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "POE": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "CHAT": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "BNT": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), "TUSD": ethereum.HexToAddress("0x1ae659f93ba2fc0a1f379545cf9335adb75fa547"), }, "huobi": map[string]ethereum.Address{ "ETH": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "ABT": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "POLY": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "LBA": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "EDU": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "CVC": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "WAX": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "PAY": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), "DTA": ethereum.HexToAddress("0xb48ee85467bf613a22244084c1a46c2deac18dd0"), }, "stable_exchange": map[string]ethereum.Address{ "ETH": ethereum.HexToAddress("0xFDF28Bf25779ED4cA74e958d54653260af604C20"), "DGX": ethereum.HexToAddress("0xFDF28Bf25779ED4cA74e958d54653260af604C20"), }, }, common.MainnetMode: { "binance": { "ETH": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "OMG": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "KNC": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SNT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ELF": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "POWR": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "MANA": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BAT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "REQ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "GTO": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ENG": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SALT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "APPC": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "RDN": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BQX": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ZIL": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "AST": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "LINK": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ENJ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "AION": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "AE": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BLZ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SUB": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "POE": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "CHAT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BNT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "TUSD": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), }, "huobi": { "ETH": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "ABT": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "POLY": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "LBA": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "EDU": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "CVC": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "WAX": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "PAY": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), "DTA": ethereum.HexToAddress("0x0c8fd73eaf6089ef1b91231d0a07d0d2ca2b9d66"), }, "stable_exchange": { "ETH": ethereum.HexToAddress("0xFDF28Bf25779ED4cA74e958d54653260af604C20"), "DGX": ethereum.HexToAddress("0xFDF28Bf25779ED4cA74e958d54653260af604C20"), }, }, common.RopstenMode: { "binance": { "ETH": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "OMG": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "KNC": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "SNT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "EOS": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "ELF": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "POWR": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "MANA": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "BAT": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "REQ": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), "GTO": ethereum.HexToAddress("0x44d34a119ba21a42167ff8b77a88f0fc7bb2db90"), }, }, }
ExchangeConfigs store exchange config according to env mode.
View Source
var ExchangesMinDepositConfig = map[string]common.ExchangesMinDeposit{ "binance": map[string]float64{ "ADA": 0, "ADX": 0, "AE": 0, "AION": 0, "AMB": 0, "APPC": 0, "ARK": 0, "ARN": 0, "AST": 0, "BAT": 0, "BCC": 0, "BCD": 0, "BCPT": 0, "BCX": 0, "BLZ": 0, "BNB": 0, "BNT": 0, "BQX": 0, "BRD": 0, "BTC": 0, "BTG": 0, "BTM": 0, "BTS": 0, "CDT": 0, "CHAT": 0, "CMT": 0, "CND": 0, "CTR": 0, "DAI": 0, "DASH": 0, "DGD": 0, "DLT": 0, "DNT": 0, "EDO": 0, "ELF": 0, "ENG": 0, "ENJ": 0, "EOS": 0, "ETC": 0, "ETF": 0, "ETH": 0, "EVX": 0, "FUEL": 0, "FUN": 0, "GAS": 0, "GTO": 0, "GVT": 0, "GXS": 0, "HCC": 0, "HSR": 0, "ICN": 0, "ICX": 0, "INS": 0, "IOST": 0, "IOTA": 0, "KMD": 0, "KNC": 0, "LEND": 0, "LINK": 0, "LRC": 0, "LSK": 0, "LTC": 0, "LUN": 0, "MANA": 0, "MCO": 0, "MDA": 0, "MOD": 0, "MTH": 0, "MTL": 0, "NANO": 0, "NAV": 0, "NCASH": 0, "NEBL": 0, "NEO": 0, "NULS": 0, "OAX": 0, "OMG": 0, "ONT": 0, "OST": 0, "PIVX": 0, "POA": 0, "POE": 0, "POWR": 0, "PPT": 0, "QSP": 0, "QTUM": 0, "RCN": 0, "RDN": 0, "REP": 0, "REQ": 0, "RLC": 0, "RPX": 0, "SALT": 0, "SBTC": 0, "SNGLS": 0, "SNM": 0, "SNT": 0, "STEEM": 0, "STORJ": 0, "STRAT": 0, "SUB": 0, "TNB": 0, "TNT": 0, "TUSD": 0, "TRIG": 0, "TRX": 0, "USDT": 0, "VEN": 0, "VIA": 0, "VIB": 0, "VIBE": 0, "WABI": 0, "WAVES": 0, "WINGS": 0, "WTC": 0, "XLM": 0, "XMR": 0, "XRP": 0, "XVG": 0, "XZC": 0, "YOYO": 0, "ZEC": 0, "ZIL": 0, "ZRX": 0, }, "bittrex": map[string]float64{ "ADX": 0.1, "ANT": 0.1, "BAT": 0.1, "BNT": 0.1, "CFI": 0.1, "CVC": 0.1, "ENG": 0.1, "ETH": 0.05, "GNO": 0.1, "GNT": 0.1, "LRC": 0.1, "MANA": 0.1, "MCO": 0.1, "MLN": 0.1, "OMG": 0.1, "PAY": 0.1, "POWR": 0.1, "QRL": 0.1, "RCN": 0.1, "REP": 0.1, "RLC": 0.1, "SALT": 0.1, "SNT": 0.1, "TRX": 0.1, "WINGS": 0.1, "ZRX": 0.1, }, "huobi": map[string]float64{ "ABT": 2, "APPC": 0.5, "AST": 5, "BAT": 5, "CVC": 2, "DTA": 100, "EDU": 500, "ELF": 5, "ENG": 0.5, "EOS": 0.5, "ETH": 0.01, "KNC": 1, "LBA": 10, "LINK": 1, "MANA": 10, "OMG": 0.1, "PAY": 0.5, "POLY": 1, "POWR": 2, "RDN": 1, "REQ": 5, "SALT": 0.1, "SNT": 50, "WAX": 1, "ZIL": 100, }, "stable_exchange": map[string]float64{ "ETH": 0, "DGX": 0, }, }
ExchangesMinDepositConfig store preconfig min exchange deposit for each exchange
View Source
var FeeConfigs = map[string]common.ExchangeFees{ "binance": { Trading: common.TradingFee{ "taker": 0.001, "maker": 0.001, }, Funding: common.FundingFee{ Withdraw: map[string]float64{ "ADA": 1, "ADX": 4, "AE": 2.3, "AION": 1.6, "AMB": 9.4, "APPC": 7.8, "ARK": 0.1, "ARN": 2.3, "AST": 11.9, "BAT": 14, "BCC": 0.001, "BCD": 1, "BCPT": 4.8, "BCX": 1, "BLZ": 10.2, "BNB": 0.51, "BNT": 1.1, "BQX": 1.2, "BRD": 6.4, "BTC": 0.0005, "BTG": 0.001, "BTM": 5, "BTS": 1, "CDT": 72, "CHAT": 57.3, "CMT": 40, "CND": 40, "CTR": 7.5, "DAI": 0, "DASH": 0.002, "DGD": 0.02, "DLT": 16.3, "DNT": 56, "EDO": 2, "ELF": 4.4, "ENG": 2, "ENJ": 29, "EOS": 0.7, "ETC": 0.01, "ETF": 1, "ETH": 0.01, "EVX": 2.5, "FUEL": 44, "FUN": 82, "GAS": 0, "GTO": 15, "GVT": 0.15, "GXS": 0.3, "HCC": 0.0005, "HSR": 0.0001, "ICN": 2.9, "ICX": 1.5, "INS": 2.4, "IOST": 145.7, "IOTA": 0.5, "KMD": 0.002, "KNC": 2.6, "LEND": 60, "LINK": 8.7, "LRC": 9.4, "LSK": 0.1, "LTC": 0.01, "LUN": 0.24, "MANA": 46, "MCO": 0.56, "MDA": 4.1, "MOD": 2, "MTH": 36, "MTL": 0.9, "NANO": 0.01, "NAV": 0.2, "NCASH": 160.6, "NEBL": 0.01, "NEO": 0, "NULS": 1.4, "OAX": 5.7, "OMG": 0.3, "ONT": 1, "OST": 16, "PIVX": 0.02, "POA": 0.01, "POE": 159, "POWR": 9.1, "PPT": 0.25, "QSP": 22, "QTUM": 0.01, "RCN": 35, "RDN": 2, "REP": 0.1, "REQ": 17.3, "RLC": 3.8, "RPX": 1, "SALT": 1.3, "SBTC": 1, "SNGLS": 49, "SNM": 26, "SNT": 30, "STEEM": 0.01, "STORJ": 4.6, "STRAT": 0.1, "SUB": 12.3, "TNB": 108, "TNT": 47, "TUSD": 2.6, "TRIG": 15.7, "TRX": 110, "USDT": 11.5, "VEN": 1.1, "VIA": 0.01, "VIB": 20, "VIBE": 13.2, "WABI": 3.8, "WAVES": 0.002, "WINGS": 6.7, "WTC": 0.3, "XLM": 0.01, "XMR": 0.04, "XRP": 0.25, "XVG": 0.1, "XZC": 0.02, "YOYO": 42, "ZEC": 0.005, "ZIL": 100, "ZRX": 5.8, }, Deposit: map[string]float64{ "ADA": 0, "ADX": 0, "AE": 0, "AION": 0, "AMB": 0, "APPC": 0, "ARK": 0, "ARN": 0, "AST": 0, "BAT": 0, "BCC": 0, "BCD": 0, "BCPT": 0, "BCX": 0, "BLZ": 0, "BNB": 0, "BNT": 0, "BQX": 0, "BRD": 0, "BTC": 0, "BTG": 0, "BTM": 0, "BTS": 0, "CDT": 0, "CHAT": 0, "CMT": 0, "CND": 0, "CTR": 0, "DAI": 0, "DASH": 0, "DGD": 0, "DLT": 0, "DNT": 0, "EDO": 0, "ELF": 0, "ENG": 0, "ENJ": 0, "EOS": 0, "ETC": 0, "ETF": 0, "ETH": 0, "EVX": 0, "FUEL": 0, "FUN": 0, "GAS": 0, "GTO": 0, "GVT": 0, "GXS": 0, "HCC": 0, "HSR": 0, "ICN": 0, "ICX": 0, "INS": 0, "IOST": 0, "IOTA": 0, "KMD": 0, "KNC": 0, "LEND": 0, "LINK": 0, "LRC": 0, "LSK": 0, "LTC": 0, "LUN": 0, "MANA": 0, "MCO": 0, "MDA": 0, "MOD": 0, "MTH": 0, "MTL": 0, "NANO": 0, "NAV": 0, "NCASH": 0, "NEBL": 0, "NEO": 0, "NULS": 0, "OAX": 0, "OMG": 0, "ONT": 0, "OST": 0, "PIVX": 0, "POA": 0, "POE": 0, "POWR": 0, "PPT": 0, "QSP": 0, "QTUM": 0, "RCN": 0, "RDN": 0, "REP": 0, "REQ": 0, "RLC": 0, "RPX": 0, "SALT": 0, "SBTC": 0, "SNGLS": 0, "SNM": 0, "SNT": 0, "STEEM": 0, "STORJ": 0, "STRAT": 0, "SUB": 0, "TNB": 0, "TNT": 0, "TUSD": 0, "TRIG": 0, "TRX": 0, "USDT": 0, "VEN": 0, "VIA": 0, "VIB": 0, "VIBE": 0, "WABI": 0, "WAVES": 0, "WINGS": 0, "WTC": 0, "XLM": 0, "XMR": 0, "XRP": 0, "XVG": 0, "XZC": 0, "YOYO": 0, "ZEC": 0, "ZIL": 0, "ZRX": 0, }, }, }, "bittrex": { Trading: common.TradingFee{ "taker": 0.0025, "maker": 0.0025, }, Funding: common.FundingFee{ Withdraw: map[string]float64{ "ADX": 3, "AE": 0, "ANT": 1.3, "APPC": 0, "AST": 0, "BAT": 10, "BNB": 0, "BNT": 8, "BQX": 0, "BTM": 0, "CFI": 27, "CTR": 0, "CVC": 8, "DAI": 0, "DGD": 0.038, "ELF": 0, "ENG": 1, "EOS": 0, "ETH": 0.006, "ETHOS": 0, "FUN": 49, "GNO": 0.02, "GNT": 2, "GTO": 0, "ICN": 0, "KNC": 0, "LINK": 0, "LRC": 0, "MANA": 36, "MCO": 0.5, "MLN": 0.035, "MTL": 1.35, "OMG": 0.35, "PAY": 2, "POWR": 5, "PPT": 0, "QRL": 2.5, "RCN": 16, "RDN": 0, "REP": 0.1, "REQ": 0, "RLC": 3.5, "SALT": 0.6, "SNGLS": 3.5, "SNT": 20, "SONM": 0, "STOX": 0, "TAAS": 0, "TRX": 1, "VERI": 0, "WINGS": 4, "WTC": 0, "ZRX": 1, }, Deposit: map[string]float64{ "ADX": 0, "AE": 0, "ANT": 0, "APPC": 0, "AST": 0, "BAT": 0, "BNB": 0, "BNT": 0, "BQX": 0, "BTM": 0, "CFI": 0, "CTR": 0, "CVC": 0, "DAI": 0, "DGD": 0, "ELF": 0, "ENG": 0, "EOS": 0, "ETH": 0, "FUN": 0, "GNO": 0, "GNT": 0, "GTO": 0, "ICN": 0, "KNC": 0, "LINK": 0, "LRC": 0, "MANA": 0, "MCO": 0, "MLN": 0, "MTL": 0, "OMG": 0, "PAY": 0, "POWR": 0, "PPT": 0, "QRL": 0, "RCN": 0, "RDN": 0, "REP": 0, "REQ": 0, "RLC": 0, "SALT": 0, "SNGLS": 0, "SNT": 0, "SONM": 0, "STOX": 0, "TAAS": 0, "TRX": 0, "VERI": 0, "WINGS": 0, "WTC": 0, "ZRX": 0, }, }, }, "huobi": { Trading: common.TradingFee{ "taker": 0.002, "maker": 0.002, }, Funding: common.FundingFee{ Withdraw: map[string]float64{ "ABT": 2, "ACT": 0.01, "ADX": 0.5, "AIDOC": 10, "APPC": 0.5, "AST": 5, "BAT": 5, "BCH": 0.0001, "BLZ": 2, "BQX": 0, "BTC": 0.001, "BTM": 2, "CHAT": 2, "CMT": 20, "CVC": 2, "DAI": 0, "DASH": 0.002, "DAT": 10, "DBC": 10, "DGD": 0.01, "DTA": 100, "EDU": 500, "EKO": 20, "ELA": 0.005, "ELF": 5, "ENG": 0.5, "EOS": 0.5, "ETC": 0.01, "ETH": 0.01, "EVX": 0.5, "GAS": 0, "GNT": 5, "GNX": 5, "GTO": 0, "HSR": 0.0001, "HT": 1, "ICX": 0.2, "ITC": 2, "KNC": 1, "LBA": 10, "LET": 30, "LINK": 1, "LSK": 0.1, "LTC": 0.001, "LUN": 0.05, "MANA": 10, "MCO": 0.2, "MDS": 20, "MEE": 10, "MTL": 0.2, "MTN": 5, "MTX": 2, "NAS": 0.2, "NEO": 0, "OCN": 100, "OMG": 0.1, "OST": 1, "PAY": 0.5, "POLY": 1, "POWR": 2, "PROPY": 0.5, "QSB": 10, "QTUM": 0.01, "QUASH": 1, "QUN": 30, "RCN": 10, "RDN": 1, "REQ": 5, "RPX": 2, "RUFF": 20, "SALT": 0.1, "SMT": 50, "SNC": 5, "SNT": 50, "SOC": 10, "SRN": 0.5, "STK": 10, "STORJ": 2, "SWFTC": 100, "THETA": 10, "TNB": 50, "TNT": 20, "TOPC": 20, "TRX": 20, "USDT": 20, "UTK": 2, "VEN": 2, "WAX": 1, "WICC": 2, "WPR": 10, "XEM": 4, "XRP": 0.1, "YEE": 50, "ZEC": 0.001, "ZIL": 100, "ZLA": 1, "ZRX": 5, }, Deposit: map[string]float64{ "ABT": 0, "ACT": 0, "ADX": 0, "AIDOC": 0, "APPC": 0, "AST": 0, "BAT": 0, "BCH": 0, "BLZ": 0, "BQX": 0, "BTC": 0, "BTM": 0, "CHAT": 0, "CMT": 0, "CVC": 0, "DAI": 0, "DASH": 0, "DAT": 0, "DBC": 0, "DGD": 0, "DTA": 0, "EDU": 0, "EKO": 0, "ELA": 0, "ELF": 0, "ENG": 0, "EOS": 0, "ETC": 0, "ETH": 0, "EVX": 0, "GAS": 0, "GNT": 0, "GNX": 0, "GTO": 0, "HSR": 0, "HT": 0, "ICX": 0, "IOST": 0, "ITC": 0, "KNC": 0, "LBA": 0, "LET": 0, "LINK": 0, "LSK": 0, "LTC": 0, "LUN": 0, "MANA": 0, "MCO": 0, "MDS": 0, "MEE": 0, "MTL": 0, "MTN": 0, "MTX": 0, "NAS": 0, "NEO": 0, "OCN": 0, "OMG": 0, "OST": 0, "PAY": 0, "POLY": 0, "POWR": 0, "PROPY": 0, "QSB": 0, "QTUM": 0, "QUASH": 0, "QUN": 0, "RCN": 0, "RDN": 0, "REQ": 0, "RPX": 0, "RUFF": 0, "SALT": 0, "SMT": 0, "SNC": 0, "SNT": 0, "SOC": 0, "SRN": 0, "STK": 0, "STORJ": 0, "SWFTC": 0, "THETA": 0, "TNB": 0, "TNT": 0, "TOPC": 0, "TRX": 0, "USDT": 0, "UTK": 0, "VEN": 0, "WAX": 0, "WICC": 0, "WPR": 0, "XEM": 0, "XRP": 0, "YEE": 0, "ZEC": 0, "ZIL": 0, "ZLA": 0, "ZRX": 0, }, }, }, "stable_exchange": { Trading: common.TradingFee{ "taker": 0, "maker": 0, }, Funding: common.FundingFee{ Withdraw: map[string]float64{ "ETH": 0, "DGX": 0, }, Deposit: map[string]float64{ "ETH": 0, "DGX": 0, }, }, }, }
FeeConfigs store predefined fee configs of exchanges
View Source
var HuobiInterfaces = make(map[string]huobi.Interface)
View Source
var TokenConfigs = map[string]map[string]common.Token{ common.DevMode: { "KNC": common.NewToken("KNC", "KyberNetwork", "0xdd974D5C2e2928deA5F71b9825b8b646686BD200", 18, true, true, common.GetTimepoint()), "BQX": common.NewToken("BQX", "Ethos", "0x5Af2Be193a6ABCa9c8817001F45744777Db30756", 8, true, true, common.GetTimepoint()), "WAX": common.NewToken("WAX", "Wax", "0x39bb259f66e1c59d5abef88375979b4d20d98022", 8, true, true, common.GetTimepoint()), "CHAT": common.NewToken("CHAT", "Chatcoin", "0x442bc47357919446eabc18c7211e57a13d983469", 18, true, true, common.GetTimepoint()), "DTA": common.NewToken("DTA", "Data", "0x69b148395ce0015c13e36bffbad63f49ef874e03", 18, true, true, common.GetTimepoint()), "WINGS": common.NewToken("WINGS", "WINGS", "0x667088b212ce3d06a1b553a7221E1fD19000d9aF", 18, true, false, common.GetTimepoint()), "OMG": common.NewToken("OMG", "OmiseGO", "0xd26114cd6EE289AccF82350c8d8487fedB8A0C07", 18, true, true, common.GetTimepoint()), "GTO": common.NewToken("GTO", "Gifto", "0xc5bbae50781be1669306b9e001eff57a2957b09d", 5, true, true, common.GetTimepoint()), "LINK": common.NewToken("LINK", "Chain Link", "0x514910771af9ca656af840dff83e8264ecf986ca", 18, true, true, common.GetTimepoint()), "LBA": common.NewToken("LBA", "Libra Credit", "0xfe5f141bf94fe84bc28ded0ab966c16b17490657", 18, true, true, common.GetTimepoint()), "COFI": common.NewToken("COFI", "CoinFi", "0x3136ef851592acf49ca4c825131e364170fa32b3", 0, true, false, common.GetTimepoint()), "AION": common.NewToken("AION", "Aion", "0x4CEdA7906a5Ed2179785Cd3A40A69ee8bc99C466", 8, true, true, common.GetTimepoint()), "POLY": common.NewToken("POLY", "Polymath", "0x9992ec3cf6a55b00978cddf2b27bc6882d88d1ec", 18, true, true, common.GetTimepoint()), "CVC": common.NewToken("CVC", "Civic", "0x41e5560054824eA6B0732E656E3Ad64E20e94E45", 8, true, true, common.GetTimepoint()), "SUB": common.NewToken("SUB", "Substratum", "0x12480e24eb5bec1a9d4369cab6a80cad3c0a377a", 2, true, true, common.GetTimepoint()), "ABT": common.NewToken("ABT", "ArcBlock", "0xb98d4c97425d9908e66e53a6fdf673acca0be986", 18, true, true, common.GetTimepoint()), "APPC": common.NewToken("APPC", "AppCoins", "0x1a7a8bd9106f2b8d977e08582dc7d24c723ab0db", 18, true, true, common.GetTimepoint()), "DGX": common.NewToken("DGX", "Digix Gold", "0x4f3afec4e5a3f2a6a1a411def7d7dfe50ee057bf", 9, true, true, common.GetTimepoint()), "IOST": common.NewToken("IOST", "IOStoken", "0xfa1a856cfa3409cfa145fa4e20eb270df3eb21ab", 18, true, false, common.GetTimepoint()), "EDU": common.NewToken("EDU", "EduCoin", "0xf263292e14d9d8ecd55b58dad1f1df825a874b7c", 18, true, true, common.GetTimepoint()), "STORM": common.NewToken("STORM", "Storm", "0xd0a4b8946cb52f0661273bfbc6fd0e0c75fc6433", 18, true, false, common.GetTimepoint()), "TUSD": common.NewToken("TUSD", "TrueUSD", "0x8dd5fbce2f6a956c3022ba3663759011dd51e73e", 18, true, true, common.GetTimepoint()), "WABI": common.NewToken("WABI", "WaBi", "0x286BDA1413a2Df81731D4930ce2F862a35A609fE", 18, true, false, common.GetTimepoint()), "LEND": common.NewToken("LEND", "EthLend", "0x80fB784B7eD66730e8b1DBd9820aFD29931aab03", 18, true, false, common.GetTimepoint()), "BAT": common.NewToken("BAT", "Basic Attention Token", "0x0d8775f648430679a709e98d2b0cb6250d2887ef", 18, true, true, common.GetTimepoint()), "BLZ": common.NewToken("BLZ", "Bluezelle", "0x5732046a883704404f284ce41ffadd5b007fd668", 18, true, true, common.GetTimepoint()), "BBO": common.NewToken("BBO", "Bigbom", "0x84f7c44b6fed1080f647e354d552595be2cc602f", 18, true, false, common.GetTimepoint()), "BNT": common.NewToken("BNT", "Bancor", "0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c", 18, true, true, common.GetTimepoint()), "ZIL": common.NewToken("ZIL", "Zilliqa", "0x05f4a42e251f2d52b8ed15e9fedaacfcef1fad27", 12, true, true, common.GetTimepoint()), "ELF": common.NewToken("ELF", "AELF", "0xbf2179859fc6d5bee9bf9158632dc51678a4100e", 18, true, true, common.GetTimepoint()), "RDN": common.NewToken("RDN", "Raiden", "0x255aa6df07540cb5d3d297f0d0d4d84cb52bc8e6", 18, true, true, common.GetTimepoint()), "ENG": common.NewToken("ENG", "Enigma", "0xf0ee6b27b759c9893ce4f094b49ad28fd15a23e4", 8, true, true, common.GetTimepoint()), "RCN": common.NewToken("RCN", "Ripio Credit Network", "0xf970b8e36e23f7fc3fd752eea86f8be8d83375a6", 18, true, false, common.GetTimepoint()), "ELEC": common.NewToken("ELEC", "ElectrifyAsia", "0xd49ff13661451313ca1553fd6954bd1d9b6e02b9", 18, true, false, common.GetTimepoint()), "EOS": common.NewToken("EOS", "Eos", "0x86Fa049857E0209aa7D9e616F7eb3b3B78ECfdb0", 18, true, false, common.GetTimepoint()), "MANA": common.NewToken("MANA", "MANA", "0x0f5d2fb29fb7d3cfee444a200298f468908cc942", 18, true, true, common.GetTimepoint()), "AST": common.NewToken("AST", "AirSwap", "0x27054b13b1b798b345b591a4d22e6562d47ea75a", 4, true, true, common.GetTimepoint()), "PAL": common.NewToken("PAL", "PolicyPal Network", "0xfedae5642668f8636a11987ff386bfd215f942ee", 18, true, false, common.GetTimepoint()), "REQ": common.NewToken("REQ", "Request", "0x8f8221afbb33998d8584a2b05749ba73c37a938a", 18, true, true, common.GetTimepoint()), "TOMO": common.NewToken("TOMO", "Tomocoin", "0x8b353021189375591723E7384262F45709A3C3dC", 18, true, false, common.GetTimepoint()), "MDS": common.NewToken("MDS", "MediShares", "0x66186008C1050627F979d464eABb258860563dbE", 18, true, false, common.GetTimepoint()), "MOC": common.NewToken("MOC", "Moss Land", "0x865ec58b06bf6305b886793aa20a2da31d034e68", 0, true, false, common.GetTimepoint()), "POWR": common.NewToken("POWR", "Power Ledger", "0x595832f8fc6bf59c85c527fec3740a1b7a361269", 6, true, true, common.GetTimepoint()), "DAI": common.NewToken("DAI", "DAI", "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359", 18, true, false, common.GetTimepoint()), "SALT": common.NewToken("SALT", "Salt", "0x4156d3342d5c385a87d264f90653733592000581", 8, true, true, common.GetTimepoint()), "MOT": common.NewToken("MOT", "Olympus Labs", "0x263c618480dbe35c300d8d5ecda19bbb986acaed", 18, true, false, common.GetTimepoint()), "ENJ": common.NewToken("ENJ", "EnjinCoin", "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c", 18, true, true, common.GetTimepoint()), "PAY": common.NewToken("PAY", "TenX", "0xB97048628DB6B661D4C2aA833e95Dbe1A905B280", 18, true, true, common.GetTimepoint()), "MTL": common.NewToken("MTL", "Metal", "0xF433089366899D83a9f26A773D59ec7eCF30355e", 8, true, false, common.GetTimepoint()), "ETH": common.NewToken("ETH", "Ethereum", "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", 18, true, true, common.GetTimepoint()), "SNT": common.NewToken("SNT", "STATUS", "0x744d70fdbe2ba4cf95131626614a1763df805b9e", 18, true, true, common.GetTimepoint()), "ADX": common.NewToken("ADX", "AdEx", "0x4470BB87d77b963A013DB939BE332f927f2b992e", 4, true, false, common.GetTimepoint()), "AE": common.NewToken("AE", "Aeternity", "0x5ca9a71b1d01849c0a95490cc00559717fcf0d1d", 18, true, true, common.GetTimepoint()), "POE": common.NewToken("POE", "Po.et", "0x0e0989b1f9b8a38983c2ba8053269ca62ec9b195", 8, true, true, common.GetTimepoint()), }, common.StagingMode: { "PAY": common.NewToken("PAY", "TenX", "0xB97048628DB6B661D4C2aA833e95Dbe1A905B280", 18, true, true, common.GetTimepoint()), "MTL": common.NewToken("MTL", "Metal", "0xF433089366899D83a9f26A773D59ec7eCF30355e", 8, true, false, common.GetTimepoint()), "LEND": common.NewToken("LEND", "EthLend", "0x80fB784B7eD66730e8b1DBd9820aFD29931aab03", 18, true, false, common.GetTimepoint()), "ENG": common.NewToken("ENG", "Enigma", "0xf0ee6b27b759c9893ce4f094b49ad28fd15a23e4", 8, true, true, common.GetTimepoint()), "LINK": common.NewToken("LINK", "Chain Link", "0x514910771af9ca656af840dff83e8264ecf986ca", 18, true, true, common.GetTimepoint()), "POLY": common.NewToken("POLY", "Polymath", "0x9992ec3cf6a55b00978cddf2b27bc6882d88d1ec", 18, true, true, common.GetTimepoint()), "BBO": common.NewToken("BBO", "Bigbom", "0x84f7c44b6fed1080f647e354d552595be2cc602f", 18, true, false, common.GetTimepoint()), "REQ": common.NewToken("REQ", "Request", "0x8f8221afbb33998d8584a2b05749ba73c37a938a", 18, true, true, common.GetTimepoint()), "SALT": common.NewToken("SALT", "Salt", "0x4156D3342D5c385a87D264F90653733592000581", 8, true, true, common.GetTimepoint()), "BQX": common.NewToken("BQX", "Ethos", "0x5af2be193a6abca9c8817001f45744777db30756", 8, true, true, common.GetTimepoint()), "KNC": common.NewToken("KNC", "KyberNetwork", "0xdd974D5C2e2928deA5F71b9825b8b646686BD200", 18, true, true, common.GetTimepoint()), "SNT": common.NewToken("SNT", "STATUS", "0x744d70fdbe2ba4cf95131626614a1763df805b9e", 18, true, true, common.GetTimepoint()), "DTA": common.NewToken("DTA", "Data", "0x69b148395ce0015c13e36bffbad63f49ef874e03", 18, true, true, common.GetTimepoint()), "STORM": common.NewToken("STORM", "Storm", "0xd0a4b8946cb52f0661273bfbc6fd0e0c75fc6433", 18, true, false, common.GetTimepoint()), "ELEC": common.NewToken("ELEC", "ElectrifyAsia", "0xd49ff13661451313ca1553fd6954bd1d9b6e02b9", 18, true, false, common.GetTimepoint()), "EDU": common.NewToken("EDU", "EduCoin", "0xf263292e14d9d8ecd55b58dad1f1df825a874b7c", 18, true, true, common.GetTimepoint()), "POE": common.NewToken("POE", "Po.et", "0x0e0989b1f9b8a38983c2ba8053269ca62ec9b195", 8, true, true, common.GetTimepoint()), "AST": common.NewToken("AST", "AirSwap", "0x27054b13b1b798b345b591a4d22e6562d47ea75a", 4, true, true, common.GetTimepoint()), "ENJ": common.NewToken("ENJ", "EnjinCoin", "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c", 18, true, true, common.GetTimepoint()), "AION": common.NewToken("AION", "Aion", "0x4CEdA7906a5Ed2179785Cd3A40A69ee8bc99C466", 8, true, true, common.GetTimepoint()), "CHAT": common.NewToken("CHAT", "Chatcoin", "0x442bc47357919446eabc18c7211e57a13d983469", 18, true, true, common.GetTimepoint()), "EOS": common.NewToken("EOS", "Eos", "0x86Fa049857E0209aa7D9e616F7eb3b3B78ECfdb0", 18, true, false, common.GetTimepoint()), "ELF": common.NewToken("ELF", "AELF", "0xbf2179859fc6d5bee9bf9158632dc51678a4100e", 18, true, true, common.GetTimepoint()), "BAT": common.NewToken("BAT", "Basic Attention Token", "0x0d8775f648430679a709e98d2b0cb6250d2887ef", 18, true, true, common.GetTimepoint()), "GTO": common.NewToken("GTO", "Gifto", "0xc5bbae50781be1669306b9e001eff57a2957b09d", 5, true, true, common.GetTimepoint()), "MDS": common.NewToken("MDS", "MediShares", "0x66186008C1050627F979d464eABb258860563dbE", 18, true, false, common.GetTimepoint()), "POWR": common.NewToken("POWR", "Power Ledger", "0x595832f8fc6bf59c85c527fec3740a1b7a361269", 6, true, true, common.GetTimepoint()), "MOT": common.NewToken("MOT", "Olympus Labs", "0x263c618480dbe35c300d8d5ecda19bbb986acaed", 18, true, false, common.GetTimepoint()), "IOST": common.NewToken("IOST", "IOStoken", "0xfa1a856cfa3409cfa145fa4e20eb270df3eb21ab", 18, true, false, common.GetTimepoint()), "ETH": common.NewToken("ETH", "Ethereum", "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", 18, true, true, common.GetTimepoint()), "CVC": common.NewToken("CVC", "Civic", "0x41e5560054824eA6B0732E656E3Ad64E20e94E45", 8, true, true, common.GetTimepoint()), "RDN": common.NewToken("RDN", "Raiden", "0x255aa6df07540cb5d3d297f0d0d4d84cb52bc8e6", 18, true, true, common.GetTimepoint()), "ADX": common.NewToken("ADX", "AdEx", "0x4470BB87d77b963A013DB939BE332f927f2b992e", 4, true, false, common.GetTimepoint()), "ABT": common.NewToken("ABT", "ArcBlock", "0xb98d4c97425d9908e66e53a6fdf673acca0be986", 18, true, true, common.GetTimepoint()), "RCN": common.NewToken("RCN", "Ripio Credit Network", "0xf970b8e36e23f7fc3fd752eea86f8be8d83375a6", 18, true, false, common.GetTimepoint()), "BLZ": common.NewToken("BLZ", "Bluezelle", "0x5732046a883704404f284ce41ffadd5b007fd668", 18, true, true, common.GetTimepoint()), "OMG": common.NewToken("OMG", "OmiseGO", "0xd26114cd6EE289AccF82350c8d8487fedB8A0C07", 18, true, true, common.GetTimepoint()), "TUSD": common.NewToken("TUSD", "TrueUSD", "0x8dd5fbce2f6a956c3022ba3663759011dd51e73e", 18, true, true, common.GetTimepoint()), "COFI": common.NewToken("COFI", "CoinFi", "0x3136ef851592acf49ca4c825131e364170fa32b3", 0, true, false, common.GetTimepoint()), "SUB": common.NewToken("SUB", "Substratum", "0x12480e24eb5bec1a9d4369cab6a80cad3c0a377a", 2, true, true, common.GetTimepoint()), "ZIL": common.NewToken("ZIL", "Zilliqa", "0x05f4a42e251f2d52b8ed15e9fedaacfcef1fad27", 12, true, true, common.GetTimepoint()), "DAI": common.NewToken("DAI", "DAI", "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359", 18, true, false, common.GetTimepoint()), "BNT": common.NewToken("BNT", "Bancor", "0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c", 18, true, true, common.GetTimepoint()), "TOMO": common.NewToken("TOMO", "Tomocoin", "0x8b353021189375591723E7384262F45709A3C3dC", 18, true, false, common.GetTimepoint()), "WABI": common.NewToken("WABI", "WaBi", "0x286BDA1413a2Df81731D4930ce2F862a35A609fE", 18, true, false, common.GetTimepoint()), "DGX": common.NewToken("DGX", "Digix Gold", "0x4f3afec4e5a3f2a6a1a411def7d7dfe50ee057bf", 9, true, true, common.GetTimepoint()), "WAX": common.NewToken("WAX", "Wax", "0x39bb259f66e1c59d5abef88375979b4d20d98022", 8, true, true, common.GetTimepoint()), "AE": common.NewToken("AE", "Aeternity", "0x5ca9a71b1d01849c0a95490cc00559717fcf0d1d", 18, true, true, common.GetTimepoint()), "WINGS": common.NewToken("WINGS", "WINGS", "0x667088b212ce3d06a1b553a7221E1fD19000d9aF", 18, true, false, common.GetTimepoint()), "MANA": common.NewToken("MANA", "MANA", "0x0f5d2fb29fb7d3cfee444a200298f468908cc942", 18, true, true, common.GetTimepoint()), "APPC": common.NewToken("APPC", "AppCoins", "0x1a7a8bd9106f2b8d977e08582dc7d24c723ab0db", 18, true, true, common.GetTimepoint()), "LBA": common.NewToken("LBA", "Libra Credit", "0xfe5f141bf94fe84bc28ded0ab966c16b17490657", 18, true, true, common.GetTimepoint()), "PAL": common.NewToken("PAL", "PolicyPal Network", "0xfedae5642668f8636a11987ff386bfd215f942ee", 18, true, false, common.GetTimepoint()), }, common.MainnetMode: { "ETH": common.NewToken("ETH", "Ethereum", "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", 18, true, true, common.GetTimepoint()), "ADX": common.NewToken("ADX", "AdEx", "0x4470BB87d77b963A013DB939BE332f927f2b992e", 4, true, false, common.GetTimepoint()), "LINK": common.NewToken("LINK", "Chain Link", "0x514910771af9ca656af840dff83e8264ecf986ca", 18, true, true, common.GetTimepoint()), "ENJ": common.NewToken("ENJ", "EnjinCoin", "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c", 18, true, true, common.GetTimepoint()), "TOMO": common.NewToken("TOMO", "Tomocoin", "0x8b353021189375591723E7384262F45709A3C3dC", 18, true, false, common.GetTimepoint()), "DTA": common.NewToken("DTA", "Data", "0x69b148395ce0015c13e36bffbad63f49ef874e03", 18, true, true, common.GetTimepoint()), "EOS": common.NewToken("EOS", "Eos", "0x86Fa049857E0209aa7D9e616F7eb3b3B78ECfdb0", 18, true, false, common.GetTimepoint()), "WINGS": common.NewToken("WINGS", "WINGS", "0x667088b212ce3d06a1b553a7221E1fD19000d9aF", 18, true, false, common.GetTimepoint()), "MTL": common.NewToken("MTL", "Metal", "0xF433089366899D83a9f26A773D59ec7eCF30355e", 8, true, false, common.GetTimepoint()), "ZIL": common.NewToken("ZIL", "Zilliqa", "0x05f4a42e251f2d52b8ed15e9fedaacfcef1fad27", 12, true, true, common.GetTimepoint()), "IOST": common.NewToken("IOST", "IOStoken", "0xfa1a856cfa3409cfa145fa4e20eb270df3eb21ab", 18, true, false, common.GetTimepoint()), "OMG": common.NewToken("OMG", "OmiseGO", "0xd26114cd6EE289AccF82350c8d8487fedB8A0C07", 18, true, true, common.GetTimepoint()), "AST": common.NewToken("AST", "AirSwap", "0x27054b13b1b798b345b591a4d22e6562d47ea75a", 4, true, true, common.GetTimepoint()), "POLY": common.NewToken("POLY", "Polymath", "0x9992ec3cf6a55b00978cddf2b27bc6882d88d1ec", 18, true, true, common.GetTimepoint()), "WAX": common.NewToken("WAX", "Wax", "0x39bb259f66e1c59d5abef88375979b4d20d98022", 8, true, true, common.GetTimepoint()), "COFI": common.NewToken("COFI", "CoinFi", "0x3136ef851592acf49ca4c825131e364170fa32b3", 0, true, false, common.GetTimepoint()), "KNC": common.NewToken("KNC", "KyberNetwork", "0xdd974D5C2e2928deA5F71b9825b8b646686BD200", 18, true, true, common.GetTimepoint()), "AE": common.NewToken("AE", "Aeternity", "0x5ca9a71b1d01849c0a95490cc00559717fcf0d1d", 18, true, true, common.GetTimepoint()), "BBO": common.NewToken("BBO", "Bigbom", "0x84f7c44b6fed1080f647e354d552595be2cc602f", 18, true, false, common.GetTimepoint()), "TUSD": common.NewToken("TUSD", "TrueUSD", "0x8dd5fbce2f6a956c3022ba3663759011dd51e73e", 18, true, true, common.GetTimepoint()), "APPC": common.NewToken("APPC", "AppCoins", "0x1a7a8bd9106f2b8d977e08582dc7d24c723ab0db", 18, true, true, common.GetTimepoint()), "SALT": common.NewToken("SALT", "Salt", "0x4156d3342d5c385a87d264f90653733592000581", 8, true, true, common.GetTimepoint()), "CVC": common.NewToken("CVC", "Civic", "0x41e5560054824eA6B0732E656E3Ad64E20e94E45", 8, true, true, common.GetTimepoint()), "POE": common.NewToken("POE", "Po.et", "0x0e0989b1f9b8a38983c2ba8053269ca62ec9b195", 8, true, true, common.GetTimepoint()), "CHAT": common.NewToken("CHAT", "Chatcoin", "0x442bc47357919446eabc18c7211e57a13d983469", 18, true, true, common.GetTimepoint()), "MOC": common.NewToken("MOC", "Moss Land", "0x865ec58b06bf6305b886793aa20a2da31d034e68", 0, true, false, common.GetTimepoint()), "GTO": common.NewToken("GTO", "Gifto", "0xc5bbae50781be1669306b9e001eff57a2957b09d", 5, true, true, common.GetTimepoint()), "DGX": common.NewToken("DGX", "Digix Gold", "0x4f3afec4e5a3f2a6a1a411def7d7dfe50ee057bf", 9, true, true, common.GetTimepoint()), "BLZ": common.NewToken("BLZ", "Bluezelle", "0x5732046a883704404f284ce41ffadd5b007fd668", 18, true, true, common.GetTimepoint()), "BNT": common.NewToken("BNT", "Bancor", "0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c", 18, true, true, common.GetTimepoint()), "ENG": common.NewToken("ENG", "Enigma", "0xf0ee6b27b759c9893ce4f094b49ad28fd15a23e4", 8, true, true, common.GetTimepoint()), "ABT": common.NewToken("ABT", "ArcBlock", "0xb98d4c97425d9908e66e53a6fdf673acca0be986", 18, true, true, common.GetTimepoint()), "PAL": common.NewToken("PAL", "PolicyPal Network", "0xfedae5642668f8636a11987ff386bfd215f942ee", 18, true, false, common.GetTimepoint()), "SNT": common.NewToken("SNT", "STATUS", "0x744d70fdbe2ba4cf95131626614a1763df805b9e", 18, true, true, common.GetTimepoint()), "ELF": common.NewToken("ELF", "AELF", "0xbf2179859fc6d5bee9bf9158632dc51678a4100e", 18, true, true, common.GetTimepoint()), "REQ": common.NewToken("REQ", "Request", "0x8f8221afbb33998d8584a2b05749ba73c37a938a", 18, true, true, common.GetTimepoint()), "LEND": common.NewToken("LEND", "EthLend", "0x80fB784B7eD66730e8b1DBd9820aFD29931aab03", 18, true, false, common.GetTimepoint()), "ELEC": common.NewToken("ELEC", "ElectrifyAsia", "0xd49ff13661451313ca1553fd6954bd1d9b6e02b9", 18, true, false, common.GetTimepoint()), "PAY": common.NewToken("PAY", "TenX", "0xB97048628DB6B661D4C2aA833e95Dbe1A905B280", 18, true, true, common.GetTimepoint()), "RDN": common.NewToken("RDN", "Raiden", "0x255aa6df07540cb5d3d297f0d0d4d84cb52bc8e6", 18, true, true, common.GetTimepoint()), "STORM": common.NewToken("STORM", "Storm", "0xd0a4b8946cb52f0661273bfbc6fd0e0c75fc6433", 18, true, false, common.GetTimepoint()), "MDS": common.NewToken("MDS", "MediShares", "0x66186008C1050627F979d464eABb258860563dbE", 18, true, false, common.GetTimepoint()), "MANA": common.NewToken("MANA", "MANA", "0x0f5d2fb29fb7d3cfee444a200298f468908cc942", 18, true, true, common.GetTimepoint()), "LBA": common.NewToken("LBA", "Libra Credit", "0xfe5f141bf94fe84bc28ded0ab966c16b17490657", 18, true, true, common.GetTimepoint()), "WABI": common.NewToken("WABI", "WaBi", "0x286BDA1413a2Df81731D4930ce2F862a35A609fE", 18, true, false, common.GetTimepoint()), "BAT": common.NewToken("BAT", "Basic Attention Token", "0x0d8775f648430679a709e98d2b0cb6250d2887ef", 18, true, true, common.GetTimepoint()), "RCN": common.NewToken("RCN", "Ripio Credit Network", "0xf970b8e36e23f7fc3fd752eea86f8be8d83375a6", 18, true, false, common.GetTimepoint()), "MOT": common.NewToken("MOT", "Olympus Labs", "0x263c618480dbe35c300d8d5ecda19bbb986acaed", 18, true, false, common.GetTimepoint()), "SUB": common.NewToken("SUB", "Substratum", "0x12480e24eb5bec1a9d4369cab6a80cad3c0a377a", 2, true, true, common.GetTimepoint()), "AION": common.NewToken("AION", "Aion", "0x4CEdA7906a5Ed2179785Cd3A40A69ee8bc99C466", 8, true, true, common.GetTimepoint()), "EDU": common.NewToken("EDU", "EduCoin", "0xf263292e14d9d8ecd55b58dad1f1df825a874b7c", 18, true, true, common.GetTimepoint()), "POWR": common.NewToken("POWR", "Power Ledger", "0x595832f8fc6bf59c85c527fec3740a1b7a361269", 6, true, true, common.GetTimepoint()), "BQX": common.NewToken("BQX", "Ethos", "0x5Af2Be193a6ABCa9c8817001F45744777Db30756", 8, true, true, common.GetTimepoint()), "DAI": common.NewToken("DAI", "DAI", "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359", 18, true, false, common.GetTimepoint()), }, common.RopstenMode: { "SNT": common.NewToken("SNT", "STATUS", "0xF739577d63cdA4a534B0fB92ABf8BBf6EA48d36c", 18, false, false, common.GetTimepoint()), "BAT": common.NewToken("BAT", "Basic Attention Token", "0x04A34c8f5101Dcc50bF4c64D1C7C124F59bb988c", 18, false, false, common.GetTimepoint()), "BITX": common.NewToken("BITX", "BitScreenerToken", "0x7a17267576318efb728bc4a0833e489a46ba138f", 0, false, false, common.GetTimepoint()), "ETH": common.NewToken("ETH", "Ethereum", "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", 18, false, false, common.GetTimepoint()), "OMG": common.NewToken("OMG", "OmiseGO", "0x5b9a857e0C3F2acc5b94f6693536d3Adf5D6e6Be", 18, false, false, common.GetTimepoint()), "KNC": common.NewToken("KNC", "KyberNetwork", "0xE5585362D0940519d87d29362115D4cc060C56B3", 18, false, false, common.GetTimepoint()), "EOS": common.NewToken("EOS", "Eos", "0xd3c64BbA75859Eb808ACE6F2A6048ecdb2d70817", 18, false, false, common.GetTimepoint()), "ELF": common.NewToken("ELF", "AELF", "0x7174FCb9C2A49c027C9746983D8262597b5EcCb1", 18, false, false, common.GetTimepoint()), "MOC": common.NewToken("MOC", "Moss Coin", "0x1742c81075031b8f173d2327e3479d1fc3feaa76", 0, false, false, common.GetTimepoint()), "GTO": common.NewToken("GTO", "Gifto", "0x6B07b8360832c6bBf05A39D9d443A705032bDc4d", 5, false, false, common.GetTimepoint()), "COFI": common.NewToken("COFI", "ConFi", "0xb91786188f8d4e35d6d67799e9f162587bf4da03", 18, false, false, common.GetTimepoint()), "POWR": common.NewToken("POWR", "Power Ledger", "0x2C4EfAa21f09c3C6EEF0Edb001E9bffDE7127D3B", 6, false, false, common.GetTimepoint()), "MANA": common.NewToken("MANA", "MANA", "0xf5E314c435B3B2EE7c14eA96fCB3307C3a3Ef608", 18, false, false, common.GetTimepoint()), "REQ": common.NewToken("REQ", "Request", "0xa448cD1DB463ae738a171C483C56157d6B83B97f", 18, false, false, common.GetTimepoint()), }, }
TokenConfigs store token configuration for each modes Sim mode require special care.
Functions ¶
func DepositSignerFromConfigFile ¶
func DepositSignerFromConfigFile(secretPath string) *blockchain.EthereumSigner
func GetChainType ¶
func GetSetting ¶
func GetSettingDBName ¶
func HuobiIntermediatorSignerFromFile ¶
func HuobiIntermediatorSignerFromFile(secretPath string) *blockchain.EthereumSigner
func PricingSignerFromConfigFile ¶
func PricingSignerFromConfigFile(secretPath string) *blockchain.EthereumSigner
func SetInterface ¶
func SetInterface(baseURL string)
Types ¶
type AddressDepositConfig ¶
type AddressDepositConfig struct {
Exchanges map[string]exchangeDepositAddress `json:"exchanges"`
}
AddressDepositConfig struct contain a map[exchangeName], it is used mainly to read addfress config from JSON file.
type Config ¶
type Config struct {
ActivityStorage core.ActivityStorage
DataStorage data.Storage
DataGlobalStorage data.GlobalStorage
FetcherStorage fetcher.Storage
FetcherGlobalStorage fetcher.GlobalStorage
MetricStorage metric.Storage
Archive archive.Archive
World *world.TheWorld
FetcherRunner fetcher.Runner
DataControllerRunner datapruner.StorageControllerRunner
FetcherExchanges []fetcher.Exchange
Exchanges []common.Exchange
BlockchainSigner blockchain.Signer
DepositSigner blockchain.Signer
EnableAuthentication bool
AuthEngine http.Authentication
EthereumEndpoint string
BackupEthereumEndpoints []string
Blockchain *blockchain.BaseBlockchain
ChainType string
Setting *settings.Settings
AddressSetting *settings.AddressSetting
}
func (*Config) AddCoreConfig ¶
func (c *Config) AddCoreConfig(settingPath SettingPaths, kyberENV string)
type ExchangePool ¶
type ExchangePool struct {
Exchanges map[common.ExchangeID]interface{}
}
func NewExchangePool ¶
func NewExchangePool( settingPaths SettingPaths, blockchain *blockchain.BaseBlockchain, kyberENV string, setting *settings.Settings) (*ExchangePool, error)
func (*ExchangePool) CoreExchanges ¶
func (ep *ExchangePool) CoreExchanges() ([]common.Exchange, error)
func (*ExchangePool) FetcherExchanges ¶
func (ep *ExchangePool) FetcherExchanges() ([]fetcher.Exchange, error)
type SettingPaths ¶
type SettingPaths struct {
// contains filtered or unexported fields
}
SettingPaths contains path of all setting files.
func GetConfigPaths ¶
func GetConfigPaths(kyberENV string) SettingPaths
func NewSettingPaths ¶
func NewSettingPaths( settingPath, feePath, dataStoragePath, analyticStoragePath, feeSetRateStoragePath, secretPath, endPoint string, bkendpoints []string) SettingPaths
NewSettingPaths creates new SettingPaths instance from given parameters.
Click to show internal directories.
Click to hide internal directories.