Implement, deploy, and index ERC20 and ERC721 tokens in Dojo. Use when adding token contracts, deploying them, or configuring Torii to index balances and transfers.
90
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillEvaluation — 99%
↑ 2.35xAgent success when using this skill
Validation for skill structure
ERC20 token model and deployment config
Model uses #[dojo::model]
100%
100%
Player key field
100%
100%
Amount field type u256
100%
100%
Contract uses #[dojo::contract]
100%
100%
Transfer event defined
0%
100%
Event keys are from and to
0%
100%
Event emitted
0%
100%
build-external-contracts in Scarb.toml
0%
100%
[[external_contracts]] block
0%
100%
constructor_data format
0%
77%
instance_name and salt present
0%
100%
Deploy command documented
80%
100%
Without context: $0.5714 · 2m 28s · 23 turns · 29 in / 10,568 out tokens
With context: $0.5037 · 1m 26s · 26 turns · 30 in / 5,675 out tokens
ERC721 NFT model and unique token ID generation
Model uses #[dojo::model]
100%
100%
token_id key field
100%
100%
owner field present
100%
100%
Contract uses #[dojo::contract]
100%
100%
world.uuid() for token ID
0%
100%
world.read_model / write_model
25%
100%
Ownership check on transfer
100%
100%
Transfer event defined
25%
100%
Event from/to are #[key]
0%
100%
Event emitted on transfer/mint
50%
100%
External contract config
0%
100%
build-external-contracts entry
0%
100%
Without context: $0.4371 · 1m 44s · 22 turns · 28 in / 6,696 out tokens
With context: $0.4357 · 1m 26s · 21 turns · 25 in / 5,147 out tokens
Torii token indexing configuration and querying
ERC20 prefix format
0%
100%
ERC721 prefix format
0%
100%
Contracts under [indexing]
0%
100%
tokens table referenced
100%
100%
balances table referenced
0%
100%
erc_transfers table referenced
100%
100%
useTokens hook used
100%
100%
accountAddresses parameter
0%
100%
toDecimal for display
0%
100%
Restart note for Torii
100%
100%
Transfer events note
44%
100%
Without context: $0.4452 · 1m 45s · 22 turns · 29 in / 6,771 out tokens
With context: $0.4190 · 1m 11s · 23 turns · 28 in / 4,467 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.