GoofyGooberToken
, you must name your contract file GoofyGooberToken.sol
.GoofyGoober
for our token name (the same as above, just without the "Token") - thus, we will name our contract GoofyGoober.sol
:cd
into your /contracts
folder (which should be empty right now!), and run touch GoofyGoober.sol
Follow along if you want to create a GoofyGoober token like us but also feel free to replace the name with yours and make your own token!
.sol
file and copy-paste the following:The token symbol you choose, in our case "GG" can be any arbitrary character length but do keep in mind that some UIs may display ones that are too long differently.
.sol
file100
to how many tokens you would like your initial supply to be - we put 100 because there are very few true Goofy Goobers in the world! You can put any number you'd like for this - make sure to leave the (10**18)
as that multiplies the number we want as our supply to have 18 decimals.cd ..
back into your project root directory and then cd
into your scripts
directory (which should be empty right now!)touch deploy.js
, open the newly-created file and copy-paste the following:cd ..
back into your project root directorynpx hardhat run scripts/deploy.js --network rinkeby