Inventory
Cartridge Controller provides Inventory modal to manage account assets (ERC-20
, ERC-721
) with integrated marketplace functionality for buying and selling digital assets.
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.toml
. This list can be extended by configuring Torii hosted on Slot.
Configure additional token to index
# torii-config.toml
[indexing]
contracts = [
"erc20:<contract-address>",
"erc721:<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: "<torii-url>"
});
// or via connector
const connector = new CartridgeConnector({
slot: "<torii-url>"
})
Open Inventory modal
controller.openProfile("inventory");
Marketplace Integration
The inventory system includes built-in marketplace functionality for ERC721 and ERC1155 assets:
Features
- Asset Purchasing: Buy digital assets from marketplace listings with transparent fee structure
- Collection Browsing: Browse and purchase items from specific collections
- Multi-token Support: Purchase with various supported tokens
Marketplace Fees
When purchasing assets through the marketplace:
- Client Fees: Automatically calculated and applied to each transaction
- Creator Royalties: Honor creator royalty settings for supported collections
- Marketplace Fees: Platform fees as configured by the marketplace
All fees are clearly displayed before transaction confirmation, including both absolute amounts and percentage breakdowns.