public/subjects/blockchain/eventful-token
nprimo 4fa5c876a7 docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00
..
README.md docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00

README.md

Eventful Token

Instructions

  • Create a Smart Conctract named EventfulToken
  • Like MinimalToken, its constructor takes as parameter an amount that is given initially to the deployer.
  • Create an event Transfer(address indexed , address indexed, uint) that returns the address from which the funds where transferred (the variable should be called sender), the address of the recipient and the amount of the transfer. Trigger the event within the transfer function. N
  • Create an event Minting(address, amount) that returns the address recipient to which token were minted and the amount of tokens created. Trigger the event when appropriate.

Hint

The indexed keyword will facilitate the filtering by this field of the event in later exercises.

Notions