-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge with main to resolve conflicts
- Loading branch information
1 parent
0ecc2fc
commit c3a9656
Showing
67 changed files
with
1,769 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
|
||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
|
||
/coverage | ||
|
||
# next.js | ||
|
||
/.next/ | ||
/out/ | ||
|
||
# production | ||
|
||
/build | ||
|
||
# misc | ||
|
||
.DS_Store | ||
\*.pem | ||
|
||
# debug | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# local env files | ||
|
||
.env* | ||
|
||
# vercel | ||
|
||
.vercel | ||
|
||
# typescript | ||
|
||
\*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
.vscode | ||
|
||
# Sentry | ||
.sentryclirc | ||
|
||
.cache/ | ||
|
||
# Sentry Auth Token | ||
.sentryclirc | ||
|
||
# Sentry Config File | ||
.sentryclirc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// @ts-check | ||
|
||
/** | ||
* This files overrides the base lint-staged.config.js present in the root directory. | ||
* It allows to run eslint based the package specific requirements. | ||
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} | ||
* {@link https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md} | ||
*/ | ||
|
||
const { | ||
concatFilesForPrettier, | ||
getEslintFixCmd, | ||
} = require("../../lint-staged.common.js"); | ||
|
||
/** | ||
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>} | ||
*/ | ||
const rules = { | ||
"**/*.{json,md,mdx,css,html,yml,yaml,scss}": (filenames) => { | ||
return [`pnpm biome check --write ${concatFilesForPrettier(filenames)}`]; | ||
}, | ||
}; | ||
|
||
module.exports = rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* eslint-env node */ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const moduleExports = { | ||
transpilePackages: ["@bleu/cow-hooks-ui"], | ||
async headers() { | ||
return [ | ||
{ | ||
source: "/manifest.json", | ||
headers: [ | ||
{ | ||
key: "Access-Control-Allow-Origin", | ||
value: "*", | ||
}, | ||
], | ||
}, | ||
]; | ||
}, | ||
}; | ||
|
||
module.exports = moduleExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"name": "@bleu/deposit-pool", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "next build", | ||
"dev": "next dev", | ||
"start": "next start", | ||
"lint": "eslint '**/*.{ts,tsx}'", | ||
"lint:fix": "eslint '**/*.{ts,tsx}' --fix" | ||
}, | ||
"dependencies": { | ||
"@balancer-labs/sdk": "1.1.6", | ||
"@balancer/sdk": "0.26.1", | ||
"@bleu/cow-hooks-ui": "workspace:*", | ||
"@bleu/tsconfig": "workspace:*", | ||
"@bleu/ui": "0.1.131", | ||
"@bleu/utils": "workspace:*", | ||
"@cowprotocol/cow-sdk": "^5.5.1", | ||
"@cowprotocol/hook-dapp-lib": "1.0.0-RC1", | ||
"@cowprotocol/permit-utils": "0.3.1", | ||
"@ethersproject/providers": "5.7.2", | ||
"@hookform/resolvers": "3.9.0", | ||
"@radix-ui/react-icons": "1.3.0", | ||
"@uniswap/sdk-core": "5.4.0", | ||
"class-variance-authority": "^0.7.0", | ||
"date-fns": "^3.3.1", | ||
"downshift": "^8.4.0", | ||
"ethers": "^5.7.2", | ||
"graphql": "^16.9.0", | ||
"graphql-request": "^6.1.0", | ||
"next": "15.0.0-rc.0", | ||
"react": "19.0.0-rc-e4953922-20240919", | ||
"react-dom": "19.0.0-rc-e4953922-20240919", | ||
"react-hook-form": "7.53.0", | ||
"server-only": "^0.0.1", | ||
"swr": "2.2.5", | ||
"tailwind-merge": "^2.2.1", | ||
"tailwindcss-animate": "1.0.7", | ||
"tiny-invariant": "^1.3.3", | ||
"url": "^0.11.4", | ||
"viem": "2.21.14", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.2", | ||
"@testing-library/dom": "10.4.0", | ||
"@testing-library/jest-dom": "6.5.0", | ||
"@testing-library/react": "^16.0.1", | ||
"@testing-library/user-event": "14.5.2", | ||
"@types/jest": "^29.5.13", | ||
"@types/node": "^22.5.5", | ||
"@types/react": "^18.3.7", | ||
"@types/react-dom": "^18.3.0", | ||
"autoprefixer": "^10.4.20", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "^8.4.47", | ||
"tailwindcss": "^3.4.12", | ||
"typescript": "5.6.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"background_color": "#ffffff", | ||
"display": "standalone", | ||
"homepage_url": "https://swap.cow.fi", | ||
"description": "CoW hook dapp: Withdraw Liquidity", | ||
"icons": [], | ||
"orientation": "portrait", | ||
"name": "Withdraw Liquidity", | ||
"short_name": "Withdraw Liquidity", | ||
"start_url": ".", | ||
"theme_color": "#ffffff", | ||
"cow_hook_dapp": { | ||
"id": "5dc71fa5829d976c462bdf37b38b6fd9bbc289252a5a18e61525f8c8a3c775df", | ||
"name": "CoW AMM Deposit", | ||
"descriptionShort": "Add liquidity to any of the CoW AMM pools", | ||
"description": "Easily increase your position in a liquidity pool, adding both tokens in the right ratio.\n\n Whether you're seeking to increase your exposure to specific tokens or maximize the returns from your assets, this tool offers a quick and efficient way to enhance your liquidity position after a token swap, all in a smooth, efficient process.", | ||
"version": "0.0.1", | ||
"website": "https://balancer.fi/pools/cow", | ||
"image": "http://localhost:3000/icon.png", | ||
"conditions": { | ||
"position": "post", | ||
"walletCompatibility": ["EOA"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use client"; | ||
|
||
export default function GlobalError({ error }: { error: Error }) { | ||
/* eslint-disable-next-line no-console */ | ||
console.error(error); | ||
|
||
return ( | ||
<html lang="en"> | ||
<body> | ||
<h2>Something went wrong!</h2> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use client"; | ||
|
||
import { IFrameContextProvider } from "@bleu/cow-hooks-ui"; | ||
import "#/global.css"; | ||
import Head from "next/head"; | ||
|
||
import type * as React from "react"; | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<html lang="en" className="h-full"> | ||
<Head> | ||
<link rel="manifest" href="/manifest.json" /> | ||
</Head> | ||
<body className="flex h-full flex-col font-sans font-normal bg-background text-foreground"> | ||
<IFrameContextProvider>{children}</IFrameContextProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
Oops, something went wrong.