- Complete the functions in
mintTokens.ts
andburnTokens.ts
to mint and burn tokens. - Complete the function in
sendNativeTokens.ts
to send native tokens. - Run the server using
npm run start
and test the functionality using thecurl
command.
What can be a better approach to this problem?
- Can you store all incoming events in a DB?
- Can you think of what is wrong in line 16 of index.ts?
- How can you ensure you are not double minting tokens?
- How can you ensure that you're not burning tokens without sending them to the receiver?