Skip to content

Commit

Permalink
Fix linting errors (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarry authored Oct 16, 2024
1 parent b8673e0 commit 0fa9f54
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";

import { FAUCET_CONTRACT_ADDRESS } from "@/config";
import { REST_URL, RPC_URL } from "@/constants";
import BaseWrapper from "@/features/core/components/base-wrapper";
import { CoreProvider } from "@/features/core/context/provider";
import { StakingProvider } from "@/features/staking/context/provider";

import "./globals.css";
import { REST_URL, RPC_URL } from "@/constants";

const abstraxionConfig = {
contracts: [FAUCET_CONTRACT_ADDRESS],
Expand Down
9 changes: 4 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { IS_TESTNET } from "./config";


const MAINNET_RPC_URL="https://rpc.xion-mainnet-1.burnt.com:443";
const MAINNET_REST_URL="https://api.xion-mainnet-1.burnt.com:443";
const TESTNET_RPC_URL="https://testnet-rpc.xion-api.com:443";
const TESTNET_REST_URL="https://testnet-api.xion-api.com:443";
const MAINNET_RPC_URL = "https://rpc.xion-mainnet-1.burnt.com:443";
const MAINNET_REST_URL = "https://api.xion-mainnet-1.burnt.com:443";
const TESTNET_RPC_URL = "https://testnet-rpc.xion-api.com:443";
const TESTNET_REST_URL = "https://testnet-api.xion-api.com:443";

export const RPC_URL = IS_TESTNET ? TESTNET_RPC_URL : MAINNET_RPC_URL;
export const REST_URL = IS_TESTNET ? TESTNET_REST_URL : MAINNET_REST_URL;
Expand Down
2 changes: 1 addition & 1 deletion src/features/staking/components/main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { memo, useState } from "react";

import { IS_TESTNET } from "@/config";
import { Title } from "@/features/core/components/base";

import { useStaking } from "../context/hooks";
Expand All @@ -13,7 +14,6 @@ import Faucet from "./faucet";
import StakingModals from "./staking-modals";
import StakingOverview from "./staking-overview";
import ValidatorsTable from "./validators-table";
import { IS_TESTNET } from "@/config";

function StakingPage() {
const { staking } = useStaking();
Expand Down
3 changes: 1 addition & 2 deletions src/features/staking/lib/core/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { RPC_URL } from "@/constants";
import type { useAbstraxionSigningClient } from "@burnt-labs/abstraxion";
import type { Registry } from "@cosmjs/proto-signing";
import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";
Expand All @@ -19,7 +18,7 @@ import {
} from "@cosmjs/stargate";
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";


import { RPC_URL } from "@/constants";

export type AbstraxionSigningClient = NonNullable<
ReturnType<typeof useAbstraxionSigningClient>["client"]
Expand Down

0 comments on commit 0fa9f54

Please sign in to comment.