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

Develop SYNC #672

Open
wants to merge 136 commits into
base: peanut-wallet
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 127 commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
6d6d4d0
feat: update metadata for using generateMetadata method
kushagrasarathe Dec 16, 2024
5970b51
feat: add robots.ts and sitemap.ts configs
kushagrasarathe Dec 17, 2024
304377b
feat: update landing page metadata
kushagrasarathe Dec 17, 2024
1156370
refactor: update seo config
kushagrasarathe Dec 17, 2024
c2b2b25
Merge branch 'develop' of https://github.com/peanutprotocol/peanut-ui…
kushagrasarathe Dec 17, 2024
165a4b9
fix: robots config paths + nitpicks
kushagrasarathe Dec 17, 2024
745e2f0
fix: linting error
kushagrasarathe Dec 18, 2024
7981670
Fix password validation
inn3rGames Dec 19, 2024
3323c86
fix: format amount with updated formatAmount fn
kushagrasarathe Dec 19, 2024
a93e79b
fix: use formatAmount in link preview
kushagrasarathe Dec 19, 2024
99d7eba
fix: revert prev commit change
kushagrasarathe Dec 19, 2024
f6bcf13
fix: remove parsoFloat from link preview amount
kushagrasarathe Dec 19, 2024
53fbebb
fix: merge t&c and privacy links in footer
kushagrasarathe Dec 20, 2024
a6a98d2
fix: remove allowedDomains from safe connector
kushagrasarathe Dec 20, 2024
144957e
Add wrong password view
inn3rGames Dec 21, 2024
fc5e226
Merge pull request #584 from peanutprotocol/fix/footer-links
Hugo0 Dec 22, 2024
850f4ae
fix: use only 2 significant digits
kushagrasarathe Dec 23, 2024
85cf5ac
temp-commit: test link preview text size
kushagrasarathe Dec 23, 2024
e88679f
revert: prev test commit
kushagrasarathe Dec 23, 2024
1d55d95
Merge branch 'develop' of https://github.com/peanutprotocol/peanut-ui…
kushagrasarathe Dec 23, 2024
e14b409
fix: update structure to declare metadata within pages
kushagrasarathe Dec 23, 2024
187f9be
fix: remove metadata from terms and privacy pages
kushagrasarathe Dec 23, 2024
fea6cc0
Merge pull request #586 from peanutprotocol/fix/safe-connector
Hugo0 Dec 27, 2024
f9322d5
Merge pull request #572 from peanutprotocol/feat/seo-optimization
Hugo0 Dec 27, 2024
1ef36aa
feat: formatAmount tests
kushagrasarathe Dec 27, 2024
0fb46f7
fix: fixed jest fuckery
Hugo0 Dec 27, 2024
2984520
Merge pull request #583 from peanutprotocol/fix/amount-formatting
Hugo0 Dec 27, 2024
9749b40
Merge pull request #582 from peanutprotocol/fix/wrong-password-valida…
Hugo0 Dec 27, 2024
0d8aa67
fix: copy fixes
Hugo0 Dec 29, 2024
37c03df
Merge branch 'develop'
Hugo0 Dec 29, 2024
abdd032
feat: add maxTotal for request pay + slippage and network cost range
kushagrasarathe Dec 30, 2024
8c71c6d
feat: update max total to range + info row ui component
kushagrasarathe Dec 31, 2024
bbadac0
favicon update
beetrootw Dec 31, 2024
1ebafb4
Merge pull request #595 from peanutprotocol/Favicon-update
Hugo0 Dec 31, 2024
70740a3
Merge pull request #596 from peanutprotocol/main
Hugo0 Dec 31, 2024
795ebd6
favicon-and-logo-updated-brand-overhaul
beetrootw Dec 31, 2024
3ab92d2
format
Hugo0 Jan 1, 2025
926b318
Merge pull request #597 from peanutprotocol:favicon-and-logo-updated
Hugo0 Jan 1, 2025
1b3cdc8
fix: fee calculations + add fee description component
kushagrasarathe Jan 1, 2025
68e44ae
fix: reuse info row component + add loading
kushagrasarathe Jan 2, 2025
ea2e6cf
fix: extract numbers as consts
kushagrasarathe Jan 2, 2025
8a0849d
fix: add git modules
kushagrasarathe Jan 2, 2025
a943c0a
fix: add improved loading conditions
kushagrasarathe Jan 2, 2025
387f628
fix: remove lopping for status check in cross-chain cashout
kushagrasarathe Jan 2, 2025
d3f9062
fix: jobs link in footer + cta hover issue
kushagrasarathe Jan 3, 2025
c5b15f0
Changed app background color to lavender
beetrootw Jan 3, 2025
7729961
Merge pull request #599 from peanutprotocol/fix/jobs-link
Hugo0 Jan 6, 2025
bd60998
Merge pull request #601 from peanutprotocol/change-app-lavender-backg…
Hugo0 Jan 6, 2025
2a557d3
fix: validate file inputs before upload + improved error handling
kushagrasarathe Jan 7, 2025
00f7f91
fix: temporarily remove initial view from send flow
kushagrasarathe Jan 7, 2025
3c23a24
fix: update reown-appkit package
kushagrasarathe Jan 7, 2025
4ed7964
fix: bypassed tx status check
Hugo0 Jan 7, 2025
9a9e28e
Merge pull request #605 from peanutprotocol/fix/send-ux
Hugo0 Jan 7, 2025
1aed52b
Merge pull request #602 from peanutprotocol/fix/cashout
Hugo0 Jan 7, 2025
ba14080
fix: add defaultNetwork in appkit
kushagrasarathe Jan 7, 2025
8781cb1
Merge pull request #607 from peanutprotocol/develop
Hugo0 Jan 7, 2025
e7affb5
Merge pull request #606 from peanutprotocol/fix/wc-access
Hugo0 Jan 7, 2025
88be2bd
fix: send flow mobile view copy field
kushagrasarathe Jan 8, 2025
ee0e578
Merge pull request #609 from peanutprotocol/develop
Hugo0 Jan 8, 2025
d67ef9b
fix: improve error handling in share fn
kushagrasarathe Jan 8, 2025
7493f45
Merge pull request #610 from peanutprotocol/fix/send-ux-mobile
Hugo0 Jan 8, 2025
9eb0805
Merge pull request #611 from peanutprotocol/develop
Hugo0 Jan 8, 2025
1f9890f
fix: upgrade reown version 🫠 + fix chains
kushagrasarathe Jan 8, 2025
ea84361
fix: fee calculation in cashout flow
kushagrasarathe Jan 8, 2025
907dacd
Merge branch 'develop' into fix/request-ux
kushagrasarathe Jan 8, 2025
bcc8b23
fix: refactor :)
kushagrasarathe Jan 8, 2025
05d4262
Merge pull request #612 from peanutprotocol/fix/appkit
Hugo0 Jan 9, 2025
23882dd
refactor: use claculate fee fn + improve ux copy
kushagrasarathe Jan 9, 2025
b06ea90
fix: update appkit version to latest canary release
kushagrasarathe Jan 9, 2025
5b2df4f
Merge pull request #616 from peanutprotocol/fix/appkit
Hugo0 Jan 9, 2025
46c4276
Merge pull request #617 from peanutprotocol/develop
Hugo0 Jan 9, 2025
6b4827c
feat: use private rpc with public as fallback
kushagrasarathe Jan 10, 2025
539d857
fix: move fn to fetch utils
kushagrasarathe Jan 10, 2025
bf1fc07
fix: refactor getInfuraApiUrl fn to include supported network list
kushagrasarathe Jan 10, 2025
6803f0c
fix: update provider instances when calling peanut sdk method
kushagrasarathe Jan 10, 2025
2f4c9f0
Merge pull request #620 from peanutprotocol/fix/rpcs
Hugo0 Jan 10, 2025
19e10fb
Merge branch 'develop' into fix/request-ux
kushagrasarathe Jan 10, 2025
d0d35e5
fix: fee calculation for cashout + pr req changes
kushagrasarathe Jan 10, 2025
bf569e4
refactor: update to use expected fee instead of max
kushagrasarathe Jan 10, 2025
443c42e
Updated background preview image
beetrootw Jan 12, 2025
2e16b48
Merge branch 'develop' into fix/file-upload
kushagrasarathe Jan 13, 2025
c030da2
Merge pull request #604 from peanutprotocol/fix/file-upload
kushagrasarathe Jan 13, 2025
3501be8
Merge pull request #633 from peanutprotocol/develop
Hugo0 Jan 17, 2025
480f325
hotfix: circular dependency
Hugo0 Jan 19, 2025
3fe6b0f
Merge pull request #635 from peanutprotocol/main
Hugo0 Jan 19, 2025
a486ad5
style: update preview and metadata images
kushagrasarathe Jan 19, 2025
3a7c08d
feat: update link preview bg image
kushagrasarathe Jan 19, 2025
3fb67b8
fix: update hostname vars
kushagrasarathe Jan 19, 2025
d32d633
fix: change preview image name
kushagrasarathe Jan 20, 2025
d6134d7
Merge pull request #622 from peanutprotocol/feature/change-bg-preview
kushagrasarathe Jan 20, 2025
73dcffc
fix: remove shadow from amount
kushagrasarathe Jan 20, 2025
79ab88d
Merge pull request #638 from peanutprotocol/feature/change-bg-preview
kushagrasarathe Jan 20, 2025
20aa62c
fix: redirect to req/create when on /req
kushagrasarathe Jan 22, 2025
9dcc067
Merge pull request #642 from peanutprotocol/fix/req-redirect
kushagrasarathe Jan 22, 2025
6a68951
feat: new try now home page
kushagrasarathe Jan 24, 2025
4c4e30a
Merge pull request #647 from peanutprotocol/fix/try-now
Hugo0 Jan 24, 2025
b7e1490
fix: implement cashout feedback
kushagrasarathe Jan 27, 2025
c8d46b3
fix: resolve pr review comments
kushagrasarathe Jan 27, 2025
9825ad8
fix: use crosschain slippage percentage to clculate slippage on casho…
kushagrasarathe Jan 28, 2025
c4f9f48
fix: use max slippage in req flow for fee calculation
kushagrasarathe Jan 29, 2025
ea16453
fix: loading state + render max slippage on pay view
kushagrasarathe Jan 30, 2025
dbcf757
fix(style): dollar spacing 💰
kushagrasarathe Jan 30, 2025
581e76f
Merge pull request #594 from peanutprotocol/fix/request-ux
kushagrasarathe Jan 30, 2025
043a638
fix: stablecoin pricing
Hugo0 Jan 31, 2025
53542f6
Merge pull request #656 from peanutprotocol/fix/stablecoin-pricing
jjramirezn Jan 31, 2025
d0d9589
feat: take 0.25% peanut fee in account for cashout
kushagrasarathe Feb 3, 2025
fb3103c
fix: update ux copy for fee
kushagrasarathe Feb 4, 2025
acb5ede
Merge pull request #659 from peanutprotocol/feat/peanut-fee
kushagrasarathe Feb 4, 2025
07efdce
fix: update error msg wen user reject tx + fix refund link render
kushagrasarathe Feb 4, 2025
bbe15e7
Merge pull request #667 from peanutprotocol/fix/cashout-error
kushagrasarathe Feb 5, 2025
ab1c8b1
fix: remove network cost loading dep from req pay
kushagrasarathe Feb 6, 2025
58a2d46
Merge pull request #671 from peanutprotocol/fix/req-loading
kushagrasarathe Feb 6, 2025
9ca2d82
test: reown appkit new config
kushagrasarathe Feb 7, 2025
5d1a4e3
fix: remove social and email login
kushagrasarathe Feb 11, 2025
3104199
Merge pull request #680 from peanutprotocol/test/appkit-config
Hugo0 Feb 11, 2025
5d88c97
fix: close kyc modal on done click
kushagrasarathe Feb 11, 2025
5e4c38e
Merge pull request #682 from peanutprotocol/fix/kyc-close
Hugo0 Feb 11, 2025
8d85e75
fix: update appkit config
kushagrasarathe Feb 13, 2025
41019cb
Merge pull request #690 from peanutprotocol/fix/update-appkit
kushagrasarathe Feb 13, 2025
24e1e09
fix: chevron and clear icons overalapping in address input
kushagrasarathe Feb 17, 2025
671715d
Merge pull request #693 from peanutprotocol/fix/claim-address-input
kushagrasarathe Feb 17, 2025
6347830
fix: kyc flow for SEPA/Euro services
kushagrasarathe Feb 18, 2025
617f0eb
fix: clear icon visibility
kushagrasarathe Feb 18, 2025
4f12270
fix: claim cta changes on navigation b/w intial and confirm view
kushagrasarathe Feb 18, 2025
592d63f
Merge pull request #696 from peanutprotocol/fix/claim-cta-on-navigation
jjramirezn Feb 19, 2025
267d25e
Merge pull request #695 from peanutprotocol/fix/claim-address-input
kushagrasarathe Feb 19, 2025
e2727fe
feat: add maintenance banner with configurable time window
Hugo0 Feb 20, 2025
bd46702
Merge pull request #701 from peanutprotocol/feat/maintenance-banner
jjramirezn Feb 20, 2025
b386a47
fix: usdt
Hugo0 Feb 20, 2025
47e3475
Merge pull request #702 from peanutprotocol/fix/usdt-cashout
Hugo0 Feb 20, 2025
d44e28f
fix: zero balance shown on token selector when balance is being fetched
kushagrasarathe Feb 25, 2025
819896f
fix: remove console log
kushagrasarathe Feb 25, 2025
f3916f2
fix: external account creation
kushagrasarathe Feb 25, 2025
30ad3a0
Merge pull request #694 from peanutprotocol/fix/kyc-ui
kushagrasarathe Feb 25, 2025
e7602e1
chore: partial revert of d44e28f41e6b4078c9c0380c021c4f98ec30053b
jjramirezn Feb 26, 2025
e2c1a35
Merge pull request #707 from peanutprotocol/fix/token-selector-balance
jjramirezn Feb 26, 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
61 changes: 61 additions & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# For cursor IDE indexing.

