diff --git a/package.json b/package.json index 476a1414..46d9d45e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "md-editor-v3": "^2.8.1", "numeral": "^2.0.6", "osmojs": "^14.0.0-rc.0", - "ping-widget": "^0.0.9", + "ping-widget": "^0.0.13", "pinia": "^2.0.28", "postcss": "^8.4.23", "prismjs": "^1.29.0", diff --git a/src/components/Countdown.vue b/src/components/Countdown.vue index 4e722750..588cb085 100644 --- a/src/components/Countdown.vue +++ b/src/components/Countdown.vue @@ -1,17 +1,17 @@ diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index 6a5c694c..7a4bc4e0 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -1,13 +1,19 @@ diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 27e4ee18..5476038c 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -110,11 +110,15 @@ const changeOpen = (index: Number) => { $route.path === el?.to?.path && item?.title !== 'Favorite', }" > - +
{ - -
diff --git a/src/layouts/components/NavBarWallet.vue b/src/layouts/components/NavBarWallet.vue index 558ab460..8e1d331e 100644 --- a/src/layouts/components/NavBarWallet.vue +++ b/src/layouts/components/NavBarWallet.vue @@ -5,6 +5,9 @@ const walletStore = useWalletStore(); walletStore.$subscribe((m, s) => { console.log(m, s); }); +function walletStateChange(res: any) { + walletStore.setConnectedWallet(res.detail?.value); +} let showCopyToast = ref(0); async function copyAdress(address: string) { try { @@ -89,6 +92,7 @@ const addressChange = computed(() => { + + + + \ No newline at end of file diff --git a/src/layouts/components/NavFooter.vue b/src/layouts/components/NavFooter.vue index c88fecc6..13c5fc33 100644 --- a/src/layouts/components/NavFooter.vue +++ b/src/layouts/components/NavFooter.vue @@ -1,11 +1,3 @@ - - diff --git a/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue b/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue index ea610179..6e30eced 100644 --- a/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue +++ b/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue @@ -29,17 +29,14 @@ const selected = ref(''); function showInfo(address: string) { wasmStore.wasmClient.getWasmContracts(address).then((x) => { info.value = x.contract_info; - // infoDialog.value = true; }); } function showState(address: string) { wasmStore.wasmClient.getWasmContractStates(address).then((x) => { state.value = x; - stateDialog.value = true; }); } function showQuery(address: string) { - queryDialog.value = true; selected.value = address; query.value = ''; result.value = ''; @@ -114,18 +111,20 @@ const result = ref(''); >contract - - + @@ -153,47 +152,92 @@ const result = ref(''); - - - Contract States - - - - {{ format.hexToString(v.key) }} - - - {{ format.base64ToString(v.value) }} - - - - - Close Dialog - - - + + - - - Query Contract - - + + diff --git a/src/modules/[chain]/cosmwasm/index.vue b/src/modules/[chain]/cosmwasm/index.vue index 3d43f10d..9f8bb287 100644 --- a/src/modules/[chain]/cosmwasm/index.vue +++ b/src/modules/[chain]/cosmwasm/index.vue @@ -17,10 +17,10 @@ wasmStore.wasmClient.getWasmCodeList().then((x) => {

Cosmos Wasm Smart Contracts

- +
- + @@ -32,10 +32,11 @@ wasmStore.wasmClient.getWasmCodeList().then((x) => {
Code IdCode Id Code Hash Creator Permissions
- {{ v.data_hash }} -
+ {{ v.data_hash }} +
{{ v.creator }} diff --git a/src/modules/[chain]/gov/index.vue b/src/modules/[chain]/gov/index.vue index 407751b2..b6c528a8 100644 --- a/src/modules/[chain]/gov/index.vue +++ b/src/modules/[chain]/gov/index.vue @@ -41,7 +41,7 @@ const changeTab = (val: '2' | '3' | '4') => { >Rejected - + diff --git a/src/modules/[chain]/ibc/[connection_id].vue b/src/modules/[chain]/ibc/[connection_id].vue index f592eb63..752c3f34 100644 --- a/src/modules/[chain]/ibc/[connection_id].vue +++ b/src/modules/[chain]/ibc/[connection_id].vue @@ -85,7 +85,7 @@ function color(v: string) {

IBC Client State

- +
@@ -93,12 +93,17 @@ function color(v: string) { - + - + @@ -106,11 +111,11 @@ function color(v: string) { - + - + @@ -122,11 +127,11 @@ function color(v: string) { - + - +
update after expiry:
allow_update_after_misbehaviour:{{ clientState.client_state?.allow_update_after_misbehaviour }} + {{ clientState.client_state?.allow_update_after_misbehaviour }} +
trust_level: {{ clientState.client_state?.trust_level?.numerator }}/{{ - clientState.client_state?.trust_level?.denominator}} + {{ clientState.client_state?.trust_level?.numerator }}/{{ + clientState.client_state?.trust_level?.denominator + }} +
trusting_period:
unbonding_period: {{ clientState.client_state?.unbonding_period }}{{ clientState.client_state?.unbonding_period }}
frozen_height:{{ clientState.client_state?.frozen_height }} {{ clientState.client_state?.frozen_height }}
latest_height:
upgrade_path:{{ clientState.client_state?.upgrade_path }} {{ clientState.client_state?.upgrade_path }}
max_clock_drift:{{ clientState.client_state?.max_clock_drift }} {{ clientState.client_state?.max_clock_drift }}
diff --git a/src/modules/[chain]/ibc/index.vue b/src/modules/[chain]/ibc/index.vue index bef075ff..1456a2ea 100644 --- a/src/modules/[chain]/ibc/index.vue +++ b/src/modules/[chain]/ibc/index.vue @@ -25,7 +25,7 @@ function color(v: string) {

IBC Connections

- +
@@ -49,7 +49,7 @@ function color(v: string) {
Connection Id{{ v.delay_period }}
{ return store.coinInfo; }); @@ -32,7 +31,6 @@ onMounted(() => { store.loadDashboard(); walletStore.loadMyAsset(); }); - const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]); blockchain.$subscribe((m, s) => { @@ -246,10 +244,11 @@ const color = computed(() => {
{{ walletStore.currentAddress || 'Not Connected' }} - MoreMore
{
{{ format.formatToken(item?.balance) }} {{ - format.formatToken({ - denom: item?.balance?.denom, - amount: item?.delegation?.shares, - }) + format.formatToken( + walletStore?.rewards?.rewards?.find( + (el) => + el?.validator_address === + item?.delegation?.validator_address + )?.reward?.[0] + ) }} @@ -343,12 +345,21 @@ const color = computed(() => {
- + Receive - +
+ + + diff --git a/src/modules/[chain]/staking/[validator].vue b/src/modules/[chain]/staking/[validator].vue index d4d3319a..093fb843 100644 --- a/src/modules/[chain]/staking/[validator].vue +++ b/src/modules/[chain]/staking/[validator].vue @@ -1,6 +1,5 @@