Commit Graph

56 Commits

Author SHA1 Message Date
parazyd
84caaf2c3a runtime: Add wasm bincode to WasmStore after successful deploy execution. 2022-11-16 14:26:37 +01:00
parazyd
72f345e6de contrib: Add script for attaching missing license headers to .rs files. 2022-11-15 22:14:28 +01:00
parazyd
fe611fbbcd consensus: Deploy native money contract on startup. 2022-11-15 19:33:34 +01:00
parazyd
17e5d01b18 sdk/db: Constant error codes for db 2022-11-15 18:56:01 +01:00
parazyd
9c0a0e1c10 runtime: Add db.contains_key functionality. 2022-11-15 17:10:54 +01:00
x
a32d72754b dao2 verify zk proofs 2022-11-08 12:41:06 +00:00
parazyd
8c27c24473 make fix 2022-11-06 21:29:06 +01:00
parazyd
f2dd798f2d Clear up most warnings and have test units pass. 2022-11-06 21:17:36 +01:00
x
f8d2790bb7 dao2: working merkle_add() 2022-11-06 18:24:41 +00:00
x
14807bcde6 initial basic dao mint in wasm 2022-11-06 17:39:05 +00:00
x
237d733a83 wasm: give get_metadata() access to db_get() 2022-11-06 12:26:29 +00: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
parazyd
3bdd6cf1c9 runtime: Implement sled tree batch writes. 2022-11-05 14:47:30 +01:00
lunar-mining
bdd0dd3362 cargo fmt 2022-11-05 12:51:16 +01:00
parazyd
96b159c00c wasm: Working db_init() 2022-11-05 12:41:44 +01: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
parazyd
9848a1e5f5 runtime: sled blockchain access 2022-11-04 14:41:40 +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
x
ef7dfb0ba3 wasm: add skeleton db functionality 2022-11-04 02:32:30 +00: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
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
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
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
6668ff238b get wasm code compiling with wasmer3.0.0-beta. doesn't work yet 2022-11-03 08:36:53 +01:00
parazyd
8ae84ad7f9 Add license header to source files. 2022-10-31 18:16:13 +01:00
Luther Blissett
62d1f06c1f Update imports for type migrations. 2022-10-17 00:34:34 +02:00
Luther Blissett
057b818731 runtime: Log targets 2022-10-14 17:02:00 +02:00
Luther Blissett
ecbe5c35c8 runtime: Change log target to wasm_runtime. 2022-10-14 02:46:11 +02:00
Luther Blissett
c370e2779d runtime: Add query for merkle root store. 2022-10-14 02:30:21 +02:00