1234567891011121314151617181920212223242526 |
- // SPDX-License-Identifier: MIT
- pragma solidity ^0.8.20;
- import {ERC6909Metadata} from "../../../../token/ERC6909/extensions/draft-ERC6909Metadata.sol";
- contract ERC6909GameItems is ERC6909Metadata {
- uint256 public constant GOLD = 0;
- uint256 public constant SILVER = 1;
- uint256 public constant THORS_HAMMER = 2;
- uint256 public constant SWORD = 3;
- uint256 public constant SHIELD = 4;
- constructor() {
- _setDecimals(GOLD, 18);
- _setDecimals(SILVER, 18);
- // Default decimals is 0
- _setDecimals(SWORD, 9);
- _setDecimals(SHIELD, 9);
- _mint(msg.sender, GOLD, 10 ** 18);
- _mint(msg.sender, SILVER, 10_000 ** 18);
- _mint(msg.sender, THORS_HAMMER, 1);
- _mint(msg.sender, SWORD, 10 ** 9);
- _mint(msg.sender, SHIELD, 10 ** 9);
- }
- }
|