**.patch

# dependencies
/node_modules
/.pnp
.pnp.js
.vscode
**.patch

# testing
/coverage

# next.js
/.next/
/out/

# production
# /build
# /public/
# /public/**/*

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
*.env*
!env.example
!sample.env


# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts


# .env
.env

# local files
playground/

# yarn and npm lockfiles
package-lock.json
yarn.lock
# Sentry Config File
.sentryclirc

# Sentry Config File
.env.sentry-build-plugin
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/assets/animations"]
path = src/assets/animations
url = https://github.com/peanutprotocol/peanut-animations.git
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@dicebear/core": "^9.2.2",
"@headlessui/react": "^1.7.19",
"@headlessui/tailwindcss": "^0.2.1",
"@reown/appkit": "^1.6.0",
"@reown/appkit-adapter-wagmi": "^1.6.0",
"@reown/appkit": "1.6.4-rc.3.0",
"@reown/appkit-adapter-wagmi": "1.6.4-rc.3.0",
"@safe-global/safe-apps-sdk": "^9.1.0",
"@sentry/nextjs": "^8.39.0",
"@squirrel-labs/peanut-sdk": "^0.5.11",
Expand Down Expand Up @@ -82,6 +82,7 @@
"@types/validator": "^13.12.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"knip": "^5.37.1",
"postcss": "^8.4.49",
"postcss-import": "^16.1.0",
Expand All @@ -98,22 +99,29 @@
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
"tsconfig": "tsconfig.test.json"
"tsconfig": "tsconfig.test.json",
"useESM": true
}
]
},
"transformIgnorePatterns": [
"node_modules/(?!(wagmi|viem|@wagmi|@viem)/)"
"node_modules/(?!(@wagmi|wagmi|viem|@viem|@squirrel-labs)/)"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
"^@/(.*)$": "<rootDir>/src/$1",
"^wagmi/chains$": "<rootDir>/src/utils/__mocks__/wagmi.ts",
"^@squirrel-labs/peanut-sdk$": "<rootDir>/src/utils/__mocks__/peanut-sdk.ts"
},
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.ts"
],
"testMatch": [
"**/__tests__/**/*.test.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
],
"extensionsToTreatAsEsm": [
".ts",
".tsx"
]
},
"resolutions": {
Expand Down
1,972 changes: 906 additions & 1,066 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Binary file modified public/favicon.ico
Binary file not shown.
Binary file modified public/logo-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/metadata-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 39 additions & 53 deletions public/peanutman-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/preview-bg.png
Binary file not shown.
Binary file added public/social-preview-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/app/cashout/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { Cashout } from '@/components'
import Layout from '@/components/Global/Layout'
import { generateMetadata } from '../metadata'

export const dynamic = 'force-dynamic'

// TODO: add metadata
export const metadata = generateMetadata({
title: 'Cash Out Crypto | Peanut',
description: 'Convert your crypto to fiat and withdraw directly to your bank account. Fast, secure crypto offramp.',
keywords: 'crypto cashout, offramp, crypto to bank, digital dollars, fiat withdrawal',
})

export default function CashoutPage() {
return (
Expand Down
Binary file modified src/app/favicon.ico
Binary file not shown.
26 changes: 7 additions & 19 deletions src/app/jobs/page.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
// import * as components from '@/components'
import { Jobs } from '@/components'
import Layout from '@/components/Global/Layout'
import { generateMetadata } from '../metadata'

import { Metadata } from 'next'

export const metadata: Metadata = {
title: 'Peanut Protocol',
description: 'Text Tokens',
metadataBase: new URL('https://peanut.to'),

icons: {
icon: '/favicon.ico',
},
openGraph: {
images: [
{
url: '/metadata-img.png',
},
],
},
}
export const metadata = generateMetadata({
title: 'Jobs | Peanut',
description: 'Join the Peanut team and help us build the future of crypto payments.',
image: '/metadata-img.png',
keywords: 'jobs, careers, work, employment, crypto, payments',
})

export default function JobsPage() {
return (
Expand Down
18 changes: 9 additions & 9 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CrispChat from '../components/CrispChat'
import { PeanutProvider } from '@/config'
import * as context from '@/context'
import { FooterVisibilityProvider } from '@/context/footerVisibility'
import { Metadata } from 'next'
import { generateMetadata } from './metadata'

const roboto = Roboto_Flex({
subsets: ['latin'],
Expand All @@ -27,14 +27,14 @@ const sniglet = Sniglet({
variable: '--font-sniglet',
})

export const metadata: Metadata = {
viewport: {
width: 'device-width',
initialScale: 1,
maximumScale: 1,
userScalable: false,
},
}
export const metadata = generateMetadata({
title: 'Peanut Protocol | Cross-Chain Payment Infrastructure',
description:
'Seamless cross-chain payment infrastructure for sending and receiving digital assets. Built for both developers and consumers to abstract away blockchain complexities with chain-agnostic transfers, stablecoin conversions, and fiat offramps.',
image: '/metadata-img.png',
keywords:
'blockchain payments, cross-chain transfers, payment infrastructure, crypto payments, stablecoin conversion, fiat offramp, web3 payments, blockchain protocol',
})

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
Expand Down
37 changes: 37 additions & 0 deletions src/app/metadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { Metadata } from 'next'

export function generateMetadata({
title,
description,
image = '/metadata-img.png',
keywords,
}: {
title: string
description: string
image?: string
keywords?: string
}): Metadata {
return {
title,
description,
metadataBase: new URL(process.env.NEXT_PUBLIC_BASE_URL || 'https://peanut.to'),
icons: { icon: '/favicon.ico' },
keywords,
openGraph: {
type: 'website',
title,
description,
url: 'https://peanut.to',
siteName: 'Peanut Protocol',
images: [{ url: image, width: 1200, height: 630, alt: title }],
},
twitter: {
card: 'summary_large_image',
title,
description,
images: [image],
creator: '@PeanutProtocol',
site: '@PeanutProtocol',
},
}
}
24 changes: 3 additions & 21 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
'use client'

import { useState, useEffect } from 'react'
import { Metadata } from 'next'
import * as assets from '@/assets'
import Layout from '@/components/Global/Layout'
import { Hero, FAQs, Features, Mike, Story, BuildOnUs, CashoutSection } from '@/components/LandingPage'
import { MarqueeComp } from '@/components/Global/MarqueeWrapper'
import { BuildOnUs, FAQs, Features, Hero, Mike, Story } from '@/components/LandingPage'
import { useFooterVisibility } from '@/context/footerVisibility'

const metadata: Metadata = {
title: 'Peanut Protocol',
description: 'Text Tokens',
metadataBase: new URL('https://peanut.to'),
icons: {
icon: '/favicon.ico',
},
openGraph: {
images: [
{
url: '/metadata-img.png',
},
],
},
}
import { useEffect, useState } from 'react'

export default function LandingPage() {
const hero = {
Expand All @@ -33,7 +15,7 @@ export default function LandingPage() {
},
cta: {
label: 'TRY NOW',
href: '/send',
href: '/pay',
},
}
const story = {
Expand Down
21 changes: 21 additions & 0 deletions src/app/pay/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import TryNow from '@/components/Global/TryNow'

import Layout from '@/components/Global/Layout'
import { generateMetadata } from '../metadata'

export const metadata = generateMetadata({
title: 'Pay | Peanut',
description:
'Seamless cross-chain payment infrastructure for sending and receiving digital assets. Built for both developers and consumers to abstract away blockchain complexities with chain-agnostic transfers, stablecoin conversions, and fiat offramps.',
image: '/metadata-img.png',
keywords:
'blockchain payments, cross-chain transfers, payment infrastructure, crypto payments, stablecoin conversion, fiat offramp, web3 payments, blockchain protocol',
})

export default function PayPage() {
return (
<Layout>
<TryNow />
</Layout>
)
}
Loading
Loading