If I have a smart contract (written in Anchor), is it possible for me to read a staking account and discover information about it: delegated stake, the delegated vote account address, the stake authority and the stake withdraw authority?
The smart contract would perform some actions based on these values, but I don't know how to do this in Anchor.