Commit Graph

40 Commits

Author SHA1 Message Date
parazyd
72f345e6de contrib: Add script for attaching missing license headers to .rs files. 2022-11-15 22:14:28 +01:00
parazyd
c1b2c2af5a Update crate dependencies 2022-11-08 12:17:25 +01:00
parazyd
4b0a57cdc8 sdk/contract_id: Use From for instantiation. 2022-11-06 11:35:26 +01:00
parazyd
b6be34e41d blockchain: Document contractstore. 2022-11-06 11:16:09 +01: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
parazyd
f6296bf3f2 smart-contract: Add note about deleting sled trees on failures. 2022-11-05 12:49:05 +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
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
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
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
parazyd
867b1bb7a3 example/smart-contract: Update Cargo.lock 2022-11-03 10:28:00 +01:00
x
48f1a86d58 wasm add comment 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
abc907ba2b remove state from entrypoint params 2022-11-03 08:45:18 +01:00
x
f35fd6ab96 (semi-)working wasm contract 2022-11-03 08:43:20 +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
x
e46ce80bd3 fix smart contract test so it compiles 2022-10-25 10:45:28 +00:00
Luther Blissett
12b7419c10 example/smart-contract: Cleanup 2022-10-14 03:25:55 +02:00
Luther Blissett
4adb6d1c67 node/state: Implement temporary dummy state function. 2022-10-14 02:29:52 +02:00
Luther Blissett
ada09adde8 example/smart-contract: Nullifier lookup in state. 2022-10-14 02:29:31 +02:00
Luther Blissett
bcf031fb8a Update examples. 2022-09-24 16:02:20 +02:00
parazyd
01724a544d Sync package versions in the repo. 2022-04-28 20:19:04 +02:00
parazyd
2505f9ebf6 example: Add integration test for contract. 2022-04-11 12:53:13 +02:00
parazyd
46d64a5ce3 example" Add example smart contract implementation. 2022-04-11 12:23:15 +02:00