cartridge-gg / slot

A toolchain for rapidly spinning up Katana and Torii instances. Play test your game in seconds.
GNU General Public License v3.0
43 stars 6 forks source link

Add Torii configuration file and ERC indexing #116

Open glihm opened 3 weeks ago

glihm commented 3 weeks ago

Torii can now index ERCs and relies on a configuration file to do so. As the genesis file for Katana, the configuration file for Torii must be sent to via slot CLI to actually unlock the option on the infrastructure side.

rsodre commented 3 weeks ago

What about something like overlays for configuring torii tokens? We might need the addresses of contracts deployed with the Dojo World.

Please consider that the config file contents may vary on different profiles...

example:

# --config ./config/dev/torii.toml
# dev profile
contracts = [
  { type = "ERC721", address = "$contract_address:pistols-duelists" },
  { type = "ERC20", address = "$contract_address:pistols-mock-lords" },
]
# --config ./config/production/torii.toml
# production profile
contracts = [
  { type = "ERC721", address = "$contract_address:pistols-duelists" },
  { type = "ERC20", address = "0x044e6bcc627e6201ce09f781d1aae44ea4c21c2fdef299e34fce55bef2d02210" },
]