algorandfoundation / algokit-subscriber-ts

Simple, but flexible / configurable Algorand transaction subscription / indexing mechanism
MIT License
14 stars 6 forks source link

feat: account for balance changes related to creating an asset #67

Closed neilcampbell closed 6 months ago

neilcampbell commented 6 months ago

Creating an asset results in the total supply of that asset being available in the creator account. This PR handles attributing a balance change to an asset creation.

I have also confirmed that the chain behaviour doesn't change when supplying a reserve address.

robdmoore commented 6 months ago

Good pick up!

neilcampbell commented 6 months ago

@robdmoore There is also a balance change event when an asset is destroyed. It's easy to detect, however the destroy acfg transaction doesn't specify the total supply of that asset and as a result we'd need to retrieve the asset details in order to handle this scenario.