permaweb / aos

An operating system for AO: The hyper parallel computer
https://ao.g8way.io
Other
68 stars 46 forks source link

MintAndBurnReplyUpdate #294

Open ItsJackAnton opened 2 months ago

ItsJackAnton commented 2 months ago

This update allows the implementation of extension handlers that listen to Minting and Burning tokens.

Example: I am building a lending protocol that implements my lending blueprint and the token's blueprint. I want to allow lenders to deposit "X" tokens in my lending process and get back temporally tokens that they can later use to claim back their deposited tokens. So, I need a way to listen when my lending process mint new tokens to instantly transfer them to the lender who made a deposit.

Now with this update, I can write handlers to listen to "Mint-Notice" and "Burn-Notice" to do further logic.