Skip to content

Commit

Permalink
Feat/indexed db transaction store (kaspanet#392)
Browse files Browse the repository at this point in the history
* Add indexed db dependencies

* Implementation progress for load_single

* progress idb transaction store

* use `Arc<Inner>` pattern

* implementing try from jsvalue for types to be stored in idb

* try from js value for utxo record

* remove manual parsing and use borsh data to deserialize

* indexdb progress

* indexdb store and load multiple

* indexdb remove, store tx note, store tx metadata

* Add encryptable to transaction record for jsvalue

* Remove logs

* unnecessary import removed

* Move from/to js value to idb implementation itself

* fix some of the clippy warnings

* fix all clippy warnings

---------

Co-authored-by: aspect <anton.yemelyanov@gmail.com>
  • Loading branch information
2 people authored and KashProtocol committed Jan 23, 2024
1 parent 3711480 commit 9687bcf
Show file tree
Hide file tree
Showing 4 changed files with 455 additions and 27 deletions.
102 changes: 102 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ tower-http = { version = "0.4.4", features = [
tower = "0.4.7"
hyper = "0.14.27"
chrono = "0.4.31"
indexed_db_futures = "0.4.1"
# workflow dependencies that are not a part of core libraries

# workflow-perf-monitor = { path = "../../../workflow-perf-monitor-rs" }
Expand Down
1 change: 1 addition & 0 deletions wallet/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ workflow-store.workspace = true
workflow-wasm.workspace = true
xxhash-rust.workspace = true
zeroize.workspace = true
indexed_db_futures.workspace = true

[dependencies.web-sys]
workspace = true
Expand Down
Loading

0 comments on commit 9687bcf

Please sign in to comment.