dojo-token

Implement ERC20 and ERC721 token standards for Dojo game economies using Origami.

53|92|Updated Mar 28, 2023
One-click install
npx skills add https://github.com/dojoengine/book --skill dojo-token
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dojo-token
Source: https://github.com/dojoengine/book/tree/main/skills/dojo-token
Command: npx skills add https://github.com/dojoengine/book --skill dojo-token

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dojo game developers need a standard, reliable way to introduce fungible currencies and unique items as on-chain assets. This Skill provides ERC20-like and ERC721-like token implementations using the Origami library to standardize token behavior in Dojo.

Core Features & Use Cases

  • ERC20-like fungible tokens for in-game currencies and resources.
  • ERC721-like NFTs for characters, equipment, and rare assets.
  • Minting, transferring, burning, and balance tracking, with events for indexing.
  • Integration with Origami reusable components and Dojo models.

Quick Start

Install and configure the Origami-based token components in your Dojo project, add origami_token to Scarb.toml, and begin implementing token contracts following the provided examples.

Frequently Asked Questions about dojo-token

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Can I use the Origami library for NFT character minting and balance tracking in Dojo?

Add the origami_token dependency to your Scarb.toml file, then configure the Origami token components within your Dojo project. You can start implementing token contracts for in-game currencies and NFTs by following the provided examples.

What is the best way to handle in-game currency and fungible resources in Dojo?

Yes, Dojo supports ERC721-like NFTs for game characters and equipment through the Origami library. This Skill provides the necessary implementations to create unique on-chain assets, including minting, burning, and transferring functionality.

Do I need the Dojo toolchain and Origami dependency to tokenize game assets?

The best way to handle in-game currency and fungible resources in Dojo is by implementing ERC20-like fungible tokens using the Origami library. This standardizes token behavior and provides reliable on-chain asset management for game economies.

How to configure token contracts for burning and transfers in Dojo models?

Yes, you need the Dojo toolchain integration and must add the origami_token dependency to your Scarb.toml. These components are required to implement and configure the token interfaces, events, and storage models per Dojo conventions.