Skip to content

Commit

Permalink
Move all graphql hooks from keychain to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Oct 21, 2024
1 parent 80040ec commit 02ae65e
Show file tree
Hide file tree
Showing 18 changed files with 192 additions and 2,344 deletions.
8 changes: 0 additions & 8 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"format:check": "prettier --check --ignore-path .gitignore .",
"test": "jest --watch",
"test:ci": "jest --ci",
"gen": "graphql-codegen --config codegen.yaml",
"storybook": "storybook dev -p 6001",
"storybook:build": "storybook build",
"test:storybook": "pnpm concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm storybook:build --quiet && pnpm http-server storybook-static --port 6006 --silent\" \"pnpm wait-on tcp:6006 && pnpm test-storybook\""
Expand Down Expand Up @@ -54,13 +53,6 @@
"devDependencies": {
"@cartridge/tsconfig": "workspace:^",
"@chromatic-com/storybook": "^1.9.0",
"@graphql-codegen/cli": "^2.6.2",
"@graphql-codegen/fragment-matcher": "^3.2.1",
"@graphql-codegen/introspection": "^2.1.1",
"@graphql-codegen/schema-ast": "^2.4.1",
"@graphql-codegen/typescript": "^2.4.8",
"@graphql-codegen/typescript-operations": "^2.3.5",
"@graphql-codegen/typescript-react-query": "^3.5.9",
"@jest/globals": "^29.7.0",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/Funding/DepositEth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { useToast } from "hooks/toast";
import { ETH_CONTRACT_ADDRESS } from "utils/token";
import { ErrorAlert } from "../ErrorAlert";
import { CopyAddress } from "components/CopyAddress";
import { CurrencyBase, CurrencyQuote } from "generated/graphql";
import { CurrencyBase, CurrencyQuote } from "@cartridge/utils/api/cartridge";
import { parseEther } from "viem";
import AmountSelection, { DEFAULT_AMOUNT } from "./AmountSelection";
import { Balance } from "./Balance";
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion packages/keychain/src/components/connect/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useCallback, useEffect, useState } from "react";
import {
FinalizeRegistrationMutation,
useAccountQuery,
} from "generated/graphql";
} from "@cartridge/utils/api/cartridge";
import Controller from "utils/controller";
import { PopupCenter } from "utils/url";
import { SignupProps } from "./types";
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/connect/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
AccountDocument,
AccountQuery,
AccountQueryVariables,
} from "generated/graphql";
} from "@cartridge/utils/api/cartridge";
import { fetchData } from "hooks/fetcher";
import { AuthAction } from "./Authenticate";

Expand Down
Loading

0 comments on commit 02ae65e

Please sign in to comment.