leapdao / leap-sandbox

Local Leap Network / Integration Tests
3 stars 3 forks source link

feat: deploy heartbeat token #81

Closed troggy closed 4 years ago

troggy commented 4 years ago

What does this PR do?

  1. When root chain is started, heartbeat token will be deployed and registered with plasma chain. This can be switched off by using --noHeartbeat flag.
  2. When validator is set, heartbeat token will be minted and deposited on plasma

Recommendations for testing

With heartbeat:

yarn start
#or
yarn start --onlyRoot

check logs heartbeat is minted and deposited. Can check poaOperator.heartbeatColor on root chain as well

Without heartbeat:

yarn start --noHeartbeat
#or
yarn start --onlyRoot --noHeartbeat

Links to relevant issues or information

Requires: https://github.com/leapdao/leap-contracts/pull/276 Requires: https://github.com/leapdao/leap-guardian/pull/40