Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Refactor `ws_transport`, `spawn_ws_transport` error types * Remove the `WebSocketError::UnderlyingError` error * Integrate the browser 'IndexedDb' database * Add wasm_indexed_db.rs * Implement the `IndexedDb` initialization * Fix the 'common' crate warnings * Remove 'allow(dead_code)' for wasm32 arch * Remove 'allow(unused_import)' for wasm32 arch * Add the 'cfg_wasm32', 'cfg_native' macros * Separated 'WasmUnwrapExt' into 'WasmUnwrapExt' and 'WasmUnwrapErrExt' * Refactor `IndexedDb` * Add `IndexedDbBuilder` * Add 'DbTransaction' * Add add/get items methods to 'IndexedDb' * Add 'IndexedDb::add_item', 'IndexedDb::get_items' * Refactor wasm_ws tests * Add 'IndexedDb::replace_item' * Add the aborted flag to the open table/transaction * Add 'DbTable::get_item_ids' * Add 'TxHistoryDb' with the implementation depending on the arch * Add common::panic_w * Add 'DbTable::clear' method * Add 'TxHistoryDb' with the implementation depending on the arch * Add 'DbTable::delete_item' method, use it on 'TxHistory::clear' * Separate 'wasm_indexed_db::tests::test_add_get_item' to itself, 'test_replace_item', 'test_delete_item', 'test_clear' * Make the reading/changing tx history non-blocking * Fix rustfmt warnings * Replace tokio::fs with async_std::fs * Use ticker and wallet_address to identify the history items
- Loading branch information