Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Native Tokens precompile #145

Open
8 tasks done
PaulRBerg opened this issue May 20, 2024 · 1 comment
Open
8 tasks done

Native Tokens precompile #145

PaulRBerg opened this issue May 20, 2024 · 1 comment
Assignees
Labels
effort: epic Multi-stage task that may require multiple PRs. priority: 0 Do this first before everything else. This is critical and nothing works without this. type: feature New feature or request. work: complicated Sense-analyze-respond. The relationship between cause and effect requires analysis or expertise.

Comments

@PaulRBerg
Copy link
Member

PaulRBerg commented May 20, 2024

Based off my work in the stdlib: https://github.com/sablier-labs/stdlib/blob/main/src/precompiles/native-tokens/NativeTokens.sol

We need the following functions:

  • balanceOf
  • burn
  • mint
  • transfer
  • transferAndCall
  • transferMultiple
  • transferMultipleAndCall
  • callValues
@PaulRBerg PaulRBerg added effort: epic Multi-stage task that may require multiple PRs. priority: 0 Do this first before everything else. This is critical and nothing works without this. type: feature New feature or request. work: complicated Sense-analyze-respond. The relationship between cause and effect requires analysis or expertise. labels May 20, 2024
@IaroslavMazur
Copy link
Member

Added the callValues() function to the list, as smart contracts need a way to be able to see what MNTs have been transferred to them in the context of the call that is being executed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
effort: epic Multi-stage task that may require multiple PRs. priority: 0 Do this first before everything else. This is critical and nothing works without this. type: feature New feature or request. work: complicated Sense-analyze-respond. The relationship between cause and effect requires analysis or expertise.
Projects
None yet
Development

No branches or pull requests

2 participants