Inventory
Cartridge Controller provides Inventory modal to manage account assets (ERC-20
, ERC-721
).
Configure tokens
By default, commonly used tokens are indexed and automatically shown. Full list of default tokens are listed in torii-config/public-tokens/mainnet.tom
. This list can be extended by configuring Torii hosted on Slot.
Configure additional token to index
# torii-config.toml
contracts = [
{ type = "ERC20", address = "<contract-address>" },
{ type = "ERC721", address = "<contract-address>" }
]
Create or update Torii instance on Slot
slot d create <project> torii --config <path/to/torii-config.toml>
Configure Controller
Provide Slot project name to ControllerOptions
.
const controller = new Controller({
slot: "<project>"
});
// or via connector
const connector = new CartridgeConnector({
slot: "<project>"
})
Open Inventory modal
controller.openProfile("inventory");