JediMarketPlace for ERC721 and ERC1155:
https://rinkeby.etherscan.io/address/0x2Dd01B1Edfbc280302b1b74b0e7338a6e983b9aA#code
- Set initial values on scripts/deploy.ts file
- Deploy four contracts running on console:
node scripts/deploy.ts
- Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS_MARKET
- Use mint721 and mint1155 functions
- createItem()
Mints new ERC721 token with URI
- createItem1155()
Mints new ERC1155 token with given amount
- listItem()
Lists ERC721 token with given price and id
- listItem1155()
Lists ERC1155 token with given price and id
- cancel()
Cancels listing of ERC721 token with given id
- cancel1155()
Cancels listing of ERC1155 token with given id
- buyItem()
Buys ERC721 token
- buyItem1155()
Buys ERC1155 token
- listItemOnAuction()
Lists ERC721 token with given minPrice and id on auction for 3 days
- listItemOnAuction1155()
Lists ERC1155 token with given minPrice and id on auction for 3 days
- cancelAuction()
Cancels auction of ERC721 token with given id after 3 days
- cancelAuction1155()
Cancels auction of ERC1155 token with given id after 3 days
- finishAuction()
Finishes auction of ERC721 token with given id after 3 days
- finishAuction1155()
Finishes auction of ERC1155 token with given id after 3 days
- makeBid()
Creates bid on ERC721 token with given price
- makeBid1155()
Creates bid on ERC1155 token with given price
node scripts/deploy.js --network rinkeby
npx hardhat test
npx hardhat mint721
npx hardhat mint1155