Skip to content

Commit

Permalink
Use client library (#8)
Browse files Browse the repository at this point in the history
* `client-worker`: update to `linera-protocol` with a client library

* `client-worker`: replace in-memory wallet storage with `localStorage`
  • Loading branch information
Twey authored Aug 17, 2024
1 parent 71ed7c6 commit d3a390b
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 858 deletions.
2 changes: 2 additions & 0 deletions client-worker/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "wasm32-unknown-unknown"
10 changes: 5 additions & 5 deletions client-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ features = ["web"]
path = "../linera-protocol/linera-chain"
features = ["web"]

[dependencies.linera-client]
path = "../linera-protocol/linera-client"
default-features = false
features = ["web", "local-storage"]

[dependencies.linera-core]
path = "../linera-protocol/linera-core"
features = ["web", "wasmer"]
Expand Down Expand Up @@ -63,8 +68,3 @@ features = [
[dependencies.getrandom]
version = "*"
features = ["js"]

[patch.crates-io.wasmer]
version = "4.3.0-alpha.1"
git = "https://github.com/Twey/wasmer"
branch = "non-send-environments"
173 changes: 0 additions & 173 deletions client-worker/src/config.rs

This file was deleted.

78 changes: 0 additions & 78 deletions client-worker/src/genesis_config.rs

This file was deleted.

Loading

0 comments on commit d3a390b

Please sign in to comment.