update market

This commit is contained in:
zhl 2023-01-05 17:25:42 +08:00
parent e5407165f8
commit 99bbae99ad
2 changed files with 9753 additions and 5316 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,10 +5,12 @@ import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract BENFTMarket is Ownable, ReentrancyGuard { contract BENFTMarket is Ownable, ReentrancyGuard, ERC1155Holder,ERC721Holder {
using SafeERC20 for IERC20; using SafeERC20 for IERC20;
struct OrderInfo { struct OrderInfo {