Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(p/grc20): Distinct Event Types for GRC20 Functions (#2749)
# Description Currently, the event type for grc20 is uniformly set to `TrasferEvent` (execpt for `Approval` function), which necessitated making RPC calls to check every block. Therefore, I have modified it by adding event types for each function to distinguish them from one another. In this case, we can reduce the number of RPC calls by retrieving data only when the target event type occurs. <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> Co-authored-by: Morgan <[email protected]>
- Loading branch information