Enforce Creator NFT Royalties by allowing only compliant NFT marketplaces to trade your collection



Discord – https://discord.gg/tZnnTwV9M2
Twitter – https://twitter.com/Web3Club

Code – https://gist.github.com/shobhitic/7308256f537c8d47f6ca1230c1b4a83c

Inspiration – https://twitter.com/cygaar_dev/status/1563186676771405830

OpenZeppelin – https://wizard.openzeppelin.com/#erc721

Remix – https://remix.ethereum.org/#code=Ly8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVApwcmFnbWEgc29saWRpdHkgXjAuOC40OwoKaW1wb3J0ICJAb3BlbnplcHBlbGluL2NvbnRyYWN0c0A0LjcuMy90b2tlbi9FUkM3MjEvRVJDNzIxLnNvbCI7CmltcG9ydCAiQG9wZW56ZXBwZWxpbi9jb250cmFjdHNANC43LjMvYWNjZXNzL093bmFibGUuc29sIjsKaW1wb3J0ICJAb3BlbnplcHBlbGluL2NvbnRyYWN0c0A0LjcuMy91dGlscy9Db3VudGVycy5zb2wiOwoKY29udHJhY3QgTXlUb2tlbiBpcyBFUkM3MjEsIE93bmFibGUgewogICAgdXNpbmcgQ291bnRlcnMgZm9yIENvdW50ZXJzLkNvdW50ZXI7CgogICAgQ291bnRlcnMuQ291bnRlciBwcml2YXRlIF90b2tlbklkQ291bnRlcjsKCiAgICBjb25zdHJ1Y3RvcigpIEVSQzcyMSgiTXlUb2tlbiIsICJNVEsiKSB7fQoKICAgIGZ1bmN0aW9uIHNhZmVNaW50KGFkZHJlc3MgdG8pIHB1YmxpYyBvbmx5T3duZXIgewogICAgICAgIHVpbnQyNTYgdG9rZW5JZCA9IF90b2tlbklkQ291bnRlci5jdXJyZW50KCk7CiAgICAgICAgX3Rva2VuSWRDb3VudGVyLmluY3JlbWVudCgpOwogICAgICAgIF9zYWZlTWludCh0bywgdG9rZW5JZCk7CiAgICB9Cn0K&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js

Articles:
https://www.coindesk.com/business/2022/08/31/an-nft-marketplace-is-letting-buyers-avoid-royalty-payments-creators-arent-pleased/
https://www.cryptotimes.io/sudoswap-amm-nft-marketplace-sparks-creator-royalties-debate/

00:00 Intro
01:52 The problem with Rogue Marketplaces
03:17 Creating the NFT smart contract
03:31 Create allowlist/whitelist of compliant NFT marketplaces
08:48 Deploy and test allowlist
11:47 Create a blocklist of rogue NFT Marketplaces
13:06 Deploy and test blocklist
14:31 Summary
15:13 Outro

source

8 thoughts on “Enforce Creator NFT Royalties by allowing only compliant NFT marketplaces to trade your collection

Comments are closed.