Available on crate features
test-utils only.Expand description
Test utilities for precompile dispatch testing
Structsยง
- TIP20
Setup - Helper for TIP20 token setup in tests.
Enumsยง
- Action ๐
- Setup mode - determines how the token is obtained.
Functionsยง
- assert_
full_ coverage - Asserts that multiple selector coverage checks all pass (no unsupported selectors).
- check_
selector_ coverage - Checks that all selectors in an interface have dispatch handlers.
- gen_
word_ from - Test helper function for constructing EVM words from hex string literals.
- get_
tip20_ ๐admin - Looks up the admin of a TIP-20 token by scanning
TokenCreatedevents from the factory. - is_
initialized ๐ - Checks if a contract at the given address has bytecode deployed.
- setup_
storage - Creates a test
HashMapStorageProvider(chain ID 1) paired with a random address.