Skip to content

nftprotect/nftprotect-contracts

Repository files navigation

NFT Protect Contracts

CodeFactor

This repository contains the smart contracts for NFT Protect. The system consists of several contracts responsible for various functions, including arbitration, user identity management, coupon generation and redemption, and NFT protection.

Deployment

Contracts are deployed using the deploy.ts script. This script checks if a contract has already been deployed on the network, and if not, deploys it.

yarn build
yarn deploy --network sepolia

Verification

After deployment, contracts can be verified using the verify.ts script. This script reads the contract data from contracts.json and verifies each contract on the network.

yarn verify --network sepolia

Configuration

To configure contracts automatically after deployment, run the following:

yarn configure --network sepolia

This script performs smart contracts configuration based on contracts.json and arbitrators.json.

ABI exporting

To export ABI run this command:

yarn export-abi

Contracts

Sepolia

License

This project is licensed under the GNU GPL v2.1 license.