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
x
98921f7cc8
wasm: clean up the db interface
2022-11-04 01:59:06 +00:00
x
888402d665
wasm: move all host imports into src/runtime/import/
2022-11-04 01:36:44 +00:00
x
ba2828f802
wasm: ChangeLog
2022-11-04 00:17:15 +00:00
x
5ffdb1beb9
wasm: alloc pages for apply()
2022-11-04 00:16:13 +00:00
parazyd
7d233c5bbf
runtime: State update apply
2022-11-04 00:01:02 +01:00
x
66198e60a6
begin to add full darkfi smart contract functionality
2022-11-03 21:04:56 +00:00
x
e7f852bcad
wasm3: add comment about panics
2022-11-03 12:35:30 +00:00
parazyd
867b1bb7a3
example/smart-contract: Update Cargo.lock
2022-11-03 10:28:00 +01:00
parazyd
923fd8f518
Fix compilation
2022-11-03 09:10:39 +01:00
x
48f1a86d58
wasm add comment
2022-11-03 08:46:06 +01:00
x
b4a0b70cbf
remove .map_err(), use From<> instead
2022-11-03 08:46:06 +01:00
x
a0c61641cf
general cleanup and re-enabling of earlier disabled features.
2022-11-03 08:46:05 +01:00
x
e5ca71bd4b
wasm: re-enable metering for gas used
2022-11-03 08:45:18 +01:00
x
225c75f8c6
remove old dead code
2022-11-03 08:45:18 +01:00
x
abc907ba2b
remove state from entrypoint params
2022-11-03 08:45:18 +01:00
x
5304a7d883
wasm: remove __drkruntime_mem_alloc and just allocate memory pages directly using library native functions.
2022-11-03 08:45:16 +01:00
x
f35fd6ab96
(semi-)working wasm contract
2022-11-03 08:43:20 +01:00
x
e9dc3f36e1
add zk book
2022-11-03 08:37:44 +01:00
x
080c2edfbd
wasm: first working function drk_log. Notes:
...
* Env no longer needs to be Copy in API upgrade. Begin removing Arcs.
Env is now passed around as a ref (we should check how this works
since lifetimes are somehow hidden).
* Switch from internal MemoryManipulation to library functions using
WasmPtr. Can possibly be deprecated later.
* Add MemoryView convenience functions used in 3.0 API.
* Engine has been removed.
2022-11-03 08:37:41 +01:00
x
066be50042
Cargo.lock: updated wasmer-3.0.0-beta2 to 3.0.0-rc1
2022-11-03 08:37:01 +01:00
x
6668ff238b
get wasm code compiling with wasmer3.0.0-beta. doesn't work yet
2022-11-03 08:36:53 +01:00