Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

GameItems

Inherits: ERC1155

State Variables

GOLD

uint256 public constant GOLD = 0;

SILVER

uint256 public constant SILVER = 1;

THORS_HAMMER

uint256 public constant THORS_HAMMER = 2;

SWORD

uint256 public constant SWORD = 3;

SHIELD

uint256 public constant SHIELD = 4;

Functions

constructor

constructor() ERC1155("https://game.example/api/item/{id}.json");