|
|
@ -44,6 +44,142 @@ module.exports = (shepherd) => { |
|
|
|
}), |
|
|
|
}; |
|
|
|
|
|
|
|
shepherd.request(options, (error, response, body) => { |
|
|
|
if (response && |
|
|
|
response.statusCode && |
|
|
|
response.statusCode === 200) { |
|
|
|
//resolve(body);
|
|
|
|
} else { |
|
|
|
//resolve(body);
|
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (selection === 'REVS') { |
|
|
|
const herdData = { |
|
|
|
'ac_name': 'REVS', |
|
|
|
'ac_options': [ |
|
|
|
'-daemon=0', |
|
|
|
'-server', |
|
|
|
`-ac_name=REVS`, |
|
|
|
'-addnode=78.47.196.146', |
|
|
|
'-ac_supply=1300000' |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
const options = { |
|
|
|
url: `http://127.0.0.1:${shepherd.appConfig.agamaPort}/shepherd/herd`, |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json', |
|
|
|
}, |
|
|
|
body: JSON.stringify({ |
|
|
|
herd: 'komodod', |
|
|
|
options: herdData, |
|
|
|
token: shepherd.appSessionHash, |
|
|
|
}), |
|
|
|
}; |
|
|
|
|
|
|
|
shepherd.request(options, (error, response, body) => { |
|
|
|
if (response && |
|
|
|
response.statusCode && |
|
|
|
response.statusCode === 200) { |
|
|
|
//resolve(body);
|
|
|
|
} else { |
|
|
|
//resolve(body);
|
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (selection === 'JUMRLR') { |
|
|
|
const herdData = { |
|
|
|
'ac_name': 'JUMRLR', |
|
|
|
'ac_options': [ |
|
|
|
'-daemon=0', |
|
|
|
'-server', |
|
|
|
`-ac_name=JUMRLR`, |
|
|
|
'-addnode=78.47.196.146', |
|
|
|
'-ac_supply=999999' |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
const options = { |
|
|
|
url: `http://127.0.0.1:${shepherd.appConfig.agamaPort}/shepherd/herd`, |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json', |
|
|
|
}, |
|
|
|
body: JSON.stringify({ |
|
|
|
herd: 'komodod', |
|
|
|
options: herdData, |
|
|
|
token: shepherd.appSessionHash, |
|
|
|
}), |
|
|
|
}; |
|
|
|
|
|
|
|
shepherd.request(options, (error, response, body) => { |
|
|
|
if (response && |
|
|
|
response.statusCode && |
|
|
|
response.statusCode === 200) { |
|
|
|
//resolve(body);
|
|
|
|
} else { |
|
|
|
//resolve(body);
|
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (selection === 'MNZ') { |
|
|
|
const herdData = { |
|
|
|
'ac_name': 'MNZ', |
|
|
|
'ac_options': [ |
|
|
|
'-daemon=0', |
|
|
|
'-server', |
|
|
|
`-ac_name=MNZ`, |
|
|
|
'-addnode=78.47.196.146', |
|
|
|
'-ac_supply=257142858' |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
const options = { |
|
|
|
url: `http://127.0.0.1:${shepherd.appConfig.agamaPort}/shepherd/herd`, |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json', |
|
|
|
}, |
|
|
|
body: JSON.stringify({ |
|
|
|
herd: 'komodod', |
|
|
|
options: herdData, |
|
|
|
token: shepherd.appSessionHash, |
|
|
|
}), |
|
|
|
}; |
|
|
|
|
|
|
|
shepherd.request(options, (error, response, body) => { |
|
|
|
if (response && |
|
|
|
response.statusCode && |
|
|
|
response.statusCode === 200) { |
|
|
|
//resolve(body);
|
|
|
|
} else { |
|
|
|
//resolve(body);
|
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (selection === 'BTCH') { |
|
|
|
const herdData = { |
|
|
|
'ac_name': 'BTCH', |
|
|
|
'ac_options': [ |
|
|
|
'-daemon=0', |
|
|
|
'-server', |
|
|
|
`-ac_name=BTCH`, |
|
|
|
'-addnode=78.47.196.146', |
|
|
|
'-ac_supply=20998641' |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
const options = { |
|
|
|
url: `http://127.0.0.1:${shepherd.appConfig.agamaPort}/shepherd/herd`, |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json', |
|
|
|
}, |
|
|
|
body: JSON.stringify({ |
|
|
|
herd: 'komodod', |
|
|
|
options: herdData, |
|
|
|
token: shepherd.appSessionHash, |
|
|
|
}), |
|
|
|
}; |
|
|
|
|
|
|
|
shepherd.request(options, (error, response, body) => { |
|
|
|
if (response && |
|
|
|
response.statusCode && |
|
|
|