๐—™๐—ฎ๐˜€๐˜๐—Ÿ๐—ถ๐—ณ๐—ฒ Profile picture
Semi Pro E-beggar | DM @WawKasem for collab | Telegram https://t.co/SJVarDqzbE ๐Ÿ“ฒ |

Feb 18, 2023, 12 tweets

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.

Keep scrolling