Closed JackBekket closed 2 years ago
TODO
comment in 84d7d6b37585e5ae57455a09e246e0d1075df61d in #72. cc @MoonSHRD.todo
comment in 84d7d6b37585e5ae57455a09e246e0d1075df61d in #72. cc @MoonSHRD.todo
comment in 84d7d6b37585e5ae57455a09e246e0d1075df61d in #72. cc @MoonSHRD.@JackBekket @aislot
Переделал tokensale как сингл-тон, в процессе там довольно сильные изменения, надо написать тесты и замерить газ теперь
MAJOR CHANGES
Now tokensale is a singleton, every sale of every token is hold on this single contract
You should now create sale from factory using
createItemSale721(address payable organizer, uint price, MSNFT token,uint sale_limit, CurrenciesERC20.CurrencyERC20 currency_, uint master_id_)
It will create new struct
SaleInfo
tethered to master_id asMSaleInfo[master_id]
SaleInfo struct look like