feat: added account balance of operator#6035
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
acdibble
left a comment
There was a problem hiding this comment.
the other account types in this RPC return flip_balance
state-chain/runtime/src/lib.rs
Outdated
| allowed, | ||
| blocked, | ||
| delegators: pallet_cf_validator::Pallet::<Runtime>::get_all_associations_by_operator(account_id, AssociationToOperator::Delegator), | ||
| account_balance: pallet_cf_flip::Account::<Runtime>::get(account_id).total(), |
There was a problem hiding this comment.
| account_balance: pallet_cf_flip::Account::<Runtime>::get(account_id).total(), | |
| flip_balance: pallet_cf_flip::Account::<Runtime>::get(account_id).total(), |
| allowed: self.allowed, | ||
| blocked: self.blocked, | ||
| delegators: self.delegators.into_iter().map(|(k, v)| (k, f(v))).collect(), | ||
| account_balance: f(self.account_balance), |
There was a problem hiding this comment.
| account_balance: f(self.account_balance), | |
| flip_balance: f(self.account_balance), |
…reward * origin/main: feat: delegated staking auction integration (#6022) ci: improve secret passing 🥷 (#6042) feat: generate backspin chain spec (#6041) refactor: return `Ok(None)` instead of error if sol egress witnessing cannot find a tx (#6036) feat: add operator to validator info (#6040) feat: Support for DCA 1 block interval (#6025) feat: added account balance of operator (#6035) fix: remove race condition in bouncer observe event (#6023) fix: use `any::Asset` instead of `ChainlinkAssetpair` in internal price API (#6034) feat: price oracle elections (#5971) feat: don't error if tx is Confirmed (#6019) chore: process all events in a block in parallel (#6013)
Pull Request
Closes: PRO-2448
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Adds the operator balance to the account info RPC.