add fragment factory comment

This commit is contained in:
mingda
2021-03-25 18:20:42 +08:00
committed by owen05
parent 3da55a2c31
commit 40b0621127

View File

@@ -12,6 +12,15 @@ import {InitializableOwnable} from "../lib/InitializableOwnable.sol";
import {ICloneFactory} from "../lib/CloneFactory.sol";
import {IDVM} from "../DODOVendingMachine/intf/IDVM.sol";
// 这一部分最后写,先把前面的接口定下来
// 业务流程没有NFT的情况下
// 1. 上传媒体创建NFTCollateralVault
// 2. 把CollateralVault提供给FragmentFactory做碎片化
// 已经有NFT的情况下
// 1. 将NFT打包成NFTCollateralVault
// 2. 把CollateralVault提供给FragmentFactory做碎片化
// 所以总体来说factory只需要处理vault已经建立好之后的拼装工作即可
interface IFragmentFactory {
function createFragment() external returns (address newVendingMachine);
}