Astar
Astar copied to clipboard
RPC tests for dapp staking
Pull Request Summary
Added tests for:
- Register contract on H160 address
0x1
using Alice account. - Bond & stake minimum staking amount on registered contract using Bob account.
- Bond & stake an additional 500 tokens on the same contract using Bob account.
- Unbond 250 tokens.
- Ensure that at least a few blocks occur after step 3 (2 blocks should be enough).
- Force a new era using a sudo call.
- Claim dapp rewards for registered contract
- Claim staker rewards for registered contract
- Unbond 250 tokens.
- Advance for
UnbondingPeriod
amount of eras until the first unbonding chunk can be withdrawn - Withdraw unbonded funds
- Advance ONE era using sudo call
- Withdraw the remaining unbonded chunk
Check list
- [x] added or updated unit tests
- [ ] updated Astar official documentation
- [ ] added OnRuntimeUpgrade hook for precompile revert code registration
- [ ] updated spec version
- [ ] updated semver
@niklabh what is the status of this PR?
Not able to merge this as commits were not signed with a gpg key. Merging is blocked for this PR. Creating a new one.