Skip to content

Adyfamba/ducketh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐥 DuckEth

If it looks like an ERC20, and it quacks like an ERC20, then it must be an ERC20.

Usage

Get bytecode with:

web3.eth.getCode(ADDRESS)

Use with:

npm install ducketh  // Coming soon

ducketh.getClassStrict(BYTECODE);  // Returns 'ERC20'

Limitations

  • Doesn't work with proxy contracts
    • eg. USDC
  • Doesn't check implementationm, only that the contract defines the required functions
    • By extension, if functionality is provided through fallback functions (openzeppelin's proxy contract does this), it will remain hidden to ducketh

Notes

This doesn't work with proxy contracts :(

  • Deployed bytecode vs creation bytecode
    • Note bytecode-examples is a mix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%