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

Capsule integration final #883

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
80de7e4
initial commit - basic capsule int
storywithoutend Jun 10, 2024
2b8d819
Merge branch 'main' into capsule-integration
jlm0 Jul 30, 2024
197987c
chore: pnpm update
jlm0 Jul 30, 2024
d0c5b9d
fix capsule
jlm0 Jul 31, 2024
2e9d342
Merge branch 'main' into pr/786
LeonmanRolls Aug 23, 2024
95a1785
onramp
LeonmanRolls Aug 25, 2024
c25c67f
Update capsule rainbow
LeonmanRolls Sep 2, 2024
abce894
Merge branch 'main' of https://github.com/ensdomains/ens-app-v3 into …
LeonmanRolls Sep 2, 2024
fc317e9
Theme fix
LeonmanRolls Sep 23, 2024
6cd4116
dynamically load capsule wallet
LeonmanRolls Sep 25, 2024
0d36cef
fixes
TateB Sep 25, 2024
df18ce8
disable worker
TateB Sep 25, 2024
d1264aa
update deps
LeonmanRolls Oct 7, 2024
6f4228d
Merge branch 'main' of https://github.com/ensdomains/ens-app-v3 into …
LeonmanRolls Oct 20, 2024
03c25d6
check if wallet is capsule
LeonmanRolls Oct 21, 2024
c5d303e
Link to capsule wallet when connected with capsule
LeonmanRolls Oct 22, 2024
a6d1653
Update Pricing.tsx
LeonmanRolls Oct 22, 2024
26cbe06
Merge branch 'main' of https://github.com/ensdomains/ens-app-v3 into …
LeonmanRolls Oct 22, 2024
b183869
Remove hotfix
LeonmanRolls Oct 22, 2024
876dfe5
load capsule tests
LeonmanRolls Oct 23, 2024
372d4a8
Mock capsule rainbowkit
LeonmanRolls Oct 23, 2024
c2e6188
Fix types
LeonmanRolls Oct 24, 2024
cfc8c2d
Review fixes
LeonmanRolls Oct 24, 2024
fd240fd
Merge branch 'main' of https://github.com/ensdomains/ens-app-v3 into …
LeonmanRolls Oct 28, 2024
1e5bb32
bump versions
LeonmanRolls Oct 29, 2024
29dbece
Add api keys
LeonmanRolls Oct 29, 2024
8521a2a
bump version
LeonmanRolls Oct 29, 2024
1de130a
wip
LeonmanRolls Nov 1, 2024
de0f4f9
merge main
LeonmanRolls Dec 3, 2024
32101ea
grab network from subdomain
LeonmanRolls Dec 3, 2024
c4ec941
getChainFromUrl
LeonmanRolls Dec 3, 2024
1535ceb
Switch account action
LeonmanRolls Dec 5, 2024
356293c
handleSendTransaction
LeonmanRolls Dec 7, 2024
adedc98
Network notifications
LeonmanRolls Dec 13, 2024
ab4dc6f
Capsule priority fee
LeonmanRolls Dec 13, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/pages-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Cloudflare Pages
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NEXT_PUBLIC_INTERCOM_ID: re9q5yti
NEXT_PUBLIC_CAPSULE_API_KEY_PROD: ${{ secrets.CAPSULE_API_KEY_PROD }}
NEXT_PUBLIC_DRPC_KEY: AnmpasF2C0JBqeAEzxVO8aTteiMlrW4R75hpDonbV6cR

on: [push]
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ tsconfig.vitest-temp.json

.dev.vars

