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

feat: add example TOKEN-404 token contract in Vyper #3852

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

0x0077
Copy link
Contributor

@0x0077 0x0077 commented Mar 13, 2024

What I did

Implemented an example TOKEN-404 token contract in Vyper, demonstrating the basic functionalities of a token contract according to the TOKEN404.

TOKEN404 is commonly referred to as ERC404; however, it does not adhere to the ERC20/ERC721 standard and is instead considered a novel approach.

How I did it

  • To avoid naming conflicts between ERC20 and ERC721 events, we need to first deploy an IERC20Event contract.
  • Defined the contract interface to include essential functions such as transfer, approve, transferFrom, balanceOf, and allowance.
  • Implemented each function strictly following the ERC-20/ERC-721 standard, ensuring compatibility and interoperability with other contracts and wallets expecting ERC-20/ERC-721 compliance.
  • Used Vyper safety features and simplicity to create a clear and secure implementation of the token standard.

How to verify it

  • Review the contract code in the submitted files.
  • Deploy the contract to a test network (e.g., Sepolia or Holesky) using a Vyper-compatible wallet or IDE and interact with it to ensure it behaves as expected.

Commit message

"feat: add example TOKEN-404 token contract in Vyper"

This commit introduces a simple and secure implementation of the TOKEN-404 in Vyper, aimed at developers looking for a straightforward reference for building their tokens.

Description for the changelog

Added an example TOKEN-404 token contract implementation in Vyper, offering developers a template for creating compliant tokens with the security and simplicity of Vyper.

Cute Animal Picture

cute alpaca

@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.19%. Comparing base (a9ee641) to head (dbb7d67).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3852   +/-   ##
=======================================
  Coverage   86.19%   86.19%           
=======================================
  Files          92       92           
  Lines       14013    14013           
  Branches     3078     3078           
=======================================
  Hits        12079    12079           
  Misses       1497     1497           
  Partials      437      437           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants