Could anyone guide me on how to implement ERC20-equivalent allowances functions on Mina? Should I use Events or Merkle Trees for this purpose?
I understand that we can fetch events from archive nodes, however, I am not sure how to filter these events to retrieve specific info (e.g. the allowance of a specified owner-spender pair). Similarly, I am struggling to understand the concept of Merkle witnesses, and how to extract info from a Merkle Tree. For example, if the Merkle Tree stores a mapping of owner-spender-allowance, how can I use specified owner and spender addresses to extract the allowance value?