ctor-lab / ERC1155Delta

44 stars 0 forks source link

ERC1155Delta

Test Publish Package to npmjs npm

ERC1155Delta is an NFT implementation/standard that is highly optimized for gas comsumption and has less impact on the blockchain storage space. ERC1155Delta is meant to be an drop-in replacement for ERC721. Like ERC721, each ERC1155Delta token is unique.

Installaion

npm

npm install erc1155delta

yarn

yarn add erc1155delta

Usage

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "erc1155delta/contracts/ERC1155Delta.sol";

contract ElyiumSystem is ERC1155Delta {

    constructor() ERC1155Delta("https://token-cdn-domain/{id}.json") {}

    function mint(
        address to,
        uint256 amount
    ) external {
        _mint(to, amount);    
    }
}

Acknoledgement

This repository is inspired by or directly modified from the following projects: