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

Checks if a contract address meets known token standards #30

Closed

Conversation

luisvid
Copy link
Collaborator

@luisvid luisvid commented Sep 23, 2024

Add Interact task that checks if a contract address meets known token standards

Usage:

1. Non-compliant contract

ethernaut interact standards 0x63f38cBE5E820cC6833aED046bd4cc59e7a96dd5
╭ Result ─────────────────────────────────────────────────╮
│                                                         │
│   Address: 0x63f38cBE5E820cC6833aED046bd4cc59e7a96dd5   │
│   Token Standards:                                      │
│     ERC-165 Supported: No                               │
│     ERC-20: No                                          │
│     ERC-721: No                                         │
│       ERC-721 Metadata: No                              │
│     ERC-1155: No                                        │
│       ERC-1155 Metadata: No				  │	

2. ERC-20 contract

ethernaut interact standards 0x14d9204a21d422BEF173Bc5A1DaA7402a999B66F
╭ Result ─────────────────────────────────────────────────╮
│                                                         │
│   Address: 0x14d9204a21d422BEF173Bc5A1DaA7402a999B66F   │
│   Token Standards:                                      │
│     ERC-165 Supported: No                               │
│     ERC-20: Yes                                         │
│     ERC-721: No                                         │
│       ERC-721 Metadata: No                              │
│     ERC-1155: No                                        │
│       ERC-1155 Metadata: No                             │

3. ERC-721 contract

ethernaut interact standards 0xEa2D39869dd9af7d301945a23Bf6E6BF8B03723A
╭ Result ─────────────────────────────────────────────────╮
│                                                         │
│   Address: 0xEa2D39869dd9af7d301945a23Bf6E6BF8B03723A   │
│   Token Standards:                                      │
│     ERC-165 Supported: Yes                              │
│     ERC-20: No                                          │
│     ERC-721: Yes                                        │
│       ERC-721 Metadata: Yes                             │
│     ERC-1155: No                                        │
│       ERC-1155 Metadata: No                             │

4. ERC-1155 contract

ethernaut interact standards 0x24b7013730878F0C6b3333b1eAAAEa334cfdd846
╭ Result ─────────────────────────────────────────────────╮
│                                                         │
│   Address: 0x24b7013730878F0C6b3333b1eAAAEa334cfdd846   │
│   Token Standards:                                      │
│     ERC-165 Supported: Yes                              │
│     ERC-20: No                                          │
│     ERC-721: No                                         │
│       ERC-721 Metadata: No                              │
│     ERC-1155: Yes                                       │
│       ERC-1155 Metadata: Yes                            │

@luisvid luisvid changed the title Add Interact task that checks if a contract address meets known token standards Checks if a contract address meets known token standards Sep 23, 2024
Copy link
Owner

@eternauta1337 eternauta1337 left a comment

Choose a reason for hiding this comment

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

Hermoso!

@luisvid luisvid closed this Sep 27, 2024
@luisvid
Copy link
Collaborator Author

luisvid commented Sep 27, 2024

PR closed, new PR created from a local branch

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.

2 participants