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.
87
82%
Does it follow best practices?
Impact
99%
2.35xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
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%
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%
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%
52a1507
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.