https://github.com/codespaces/new/aztecprotocol/tiny-noir-codespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ethereum context> | |
| remember bignumbers are weird in TS/JS we are using BigInt here as much as we can and you have | |
| formatEther and parseEther in viem as usual | |
| all dialogs and ui should display the token * 10 ^ 18 or using formatEther - and then when you | |
| go to send it with useScaffoldReadContract and useScaffoldWriteContract you need to | |
| parseEther the amount in ETH back to WEI (by dividing by 10 ^18) | |
| when you βcall a functionβ on a contract you are just making a transaction to the contract on ethereum with | |
| some specific calldata that says what function you want to call with what parameters | |
| huge bonus if your address inputs have a QR code scanner so you can scan a QR of someones address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.24; | |
| /** | |
| * @title -FoMo-3D v0.7.1 | |
| * ββ¬βββββββββ¬β β¦β¦ β¦βββββ¦β ββββ¬ββββββββββββββββ¬ββββ | |
| * β ββ€ βββ€βββ ββ ββββ β βββββ¬βββ€ βββββ€ βββ β βββ | |
| * β΄ ββββ΄ β΄β΄ β΄ ββββββββ β© β΄ β΄ββββββββββββββ β΄ βββ | |
| * _____ _____ | |
| * (, / /) /) /) (, / /) /) | |
| * βββ / _ (/_ // // / _ // _ __ _(/ | |
| * βββ€ ___/___(/_/(__(_/_(/_(/_ ___/__/_)_(/_(_(_/ (_(_(_ |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)