Commit Graph

4840 Commits

Author SHA1 Message Date
x
14807bcde6 initial basic dao mint in wasm 2022-11-06 17:39:05 +00:00
mohab metwally
d477eb3106 WIP debugging failing less_than proof 2022-11-06 16:40:43 +02:00
x
c0ae682fd0 dao2: move a few lines around 2022-11-06 12:26:47 +00:00
x
237d733a83 wasm: give get_metadata() access to db_get() 2022-11-06 12:26:29 +00:00
x
26637e2b6e merge dao1 into dao2 ready for migration 2022-11-06 12:13:44 +00:00
x
c9d55c1bcb dao2: get imports and running contract skeleton working 2022-11-06 11:20:28 +00:00
parazyd
83670232e0 example/dao2: Add lib deps. 2022-11-06 12:08:00 +01:00
parazyd
44adb4bafe example/dao2: Add project skeleton. 2022-11-06 12:03:31 +01:00
parazyd
4b0a57cdc8 sdk/contract_id: Use From for instantiation. 2022-11-06 11:35:26 +01:00
parazyd
c3b4b48820 Remove obsolete /contract directory. 2022-11-06 11:35:06 +01:00
parazyd
b6be34e41d blockchain: Document contractstore. 2022-11-06 11:16:09 +01:00
Dastan-glitch
8e381ad43c example/dao: running the example through makefile 2022-11-06 05:29:42 +03:00
x
f2aac746cb remove get access from update and deploy functions 2022-11-06 01:22:15 +00:00
x
6cc6bb12b3 wasm: wagie data utility functions 2022-11-06 00:55:42 +00:00
x
3c69a9fc04 Merge branch 'master' of github.com:darkrenaissance/darkfi 2022-11-05 18:23:08 +00:00
x
1c9ff6fdba wasm: fix error codes situation so we get contract errors from inside wasm 2022-11-05 18:12:59 +00:00
parazyd
60934a20d4 runtime: WIP db get 2022-11-05 18:48:28 +01:00
x
3aba630188 wasm: add metadata() functionality 2022-11-05 15:08:26 +00:00
mohab metwally
a9036f4f7c [consensus/coins] fix leaf position, used api over ++local state, as internal working of incmerkletree isn't simple ++ 2022-11-05 16:07:42 +02:00
mohab metwally
81ec2111d2 blockchain/contractstore replace unstable let else 2022-11-05 16:06:55 +02:00
parazyd
3bdd6cf1c9 runtime: Implement sled tree batch writes. 2022-11-05 14:47:30 +01:00
x
38054cc751 dao-example: remove WalletCache from money::State, now it's just used by the wallet. 2022-11-05 12:34:01 +00:00
lunar-mining
5c98311c98 example/dao: each Vec<Signature> corresponds to ONE function call 2022-11-05 13:03:31 +01:00
parazyd
f6296bf3f2 smart-contract: Add note about deleting sled trees on failures. 2022-11-05 12:49:05 +01:00
lunar-mining
bdd0dd3362 cargo fmt 2022-11-05 12:51:16 +01:00
lunar-mining
623bf9a295 Merge branch 'master' of github.com:darkrenaissance/darkfi 2022-11-05 12:50:49 +01:00
lunar-mining
2eb72ce53e dao/Transaction: each Vec<Signature> corresponds to ONE function call 2022-11-05 12:49:08 +01:00
parazyd
96b159c00c wasm: Working db_init() 2022-11-05 12:41:44 +01:00
lunar-mining
fb9f3ea6cf Revert "bin/dao: remove MakeFile"
This reverts commit ff694187e5.
2022-11-05 12:34:27 +01:00
x
3ef803c25b fix dao test 2022-11-05 11:25:38 +00:00
x
695f86f7c6 wasm: fix most of the warnings 2022-11-05 10:19:23 +00:00
x
346a6a5802 wasm: make functions use the same generic underlying call(), and able to return data through env with set_return_data() 2022-11-05 09:55:27 +00:00
parazyd
ff952172fa runtime: Pass ContractId to section functions. 2022-11-05 10:35:34 +01:00
mohab metwally
d821a3854a [consensus/coins] fix bug in y calculation 2022-11-04 22:16:09 +02:00
mohab metwally
f27ee17282 WIP debugging failing verified lead contract 2022-11-04 22:14:16 +02:00
parazyd
9848a1e5f5 runtime: sled blockchain access 2022-11-04 14:41:40 +01:00
x
dbdbc42705 wasm: replace current mess of macros with a single define_contract!() 2022-11-04 13:00:57 +00:00
x
efba1abc66 wasm: delete Transaction from sdk, and now just pass Vec<FuncCall> around (with no proofs or sigs inside). simplified POD, 2022-11-04 11:57:58 +00:00
parazyd
e833bf46ee sdk/db: Fix compilation. 2022-11-04 12:13:45 +01:00
parazyd
8be771af04 blockchain: Add skeleton for ContractStore. 2022-11-04 12:00:46 +01:00
parazyd
0add5ee26d Add missing license headers. 2022-11-04 10:39:24 +01:00
parazyd
84bf94d856 runtime: Cleanup and add payload support to init() 2022-11-04 10:35:29 +01:00
x
87be69f103 wasm: add example passing tx into state_transition() 2022-11-04 04:25:52 +00:00
x
92b2cd1e02 wasm: add example db usage to example/smart-contract/src/lib.rs 2022-11-04 03:46:28 +00:00
Dastan-glitch
ff694187e5 bin/dao: remove MakeFile 2022-11-04 05:51:58 +03:00
Dastan-glitch
452212590c bin/dao: use chacha20poly1305 crate in dao binary too 2022-11-04 05:51:38 +03:00
x
ef7dfb0ba3 wasm: add skeleton db functionality 2022-11-04 02:32:30 +00:00
Dastan-glitch
daeb250c13 example/dao: use chacha20poly1305 crate for note encryption 2022-11-04 05:29:24 +03:00
Dastan-glitch
0f28415473 example/dao: rename dao.rs to main.rs and add it to example workspace 2022-11-04 05:26:35 +03:00
Dastan-glitch
6d420edc35 add dao example to main MakeFile 2022-11-04 05:25:08 +03:00