1/ AIRDROP HUNT ๐ช
๐ฆ๐๐๐ฅ๐๐๐จ๐ ( ๐ฒ๐ฎ๐๐๐ฒ๐ฟ ๐ฒ๐ด๐ด ๐ฅ)
#Shardeum has recently deployed its Betanet Sphinx
On this occasion we're just going to see how to deploy smart contracts on this Layer
Very few people will do, so that will maybe make difference for an #airdrop
2/ For those who don't know Shardeum yet (come out of your cave ๐
) it's an EVM based L1 that uses dynamic state sharding to achieve linearly scalability
For more information :
docs.shardeum.org/Introduction/Wโฆ
๐ช Know that 5% of the supply is intended for #airdrops to the community ๐
3/ So let's roll up our sleeves, let's go !
๐ธThis tutorial takes place on the Sphinx testnet, start by adding this network to your metamask ๐
docs.shardeum.org/network/endpoiโฆ
๐ธAnd claim some testnet $SHM ๐
faucet-sphinx.shardeum.org/?_ga=2.1579602โฆ
4/ ๐๐ฅ๐๐ฎ๐ฌ
To start we gonna deploy an ERC20 Smart Contract ๐
1๏ธโฃ Go to docs.openzeppelin.com/contracts/4.x/โฆ
> select ERC20
> choose a name and symbol for your token
> set an amount in 'premint'
(ex. 1 000 000 000)
When it's done, click on 'Open in Remix' โ
5/ 2๏ธโฃ On Remix, click 'Compile Contract' button
After compiling:
> go to Deploy & Run Transactions
> ENVIRONMENT > Injected Provider #Metamask ( you should see your own adress if you have done everything right )
> Press DEPLOY โ
Your smart contract is deployed ๐
6/ 3๏ธโฃ Now scroll down, under 'Deployed Contracts' :
> click on your contract to open the window
> select 'Transfer', write your own address and amount you want to transfer ( number of tokens doesn't matter, if you 1000 tokens, type 1 and 21 zero like on screenshot below)
7/
> click on 'transact' and
> confirm transaction on your wallet โ
Congratulations on finishing the ERC20 part ๐
You can verify that all transactions were successful by pasting your metamask address into the explorer ๐
explorer-sphinx.shardeum.org
8/ ๐๐ฅ๐๐ณ๐ฎ๐ญ ( ๐ก๐๐ง)
Now second part, we gonna deploy an ERC721 ( NFT) Smart Contract ๐
1๏ธโฃ Return to docs.openzeppelin.com/contracts/4.x/โฆ
> select ERC721
> choose a name and symbol for your token
> now click on 'mintable'
When it's done, Open in Remix โ
9/ 2๏ธโฃ On Remix, repeat same actions as before to Compile and Deploy your Smart Contract โ
3๏ธโฃ Now under 'Deployed Contracts' :
> click on your contract to open the window
> select 'Safe mint'
> like before write your own wallet address and the number of NFT to mint (ex.10)
10/ > click on 'transact' and
> confirm transaction on wallet โ
Congratulations, you have created your ERC721 contract on Shardeum and have just interacted with it ๐
You can verify to the explorer
11/ Smart Contract part is over ๐ฅ
Don't be fooled, it's very easy to do and only takes a few minutes โฑ๏ธ
If this tutorial helped you, don't hesitate to like and share it with your friends โบ๏ธ
BONUS/
Unrolled version, to facilitate the reading of this tuto ๐
threadreaderapp.com/thread/1627021โฆ
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.