Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
kent-3 committed Dec 8, 2024
1 parent e313d69 commit 6b3eef3
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 78 deletions.
15 changes: 6 additions & 9 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ secretrs = { git = "https://github.com/kent-3/secret-rust", branch = "sdk-upgrad
#
# [patch."https://github.com/kent-3/secret-clients.git"]
# rsecret = { path = "../secret-clients/rsecret" }
#

[patch."https://github.com/kent-3/liquidity-book.git"]
lb-interfaces = { path = "../liquidity-book/packages/lb_interfaces" }
lb-libraries = { path = "../liquidity-book/packages/lb_libraries" }

# [patch.crates-io]
# keplr-sys = { path = "../keplr/keplr-sys" }
# secretrs = { path = "../secret-rust/secretrs" }
10 changes: 5 additions & 5 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@



<script type="module" nonce="OiZi0olp+19f2tfXjzRI7w==">
import init, * as bindings from 'https://kent-3.github.io/trader-crow-leptos/trader-leptos-79afb5067c2f4b0d.js';
const wasm = await init('https://kent-3.github.io/trader-crow-leptos/trader-leptos-79afb5067c2f4b0d_bg.wasm');
<script type="module" nonce="wWHEjWL4wQo0gmZDhR0BlQ==">
import init, * as bindings from 'https://kent-3.github.io/trader-crow-leptos/trader-leptos-950687fced296019.js';
const wasm = await init('https://kent-3.github.io/trader-crow-leptos/trader-leptos-950687fced296019_bg.wasm');


window.wasmBindings = bindings;
Expand All @@ -20,7 +20,7 @@

</script>
<link rel="icon" href="https://kent-3.github.io/trader-crow-leptos/favicon-e9cbd8f50cc65bf2.ico" integrity="sha384&#x2D;YobgLXwtz0GhXVUTHml49p32guapVFlEG8UpQdDVN3kekOqkQi&#x2B;qSXEpwp&#x2B;yM4BW"/>
<link rel="stylesheet" href="https://kent-3.github.io/trader-crow-leptos/input-7de22fed010afe4b.css" integrity="sha384&#x2D;MktvNmn&#x2B;4lkAUF3wSkyldyZcbv5d0BO9Q5Ymaxr2HRMYMbLT8lvcq&#x2B;rxE6mv6cKx"/>
<link rel="stylesheet" href="https://kent-3.github.io/trader-crow-leptos/input-c5c7c227f70e7ecd.css" integrity="sha384&#x2D;cYwhuCCmlDvZGFKehDPSXk6tqDu3&#x2B;kO0GkOmo5dZ3QeAXhkG6zPigVq9wKJggiom"/>

<link rel="manifest" href="/trader-crow-leptos/manifest.json" />

Expand All @@ -42,7 +42,7 @@
checkResourcesLoaded();
});
</script>
<link rel="modulepreload" href="https://kent-3.github.io/trader-crow-leptos/trader-leptos-79afb5067c2f4b0d.js" crossorigin=anonymous integrity="sha384-arnouwLSim3kHtD2DtO5udNq57HzYxezI759h+c1PlEAw0XEifko06F6Vv12CXk0"><link rel="preload" href="https://kent-3.github.io/trader-crow-leptos/trader-leptos-79afb5067c2f4b0d_bg.wasm" crossorigin=anonymous integrity="sha384-PhIohnNq2E9Y23ULyEgXcs436/Lg427KXew2U6DwBo5P4IoIcehOnXnojVytvFGe" as="fetch" type="application/wasm"></head>
<link rel="modulepreload" href="https://kent-3.github.io/trader-crow-leptos/trader-leptos-950687fced296019.js" crossorigin=anonymous integrity="sha384-HOiimDije/0yWIm6OBN9J8qeKjM73wcouwIuisJ+C5+zDEgUzRlpZY1OxhQ25r7Y"><link rel="preload" href="https://kent-3.github.io/trader-crow-leptos/trader-leptos-950687fced296019_bg.wasm" crossorigin=anonymous integrity="sha384-wkoI2Jg9jzTdh0Lx1T24IG+nDMT7ZboEYQmEnZnhdoBfh1Z3rgfnLWb7MoWxcp3o" as="fetch" type="application/wasm"></head>

