Skip to content

Commit

Permalink
fix(app): rename urls to 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Jan 3, 2025
1 parent 3c2f524 commit d2b4492
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/src/lib/components/TransferFrom/transfer/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {FormFields} from "$lib/components/TransferFrom/transfer/intents.ts"
export const TRANSFER_DEBUG = true

export const defaultParams: FormFields = {
source: "union-testnet-8",
source: "union-testnet-9",
destination: "",
asset: "",
receiver: "",
Expand Down
2 changes: 1 addition & 1 deletion app/src/lib/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const CHAIN_MAP: Record<
> = {
1: { name: "sepolia", chainId: "11155111", ecosystem: "evm" },
5: { name: "stargaze", chainId: "elgafar-1", ecosystem: "cosmos" },
4: { name: "union", chainId: "union-testnet-8", ecosystem: "cosmos" },
4: { name: "union", chainId: "union-testnet-9", ecosystem: "cosmos" },
6: { name: "osmosis", chainId: "osmo-test-5", ecosystem: "cosmos" },
7: { name: "celestia", chainId: "mocha-4", ecosystem: "cosmos" },
8: { name: "berachain", chainId: "80085", ecosystem: "evm" },
Expand Down
6 changes: 3 additions & 3 deletions app/src/lib/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const URLS = () => {
/**
* TODO: add array of RPCs and pass to `viem`'s `fallback` array
*/
RPC: "https://rpc.testnet-8.union.build",
RPC: "https://rpc.testnet-9.union.build",
// REST: "https://api.testnet.bonlulu.uno"
REST: "https://rest.testnet-8.union.build/"
REST: "https://rest.testnet-9.union.build/"
},
SEPOLIA: {
RPC: "https://rpc.ankr.com/eth_sepolia/6c72c8d164912bed4694cb882fc4ca55574126511a4f5f66828a53fa2448a20a",
Expand All @@ -40,7 +40,7 @@ export type Chain = (typeof CHAINS)[number]

export const CHAIN = {
UNION: {
ID: "union-testnet-8",
ID: "union-testnet-9",
NAME: "Union Testnet"
},
SEPOLIA: {
Expand Down
16 changes: 8 additions & 8 deletions app/src/lib/wallet/cosmos/chain-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ interface LeapExtendedInfo extends LeapChainInfo {

//todo handle this for main-net
export const unionKeplrChainInfo: KeplrChainInfo = {
chainId: "union-testnet-8",
chainId: "union-testnet-9",
chainName: "uniontestnet",
rest: "https://rest.testnet-8.union.build",
rpc: "https://rpc.testnet-8.union.build",
rest: "https://rest.testnet-9.union.build",
rpc: "https://rpc.testnet-9.union.build",
bip44: {
coinType: 118
},
Expand Down Expand Up @@ -58,10 +58,10 @@ export const unionKeplrChainInfo: KeplrChainInfo = {

//todo handle this for main-net
export const unionLeapChainInfo: LeapExtendedInfo = {
chainId: "union-testnet-8",
chainId: "union-testnet-9",
chainName: "uniontestnet",
rest: "https://rest.testnet-8.union.build",
rpc: "https://rpc.testnet-8.union.build",
rest: "https://rest.testnet-9.union.build",
rpc: "https://rpc.testnet-9.union.build",
bip44: {
coinType: 118
},
Expand Down Expand Up @@ -232,12 +232,12 @@ export const strideLeapChainInfo: LeapExtendedInfo = {
}

const keplrChainInfoMap: Record<string, KeplrChainInfo> = {
"union-testnet-8": unionKeplrChainInfo,
"union-testnet-9": unionKeplrChainInfo,
"stride-internal-1": strideKeplrChainInfo
}

const leapChainInfoMap: Record<string, LeapChainInfo> = {
"union-testnet-8": unionLeapChainInfo,
"union-testnet-9": unionLeapChainInfo,
"stride-internal-1": strideLeapChainInfo
}

Expand Down
8 changes: 4 additions & 4 deletions app/src/lib/wallet/cosmos/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ function createCosmosStore(
}
try {
await walletApi.experimentalSuggestChain(chainInfo)
await walletApi.enable(["union-testnet-8"])
await walletApi.enable(["union-testnet-9"])
} catch (e) {
return update(v => ({ ...v, connectionStatus: "disconnected" }))
}
const account = await walletApi.getKey("union-testnet-8")
const account = await walletApi.getKey("union-testnet-9")
update(v => ({
...v,
connectionStatus: "connected",
Expand All @@ -100,9 +100,9 @@ function createCosmosStore(
console.log("[cosmos] cosmosDisconnectClick", get(cosmosStore))
if (cosmosWalletId && window[cosmosWalletId]) {
if (cosmosWalletId === "keplr") {
await window[cosmosWalletId]?.disable("union-testnet-8")
await window[cosmosWalletId]?.disable("union-testnet-9")
} else if (cosmosWalletId === "leap") {
await window[cosmosWalletId]?.disconnect("union-testnet-8")
await window[cosmosWalletId]?.disconnect("union-testnet-9")
}
update(v => ({
...v,
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/faucet/(components)/token-balance.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export let chains: Array<Chain>
export let userAddrCosmos: UserAddressCosmos
export let symbol: string
let chain = chains.filter(c => c.chain_id === "union-testnet-8")
let chain = chains.filter(c => c.chain_id === "union-testnet-9")
$: userBalances = userBalancesQuery({
userAddr: { cosmos: userAddrCosmos, evm: null, aptos: null },
chains: chain,
Expand Down

0 comments on commit d2b4492

Please sign in to comment.