buy test
This commit is contained in:
parent
a8b29341be
commit
9d09182d78
|
@ -1,5 +1,5 @@
|
||||||
let utils = require("./utils");
|
let utils = require("./utils");
|
||||||
let investorAddr = "0x93C70B45d0e86e99A84dF0966Ac59DC71540c8d1"
|
let investorAddr = "0xf36045454F66C7318adCDdF3B801E3bF8CfBc6a1"
|
||||||
|
|
||||||
//immediately
|
//immediately
|
||||||
|
|
||||||
|
@ -13,13 +13,13 @@ let i = 0;
|
||||||
let timer = setInterval(function() {
|
let timer = setInterval(function() {
|
||||||
i++;
|
i++;
|
||||||
console.log(i);
|
console.log(i);
|
||||||
if (i >= 500) clearInterval(timer)
|
if (i >= 15000) clearInterval(timer)
|
||||||
buy();
|
buy();
|
||||||
}, 1000)
|
}, 500)
|
||||||
|
|
||||||
function buy () {
|
function buy () {
|
||||||
//let tokens = Math.floor(Math.random() * 10) + 1;
|
let tokens = Math.floor(Math.random() * 100) + 1;
|
||||||
let tokens = 1;
|
//let tokens = 1;
|
||||||
utils.buyFromWizard(investorAddr, tokens);
|
utils.buyFromWizard(investorAddr, tokens);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"rpc": {
|
"rpc": {
|
||||||
"left": "http://localhost:8555",
|
"left": "http://localhost:8555",
|
||||||
"right": "http://localhost:8545"
|
"right": "http://40.71.90.152:8545"
|
||||||
},
|
},
|
||||||
"token": {
|
"token": {
|
||||||
"addr": "0xB46970e4a4CfB9e16C460CcF0a6e77214EC610f4",
|
"addr": "0xB46970e4a4CfB9e16C460CcF0a6e77214EC610f4",
|
||||||
|
|
Loading…
Reference in New Issue