Skip to content

Commit

Permalink
http api + formalize error handling (#24)
Browse files Browse the repository at this point in the history
* add http api into core-sdk

* refactor

* checkpoint: calling host function

* refactor error handling

* add nucleusId to context so we can dispatch the asynchronous call

* invole low-level hyper
  • Loading branch information
0xed1s0n authored Sep 16, 2024
1 parent 1a22468 commit 5cd5a0a
Show file tree
Hide file tree
Showing 16 changed files with 869 additions and 663 deletions.
63 changes: 63 additions & 0 deletions Cargo.lock

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

9 changes: 8 additions & 1 deletion nucleus/cage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition.workspace = true
[dependencies]
sp-runtime = { workspace = true }
tokio = { version = "1", features = ["full"] }
vrs-core-sdk = { path = "../core-sdk" }
vrs-core-sdk = { path = "../core-sdk", features = ["host"] }
vrs-primitives = { path = "../../primitives" }
vrs-nucleus-runtime-api = { path = "../runtime-api" }
codec = { workspace = true }
Expand All @@ -25,6 +25,13 @@ hex = { version = "0.4" }
thiserror = "1"
vrs-metadata = { path = "../../metadata" }
chrono = { version = "0.4" }
hyper = { version = "1.3", features = ["full"] }
unicase = "2.6"
hyper-tls = "0.6.0"
hyper-util = { version ="0.1", features = ["full"] }
bytes = "1"
http-body-util = "0.1.0"


[dev-dependencies]
temp-dir = "0.1.13"
Loading

0 comments on commit 5cd5a0a

Please sign in to comment.