npm install --save @thetta/core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
balances[HolderA] is 100 | |
balances[HolderB] is 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateDaoParams(Params _params) isCanDo("DevZen_updateDaoParams") public | |
function selectNextHost(address _nextHost) isCanDo("DevZen_selectNextHost") public; | |
function moveToNextEpisode(bool _guestHasCome) isCanDo("DevZen_moveToNextExpisode") public; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract ILiquidVoting { | |
// возвращает только делегированную силу | |
function getDelegatedPowerOf(address _of) public view returns(uint); | |
// получить кол-во делегируемых МНОЮ силы адресу _to | |
function getDelegatedPowerByMe(address _to) public view returns(uint); | |
// делегировать токены | |
function delegateTo(address _to, uint _tokenAmount) public; |
- There are four DevZen team members
- The next show host is selected by a consensus of all the DevZen team members
- Any listener can suggest a topic to be discussed in the next show
- The DevZen team members select topics from the suggested list and move them to the "approved for the next show" list.
- The show has ads. Let the maxium number of ad slots be 5.
- Also, the guys are using Patreon to get money for mics, hosting etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract DaoBase { | |
int x; | |
function method1() public {x = x +1; } | |
} | |
contract Moneyflow { | |
DaoBase daoBase; | |
} |
1.a) (push) как только переполнились -> отправляем на output (WeiExpense у которого берутся getNeededAmount()) 2.b) (pull) как только прееполнились -> открылись для вывода и перестаем собирать деньги и отправляем их дальше (не revert'им)
2.a) накапливаем 1 раз 2.b) накапливаем бесконечно раз 2.c) накапилваем бесконечно раз, но с периодом K
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Сравнение не реализаций! А концепций M1 vs M2 | |
### M1 недостатки: | |
1. > В текущей архитектуре нельзя реализовать roadmap-milestones | |
2. > фича - "если посылаем меньше денег, то нет revert" | |
2.2 Нельзя накапливать деньги маленькими порциями | |
2.3 Невозможно заполнить наполовину элемент | |
3. > фича - "у WeiExpense' есть выходы" (типа удобнее для клиента?) |
- Platform tokens - give power to govern the DAO, to add new projects to the high places in the list, to evaluate the rating (prediction).
- Reputation tokens - to set rating.
- Reader.
- Adder. Can add new project to the list
- Expert. Gets tokens as a reward for the project evaluation.
- Platform tokens - give power to govern the DAO, to add new projects to the high places in the list, to evaluate the rating (prediction).
- Reputation tokens - to set rating.
- Reader. Reader can read any rating without paying.
- Project leader. Can add new project to the list