erc-20

Integrate ERC-20 tokens into Scaffold-ETH 2 projects using OpenZeppelin contracts.

2.0k|1.4k|Updated Sep 19, 2022
One-click install
npx skills add https://github.com/scaffold-eth/scaffold-eth-2 --skill erc-20-scaffold-eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erc-20
Source: https://github.com/scaffold-eth/scaffold-eth-2/tree/main/.agents/skills/erc-20
Command: npx skills add https://github.com/scaffold-eth/scaffold-eth-2 --skill erc-20-scaffold-eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of adding and interacting with ERC-20 fungible token contracts within a Scaffold-ETH 2 project, addressing common integration challenges.

Core Features & Use Cases

  • ERC-20 Token Deployment: Guides the creation and deployment of custom ERC-20 tokens using OpenZeppelin's battle-tested implementations.
  • Frontend Integration: Provides the necessary scaffolding for UI components to interact with deployed tokens (e.g., displaying balances, initiating transfers).
  • Use Case: You need to create a new fungible token for your decentralized application, manage its supply, and allow users to transfer it seamlessly within your Scaffold-ETH 2 dApp.

Quick Start

Add a basic ERC-20 token contract with open minting to your Scaffold-ETH 2 project.

Frequently Asked Questions about erc-20

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate an ERC-20 token into a Scaffold-ETH 2 project?

Integrating an ERC-20 token into Scaffold-ETH 2 involves leveraging OpenZeppelin contracts to deploy custom tokens and scaffolding frontend UI components to display balances and initiate transfers within your dApp.

What is the best way to handle non-standard ERC-20 token behaviors in my dApp?

Handling non-standard ERC-20 token behaviors requires addressing common integration challenges like decimal handling and specific token quirks during implementation to ensure accurate balance displays and seamless transfer functionality within your dApp.

How do I prevent approve/transferFrom race conditions when deploying custom ERC-20 tokens?

To prevent approve/transferFrom race conditions when deploying custom ERC-20 tokens, implement security considerations provided by OpenZeppelin contracts, which offer battle-tested solutions to mitigate common vulnerabilities during token interactions.

Can I use OpenZeppelin contracts to create a fungible token with open minting in Scaffold-ETH 2?

Yes, you can use OpenZeppelin contracts within Scaffold-ETH 2 to quickly add a basic ERC-20 token contract with open minting capabilities, simplifying the creation and deployment of custom fungible tokens for your decentralized application.

Why does my ERC-20 token frontend integration show incorrect balances?

ERC-20 token frontend integration may show incorrect balances due to decimal handling issues or non-standard token behaviors, requiring specific integration challenges to be addressed when scaffolding UI components for your deployed tokens.