<style>
.spinner {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-filter {
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
Expand Down
Binary file removed dist/trader-leptos-79afb5067c2f4b0d_bg.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1280,27 +1280,27 @@ function __wbg_get_imports() {
const ret = false;
return ret;
};
imports.wbg.__wbindgen_closure_wrapper2989 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper3003 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 224, __wbg_adapter_53);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2995 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper3009 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 224, __wbg_adapter_50);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper3787 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper3799 = function(arg0, arg1, arg2) {
const ret = makeClosure(arg0, arg1, 255, __wbg_adapter_60);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper3797 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper3809 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 436, __wbg_adapter_53);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper537 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper532 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 220, __wbg_adapter_50);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper542 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper537 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 220, __wbg_adapter_53);
return addHeapObject(ret);
};
Expand Down
Binary file added dist/trader-leptos-950687fced296019_bg.wasm
Binary file not shown.
48 changes: 1 addition & 47 deletions public/lb_contracts_dev.json
Original file line number Diff line number Diff line change
@@ -1,47 +1 @@
{
"admin_auth": {
"address": "secret1p4rwgy4xwu0qszesakmx92hgkxynswhezq25e9",
"code_hash": "99d0cf3119b5bf51cf2d97c5c0ea23a267bbbc46934c3d87f265756a55103c0f",
"code_id": 2
},
"query_auth": {
"address": "secret1me5hu4s9ypkspkg5eazy4sv2ncqkrsw9rj4auh",
"code_hash": "ed32ac91e689afd6a6be6e21276df0c727803b288c4de5836bd6eab2d2cfb4d0",
"code_id": 3
},
"snip20": {
"address": "secret1rygwr49jhksun3zusyj4yj5d4cn25la7yfsaac",
"code_hash": "af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e",
"code_id": 4
},
"snip25": {
"address": "secret1uvpkfj7war2wka7pq0wwvcftes3ktv8m8d6xw0",
"code_hash": "9a00ca4ad505e9be7e6e6dddf8d939b7ec7e9ac8e109c8681f10db9cacb36d42",
"code_id": 5
},
"lb_factory": {
"address": "secret12fes0hm507jvd0vhhanckuqf3gxu82h8pjrpny",
"code_hash": "ea8b6c1d50ef182030a4c206793d12229e6728dcb3245fd0d8364284b4ba477a",
"code_id": 6
},
"lb_pair": {
"address": "secret1y3ujlekamvfra8ha58xu75pe0ytuszcwtfcgvy",
"code_hash": "4220ad065a7720b0e30ec7fea979f97abe88da4290ce9c9268202d7ab53a8c34",
"code_id": 7
},
"lb_token": {
"address": "",
"code_hash": "d81bff4d7df2246fe937c7f0825e3f3262e6e0a340627743b8e4067e413dc951",
"code_id": 8
},
"lb_router": {
"address": "",
"code_hash": "7bd0a883248f0564aa9b80f40fb831e7ab4319ee00ca3325f0b639bd6ad8dff6",
"code_id": 9
},
"lb_staking": {
"address": "",
"code_hash": "ded8699851b73863497b8a63a2a0e6b6441507406ae96de1f0d21a2e0ff5ca42",
"code_id": 10
}
}
{"admin_auth":{"address":"secret1wy2zy8a6s883hyj9zartjrgltwh54d4xkg6hkw","code_hash":"99d0cf3119b5bf51cf2d97c5c0ea23a267bbbc46934c3d87f265756a55103c0f","code_id":32},"query_auth":{"address":"secret1vtvj4wkzkcgw0md09qx40rk8vaq8n0pee46uz2","code_hash":"ed32ac91e689afd6a6be6e21276df0c727803b288c4de5836bd6eab2d2cfb4d0","code_id":33},"snip20":{"address":"secret1vwrl64g3rekcmqa2vd8hkl6d67lupn8jcnh5f5","code_hash":"af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e","code_id":35},"snip25":{"address":"secret16em8ptlwzm783lrme0cf4f8v7h5xkzn8aalzgm","code_hash":"9a00ca4ad505e9be7e6e6dddf8d939b7ec7e9ac8e109c8681f10db9cacb36d42","code_id":36},"lb_factory":{"address":"secret1nfkddac5l0e2k4gwk0m7hyx4qru4wlkmgdrq5d","code_hash":"91e0e3e9767ae5054e46d8d22337d8c56f2253a520366a2c09045a34cf191606","code_id":37},"lb_pair":{"address":"secret1rup2tx3hhwtv3ky9006lava9cc2p7as8ek7l88","code_hash":"6b4c948986af352d513f3604da32f613c8bac204550942ac548474d17ac3c10b","code_id":38},"lb_token":{"address":"","code_hash":"54386fc68452f78974896f5807d02b1d0203a952d5427b15a21f3bc8ee2aeb18","code_id":39},"lb_router":{"address":"","code_hash":"c4fb05ac146334275f752b20e75f2c05775d1ad0486ebaa73f2f0f641926c38e","code_id":40},"lb_staking":{"address":"","code_hash":"4e6d5a05e0364eebecc867488f96388fbc54b800799c7b4b915f0fd5c4755d02","code_id":41}}
2 changes: 1 addition & 1 deletion public/lb_contracts_pulsar.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"admin_auth":{"address":"secret19v0pxannjjtcj6c5upyvgq6xj758pa0knd9jmw","code_hash":"99d0cf3119b5bf51cf2d97c5c0ea23a267bbbc46934c3d87f265756a55103c0f","code_id":11950},"query_auth":{"address":"secret1gytc78zmjl5f6skkse6spee9wcynqj6sm84jy9","code_hash":"ed32ac91e689afd6a6be6e21276df0c727803b288c4de5836bd6eab2d2cfb4d0","code_id":11951},"snip20":{"address":"secret14p4av2qfchw3zxum6ykh7fylk94zynzphfdhd3","code_hash":"af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e","code_id":11952},"snip25":{"address":"secret1kzmxsew8afush4gp2307ly5fdjryj40mmt59h2","code_hash":"9a00ca4ad505e9be7e6e6dddf8d939b7ec7e9ac8e109c8681f10db9cacb36d42","code_id":11953},"lb_factory":{"address":"secret102e6mvht7p0c2rdlvrj68qc79xmnecv7tvk70h","code_hash":"e34633d7bb6a7c967347413609001c27c98ea9e6c4e061f5e549d7604e3c2eb0","code_id":11954},"lb_pair":{"address":"secret1wpgh9xgmj3mfr3ejlc75p4n36p24r6tvr8e25w","code_hash":"df7196ee406d6f0a8fae9912cfdc5ad0654cb1f7bdc50adf33adbd0184eae33e","code_id":11955},"lb_token":{"address":"","code_hash":"087d0f4af822fd24b605080b488bb331507d827bb701346452e400d90f591e62","code_id":11956},"lb_router":{"address":"","code_hash":"dbeea5c90ebf3bdcf44f80942cf99851acd7bfe741a6655be26a27b34a9eb910","code_id":11957},"lb_staking":{"address":"","code_hash":"4786d9c5ff3cab7809c16aa2c13dec1de958146a28534ac64aad9f8d1daeeee1","code_id":11958}}
{"admin_auth":{"address":"secret1634r5qae0ksls9p3tcj0y3t938z8hg3p0l8tln","code_hash":"99d0cf3119b5bf51cf2d97c5c0ea23a267bbbc46934c3d87f265756a55103c0f","code_id":12458},"query_auth":{"address":"secret1398vmjvwfc08qqypl63282dy7j6d3vvzrs86xy","code_hash":"ed32ac91e689afd6a6be6e21276df0c727803b288c4de5836bd6eab2d2cfb4d0","code_id":12459},"snip20":{"address":"secret1j907jqttj5dlxvjcmu8ccxq3wlvjytk505sz7a","code_hash":"af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e","code_id":12461},"snip25":{"address":"secret13v2kpl9wul8xkd5qps4xskpk6kcfcz8y23rwa8","code_hash":"9a00ca4ad505e9be7e6e6dddf8d939b7ec7e9ac8e109c8681f10db9cacb36d42","code_id":12462},"lb_factory":{"address":"secret1w55qsgq4argf3n8xt33amm593c3ecshxllujj7","code_hash":"91e0e3e9767ae5054e46d8d22337d8c56f2253a520366a2c09045a34cf191606","code_id":12463},"lb_pair":{"address":"secret1yzz4n7hkj8wzzeclanmhj5j8tjgntk3x3t3s58","code_hash":"6b4c948986af352d513f3604da32f613c8bac204550942ac548474d17ac3c10b","code_id":12464},"lb_token":{"address":"","code_hash":"54386fc68452f78974896f5807d02b1d0203a952d5427b15a21f3bc8ee2aeb18","code_id":12465},"lb_router":{"address":"","code_hash":"c4fb05ac146334275f752b20e75f2c05775d1ad0486ebaa73f2f0f641926c38e","code_id":12466},"lb_staking":{"address":"","code_hash":"4e6d5a05e0364eebecc867488f96388fbc54b800799c7b4b915f0fd5c4755d02","code_id":12467}}
12 changes: 8 additions & 4 deletions src/components/suggest_chains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,15 @@ pub fn SuggestChains() -> impl IntoView {

view! {
<div class="suggest-chains space-y-2 w-full">
<div class="text-center text-sm font-bold">"Add Chains to Keplr"</div>
<div class="text-center text-sm font-bold">"Add Chains to Keplr"</div>
<div class="flex gap-3">
<button class="w-full" on:click=suggest_testnet>"pulsar-3"</button>
<button class="w-full" on:click=suggest_devnet>"secretdev-1"</button>
</div>
<button class="w-full" on:click=suggest_testnet>
"pulsar-3"
</button>
<button class="w-full" on:click=suggest_devnet>
"secretdev-1"
</button>
</div>
</div>
}
}
8 changes: 4 additions & 4 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ pub struct Token {
pub static DEVNET_IO_PUBKEY: [u8; 32] =
hex!("c74e52edac6cdffb50f876927140766fb81b1aa7ae89804a1666df84d9cf9e73");

pub static CHAIN_ID: &str = "secretdev-1";
pub static GRPC_URL: &str = "http://localhost:1317";
// pub static CHAIN_ID: &str = "secretdev-1";
// pub static GRPC_URL: &str = "http://localhost:1317";

// pub static CHAIN_ID: &str = "pulsar-3";
pub static CHAIN_ID: &str = "pulsar-3";
// pub static GRPC_URL: &str = "https://api.pulsar.scrttestnet.com";
// pub static GRPC_URL: &str = "https://lcd.testnet.secretsaturn.net";
pub static GRPC_URL: &str = "https://grpc.testnet.secretsaturn.net";

// pub static CHAIN_ID: &str = "secret-4";
// pub static LCD_URL: &str = "https://lcd.mainnet.secretsaturn.net";
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use tonic_web_wasm_client::Client;
use tracing::{debug, error, info, trace};
use web_sys::{js_sys, wasm_bindgen::JsValue};

mod batch_query;
mod components;
mod constants;
mod error;
Expand Down Expand Up @@ -300,7 +301,7 @@ pub fn OptionsMenu(
<button on:click=toggle_menu class="self-stretch">
"Close Menu"
</button>
<SuggestChains/>
<SuggestChains />
<div>"Node Configuration"</div>
<form class="flex flex-col gap-4" on:submit=on_submit>
<input type="text" value=GRPC_URL node_ref=url_input class="w-64" />
Expand Down

0 comments on commit 6b3eef3

Please sign in to comment.