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:
parent
aba7f156b9
commit
1967d20bdf
@ -24,6 +24,7 @@ before_script:
|
|||||||
- export KEEPER_VERSION=v0.6.12
|
- export KEEPER_VERSION=v0.6.12
|
||||||
- bash -x start_ocean.sh --latest --no-brizo --no-pleuston --local-spree-node 2>&1 > start_ocean.log &
|
- bash -x start_ocean.sh --latest --no-brizo --no-pleuston --local-spree-node 2>&1 > start_ocean.log &
|
||||||
- cd ..
|
- cd ..
|
||||||
|
- ./scripts/unlock-spree-accounts.sh 2>&1 > /dev/null &
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- export ETH_PORT=18545; npm run test:cover
|
- export ETH_PORT=18545; npm run test:cover
|
||||||
|
@ -17,7 +17,7 @@ describe("Secret Store", () => {
|
|||||||
ocean = await Ocean.getInstance(config)
|
ocean = await Ocean.getInstance(config)
|
||||||
|
|
||||||
// Accounts
|
// Accounts
|
||||||
account = new Account("0xa99d43d86a0758d5632313b8fa3972b6088a21bb")
|
account = new Account("0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0")
|
||||||
account.setPassword("secret")
|
account.setPassword("secret")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
12
scripts/unlock-spree-accounts.sh
Executable file
12
scripts/unlock-spree-accounts.sh
Executable 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user