This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from CoinAlpha/development
release / sync dev -> master
- Loading branch information
Showing
49 changed files
with
18,939 additions
and
11,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
} | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# turn off specific file for eslint | ||
/*.js | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
module.exports = { | ||
extends: 'standard', | ||
extends: ['eslint:recommended', 'prettier'], | ||
parser: 'babel-eslint', | ||
plugins: ['prettier'], | ||
env: { | ||
node: true, | ||
es6: true | ||
}, | ||
rules: { | ||
// disable semicolon check | ||
semi: 'off', | ||
|
||
// override default options for rules from base configurations | ||
'comma-dangle': 'off', | ||
|
||
// disable rules from base configurations | ||
'no-console': 'off', | ||
'comma-dangle': ['error', 'never'], | ||
'no-multi-spaces': 'off', | ||
'no-underscore-dangle': 'off', | ||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], | ||
'prettier/prettier': 'error', | ||
semi: [2, 'always'] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
certs | ||
*.md | ||
*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "none", | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
CORE: | ||
APPNAME: Hummingbot Gateway API | ||
NODE_ENV: dev | ||
PORT: 5000 | ||
|
||
# use only if ip whitelist is required for local or docker instance | ||
# note that docker instance does not use 127.0.0.1 address | ||
# ipv6 format for locahost ["::ffff:127.0.0.1", "::ffff:1", "fe80::1", "::1"] | ||
IP_WHITELIST: | ||
|
||
HUMMINGBOT_INSTANCE_ID: | ||
|
||
# Celo | ||
|
||
# Terra | ||
# - mainnet: https://lcd.terra.dev | ||
# - mainnet chain: columbus-4 | ||
# - testnet: https://tequila-lcd.terra.dev | ||
# - testnet chain: tequila-0004 | ||
TERRA_LCD_URL: | ||
TERRA_CHAIN: | ||
|
||
# Ethereum | ||
# - chain: mainnet, kovan, etc | ||
# - rpc url: infura or other rpc url | ||
# - token list: erc20 token list source (ref: https://tokenlists.org/) | ||
ETHEREUM_CHAIN: | ||
ETHEREUM_RPC_URL: "https://{chain}.infura.io/v3/{api_key}" | ||
ETHEREUM_TOKEN_LIST_URL: https://wispy-bird-88a7.uniswap.workers.dev/?url=http://tokens.1inch.eth.link | ||
|
||
# Balancer | ||
# subgraph_chain | ||
# Reference: https://docs.balancer.finance/sor/development#subgraph | ||
# - mainnet: balancer | ||
# - kovan: balancer-kovan | ||
# Note: REACT_APP_SUBGRAPH_URL used by @balancer-labs/sor | ||
REACT_APP_SUBGRAPH_URL: https://api.thegraph.com/subgraphs/name/balancer-labs/{subgraph_chain} | ||
|
||
# exchange_proxy: | ||
# Reference: https://docs.balancer.finance/smart-contracts/addresses | ||
# - mainnet: 0x3E66B66Fd1d0b02fDa6C811Da9E0547970DB2f21 | ||
# - kovan: 0x4e67bf5bD28Dd4b570FBAFe11D0633eCbA2754Ec | ||
EXCHANGE_PROXY: | ||
|
||
# Uniswap | ||
# Reference: https://uniswap.org/docs/v2/smart-contracts/router02/ | ||
# UniswapV2Router02 is deployed at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. | ||
|
||
# UNISWAP_V3_CORE is deployed at 0x1F98431c8aD98523631AE4a59f267346ea31F984 on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. | ||
# UNISWAP_V3_ROUTER is deployed at 0xE592427A0AEce92De3Edee1F18E0157C05861564 on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. | ||
# UNISWAP_V3_NFT_MANAGER is deployed at 0xC36442b4a4522E871399CD717aBDD847Ab11FE88 on the Ethereum mainnet, and the Ropsten, Rinkeby, Görli, and Kovan testnets. | ||
|
||
UNISWAP_ROUTER: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D | ||
UNISWAP_V3_CORE: 0x1F98431c8aD98523631AE4a59f267346ea31F984 | ||
UNISWAP_V3_ROUTER: 0xE592427A0AEce92De3Edee1F18E0157C05861564 | ||
UNISWAP_V3_NFT_MANAGER: 0xC36442b4a4522E871399CD717aBDD847Ab11FE88 | ||
# allowed slippage for swap transactions | ||
UNISWAP_ALLOWED_SLIPPAGE: 1.5 | ||
# restrict updating pairs that have no reserves or failed for 5 minutes | ||
UNISWAP_NO_RESERVE_CHECK_INTERVAL: 300000 | ||
# cache info about pair for 1 second | ||
UNISWAP_PAIRS_CACHE_TIME: 1000 | ||
|
||
# cert | ||
CERT_PATH: | ||
CERT_PASSPHRASE: | ||
|
||
# logs | ||
# default to ./logs if path is not set | ||
LOG_PATH: ./logs | ||
|
||
# GMT offset for logging (alpine docker image default to UTC timezone) | ||
# -0800, -0500, +0200, +0800 | ||
GMT_OFFSET: +0800 | ||
|
||
# EthGasStation | ||
# API key for defipulse.com gas station API | ||
# Gas level you want to use for Ethereum transactions (fast, fastest, safeLow, average) | ||
ENABLE_ETH_GAS_STATION: true | ||
ETH_GAS_STATION_API_KEY: | ||
ETH_GAS_STATION_GAS_LEVEL: fast | ||
ETH_GAS_STATION_REFRESH_TIME: 60 | ||
MANUAL_GAS_PRICE: 100 | ||
|
||
# Balancer Config | ||
BALANCER_MAX_SWAPS: 4 | ||
|
||
|
||
# Perpetual Finance Provider URL | ||
# default: https://dai.poa.network , https://rpc.xdaichain.com, etc | ||
XDAI_PROVIDER: |
Oops, something went wrong.