Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Royco + berachain integration #1577

Merged
merged 185 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
9f29a82
chore: wip berachain
dennyscode Nov 14, 2024
6895bf7
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Nov 14, 2024
1f1e4d1
chore: styling, pages, ...
dennyscode Nov 18, 2024
c300a76
chore: add berachain markets header
dennyscode Nov 18, 2024
ce0536d
chore: tooltip, pages, cleanup
dennyscode Nov 19, 2024
972aa70
fix: key errors
dennyscode Nov 19, 2024
b9a40c2
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Nov 19, 2024
ac6526a
fix: errors
dennyscode Nov 19, 2024
b65ef99
style: adjustments
dennyscode Nov 19, 2024
e609a87
chore: protocol explore page + styles
dennyscode Nov 19, 2024
12f9048
style: filter layout
dennyscode Nov 19, 2024
603843c
style: berachain animation hero
dennyscode Nov 21, 2024
85da1dc
chore: cleanup and styling
dennyscode Nov 21, 2024
3c6e0ac
chore: cleanup and use strapi
dennyscode Nov 26, 2024
a33cc46
style: animations
dennyscode Nov 26, 2024
2cfeb96
chore: adjustments
dennyscode Nov 27, 2024
eb7913b
fix: default loading state with 9 cards
dennyscode Nov 27, 2024
6a69a5a
style: animation delay reduced
dennyscode Nov 27, 2024
4df9c84
chore: more fixes, dynamic stars, texts, icon size,..
dennyscode Nov 27, 2024
de32f76
chore: text adjustments
dennyscode Nov 27, 2024
d8126ca
automatic push
tcheee Nov 27, 2024
5ebaab7
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Nov 28, 2024
b1b5cb6
automatic push
tcheee Nov 28, 2024
6466c0a
Merge branch 'LF-10392-jumper-implement-first-ui-for-berachain' of ht…
tcheee Nov 28, 2024
f4650ff
automatic push
tcheee Nov 28, 2024
0256167
automatic push
tcheee Nov 28, 2024
565c999
automatic push
tcheee Nov 28, 2024
0998f2d
automatic push
tcheee Nov 28, 2024
97919bd
automatic push
tcheee Nov 28, 2024
658e970
automatic push
tcheee Nov 28, 2024
384faca
automatic push
tcheee Nov 28, 2024
f9b4caf
automatic push
tcheee Nov 28, 2024
d381176
automatic push
tcheee Nov 28, 2024
dcb97a5
automatic push
tcheee Nov 28, 2024
98f7537
automatic push
tcheee Nov 28, 2024
c44daab
automatic push
tcheee Nov 28, 2024
3c84c93
automatic push
tcheee Nov 28, 2024
cfa98fb
automatic push
tcheee Nov 28, 2024
2f3cbd8
chore: wip zap page
dennyscode Dec 3, 2024
3b63532
style: adjust colors
dennyscode Dec 3, 2024
a0668e2
Merge branch 'LF-11136-jumper-create-react-components-to-use-the-zap-…
dennyscode Dec 4, 2024
bed1cc5
chore: revive custom widget
dennyscode Dec 5, 2024
200fde5
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Dec 5, 2024
9bf8126
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Dec 6, 2024
9339c79
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Dec 9, 2024
53492b9
WIP royco
oktapodia Dec 9, 2024
d933783
WIP
oktapodia Dec 10, 2024
7eea3fb
pnpm test setup
oktapodia Dec 10, 2024
4b47f67
Add deposit + partial withdraw
oktapodia Dec 12, 2024
37479aa
Fix lint
oktapodia Dec 12, 2024
eab58d1
more lint fixing
oktapodia Dec 12, 2024
610a75c
Swap to pnpm
oktapodia Dec 12, 2024
22a1785
Merge branch 'develop' into LF-11137
oktapodia Dec 12, 2024
47470ee
fix royco
oktapodia Dec 12, 2024
dce190f
add missing packagws
oktapodia Dec 12, 2024
2f909f7
WIP
oktapodia Dec 12, 2024
bd8990a
testing withdraw
oktapodia Dec 12, 2024
47719e2
fix
oktapodia Dec 12, 2024
21528f6
Fix
oktapodia Dec 12, 2024
ccc6877
fix
oktapodia Dec 12, 2024
da7ef6c
Try fixing tsc
oktapodia Dec 12, 2024
171dc0f
Fix
oktapodia Dec 12, 2024
ec66c65
Fix types
oktapodia Dec 13, 2024
ab5922d
Add debug + fixes many things
oktapodia Dec 16, 2024
c27763d
WIP
oktapodia Dec 16, 2024
df74102
style: adjust berachain layout (#1585)
dennyscode Dec 16, 2024
9bd7ddc
wip
oktapodia Dec 16, 2024
4f08c17
Various improvements
oktapodia Dec 16, 2024
4a1d9ae
style: fix containers and enable padding
dennyscode Dec 17, 2024
229c2d5
Fix lint
oktapodia Dec 17, 2024
ca99ff5
Try fixing wagmi not found
oktapodia Dec 17, 2024
342e082
Merge branch 'LF-10392-jumper-implement-first-ui-for-berachain' into …
oktapodia Dec 17, 2024
e773a27
Merge conflicts + update yarn.lock
oktapodia Dec 17, 2024
1d69098
Merge branch 'develop' into LF-11137
oktapodia Dec 17, 2024
92e2379
Update package.json
oktapodia Dec 17, 2024
a1045d7
style: optimize fontSizes on progress card
dennyscode Dec 17, 2024
0cbf43a
swap to pnpm to make royco works
oktapodia Dec 17, 2024
495a86a
Fix lint
oktapodia Dec 17, 2024
8944940
Add missing packages with pnpm
oktapodia Dec 17, 2024
d1a4e8e
Fix mui/lab
oktapodia Dec 17, 2024
483e878
Improve numbers
oktapodia Dec 17, 2024
19ff55c
Add debug + support multiple chains
oktapodia Dec 17, 2024
4a01600
Fix lint
oktapodia Dec 17, 2024
cba76a3
Fix types
oktapodia Dec 17, 2024
2e6a095
Merge branch 'develop' into LF-10392-jumper-implement-first-ui-for-be…
dennyscode Dec 17, 2024
862920f
chore: responsive text
dennyscode Dec 17, 2024
be0af24
Add incentives
oktapodia Dec 18, 2024
90cfc73
Add filter
oktapodia Dec 18, 2024
3424446
Add tooltip incentive
oktapodia Dec 18, 2024
02bce2b
Fix blockchain explorer url
oktapodia Dec 18, 2024
8513a5e
Add new filters + skeletons
oktapodia Dec 19, 2024
5ca98e3
Refactorize withdraw + design
oktapodia Dec 20, 2024
ad3b756
Remove radio visibility
oktapodia Dec 20, 2024
4eb3032
Merge branch 'LF-10392-jumper-implement-first-ui-for-berachain' into …
oktapodia Dec 20, 2024
f354cc9
Add connect button
oktapodia Dec 20, 2024
67a0856
Update dockerfile to use pnpm (royco requirement)
oktapodia Dec 20, 2024
65b86e3
Update package.json
oktapodia Dec 20, 2024
75023b8
Optimize docker build
oktapodia Dec 21, 2024
f78dbcb
modify commands inside playwright.yml file
bojank93 Dec 23, 2024
009cbeb
fix: add command for installing pnpm
bojank93 Dec 23, 2024
3330dab
fix: update command for running webServer to use pnpm instead of yarn
bojank93 Dec 23, 2024
157b585
fix: add synpress-core package into package.json
bojank93 Dec 23, 2024
22fcf82
fix: push pnpm-lock.yaml
bojank93 Dec 23, 2024
5db8160
fix: fix build by removing ts-expect-error
tcheee Dec 23, 2024
ae9fd5f
Merge branch 'LF-11137' of https://github.com/jumperexchange/jumper-e…
tcheee Dec 23, 2024
b6adbd4
automatic push
tcheee Dec 23, 2024
1b0f7f1
fix: remove icon
tcheee Dec 23, 2024
90669a3
fix: downgrade version of playwright
bojank93 Dec 23, 2024
3771749
fix: Shadow MUI fix;
admsk2 Dec 23, 2024
ae328ed
fix: Shadow Error;
admsk2 Dec 23, 2024
9038538
chore: add new design
Dec 23, 2024
af755fd
fix: use previous version of the widget
Dec 23, 2024
fa7f3c7
chore: fixing packages
Dec 23, 2024
ec229a8
automatic push
tcheee Dec 23, 2024
2b7b465
Merge branch 'LF-11137' of https://github.com/jumperexchange/jumper-e…
tcheee Dec 23, 2024
83492bb
chore: add cache optimization
Dec 23, 2024
66372a1
Merge branch 'bera/with-cache-opti' into bera/design
Dec 23, 2024
bde7bf6
style: review various style
Dec 24, 2024
fedbe94
chore: add back pnpm-lock for CI
Dec 26, 2024
352a7f6
Merge branch 'LF-11137' of https://github.com/jumperexchange/jumper-e…
Dec 26, 2024
bd6699b
style: improve deposit style + link inside menu
Dec 26, 2024
e16840a
Merge branch 'bera/design' into LF-11137
Dec 26, 2024
5c84941
chore: merge develop
Dec 26, 2024
da4eed2
chore: remove and add back pnpm
Dec 26, 2024
4321676
lint
Dec 26, 2024
85f9589
fix: submenu fix
Dec 26, 2024
d4ad4a4
style: add new txLink + remove markets from `profile`
Dec 26, 2024
07a4a05
chore: change icon menu
Dec 26, 2024
2f94394
style: better loader
Dec 26, 2024
6d817b2
chore: show right information with tx hash
Dec 26, 2024
3aa6966
chore: style improve the withdraw experience
Dec 26, 2024
749e58e
chore: merge develop
Dec 26, 2024
02b1fff
fix: remove yarn.lock
Dec 27, 2024
373cbd2
chore: rename component
Dec 27, 2024
43d5f01
chore: rename component
Dec 27, 2024
f024d7a
chore: add new type + colored icon
Dec 27, 2024
b4f75a5
chore: merge develop
Dec 27, 2024
cf81a4d
fix: remove typo in theme
Dec 27, 2024
3ce461d
chore: remove zap merge conflict
Dec 27, 2024
36276d0
Merge branch 'develop' into LF-11137
Dec 27, 2024
40c408c
chore: merge develop
Dec 27, 2024
3347072
feat: approve only exact amount + style tx details + remove claiming …
Dec 27, 2024
2f0cd96
chore: remove testing boolean
Dec 27, 2024
b032ff0
fix: remove console
Dec 27, 2024
69cff04
chore: fix MUI issue with shadow
Dec 27, 2024
29b8d23
chore: split in various component for the marketCard
Dec 30, 2024
5154a81
chore: clean components and remove unused components
Dec 31, 2024
f14c467
chore: variabilize tooltips
Dec 31, 2024
1247f0a
fix: remove unused component
Dec 31, 2024
812fec2
chore: clean and split infoblocks
Dec 31, 2024
822a3f5
feat: working mobile version
Dec 31, 2024
bf06f3f
style: clean error message
Dec 31, 2024
fc67d9d
chore: change FAQ
Jan 6, 2025
89452ba
feat: change name to deposit and remove input warning
Jan 6, 2025
5f49e3c
chore: change tooltip
Jan 6, 2025
b31cf10
chore: rename
Jan 6, 2025
1e8ae0d
feat: add disclaimer for withdrawal
Jan 6, 2025
75beb6a
Update deposit widget
oktapodia Jan 7, 2025
8af068a
Upgrade packages
oktapodia Jan 7, 2025
99d57ff
Change name of transaction details
oktapodia Jan 7, 2025
d63688b
Update deposit
oktapodia Jan 7, 2025
196f1bd
Fix lint
oktapodia Jan 7, 2025
41408ad
Update Withdraw widget
oktapodia Jan 7, 2025
2095da5
Update withdraw
oktapodia Jan 8, 2025
6b0048d
Update packages + enable wrapped banner on bera
oktapodia Jan 8, 2025
d5baa3b
Fix lint
oktapodia Jan 8, 2025
f1f6cf9
fix: fix faq
Jan 8, 2025
00209b3
Various updates
oktapodia Jan 8, 2025
d754191
Fix tooltip
oktapodia Jan 8, 2025
3456c08
Merge branch 'develop' into LF-11137
oktapodia Jan 8, 2025
a63879b
style: add few UI fixes
Jan 9, 2025
d883044
chore: fix reward to earn
Jan 9, 2025
050b5c1
chore: rename tooltip
Jan 9, 2025
15c4d75
chore: change id
Jan 9, 2025
6cb397c
fix: fix market_id
Jan 9, 2025
940f956
Add query parameter
oktapodia Jan 9, 2025
f5c30ad
Merge branch 'develop' into LF-11137
dennyscode Jan 10, 2025
79baa76
refactor: remove unused images
dennyscode Jan 10, 2025
c3ae756
chore: adjust filter label on selection
dennyscode Jan 10, 2025
89278ec
chore: remove unsued components and comments
Jan 10, 2025
27d9287
Fix pre-push command
oktapodia Jan 10, 2025
679fb70
Update style + pnpm lock
oktapodia Jan 10, 2025
259d3a6
Fix accordion style
oktapodia Jan 10, 2025
458e451
Fix lint
oktapodia Jan 10, 2025
48c582d
Fix style
oktapodia Jan 10, 2025
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
4 changes: 4 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ NEXT_PUBLIC_JUMPER_API=http://localhost:3001
NEXT_REVALIDATION_SECRET=
NEXT_PUBLIC_SOLANA_RPC_URI=https://api.devnet.solana.com
WASH_HANDSHAKE=
NEXT_PUBLIC_ROYCO_URL=https://istbjtfzjcnstpzunkje.supabase.co/
NEXT_PUBLIC_ROYCO_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUwOTk4NDYsImV4cCI6MjAzMDY3NTg0Nn0.1OCizFgWEFXQUeVnQ0NavmTaq0RxYaiJUL2zhlrPDQw
NEXT_PUBLIC_ROYCO_ID=0df46115-3ae5-423c-abe7-7d17327aed73
NEXT_PUBLIC_ROYCO_FRONTEND_FEE_RECIPIENT=0x91aD352C1e419E6AA579F6a9307A7D88b28a147C
4 changes: 4 additions & 0 deletions .env.localhost
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ NEXT_PUBLIC_JUMPER_API=http://localhost:3001
NEXT_REVALIDATION_SECRET=
NEXT_PUBLIC_SOLANA_RPC_URI=https://api.devnet.solana.com
WASH_HANDSHAKE=secure-key
NEXT_PUBLIC_ROYCO_URL=https://istbjtfzjcnstpzunkje.supabase.co/
NEXT_PUBLIC_ROYCO_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUwOTk4NDYsImV4cCI6MjAzMDY3NTg0Nn0.1OCizFgWEFXQUeVnQ0NavmTaq0RxYaiJUL2zhlrPDQw
NEXT_PUBLIC_ROYCO_ID=0df46115-3ae5-423c-abe7-7d17327aed73
NEXT_PUBLIC_ROYCO_FRONTEND_FEE_RECIPIENT=0x91aD352C1e419E6AA579F6a9307A7D88b28a147C
4 changes: 4 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ NEXT_PUBLIC_JUMPER_API=https://nsi2h8qvii.execute-api.eu-central-1.amazonaws.com
NEXT_REVALIDATION_SECRET=
NEXT_PUBLIC_SOLANA_RPC_URI=https://chaotic-restless-putty.solana-mainnet.quiknode.pro/
WASH_HANDSHAKE=
NEXT_PUBLIC_ROYCO_URL=https://istbjtfzjcnstpzunkje.supabase.co/
NEXT_PUBLIC_ROYCO_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUwOTk4NDYsImV4cCI6MjAzMDY3NTg0Nn0.1OCizFgWEFXQUeVnQ0NavmTaq0RxYaiJUL2zhlrPDQw
NEXT_PUBLIC_ROYCO_ID=0df46115-3ae5-423c-abe7-7d17327aed73
NEXT_PUBLIC_ROYCO_FRONTEND_FEE_RECIPIENT=0x91aD352C1e419E6AA579F6a9307A7D88b28a147C
4 changes: 4 additions & 0 deletions .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ NEXT_PUBLIC_JUMPER_API=https://dt83v8pw4d.execute-api.eu-central-1.amazonaws.com
NEXT_REVALIDATION_SECRET=
NEXT_PUBLIC_SOLANA_RPC_URI=https://api.mainnet-beta.solana.com
WASH_HANDSHAKE=
NEXT_PUBLIC_ROYCO_URL=https://istbjtfzjcnstpzunkje.supabase.co/
NEXT_PUBLIC_ROYCO_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUwOTk4NDYsImV4cCI6MjAzMDY3NTg0Nn0.1OCizFgWEFXQUeVnQ0NavmTaq0RxYaiJUL2zhlrPDQw
NEXT_PUBLIC_ROYCO_ID=0df46115-3ae5-423c-abe7-7d17327aed73
NEXT_PUBLIC_ROYCO_FRONTEND_FEE_RECIPIENT=0x91aD352C1e419E6AA579F6a9307A7D88b28a147C
8 changes: 5 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: yarn install
run: pnpm install
- name: Install xvfb server
run: sudo apt-get install xvfb
- name: Install Playwright Browsers
Expand All @@ -30,8 +32,8 @@ jobs:
env:
PLAYWRIGHT_JSON_OUTPUT_NAME: report-${{ matrix.shard }}.json
run: |
yarn build:cache:ci &
yarn run test:ci:e2e \
pnpm build:cache:ci &
pnpm run test:ci:e2e \
--shard ${{ matrix.shard }}/${{ strategy.job-total }} \
--reporter=json
- uses: daun/playwright-report-summary@v3
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

echo "Executing pre-commit scripts"

yarn pre-commit
pnpm pre-commit
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

echo "Executing pre-push scripts"
yarn pre-push
pnpm pre-push
934 changes: 0 additions & 934 deletions .yarn/releases/yarn-4.5.3.cjs

This file was deleted.

21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
FROM node:20 AS builder

ARG ENV_NAME
ENV ENV_NAME $ENV_NAME
ENV ENV_NAME=$ENV_NAME
ARG NEXT_PUBLIC_LATEST_COMMIT_SHA
ENV NEXT_PUBLIC_LATEST_COMMIT_SHA $NEXT_PUBLIC_LATEST_COMMIT_SHA
ENV NEXT_TELEMETRY_DISABLED=1 NODE_ENV=production YARN_VERSION=4.0.1
RUN corepack enable && corepack prepare yarn@${YARN_VERSION}
ENV NEXT_PUBLIC_LATEST_COMMIT_SHA=$NEXT_PUBLIC_LATEST_COMMIT_SHA
ENV NEXT_TELEMETRY_DISABLED=1 NODE_ENV=production PNPM_VERSION=9.15.1
RUN corepack enable && corepack install -g pnpm@${PNPM_VERSION}

WORKDIR /app

COPY . .
RUN rm .env*
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn ./.yarn
RUN yarn install --immutable
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
ARG ENV_FILE=.env

ARG SENTRY_AUTH_TOKEN
Expand All @@ -22,13 +21,13 @@ ARG NEXT_PUBLIC_SENTRY_DSN
ENV NEXT_PUBLIC_SENTRY_DSN=$NEXT_PUBLIC_SENTRY_DSN

COPY ./$ENV_FILE ./.env
RUN yarn run build
RUN pnpm build

# Production image, copy all the files and run next
FROM node:20-alpine AS runner
WORKDIR /app

ENV NODE_ENV production
ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1

Expand All @@ -42,7 +41,7 @@ RUN mkdir .next
RUN chown nextjs:nodejs .next

# Fix sharp install for image optimization
RUN yarn add sharp
RUN pnpm install sharp
RUN chown -R nextjs:nodejs /app/node_modules
ENV NEXT_SHARP_PATH="/app/node_modules/sharp"

Expand All @@ -55,7 +54,7 @@ USER nextjs

EXPOSE 3000

ENV PORT 3000
ENV PORT=3000

# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ This is the [jumper.exchange](https://jumper.exchange) repository that gets depl
In the root directory run the following commands to get started:

```
yarn
pnpm install
```

to install all dependencies, and choose one of these start commands to start the development vite server and to start building packages in watch mode.

```
yarn dev
yarn dev:local
yarn dev:staging
yarn dev:production
pnpm dev
pnpm dev:local
pnpm dev:staging
pnpm dev:production
```

Please refer to the following descriptions of the dev serve scripts:
Expand Down
10 changes: 10 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ const nextConfig = {
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
swcMinify: true,
trailingSlash: false,
productionBrowserSourceMaps: false,
experimental: {
serverSourceMaps: false
},
webpack: (config) => {
config.resolve.extensionAlias = {
'.js': ['.ts', '.tsx', '.js', '.jsx'],
};
config.resolve.fallback = { fs: false, net: false, tls: false };
// Walletconnect configuration is blocking the build, pino-pretty needs to be added as an external
config.externals.push('pino-pretty');
//trying to reduce RAM usage
if (config.cache) {
config.cache = Object.freeze({
type: 'memory',
})
}
return config;
},
images: {
Expand Down
38 changes: 30 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"type": "module",
"private": true,
"repository": "https://github.com/jumperexchange/jumper-exchange",
"packageManager": "[email protected]",
"dependencies": {
"@bigmi/react": "^0.0.6",
"@emotion/cache": "^11.14.0",
Expand All @@ -13,16 +12,18 @@
"@fingerprintjs/fingerprintjs": "^3.4.2",
"@headlessui/react": "^2.2.0",
"@lifi/explorer": "^0.0.4",
"@lifi/sdk": "^3.4.3",
"@lifi/sdk": "3.4.3",
"@lifi/wallet-management": "^3.4.7",
"@lifi/widget": "^3.12.5",
"@lifi/widget": "3.12.5",
"@metaplex-foundation/mpl-core": "^1.1.1",
"@metaplex-foundation/umi": "^0.9.2",
"@metaplex-foundation/umi-bundle-defaults": "^0.9.2",
"@metaplex-foundation/umi-signer-wallet-adapters": "^0.9.2",
"@mui/icons-material": "^5.16.11",
"@mui/lab": "5.0.0-alpha.175",
"@mui/material": "^5.16.11",
"@mui/material-nextjs": "^5.16.8",
"@mui/utils": "^6.2.1",
"@next/third-parties": "^14.2.22",
"@rive-app/react-canvas": "^4.17.1",
"@safe-global/safe-apps-sdk": "^9.1.0",
Expand All @@ -35,17 +36,23 @@
"@solana/web3.js": "^1.95.8",
"@strapi/blocks-react-renderer": "^1.0.1",
"@tanstack/react-query": "^5.62.7",
"@wagmi/core": "2.16.0",
"@widgetbot/react-embed": "^1.9.0",
"accept-language": "^3.0.20",
"blo": "^1.2.0",
"date-fns": "^4.1.0",
"ethers": "^6.13.4",
"fontaine": "^0.5.0",
"framer-motion": "^11.15.0",
"graphql": "^16.9.0",
"graphql-request": "^7.1.2",
"i18next": "^24.1.0",
"i18next-resources-for-ts": "^1.5.0",
"i18next-resources-to-backend": "^1.2.1",
"next": "^14.2.22",
"immer": "^10.1.1",
"lodash": "^4.17.21",
"motion": "^11.11.17",
"next-i18n-router": "^5.5.1",
"next-themes": "^0.3.0",
"react": "^18.3.1",
Expand All @@ -54,10 +61,14 @@
"react-dom": "^18.3.1",
"react-error-boundary": "^4.1.2",
"react-i18next": "^15.1.4",
"royco": "0.9.146",
"shallow-equal": "^3.1.0",
"sharp": "^0.33.5",
"siwe": "^2.3.2",
"use-immer": "^0.11.0",
"uuid": "^11.0.3",
"viem": "^2.21.55",
"wagmi": "2.14.3",
"zustand": "^5.0.2"
},
"devDependencies": {
Expand All @@ -67,7 +78,9 @@
"@next/eslint-plugin-next": "^14.2.22",
"@playwright/test": "^1.49.1",
"@synthetixio/synpress": "4.0.0-alpha.7",
"@synthetixio/synpress-core": "^0.0.4",
"@types/gtag.js": "^0.0.20",
"@types/lodash": "^4",
"@types/node": "^22.10.2",
"@types/react": "^18.3.16",
"@types/react-dom": "^18.3.5",
Expand Down Expand Up @@ -104,11 +117,11 @@
"clean": "rm -rf ./tsconfig.tsbuildinfo",
"lint-staged": "lint-staged",
"typecheck": "tsc --project ./tsconfig.json --noEmit",
"test": "yarn playwright test",
"test": "pnpm playwright test",
"fix:staged-files": "lint-staged --allow-empty",
"fix:all-files": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
"pre-commit": "lint-staged",
"pre-push": "yarn && yarn build",
"pre-push": "pnpm install && pnpm build",
"i18next-resources-for-ts": "i18next-resources-for-ts interface -i ./src/i18n/translations/en -o ./src/i18n/resources.d.ts",
"test:ci:e2e": "xvfb-run --auto-servernum --server-num=1 --server-args='-screen 0, 1920x1080x24' npx playwright test",
"test:e2e-real": "npx playwright test --headed",
Expand All @@ -118,11 +131,20 @@
"lint-staged": {
"**/*.(ts|tsx|js)": [
"bash -c tsc --noEmit",
"yarn eslint --fix",
"yarn prettier --write"
"pnpm eslint --fix",
"pnpm prettier --write"
],
"**/*.(md|json)": [
"yarn prettier --write"
"pnpm prettier --write"
]
},
"overrides": {
"wagmi": "2.14.3",
"@wagmi/core": "2.16.0",
"@lifi/wallet-management/@wagmi/core": "2.16.0",
"bigmi/wagmi": "2.14.3",
"@bigmi/client/wagmi": "2.14.3",
"@bigmi/client/@wagmi/core": "2.16.0",
"@metamask/sdk": "0.30.0"
}
}
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig({
screenshot: 'only-on-failure',
},
webServer: {
command: 'yarn run dev',
command: 'pnpm run dev',
url: 'http://localhost:3000',
timeout: 200 * 1000,
reuseExistingServer: true,
Expand Down
Loading
Loading