token

Documentation for eth_defi.token module.

ERC-20 token information, deployment and manipulation.

Deploy ERC-20 tokens to be used within your test suite.

Read also unit test suite for tokens to see how ERC-20 can be manipulated in pytest.

Functions

create_token(web3, deployer, name, symbol, ...)

Deploys a new test token.

fetch_erc20_details(web3, token_address[, ...])

Read token details from on-chain data.

Classes

TokenDetails

A helper class to detail with token instructions.

Exceptions

TokenDetailError

Cannot extract token details for an ERC-20 token for some reason.