Просмотр исходного кода

book: arch/dao.md add section on generalizing the DAO calling mechanism

x 2 лет назад
Родитель
Сommit
0c9c0891b8
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      doc/src/arch/dao.md

+ 15 - 0
doc/src/arch/dao.md

@@ -107,3 +107,18 @@ proposal where voting passed the threshold and so on.
 Assuming both contracts validate successfully, the funds are transferred out
 of the DAO treasury.
 
+## Generalizing DAO Calling Mechanism
+
+Currently the calling params for a contract is just a big binary blob.
+The idea is we introduce some kind of ABI.
+
+Then the DAO proposal would commit to some part of those params that
+we are interested in.
+
+In the final step of `DAO::exec()`, only these params would be checked.
+For more info see
+[DEP 0002](https://darkrenaissance.github.io/darkfi/dep/0002.html).
+
+This would be one way to enable composability, but by no means is it the
+only way.
+