Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Host API #182

Merged
merged 40 commits into from Oct 25, 2020
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6398942
WIP
YaronWittenstein Oct 7, 2020
ef78f1a
* Raw Storage API
YaronWittenstein Oct 8, 2020
34b36d9
storage-proc-macro: testing `bool`-type fields.
YaronWittenstein Oct 11, 2020
7c3af92
storage-proc-macro: test for `Amount`.
YaronWittenstein Oct 11, 2020
1c529ea
storage-proc-macro: adding tests for `u8 / i8 / u16 / i16 / u32 / i32…
YaronWittenstein Oct 11, 2020
207d2ca
adding a test for `AddressOwned`.
YaronWittenstein Oct 11, 2020
941fb12
WIP: adding getters & setters of Array-typed fields.
YaronWittenstein Oct 12, 2020
12f5aca
proc-macro storage tests: renaming
YaronWittenstein Oct 12, 2020
e562d3f
extracting repetitive expression to a macro.
YaronWittenstein Oct 13, 2020
b0c5711
refactoring
YaronWittenstein Oct 13, 2020
237027c
more refactoring to `AppStorage` proc-macro.
YaronWittenstein Oct 13, 2020
2afa2e2
WIP: getters & setters for `Address / AddressOwned`
YaronWittenstein Oct 13, 2020
8c56f02
testing Array-type fields (except for `Address` and `AddressOwned`).
YaronWittenstein Oct 14, 2020
d567643
WIP: making `Address` more ergonomic.
YaronWittenstein Oct 14, 2020
95fb54e
deleting `storage` directory from `svm-sdk-macros` (code has moved to…
YaronWittenstein Oct 15, 2020
6ba63b2
Simplifying `Address` - removing `AddressOwned` and staying with `Add…
YaronWittenstein Oct 15, 2020
bf2be98
`get/set` for `Address` array works.
YaronWittenstein Oct 15, 2020
0ab8bbe
tests pass.
YaronWittenstein Oct 17, 2020
8343653
Changing to proc-macro-attribute.
YaronWittenstein Oct 18, 2020
2f4f428
remove unused code.
YaronWittenstein Oct 18, 2020
4ac0046
extracting `storage` parsing logic to `storage.rs`
YaronWittenstein Oct 18, 2020
29b4c59
WIP
YaronWittenstein Oct 18, 2020
72688a2
WIP
YaronWittenstein Oct 18, 2020
c45fe37
code compiles
YaronWittenstein Oct 18, 2020
b02ff64
`svm-macros-sdk` does nothing when compiled on Windows.
YaronWittenstein Oct 19, 2020
a1f1e87
Merge branch 'storage-proc-macro' into calldata-api
YaronWittenstein Oct 19, 2020
6942b40
WIP
YaronWittenstein Oct 19, 2020
6ac8ce1
Adding more documentation.
YaronWittenstein Oct 20, 2020
217c443
trigger CI
YaronWittenstein Oct 20, 2020
389058b
Merge branch 'storage-proc-macro' into calldata-api
YaronWittenstein Oct 20, 2020
13410a8
Merge branch 'master' into calldata-api
YaronWittenstein Oct 20, 2020
10a14ba
Merge branch 'calldata-api' into svm-sdk-host
YaronWittenstein Oct 20, 2020
4dc4cba
MockHost changes
YaronWittenstein Oct 21, 2020
bd61e4b
WIP `ExtMock`
YaronWittenstein Oct 21, 2020
ce42e6f
removing `Host Context`
YaronWittenstein Oct 21, 2020
532cf12
Merge branch 'master' into svm-sdk-host
YaronWittenstein Oct 22, 2020
2994bb6
svm-sdk: adding the missing pieces to `MockHost` and `ExtHost`
YaronWittenstein Oct 22, 2020
c194675
svm-codec: fix compilation error when target is wasm
YaronWittenstein Oct 22, 2020
5ebdaa8
Adding documentation to svm-sdk/src/host/ext.rs
YaronWittenstein Oct 22, 2020
0b5a3f1
Changes for PR comments.
YaronWittenstein Oct 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 0 additions & 112 deletions crates/svm-codec/src/api/builder/host_ctx_builder.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/svm-codec/src/api/builder/mod.rs
@@ -1,9 +1,7 @@
mod app_builder;
mod app_tx_builder;
mod host_ctx_builder;
mod template_builder;

pub use app_builder::SpawnAppBuilder;
pub use app_tx_builder::AppTxBuilder;
pub use host_ctx_builder::HostCtxBuilder;
pub use template_builder::DeployAppTemplateBuilder;
1 change: 0 additions & 1 deletion crates/svm-codec/src/api/raw/mod.rs
Expand Up @@ -5,7 +5,6 @@ pub use crate::transaction::{decode_exec_app, encode_exec_app};
pub use crate::abi::{decode_abi_data, encode_abi_data};
pub use crate::field::Field;
pub use crate::gas::{decode_gas_used, encode_gas_used};
pub use crate::host_ctx::{decode_host_ctx, encode_host_ctx};
pub use crate::receipt::decode_receipt;
pub use crate::varuint14::{decode_varuint14, encode_varuint14};
pub use crate::version::{decode_version, encode_version};
175 changes: 0 additions & 175 deletions crates/svm-codec/src/host_ctx/mod.rs

This file was deleted.