babylonchain / simple-staking

Simple staking application
Other
4 stars 13 forks source link

unit tests for unbonding path #276

Closed jrwbabylonlab closed 3 months ago

jrwbabylonlab commented 3 months ago

We have added the unit tests for the staking path, but still missing other path such as unbonding. The scope of this ticket is to add the unit test for the unbonding related methods such as:

  1. signUnbondingTx
  2. getUnbondingEligibility
  3. getStakerSignature
  4. postUnbonding
  5. etc...

This ticket does not include tests for react component, only for the ts methods.

jrwbabylonlab commented 3 months ago

https://github.com/babylonchain/simple-staking/pull/291

jrwbabylonlab commented 3 months ago

I decide to not include the surrounding methods such as getUnbondingEligibility getStakerSignature postUnbonding

into the PR as it's already very big. Those are not so critical methods which we can handle in a low priority PRs

jrwbabylonlab commented 3 months ago

https://github.com/babylonchain/simple-staking/blob/dev/tests/utils/delegations/signUnbondingTx.test.ts