Skip to content

This repository contains a number of tools to help token contracts manage the operators allowed to transfer tokens on behalf of users - including the smart contracts and delegates of marketplaces that do not respect creator fees.

License

Notifications You must be signed in to change notification settings

SuperchiefDev/SmartContract_SuperchiefNFT

Repository files navigation

Version

2.0.0-alpha.1

Setting up local development

Pre-requisites

  • Node.js version 14.0+ and yarn for Javascript environment.
  • Foundry for running forge tests.
  1. Clone this repository
git clone ...
  1. Install dependencies
yarn
  1. Set environment variables on the .env file according to .env.example
cp .env.example .env
vim .env
  1. Compile Solidity programs
yarn compile

Development

  • To run hardhat tests
yarn test:hh
  • To start local blockchain
yarn localnode
  • To run scripts on Rinkeby test
yarn script:rinkeby ./scripts/....
  • To run deploy contracts on Rinkeby testnet (uses Hardhat deploy)
yarn deploy:rinkeby --tags ....
  • To verify contracts on etherscan
yarn verify:rinkeby MyTokenContract,MyNFTContract

... see more useful commands in package.json file

Main Dependencies

Contracts are developed using well-known open-source software for utility libraries and developement tools. You can read more about each of them.

OpenZeppelin

Solmate

Hardhat

hardhat-deploy

ethers.js

TypeChain

About

This repository contains a number of tools to help token contracts manage the operators allowed to transfer tokens on behalf of users - including the smart contracts and delegates of marketplaces that do not respect creator fees.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published