From 40b0621127b848a539071d44c57fb72af6568a4b Mon Sep 17 00:00:00 2001 From: mingda Date: Thu, 25 Mar 2021 18:20:42 +0800 Subject: [PATCH] add fragment factory comment --- contracts/Factory/FragmentFactory.sol | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contracts/Factory/FragmentFactory.sol b/contracts/Factory/FragmentFactory.sol index 9c74945..0abc869 100644 --- a/contracts/Factory/FragmentFactory.sol +++ b/contracts/Factory/FragmentFactory.sol @@ -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); }