From 13910e184ce01e59a537deec8dd57cab5a4ceeba Mon Sep 17 00:00:00 2001
From: kent-3 <100624004+kent-3@users.noreply.github.com>
Date: Mon, 19 Aug 2024 00:58:16 -0400
Subject: [PATCH] good improvements
---
Cargo.lock | 16 +-
Cargo.toml | 3 +-
dist/index.html | 12 +-
...05a75dd.css => input-19d3d6031e6224f1.css} | 5 +
...d.js => secret-leptos-1cce32ade9d28a25.js} | 62 +++--
dist/secret-leptos-1cce32ade9d28a25_bg.wasm | Bin 0 -> 1478946 bytes
dist/secret-leptos-a6c6fd9b4d31a18d_bg.wasm | Bin 1477484 -> 0 bytes
src/error.rs | 16 +-
src/keplr/error.rs | 17 ++
src/keplr/keplr.rs | 250 ++++++++++++++++++
src/keplr/mod.rs | 5 +
src/keplr/tests.rs | 36 +--
src/lib.rs | 55 ++--
src/prelude.rs | 3 +
src/state.rs | 11 +-
src/{utils/mod.rs => utils.rs} | 2 +-
16 files changed, 386 insertions(+), 107 deletions(-)
rename dist/{input-1e281e73305a75dd.css => input-19d3d6031e6224f1.css} (99%)
rename dist/{secret-leptos-a6c6fd9b4d31a18d.js => secret-leptos-1cce32ade9d28a25.js} (98%)
create mode 100644 dist/secret-leptos-1cce32ade9d28a25_bg.wasm
delete mode 100644 dist/secret-leptos-a6c6fd9b4d31a18d_bg.wasm
create mode 100644 src/keplr/error.rs
create mode 100644 src/keplr/keplr.rs
create mode 100644 src/prelude.rs
rename src/{utils/mod.rs => utils.rs} (76%)
diff --git a/Cargo.lock b/Cargo.lock
index 02d37a3..023aa9d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1761,19 +1761,6 @@ dependencies = [
"sha2 0.10.8",
]
-[[package]]
-name = "keplr"
-version = "0.1.0"
-dependencies = [
- "base64 0.22.1",
- "js-sys",
- "keplr-sys",
- "serde",
- "serde-wasm-bindgen 0.6.5",
- "thiserror",
- "web-sys",
-]
-
[[package]]
name = "keplr-sys"
version = "0.1.0"
@@ -2868,7 +2855,7 @@ dependencies = [
"futures",
"git2",
"js-sys",
- "keplr",
+ "keplr-sys",
"leptos",
"leptos_meta",
"leptos_router",
@@ -2887,6 +2874,7 @@ dependencies = [
"tracing-subscriber-wasm",
"wasm-bindgen",
"wasm-bindgen-futures",
+ "web-sys",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index d6ba639..4f017e1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -58,6 +58,7 @@ tonic = { version = "0.11.0", default-features = false }
# Web support
console_error_panic_hook = "0.1.7"
js-sys = "0.3"
+web-sys = "0.3"
# gloo-net = "0.6"
# gloo-storage = "0.3"
@@ -82,6 +83,6 @@ tracing-subscriber = "0.3"
tracing-subscriber-wasm = "0.1"
# Local
-keplr = { path = "../keplr/keplr" }
+keplr-sys = { path = "../keplr/keplr-sys" }
rsecret = { path = "../secret-clients/rsecret" }
secretrs = { version = "0.1" }
diff --git a/dist/index.html b/dist/index.html
index 2f122cd..4d34108 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -6,9 +6,9 @@
-
-
+
-
-
+
+