Skip to content

Commit

Permalink
Merge pull request #9 from unionlabs/test-deployment
Browse files Browse the repository at this point in the history
fix(explorer): test new deployment
  • Loading branch information
cor authored Nov 26, 2024
2 parents 69c56df + c941f31 commit 804d858
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-explorer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ jobs:
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_API_TOKEN }}
run: npx --yes wrangler@latest pages --project-name="explorer" --branch="main" deploy result
run: npx --yes wrangler@latest pages --project-name="explorer-testnet-9" --branch="main" deploy result
24 changes: 24 additions & 0 deletions src/assets/chains/mainnet/union-testnet-9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"chain_name": "union",
"api": [
"https://rest-testnet-9-cors-proxy.unionlabs.workers.dev/"
],
"rpc": [
"https://rpc.union-testnet-9.cor.systems"
],
"sdk_version": "0.47.0",
"addr_prefix": "union",
"min_tx_fee": "0",
"coin_type": "1337",
"theme_color": "#A0ECFD",
"logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/testnets/uniontestnet/images/union.png",
"assets": [
{
"symbol": "UNO",
"base": "uuno",
"exponent": 9,
"coingecko_id": "uno",
"logo": "https://raw.githubusercontent.com/Agoric/agoric-sdk/master/packages/wallet/ui/public/tokens/BLD.svg"
}
]
}
24 changes: 24 additions & 0 deletions src/assets/chains/testnet/union-testnet-9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"chain_name": "union",
"api": [
"https://rest-testnet-9-cors-proxy.unionlabs.workers.dev/"
],
"rpc": [
"https://rpc.union-testnet-9.cor.systems"
],
"sdk_version": "0.47.0",
"addr_prefix": "union",
"min_tx_fee": "0",
"coin_type": "1337",
"theme_color": "#A0ECFD",
"logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/testnets/uniontestnet/images/union.png",
"assets": [
{
"symbol": "UNO",
"base": "uuno",
"exponent": 9,
"coingecko_id": "uno",
"logo": "https://raw.githubusercontent.com/Agoric/agoric-sdk/master/packages/wallet/ui/public/tokens/BLD.svg"
}
]
}
2 changes: 2 additions & 0 deletions src/layouts/components/ChainProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const chainStore = useBlockchain();
const baseStore = useBaseStore();
chainStore.initial();
const router = useRouter();
function changeEndpoint(item: Endpoint) {
chainStore.setRestEndpoint(item);
if (chainStore.current) router.push(`/${chainStore.current.chainName}`);
}
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/useDashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineStore } from 'pinia';
import { get } from '../libs/http';
import { useBlockchain } from './useBlockchain';
import type { Asset } from '@ping-pub/chain-registry-client/dist/types';
import unionChainConfig from '../assets/chains/testnet/union-testnet-8.json' with { type: 'json' };
import unionChainConfig from '../assets/chains/testnet/union-testnet-9.json' with { type: 'json' };
console.info(unionChainConfig)

export enum EndpointType {
Expand Down

0 comments on commit 804d858

Please sign in to comment.