0

我有一个关于 NFT 和 WAX 的初学者问题。如果我有一个 ERC1155 令牌,例如:

// contracts/GameItems.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";

contract GameItems is ERC1155 {
    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() public ERC1155("https://abcoathup.github.io/SampleERC1155/api/token/{id}.json") {
        _mint(msg.sender, GOLD, 10**18, "");
        _mint(msg.sender, SILVER, 10**27, "");
        _mint(msg.sender, THORS_HAMMER, 1, "");
        _mint(msg.sender, SWORD, 10**9, "");
        _mint(msg.sender, SHIELD, 10**9, "");
    }
}

我想运行一个 WAX DEX 来交易 ERC1155 代币,从跨平台的角度来看它是如何工作的?WAX 是一个 EOS 分叉,但显然 ERC1155 是用 Solidity 为以太坊编写的。还是需要用 C++ 编写 ERC1155 代码?

我错过了什么?

谢谢

4

0 回答 0