1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

unlocking spree accounts

This commit is contained in:
Pedro Gutiérrez 2019-02-22 10:22:46 +01:00 committed by Pedro Gutiérrez
parent aba7f156b9
commit 1967d20bdf
3 changed files with 14 additions and 1 deletions

View File

@ -24,6 +24,7 @@ before_script:
- export KEEPER_VERSION=v0.6.12
- bash -x start_ocean.sh --latest --no-brizo --no-pleuston --local-spree-node 2>&1 > start_ocean.log &
- cd ..
- ./scripts/unlock-spree-accounts.sh 2>&1 > /dev/null &
script:
- export ETH_PORT=18545; npm run test:cover

View File

@ -17,7 +17,7 @@ describe("Secret Store", () => {
ocean = await Ocean.getInstance(config)
// Accounts
account = new Account("0xa99d43d86a0758d5632313b8fa3972b6088a21bb")
account = new Account("0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0")
account.setPassword("secret")
})

View File

@ -0,0 +1,12 @@
count=0
echo "Starting..."
while sleep 0.2;
do
curl --data '{"method":"personal_unlockAccount","params":["0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e","node0",null],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 &> /dev/null;
curl --data '{"method":"personal_unlockAccount","params":["0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0","secret",null],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 &> /dev/null;
count=$((count+1));
echo -en "\e[1A";
echo -e "\e[0K\rRequest ${count}";
done