Docs

ERC1155

import "@thirdweb-dev/contracts/eip/ERC1155.sol";

ERC1155 is the standard for representing "Edition" NFTs where each NFT in the collection can have more than 1 quantity; also known as "semi-fungible" tokens.

View on GitHub

Usage

This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/eip/ERC1155.sol";

contract Contract is ERC1155 {
    constructor(
        string memory _name,
        string memory _symbol
    )
        ERC1155(
            _name,
            _symbol
        )
    {}
}

Base Contracts Implementing This Extension