Skip to content

UniqueNetwork/unique-contracts

Repository files navigation

Unique Network | Contracts

Overview

This repository contains example smart contracts for minting collections and tokens in the Unique Schema V2 using Solidity.

Install

With Foundry

forge install UniqueNetwork/unique-contracts

When working with Hardhat projects, you'll need to copy the entire contracts directory and manually install @unique-nft/solidity-interfaces. This process is going to be refined shortly.

Contract Description

Contracts

Example Usage

  • Minter.sol: Demonstrates how to create a gasless experience for minting collections and NFTs.
  • POAP.sol: Demonstrates how to create a POAP contract. Tokens minting sponsored by the POAP contract itself. Every account can mint only one NFT and cannot transfer it.

Run tests

  1. Install packages and compile contracts
yarn
npx hardhat compile
  1. Create .env file from .env.example

  2. Set at least two private keys with OPL balance to TEST_ACCOUNTS_ETH env. You can get OPL tokens for free https://t.me/unique2faucet_opal_bot

  3. Run tests

yarn test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published