*yalc*
*yalc*
certificates
11 changes: 11 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ const babelIncludeRegexes = [
* @type {import('next').NextConfig}
* */
const nextConfig = {
transpilePackages: [
'@usecapsule/rainbowkit',
'@usecapsule/rainbowkit-wallet',
'@usecapsule/core-components',
'@usecapsule/react-components',
'@usecapsule/react-sdk',
'@usecapsule/core-sdk',
'@usecapsule/web-sdk',
'@usecapsule/wagmi-v2-integration',
'@usecapsule/viem-v2-integration',
],
reactStrictMode: true,
compiler: {
styledComponents: true,
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.123",
"scripts": {
"dev": "NODE_NO_WARNINGS=1 next dev",
"dev:https": "next-dev-https --https --qr --port 3000",
"dev:https": "next dev --experimental-https --port 443",
"dev:nlocal": "NEXT_PUBLIC_PROVIDER=http://localhost:8545 NEXT_PUBLIC_AVUP_ENDPOINT=http://localhost:8787 pnpm dev",
"dev:localname": "NEXT_PUBLIC_PROVIDER=\"http://$(\"hostname\"):8545\" && NEXT_PUBLIC_AVUP_ENDPOINT=\"http://$(\"hostname\"):8787\" && NEXT_PUBLIC_GRAPH_URI=\"http://$(\"hostname\"):8000/subgraphs/name/graphprotocol/ens\" && pnpm dev",
"dev:glocal": "rm -rf .next && NEXT_PUBLIC_GRAPH_URI=http://localhost:8000/subgraphs/name/graphprotocol/ens NEXT_PUBLIC_ETH_NODE=anvil pnpm dev:nlocal",
Expand Down Expand Up @@ -60,18 +60,21 @@
"@metamask/post-message-stream": "^6.1.2",
"@metamask/providers": "^14.0.2",
"@noble/hashes": "^1.3.2",
"@rainbow-me/rainbowkit": "2.1.2",
"@sentry/nextjs": "7.43.x",
"@sentry/nextjs": "^7.43.0",
"@splidejs/react-splide": "^0.7.12",
"@svgr/webpack": "^8.1.0",
"@tanstack/query-persist-client-core": "5.22.2",
"@tanstack/query-sync-storage-persister": "5.22.2",
"@tanstack/react-query": "5.22.2",
"@tanstack/react-query-devtools": "^5.59.0",
"@tanstack/react-query-persist-client": "5.22.2",
"@usecapsule/rainbowkit": "3.2.1",
"@usecapsule/rainbowkit-wallet": "1.2.1",
"@wagmi/core": "2.13.3",
"calendar-link": "^2.2.0",
"dns-packet": "^5.4.0",
"form-data": "^4.0.0",
"glob": "^8.0.3",
"graphql-request": "5.1.0",
"i18next": "^21.9.1",
"i18next-browser-languagedetector": "^6.1.5",
Expand All @@ -83,6 +86,7 @@
"lodash": "^4.17.21",
"markdown-to-jsx": "^7.1.7",
"next": "13.5.6",
"node-forge": "1.3.1",
"node-fetch": "^3.3.2",
"react": "*",
"react-confetti": "^6.1.0",
Expand Down Expand Up @@ -283,7 +287,8 @@
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
},
"packageManager": "[email protected]"
Expand Down
36 changes: 36 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 27d0e3a0073c20adff764c71575e200d6ac23432..0000000000000000000000000000000000000000
diff --git a/flash/README.md b/flash/README.md
deleted file mode 100644
index 1576ebf1a99dab1462caa81c14240864ed1454cb..0000000000000000000000000000000000000000
diff --git a/flash/package.json b/flash/package.json
deleted file mode 100644
index 92689fa9b24e93a631d2b52572030d7e17ccb10f..0000000000000000000000000000000000000000
diff --git a/lib/rsa.js b/lib/rsa.js
index 5c73209f9a1c97c8f1e58bc2930426c4f580776a..fb4cdad07208d23c10dedbc1f39b1435a4539d65 100644
--- a/lib/rsa.js
+++ b/lib/rsa.js
@@ -1717,13 +1717,15 @@ function _generateKeyPair(state, options, callback) {

var opts = {
algorithm: {
- name: options.algorithm || 'PRIMEINC',
- options: {
- workers: options.workers || 2,
- workLoad: options.workLoad || 100,
- workerScript: options.workerScript
- }
- }
+ name: options.algorithm || "PRIMEINC",
+ options: options.workerScript
+ ? {
+ workers: options.workers || 2,
+ workLoad: options.workLoad || 100,
+ workerScript: options.workerScript,
+ }
+ : {},
+ },
};
if('prng' in options) {
opts.prng = options.prng;
Loading
Loading