Skip to content

Tokens printer#

Name: tokens

The printer prints the list of all ERC-20, ERC-721, and ERC-1155 tokens detected in the analyzed contracts.

Example#

wake print tokens                               Tokens                               ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ Contract           Type  Location                        ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ MockGovernanceTokenERC-20contracts/mining/mocks/tokens/… MockLpToken        ERC-20contracts/mining/mocks/tokens/… MockToken          ERC-20contracts/mining/mocks/tokens/… MockTokenDai       ERC-20contracts/mining/mocks/tokens/… MockTokenUsdc      ERC-20contracts/mining/mocks/tokens/… MockTokenUsdt      ERC-20contracts/mining/mocks/tokens/… IpToken            ERC-20contracts/tokens/IpToken.sol IporToken          ERC-20contracts/tokens/IporToken.sol IvToken            ERC-20contracts/tokens/IvToken.sol ERC20Upgradeable   ERC-20node_modules/@openzeppelin/con… ERC20              ERC-20node_modules/@openzeppelin/con… MockTestnetToken   ERC-20test/mocks/tokens/MockTestnetT… └─────────────────────┴────────┴─────────────────────────────────┘

Parameters#

Command-line name TOML name Type Default value Description
--erc20 erc20 bool True Print ERC-20 tokens.
--erc721 erc721 bool True Print ERC-721 tokens.
--erc1155 erc1155 bool True Print ERC-1155 tokens.
--erc20-threshold erc20_threshold int 4 Number of ERC-20 functions/events required to consider a contract an ERC-20 token.
--erc721-threshold erc721_threshold int 6 Number of ERC-721 functions/events required to consider a contract an ERC-721 token.
--erc1155-threshold erc1155_threshold int 4 Number of ERC-1155 functions/events required to consider a contract an ERC-1155 token.
--interface/--no-interface interface bool False Print interfaces.
--abstract/--no-abstract abstract bool False Print abstract contracts.
--table-style table_style str "" Rich style of the table.
--header-style header_style str "" Rich style of the table header.
--style style str cyan Rich style of the table cells.