Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ test-results
.github/test-data
junit.xml

# Leap extension local storage for e2e tests with playwright
apps/deploy-web/tests/ui/fixture/leapExtensionLocalStorage.*.json

# Clinic.js diagnostic artifacts
.clinic
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
@leapwallet:registry=https://registry.npmjs.org/
1 change: 0 additions & 1 deletion apps/deploy-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"@cosmos-kit/cosmos-extension-metamask": "0.13.3",
"@cosmos-kit/cosmostation-extension": "~2.16.3",
"@cosmos-kit/keplr": "~2.15.3",
"@cosmos-kit/leap": "~2.15.3",
"@cosmos-kit/react": "^2.20.1",
"@emotion/cache": "^11.7.1",
"@emotion/css": "^11.7.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ import { RouteStep } from "@src/types/route-steps.type";
import { udenomToDenom } from "@src/utils/mathHelpers";
import { uaktToAKT } from "@src/utils/priceUtils";
import { UrlService } from "@src/utils/urlUtils";
import LiquidityModal from "../liquidity-modal";
import { ExternalLink } from "../shared/ExternalLink";
import { WalletConnectionButtons } from "../wallet/WalletConnectionButtons";
import { QontoConnector, QontoStepIcon } from "./Stepper";

export const GetStartedStepper: React.FunctionComponent = () => {
const [activeStep, setActiveStep] = useState(0);
const { isWalletConnected, address, isManaged: isManagedWallet, isTrialing } = useWallet();
const { refetch: refetchBalances, balance: walletBalance } = useWalletBalance();
const { isWalletConnected, isManaged: isManagedWallet, isTrialing } = useWallet();
const { balance: walletBalance } = useWalletBalance();
const { minDeposit } = useChainParam();
const aktBalance = walletBalance ? uaktToAKT(walletBalance.balanceUAKT) : 0;
const usdcBalance = walletBalance ? udenomToDenom(walletBalance.balanceUUSDC) : 0;
Expand Down Expand Up @@ -165,7 +164,6 @@ export const GetStartedStepper: React.FunctionComponent = () => {
You have <strong>{aktBalance}</strong> AKT and <strong>{usdcBalance}</strong> USDC
</span>
)}
{!isManagedWallet && isWalletConnected && <LiquidityModal address={address} aktBalance={aktBalance} refreshBalances={refetchBalances} />}
</div>
)}
</StepContent>
Expand Down
220 changes: 0 additions & 220 deletions apps/deploy-web/src/components/liquidity-modal/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type { ChainContext, WalletModalProps } from "@cosmos-kit/core";
import { wallets as metamask } from "@cosmos-kit/cosmos-extension-metamask";
import { wallets as cosmostation } from "@cosmos-kit/cosmostation-extension";
import { wallets as keplr } from "@cosmos-kit/keplr";
import { wallets as leap } from "@cosmos-kit/leap";
import { ChainProvider, DefaultModal, useChain } from "@cosmos-kit/react";
import { useAtom } from "jotai";
import { useSnackbar } from "notistack";
Expand All @@ -28,7 +27,7 @@ export function CustomChainProvider({ children }: Props) {
<ChainProvider
chains={chains}
assetLists={assetLists}
wallets={[...keplr, ...leap, ...cosmostation, ...metamask]}
wallets={[...keplr, ...cosmostation, ...metamask]}
walletModal={ModalWrapper}
sessionOptions={{
duration: 31_556_926_000, // 1 year
Expand Down
7 changes: 0 additions & 7 deletions apps/deploy-web/src/pages/get-started/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use client";
import React from "react";
import { Card, CardContent, CardHeader, CardTitle } from "@akashnetwork/ui/components";
import Head from "next/head";
import Script from "next/script";

import { GetStartedStepper } from "@src/components/get-started/GetStartedStepper";
import Layout from "@src/components/layout/Layout";
Expand All @@ -26,11 +24,6 @@ const GetStarted: React.FunctionComponent = () => {
<GetStartedStepper />
</CardContent>
</Card>

<Head>
<link rel="stylesheet" href="https://unpkg.com/@leapwallet/elements@1/dist/style.css" />
</Head>
<Script defer async src="https://unpkg.com/@leapwallet/elements@1/dist/umd/main.js" />
</Layout>
);
};
Expand Down
3 changes: 0 additions & 3 deletions apps/deploy-web/src/services/analytics/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ export type AnalyticsEvent =
| "create_gpu_deployment"
| "authorize_spend"
| "navigate_tab"
| "leap_get_more_tokens"
| "leap_tx_complete"
| "deploy_sdl"
| "preview_sdl"
| "import_sdl"
Expand Down Expand Up @@ -126,7 +124,6 @@ export type EventProperties = {

const GA_EVENTS = {
successful_tx: "successful_transaction",
leap_tx_complete: "leap_transaction_complete",
revoke_all_certificates: "revoke_all_certificate"
};

Expand Down
10 changes: 0 additions & 10 deletions apps/deploy-web/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,6 @@ body {
pointer-events: all !important;
}

#leap-elements-portal.leap-ui.dark {
/* hsl(357deg, 100%, 62.9%) */
--primary: 357 100% 62.9%;
/* hsl(0deg, 85.7%, 97.3%) */
--primary-foreground: 0 85.7% 97.3%;
/* hsl(357deg, 100%, 62.9%) */
--ring: 357 100% 62.9%;
/* Low border radius */
--radius: 0.25rem;
}

.monaco-editor {
position: absolute !important;
Expand Down
4 changes: 0 additions & 4 deletions apps/deploy-web/src/types/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@ declare global {
interface Window extends KeplrWindow {
wallet: Keplr | undefined;
dataLayer?: Record<string, unknown>[];
LeapElements?: {
mountElements: (args: any) => void;
WalletType: any;
};
}
}
6 changes: 3 additions & 3 deletions apps/deploy-web/tests/ui/fixture/context-with-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { selectChainNetwork } from "../actions/selectChainNetwork";
import { injectWebWallet } from "./web-wallet/injectWebWallet";
import { injectUIConfig, test as baseTest } from "./base-test";
import { testEnvConfig } from "./test-env.config";
import { connectWalletViaLeap, topUpWallet } from "./wallet-setup";
import { connectWalletViaKeplr, topUpWallet } from "./wallet-setup";

// @see https://playwright.dev/docs/chrome-extensions
export const test = baseTest.extend<ExtensionContext>({
Expand Down Expand Up @@ -41,11 +41,11 @@ export async function createPage(context: BrowserContext): Promise<Page> {

if (testEnvConfig.NETWORK_ID !== "mainnet") {
await page.goto(testEnvConfig.BASE_URL);
await connectWalletViaLeap(context, page);
await connectWalletViaKeplr(context, page);
await selectChainNetwork(page, testEnvConfig.NETWORK_ID);
}

await page.goto(testEnvConfig.BASE_URL);
await connectWalletViaLeap(context, page);
await connectWalletViaKeplr(context, page);
return page;
}
Loading
Loading