mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
849 B
16 lines
849 B
2 years ago
|
# 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, address, 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
|
||
|
- 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.
|
||
|
|
||
|
### Notions
|
||
|
|
||
|
- [solidity docs](https://docs.soliditylang.org/)
|
||
|
- [learn X in Y](https://learnxinyminutes.com/docs/solidity/)
|
||
|
- [Remix IDE](https://remix.ethereum.org)
|
||
|
- [hardhat](https://hardhat.org)
|