Skip to content

Commit

Permalink
Fix emails. Closes #9, Closes #10
Browse files Browse the repository at this point in the history
Fix throttler.
Remove extra env vars.
  • Loading branch information
AlekNS committed Feb 1, 2018
1 parent 88e5201 commit e467b83
Show file tree
Hide file tree
Showing 34 changed files with 67 additions and 9,678 deletions.
7 changes: 1 addition & 6 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ VERIFY_TIMEOUT=
RPC_TYPE=http
RPC_ADDRESS=https://ropsten.infura.io/ujGcHij7xZIyz2afx4h2

WEB3_RESTORE_START_BLOCK=2518791
WEB3_RESTORE_START_BLOCK=

ICO_SC_ADDRESS=
ICO_SC_ABI_FILEPATH=
WHITELIST_SC_ADDRESS=
WHITELIST_SC_ABI_FILEPATH=
WHITELIST_OWNER_PK_FILEPATH=
ERC20_TOKEN_ABI_FILEPATH=test/abi/StandardToken.abi
21 changes: 2 additions & 19 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ const {
METRICS_AUTH_USERNAME,
METRICS_AUTH_PASSWORD,

ICO_SC_ADDRESS,
ICO_SC_ABI_FILEPATH,

WHITELIST_SC_ADDRESS,
WHITELIST_SC_FILEPATH,
WHITELIST_OWNER_PK_FILEPATH,

ERC20_TOKEN_ADDRESS,
ERC20_TOKEN_ABI_FILEPATH,

RPC_TYPE,
Expand Down Expand Up @@ -81,12 +73,12 @@ export default {
},
redis: {
url: REDIS_URL || 'redis://redis:6379',
prefix: 'jincor_ico_dashboard_'
prefix: 'jcbtw_'
},
throttler: {
prefix: 'request_throttler_',
interval: THROTTLER_INTERVAL || 1000,
maxInInterval: THROTTLER_MAX || 5,
maxInInterval: THROTTLER_MAX || 2,
minDifference: THROTTLER_MIN_DIFF || 0,
whiteList: THROTTLER_WHITE_LIST ? THROTTLER_WHITE_LIST.split(',') : []
},
Expand All @@ -110,15 +102,6 @@ export default {
}
},
contracts: {
whiteList: {
address: WHITELIST_SC_ADDRESS,
abi: WHITELIST_SC_ADDRESS && JSON.parse(fs.readFileSync(WHITELIST_SC_FILEPATH).toString()) || [],
ownerPk: WHITELIST_SC_ADDRESS && fs.readFileSync(WHITELIST_OWNER_PK_FILEPATH).toString()
},
ico: {
address: ICO_SC_ADDRESS,
abi: ICO_SC_ADDRESS && JSON.parse(fs.readFileSync(ICO_SC_ABI_FILEPATH).toString()) || []
},
erc20Token: {
abi: JSON.parse(fs.readFileSync(ERC20_TOKEN_ABI_FILEPATH).toString())
}
Expand Down
Loading

0 comments on commit e467b83

Please sign in to comment.