@nylonblocks/evmcontracts

1.3.1 • Public • Published
         ███╗░░██╗██╗░░░██╗██╗░░░░░░█████╗░███╗░░██╗
         ████╗░██║╚██╗░██╔╝██║░░░░░██╔══██╗████╗░██║
         ██╔██╗██║░╚████╔╝░██║░░░░░██║░░██║██╔██╗██║
         ██║╚████║░░╚██╔╝░░██║░░░░░██║░░██║██║╚████║
         ██║░╚███║░░░██║░░░███████╗╚█████╔╝██║░╚███║
         ╚═╝░░╚══╝░░░╚═╝░░░╚══════╝░╚════╝░╚═╝░░╚══╝
            www.nylonblocks.io | nylonblocks.eth

EVM Contracts

Deps:

  • ERC721A
  • @openzeppelin/contracts
  • @chainlink/contracts
  • @uniswap/v3-core
  • @uniswap/v3-periphery
  • merkletree js

Usage

Contract all derive from "@nylonblocks/EVMContracts/contracts/"

Modifications

We use ERC721A as an underlining contract base with slight modifications: We added these two global vars

    //  Hold the base URI
    string private BaseURI_;
    //  Hold the starting token ID
    uint256 private startingID_;

An modified this to be internal (from private)

   // Mapping owner address to address data
  mapping(address => AddressData) internal _addressData;

We have also added a couple of management functions to the contract:

function _startTokenId() internal view virtual returns (uint256) {
  return startingID_;
}

function _baseURI() internal view virtual returns (string memory) {
  return BaseURI_;
}

function _setBaseURI(string memory _BaseURI) internal {
  BaseURI_ = _BaseURI;
}

We have also implemented a set of functions that are modular to the contracts, some are specific to the project some are generic.

Readme

Keywords

Package Sidebar

Install

npm i @nylonblocks/evmcontracts

Weekly Downloads

1

Version

1.3.1

License

ISC

Unpacked Size

25 MB

Total Files

84

Last publish

Collaborators

  • nylonblocks