syunduel / ContractAllowList

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ContractAllowList

Pull requests are accepted from all web3 engineers!!

Usage

npm i contract-allow-list

or

yarn contract-allow-list

Why

We want to put in place a system to minimize the damage from NFT fraud.

How

  • Only accept approve from a limited number of contract addresses.
  • Lock token and prevent transfer.

Target Contracts

contracts>libs>ContractAllowList.sol *icontracts>interface>iContractAllowList.sol

Use Sample

contracts>TestNFTcollection.sol

About

License:Other


Languages

Language:Solidity 48.8%Language:TypeScript 46.6%Language:Dockerfile 4.6%