Skip to content

Commit 89aa0e5

Browse files
committed
added new price ratios
1 parent f987581 commit 89aa0e5

10 files changed

Lines changed: 32 additions & 9 deletions

dist/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<base href="/"> <!-- Needed for GitHub Pages deploy with domain name -->
99
<link rel="stylesheet" href="./static/style.css">
1010
<link rel="icon" type="image/png" href="./static/YoloNode-Logo-cropped-circle-plain.png">
11-
<link rel="modulepreload" href="/yolonode-8f1ecf3f190db7e.js" crossorigin=anonymous integrity="sha384-3DPpm1fpz1UvOqCiupU3Mt2YQoXHGOQAnUbo6piaaXKcME0HQNWF6iPjLhRdzxuK"><link rel="modulepreload" href="/snippets/leptos_reactive-f7acfdcc44aba8c4/inline0.js" crossorigin=anonymous integrity="sha384-d8yvubxSuBtBulKXqV75Cat9GIXWqR6k5Bgu7yCoAeqNsM97ASkJwvRGESa4d7HR"><link rel="preload" href="/yolonode-8f1ecf3f190db7e_bg.wasm" crossorigin=anonymous integrity="sha384-hBn+1Jy8RTZPJSDKU+ERP+TCMZfpgwrxAcP3An9yVcyy5Vw8JLVpmEVJLFKTBb6X" as="fetch" type="application/wasm"></head>
11+
<link rel="modulepreload" href="/yolonode-9c9d7099fc8055e1.js" crossorigin=anonymous integrity="sha384-3DPpm1fpz1UvOqCiupU3Mt2YQoXHGOQAnUbo6piaaXKcME0HQNWF6iPjLhRdzxuK"><link rel="modulepreload" href="/snippets/leptos_reactive-f7acfdcc44aba8c4/inline0.js" crossorigin=anonymous integrity="sha384-d8yvubxSuBtBulKXqV75Cat9GIXWqR6k5Bgu7yCoAeqNsM97ASkJwvRGESa4d7HR"><link rel="preload" href="/yolonode-9c9d7099fc8055e1_bg.wasm" crossorigin=anonymous integrity="sha384-JE/F5RUT36+aNF28tzcD81uXk13HT53bdwRCqMr8nimjaYtTGKFpdL9VE3kT5hR8" as="fetch" type="application/wasm"></head>
1212
<body>
1313
<div id="app"></div>
1414

@@ -42,9 +42,9 @@
4242
init();
4343
</script>
4444

45-
<script type="module" nonce="JiUIn5iBMwELaO3TQzDUjg==">
46-
import init, * as bindings from '/yolonode-8f1ecf3f190db7e.js';
47-
const wasm = await init('/yolonode-8f1ecf3f190db7e_bg.wasm');
45+
<script type="module" nonce="HWAPOD+ZIBDA7cJh67uYxw==">
46+
import init, * as bindings from '/yolonode-9c9d7099fc8055e1.js';
47+
const wasm = await init('/yolonode-9c9d7099fc8055e1_bg.wasm');
4848

4949

5050
window.wasmBindings = bindings;

dist/pkg/yolonode_bg.wasm

1.56 KB
Binary file not shown.

dist/static/lib/secret.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/static/lib/shade.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,11 @@ pub fn App(cx: Scope) -> impl IntoView {
756756
if let Ok(js_func) = call_js_function("fetchLav5RPCStatus") {
757757
js_func.call0(&JsValue::null()).ok();
758758
}
759+
760+
if let Ok(js_func) = call_js_function("fetchWhisperRPCStatus") {
761+
js_func.call0(&JsValue::null()).ok();
762+
}
763+
759764
/* if let Ok(js_func) = call_js_function("fetchAnkrRPCStatus") {
760765
js_func.call0(&JsValue::null()).ok();
761766
} */
@@ -1035,12 +1040,19 @@ pub fn App(cx: Scope) -> impl IntoView {
10351040
// Define token pairs for ratio calculation
10361041
let token_ratios = vec![
10371042
("WBTC.axl", "WETH", "BTC/ETH"),
1043+
("WBTC.axl", "SHD", "BTC/SHD"),
1044+
("WBTC.axl", "SCRT", "BTC/SCRT"),
1045+
("WBTC.axl", "ATOM", "BTC/ATOM"),
1046+
("WBTC.axl", "AMBER", "BTC/AMBER"),
1047+
("WETH", "SHD", "ETH/SHD"),
1048+
("WETH", "SCRT", "ETH/SCRT"),
1049+
("WETH", "ATOM", "ETH/ATOM"),
1050+
("ATOM", "SCRT", "ATOM/SCRT"),
10381051
("SHD", "SCRT", "SHD/SCRT"),
10391052
("SHD", "stkdSCRT", "SHD/STKD"),
10401053
("SHD", "ATOM", "SHD/ATOM"),
10411054
("AMBER", "SHD", "AMBER/SHD"),
10421055
("AMBER", "SCRT", "AMBER/SCRT"),
1043-
("ATOM", "SCRT", "ATOM/SCRT"),
10441056
];
10451057

10461058
// Generate view dynamically
@@ -1360,6 +1372,13 @@ pub fn App(cx: Scope) -> impl IntoView {
13601372
<pre id="Lav5-rpc-response" class="formatted-json">"Response: Loading..."</pre>
13611373
</div>
13621374

1375+
<div class="api-endpoint">
1376+
<h3>"WhisperNode RPC 🤐:"</h3>
1377+
<p>"https://rpc-secret.whispernode.com:443"</p>
1378+
<pre id="whisper-rpc-status" class="formatted-json">"Status: Loading..."</pre>
1379+
<pre id="whisper-rpc-response" class="formatted-json">"Response: Loading..."</pre>
1380+
</div>
1381+
13631382
</div>
13641383
</div>
13651384
},

src/secret-import.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ window.fetchLav5RPCStatus = function () {
132132
window.fetchAPIStatus("RPC", "https://secretnetwork-rpc.lavenderfive.com:443", "/status", "Lav5-rpc-status", "Lav5-rpc-response");
133133
};
134134

135+
window.fetchWhisperRPCStatus = function () {
136+
window.fetchAPIStatus("RPC", "https://rpc-secret.whispernode.com:443", "/rpc/status", "whisper-rpc-status", "whisper-rpc-response");
137+
};
138+
135139
// window.fetchAnkrRPCStatus = function () {
136140
// window.fetchAPIStatus("RPC", "https://scrt.public-rpc.com", "/rpc/status", "ankr-rpc-status", "ankr-rpc-response");
137141
// };

static/lib/secret.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/lib/shade.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)