File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# ERC-2981 Royalties:
2- ### Requirements: (for testing)
3- 1 . Node.js - Latest
4- 2 . NPM - Latest
5- 3 . Truffle - Latest
6- 4 . hdwallet-provider - Latest
7- 5 . truffle-plugin-verify - Latest
8- 6 . Infura API-Key
9- 7 . Etherscan API-Key
10- 8 . Bncscan API-Key
11- 9 . mnemonic for generation of Private Key
12- 10 . .env setup:
13- * MNEMONIC=""
14- * INFURA_API_KEY=
15- * ETHERSCAN_API_KEY=
16- * BSCSCAN_API_KEY=
17- 11 . dontenv - Latest
18- 12 . git - Latest (if you plan on developing with us)
19- 13 . create .gitignore
20- * add .env
212
223### Basing EIP-2981 into ERC-2981
234After using https://eips.ethereum.org/EIPS/eip-2981 as the final standard, I have taken IERC2981.sol and forged this into ERC2981.sol
@@ -44,3 +25,21 @@ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view overrid
4425* This is the mapping being used, per token
4526
4627This is the cleanest solution I could come up with
28+
29+ ### Requirements: (for testing)
30+ 1 . Node.js - Latest
31+ 2 . NPM - Latest
32+ 3 . Truffle - Latest
33+ 4 . hdwallet-provider - Latest
34+ 5 . truffle-plugin-verify - Latest
35+ 6 . Infura API-Key
36+ 7 . Etherscan API-Key
37+ 8 . mnemonic for generation of Private Key
38+ 9 . .env setup:
39+ * MNEMONIC=""
40+ * INFURA_API_KEY=
41+ * ETHERSCAN_API_KEY=
42+ 10 . dontenv - Latest
43+ 11 . git - Latest (if you plan on developing with us)
44+ 12 . create .gitignore
45+ * add .env
You can’t perform that action at this time.
0 commit comments