white-whale-core
white-whale-core copied to clipboard
refactor: bonding manager
Description and Motivation
This PR refactors the bonding manager, fixing a couple of issues with the bonding and claiming mechanisms. It also refactors the state, using an IndexedMap
to hold both bonds and unbonds operations by a user.
Related Issues
Checklist:
- [x] I have read Migaloo's contribution guidelines.
- [x] My pull request has a sound title and description (not something vague like
Update index.md
) - [x] All existing and new tests are passing.
- [x] I updated/added relevant documentation.
- [x] The code is formatted properly
cargo fmt --all --
. - [x] Clippy doesn't report any issues
cargo clippy -- -D warnings
. - [x] I have regenerated the schemas if needed
cargo schema
.