Prep config for production

This commit is contained in:
Andy Tudhope 2018-03-20 12:55:17 +02:00
parent 56acf5c435
commit 5c805dca5a
2 changed files with 20 additions and 16 deletions

View File

@ -4,7 +4,7 @@ ENV PORT 8080
EXPOSE 8080 EXPOSE 8080
# Set this variable to the name of your production config file (without the extension) # Set this variable to the name of your production config file (without the extension)
ENV NODE_ENV development ENV NODE_ENV default
# Set this variable to the value of the secret field of the Github webhook # Set this variable to the value of the secret field of the Github webhook
ENV WEBHOOK_SECRET '' ENV WEBHOOK_SECRET ''

View File

@ -1,10 +1,11 @@
// Work hours per label // Work hours per label
const BOUNTY_LABELS = { const BOUNTY_LABELS = {
'bounty-xs': 1, 'bounty-xs': 2,
'bounty-s': 10, 'bounty-s': 4,
'bounty-m': 100, 'bounty-m': 8,
'bounty-l': 1000, 'bounty-l': 24,
'bounty-xl': 10000 'bounty-xl': 48,
'bounty-xxl': 72
} }
const ERC20_ABI = [ const ERC20_ABI = [
@ -32,20 +33,23 @@ const ERC20_ABI = [
} }
] ]
// SNT test address (ropsten): 0x744d70fdbe2ba4cf95131626614a1763df805b9e
// STT test address (ropsten): 0xc55cF4B03948D7EBc8b9E8BAD92643703811d162
const TOKEN_CONTRACTS = { const TOKEN_CONTRACTS = {
'STT': { 'SNT': {
address: '0xc55cF4B03948D7EBc8b9E8BAD92643703811d162', address: '0x744d70FDBE2Ba4CF95131626614a1763DF805B9E',
abi: ERC20_ABI abi: ERC20_ABI
}, },
'SNT': { 'ANT': {
address: '0x744d70fdbe2ba4cf95131626614a1763df805b9e', address: '0x960b236A07cf122663c4303350609A66A7B288C0',
abi: ERC20_ABI abi: ERC20_ABI
} }
} }
module.exports = { module.exports = {
// Debug mode for testing the bot // Debug mode for testing the bot
debug: true, // debug: true,
// URL where the bot is listening (e.g. '/funding') // URL where the bot is listening (e.g. '/funding')
urlEndpoint: '/', urlEndpoint: '/',
@ -54,19 +58,19 @@ module.exports = {
signerPath: 'https://ropsten.infura.io', signerPath: 'https://ropsten.infura.io',
// Address with the funding for the bounties (hex value starting with 0x) // Address with the funding for the bounties (hex value starting with 0x)
sourceAddress: '0x26a4D114B98C4b0B0118426F10fCc1112AA2864d', sourceAddress: '',
// Private key for ether.js wallet (hex value starting with 0x) // Private key for ether.js wallet (hex value starting with 0x)
privateKey: '', privateKey: '',
// Token of the currency for fetching real time prices (e.g. 'SNT') // Token of the currency for fetching real time prices (e.g. 'SNT')
token: 'STT', token: '',
// Limit for the gas used in a transaction (e.g. 92000) // Limit for the gas used in a transaction (e.g. 92000)
gasLimit: 92000, gasLimit: 115000,
// Price per hour you will pay in dolars (e.g. 35) // Price per hour you will pay in dolars (e.g. 35)
priceHour: 1, priceHour: 35,
// Delay before funding a bounty (e.g. 3600000) // Delay before funding a bounty (e.g. 3600000)
delayInMiliSeconds: 10000, delayInMiliSeconds: 10000,
@ -81,5 +85,5 @@ module.exports = {
githubUsername: 'status-open-bounty', githubUsername: 'status-open-bounty',
// Activate real transactions // Activate real transactions
realTransaction: false // realTransaction: false
} }