dev
This commit is contained in:
16
contracts/NFTPool/intf/IFeeModel.sol
Normal file
16
contracts/NFTPool/intf/IFeeModel.sol
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
|
||||
Copyright 2021 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
|
||||
interface IFeeModel {
|
||||
function getNFTInFee(address filterAdminAddr, address user) external view returns(uint256);
|
||||
|
||||
function getNFTRandomOutFee(address filterAdminAddr, address user) external view returns(uint256);
|
||||
|
||||
function getNFTTargetOutFee(address filterAdminAddr, address user) external view returns(uint256);
|
||||
}
|
||||
12
contracts/NFTPool/intf/IFilterAdmin.sol
Normal file
12
contracts/NFTPool/intf/IFilterAdmin.sol
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
|
||||
Copyright 2021 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
|
||||
interface IFilterAdmin {
|
||||
function _OWNER_() external returns (address);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
|
||||
Copyright 2021 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
|
||||
interface IFilterERC1155Model {
|
||||
function isFilterERC1155Pass(address nftCollectionAddress, uint256 nftId, uint256 amount) external view returns (bool);
|
||||
|
||||
function saveNFTPrice(address nftCollectionAddress, uint256 nftId, uint256 amount) external view returns(uint256);
|
||||
|
||||
function buySpecNFTPrice(address nftCollectionAddress, uint256 nftId, uint256 amount) external view returns(uint256);
|
||||
|
||||
function buyLotteryNFTPrice() external view returns(uint256);
|
||||
|
||||
function lottery() external view returns(address nftCollection, uint256 nftId);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
|
||||
Copyright 2021 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
|
||||
interface IFilterERC721Model {
|
||||
function isFilterERC721Pass(address nftCollectionAddress, uint256 nftId) external view returns (bool);
|
||||
|
||||
function saveNFTPrice(address nftCollectionAddress, uint256 nftId) external view returns(uint256);
|
||||
|
||||
function buySpecNFTPrice(address nftCollectionAddress, uint256 nftId) external view returns(uint256);
|
||||
|
||||
function buyLotteryNFTPrice() external view returns(uint256);
|
||||
|
||||
function lottery() external view returns(address nftCollection, uint256 nftId);
|
||||
}
|
||||
42
contracts/NFTPool/intf/IFilterModel.sol
Normal file
42
contracts/NFTPool/intf/IFilterModel.sol
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
|
||||
Copyright 2021 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
*/
|
||||
|
||||
pragma solidity 0.6.9;
|
||||
|
||||
interface IFilterModel {
|
||||
function isFilterERC721Pass(address nftCollectionAddress, uint256 nftId) external view returns (bool);
|
||||
|
||||
function isFilterERC1155Pass(address nftCollectionAddress, uint256 nftId, uint256 amount) external view returns (bool);
|
||||
|
||||
function getAvaliableNFTIn() external view returns(uint256);
|
||||
|
||||
function getAvaliableNFTOut() external view returns(uint256);
|
||||
|
||||
function _NFT_IN_SWITCH_() external view returns(bool);
|
||||
|
||||
function _NFT_RANDOM_SWITCH_() external view returns(bool);
|
||||
|
||||
function _NFT_TARGET_SWITCH_() external view returns(bool);
|
||||
|
||||
function getNFTInPrice(address nftCollectionAddress, uint256 nftId) external view returns (uint256);
|
||||
|
||||
function getNFTRandomOutPrice() external view returns (uint256);
|
||||
|
||||
function getNFTTargetOutPrice(address nftCollectionAddress, uint256 nftId) external view returns (uint256);
|
||||
|
||||
function getRandomOutId() external view returns (address nftCollection, uint256 nftId);
|
||||
|
||||
function transferOutERC721(address nftContract, address assetTo, uint256 nftId) external;
|
||||
|
||||
function transferInERC721(address nftContract, address assetFrom, uint256 nftId) external;
|
||||
|
||||
function transferOutERC1155(address nftContract, address assetTo, uint256 nftId, uint256 amount) external;
|
||||
|
||||
function transferBatchOutERC1155(address nftContract, address assetTo, uint256[] memory nftIds, uint256[] memory amounts) external;
|
||||
|
||||
function transferBatchInERC1155(address nftContract, address assetFrom, uint256[] memory nftIds, uint256[] memory amounts) external;
|
||||
}
|
||||
Reference in New Issue
Block a user