From 76b1636e79c864e0729fc303d5af4bd8cf96ec35 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 23 Jul 2023 13:31:10 +0800 Subject: [PATCH 01/20] update stride to consummer chain --- chains/mainnet/stride.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chains/mainnet/stride.json b/chains/mainnet/stride.json index 8f839e69..3a965a47 100644 --- a/chains/mainnet/stride.json +++ b/chains/mainnet/stride.json @@ -2,7 +2,10 @@ "chain_name": "stride", "api": ["https://stride-api.polkachu.com", "https://api.stride.nodestake.top", "https://api-stride.nodeist.net", "https://stride.api.kjnodes.com"], "rpc": ["https://stride-rpc.polkachu.com:443", "https://rpc.stride.nodestake.top", "https://rpc-stride.nodeist.net", "https://stride.rpc.kjnodes.com:443"], - "snapshot_provider": "", + "provider_chain": { + "api": ["https://api-cosmoshub-ia.cosmosia.notional.ventures"] + }, + "features": ["dashboard","governance", "blocks", "ibc", "cosmwasm", "uptime", "parameters", "state-sync", "consensus", "supply", "widget"], "sdk_version": "0.45.5", "coin_type": "118", "min_tx_fee": "800", From 6b64664d2a5f4c43ac7843f7ce834d7354f7d32d Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Mon, 24 Jul 2023 12:11:07 -0600 Subject: [PATCH 02/20] update qwoyn logo filename --- public/logos/{Qwoyn.png => qwoyn.png} | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename public/logos/{Qwoyn.png => qwoyn.png} (100%) diff --git a/public/logos/Qwoyn.png b/public/logos/qwoyn.png similarity index 100% rename from public/logos/Qwoyn.png rename to public/logos/qwoyn.png From 86457a9a631b0bfe3b494391c13f812c3c657461 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 7 Aug 2023 09:46:51 +0800 Subject: [PATCH 03/20] use int instead of enum --- src/modules/[chain]/ibc/connection/[connection_id].vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/[chain]/ibc/connection/[connection_id].vue b/src/modules/[chain]/ibc/connection/[connection_id].vue index 1689a6f5..ce6f484d 100644 --- a/src/modules/[chain]/ibc/connection/[connection_id].vue +++ b/src/modules/[chain]/ibc/connection/[connection_id].vue @@ -68,7 +68,7 @@ function fetchSendingTxs(channel: string, port: string, pageNum = 0) { channel_id.value = channel port_id.value = port txs.value = {} as PaginatedTxs - chainStore.rpc.getTxs("?order_by=ORDER_BY_DESC&events=send_packet.packet_src_channel='{channel}'&events=send_packet.packet_src_port='{port}'", { channel, port }, page.value).then(res => { + chainStore.rpc.getTxs("?order_by=2&events=send_packet.packet_src_channel='{channel}'&events=send_packet.packet_src_port='{port}'", { channel, port }, page.value).then(res => { txs.value = res }) .finally(() => loading.value = false) @@ -80,7 +80,7 @@ function fetchRecevingTxs(channel: string, port: string, pageNum = 0) { channel_id.value = channel port_id.value = port txs.value = {} as PaginatedTxs - chainStore.rpc.getTxs("?order_by=ORDER_BY_DESC&events=recv_packet.packet_dst_channel='{channel}'&events=recv_packet.packet_dst_port='{port}'", { channel, port }, page.value).then(res => { + chainStore.rpc.getTxs("?order_by=2&events=recv_packet.packet_dst_channel='{channel}'&events=recv_packet.packet_dst_port='{port}'", { channel, port }, page.value).then(res => { txs.value = res }) .finally(() => loading.value = false) From 2e71900f76e05f3954e64f0c8531215ae66d9a0e Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 7 Aug 2023 11:20:18 +0800 Subject: [PATCH 04/20] feat: add txs view for wasm contracts --- src/components/PaginationBar.vue | 2 +- .../[chain]/cosmwasm/[code_id]/contracts.vue | 10 ++- .../cosmwasm/[code_id]/transactions.vue | 73 +++++++++++++++++++ src/plugins/i18n/locales/en.json | 1 + 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 src/modules/[chain]/cosmwasm/[code_id]/transactions.vue diff --git a/src/components/PaginationBar.vue b/src/components/PaginationBar.vue index 11e714cb..1b5d28f9 100644 --- a/src/components/PaginationBar.vue +++ b/src/components/PaginationBar.vue @@ -14,8 +14,8 @@ const pages = computed(() => { if (total > 0 && props.limit && total > props.limit) { let page = 0 while (true) { - if (page * props.limit > total) break page += 1 + if (page * props.limit > total) break if (total / props.limit > 10 && page > showSize && page < (total / props.limit - showSize + 1)) { if (!(page >= current.value - 1 && page <= current.value + 1)) { continue diff --git a/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue b/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue index ea566771..0119a7d9 100644 --- a/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue +++ b/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue @@ -7,7 +7,7 @@ import type { PaginabledContracts, } from '../types'; import DynamicComponent from '@/components/dynamic/DynamicComponent.vue'; -import { useBankStore, useBlockchain, useFormatter, useTxDialog } from '@/stores'; +import { useBlockchain, useFormatter, useTxDialog } from '@/stores'; import PaginationBar from '@/components/PaginationBar.vue'; import { PageRequest, type PaginatedBalances } from '@/types'; @@ -159,11 +159,17 @@ const result = ref(''); + + {{ $t('cosmwasm.btn_transactions') }} + diff --git a/src/modules/[chain]/cosmwasm/[code_id]/transactions.vue b/src/modules/[chain]/cosmwasm/[code_id]/transactions.vue new file mode 100644 index 00000000..30dcb0a1 --- /dev/null +++ b/src/modules/[chain]/cosmwasm/[code_id]/transactions.vue @@ -0,0 +1,73 @@ + + \ No newline at end of file diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 7211288e..03d71723 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -113,6 +113,7 @@ "btn_fees": "Fees", "btn_query": "Query", "btn_execute": "Execute", + "btn_transactions": "Txs", "instantiate_contract": "Instantiate Contract", "contract_detail": "Contract Detail", "contract_balances": "Contract Balances", From e1684b2d77c337d6a6364ce24e36b505037ae386 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 8 Aug 2023 17:34:31 +0800 Subject: [PATCH 05/20] imp: block gap is too small on small screen. --- src/components/UptimeBar.vue | 3 +-- src/modules/[chain]/uptime/index.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/UptimeBar.vue b/src/components/UptimeBar.vue index 2481eb6f..6106b86c 100644 --- a/src/components/UptimeBar.vue +++ b/src/components/UptimeBar.vue @@ -25,12 +25,11 @@ const bars = computed(() => { });