Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Deploy an ERC20" with remix tutorial #344

Open
wants to merge 18 commits into
base: staging-ah-smart-contracts
Choose a base branch
from

Conversation

nhussein11
Copy link
Collaborator

This PR adds a tutorial to deploy an ERC20 using polkadot remix IDE

@nhussein11 nhussein11 requested review from 0xLucca and a team January 29, 2025 17:47
@nhussein11 nhussein11 requested a review from a team as a code owner January 29, 2025 17:47
@nhussein11 nhussein11 linked an issue Jan 29, 2025 that may be closed by this pull request
@nhussein11 nhussein11 added B0 - Needs Review Pull request is ready for review C1 - Medium Medium priority task A0 - New Content Pull request contains new content pages labels Jan 29, 2025
@nhussein11 nhussein11 changed the base branch from master to staging-ah-smart-contracts January 29, 2025 17:53
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
3. Now, paste the following ERC20 contract code into the editor

```solidity title="MyToken.sol"
--8<-- 'code/tutorials/smart-contracts/deploy-erc20/MyToken.sol'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this snippet formatted with prettier or something like that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we don't have a prettier set up for solidity files. This is exactly how the openzeppelin wizard displays the contract

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising this! I've got a ticket to make sure that we add formatting for Solidity files. But this looks good

tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved

4. MetaMask will pop up - review the transaction details. Click **Confirm** to deploy your contract

![](/images/tutorials/smart-contracts/deploy-erc20/deploy-erc20-8.webp){: .browser-extension}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to center this image?

Copy link
Collaborator Author

@nhussein11 nhussein11 Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is centered, you should pull the latest polkadot-mkdocs version (which contains this PR).

tutorials/smart-contracts/deploy-erc20.md Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
@nhussein11 nhussein11 requested a review from 0xLucca January 31, 2025 14:51
Copy link
Collaborator

@0xLucca 0xLucca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@eshaben eshaben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
3. Now, paste the following ERC20 contract code into the editor

```solidity title="MyToken.sol"
--8<-- 'code/tutorials/smart-contracts/deploy-erc20/MyToken.sol'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising this! I've got a ticket to make sure that we add formatting for Solidity files. But this looks good

tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
tutorials/smart-contracts/deploy-erc20.md Outdated Show resolved Hide resolved
@nhussein11 nhussein11 requested a review from eshaben February 3, 2025 12:09
Copy link
Collaborator

@eshaben eshaben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eshaben eshaben added B1 - Ready to Merge Pull request is ready to be merged and removed B0 - Needs Review Pull request is ready for review labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0 - New Content Pull request contains new content pages B1 - Ready to Merge Pull request is ready to be merged C1 - Medium Medium priority task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create tutorial "Deploy an ERC-20 with Remix"
3 participants