-
Notifications
You must be signed in to change notification settings - Fork 46
Draft: walletconnect support #52
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
base: eternalsafe
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📦 Next.js Bundle Analysis for eternalsafe-walletThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| Page | Size (compressed) |
|---|---|
global |
1.13 MB (🔴 +399.57 KB) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
New Page Added
The following page was added to the bundle from the code in this PR:
| Page | Size (compressed) | First Load |
|---|---|---|
/wallet-connect/transaction |
47.38 KB |
1.18 MB |
Sixteen Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
| Page | Size (compressed) | First Load |
|---|---|---|
/address-book |
28.24 KB (🟢 -120 B) |
1.16 MB |
/balances |
31.35 KB (🟢 -5.44 KB) |
1.16 MB |
/balances/nfts |
28.54 KB (🟢 -5.44 KB) |
1.16 MB |
/new-safe/load |
20.36 KB (🟢 -2.05 KB) |
1.15 MB |
/settings/appearance |
3.63 KB (🟢 -5.81 KB) |
1.14 MB |
/settings/data |
1.8 KB (🟢 -5.81 KB) |
1.13 MB |
/settings/environment-variables |
4.69 KB (🟢 -5.68 KB) |
1.14 MB |
/settings/modules |
3.36 KB (🟢 -5.81 KB) |
1.14 MB |
/settings/security-login |
24.16 KB (🟢 -5.81 KB) |
1.16 MB |
/settings/setup |
26.18 KB (🟢 -5.81 KB) |
1.16 MB |
/transactions |
43.97 KB (🟢 -5.98 KB) |
1.17 MB |
/transactions/history |
43.96 KB (🟢 -5.98 KB) |
1.17 MB |
/transactions/queue |
43.96 KB (🟢 -5.98 KB) |
1.17 MB |
/transactions/tx |
40.74 KB (🟢 -175 B) |
1.17 MB |
/welcome |
4.77 KB (🟡 +8 B) |
1.14 MB |
/welcome/social-login |
8.5 KB (🟡 +4 B) |
1.14 MB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
Coverage report
Show files with reduced coverage 🔻
Test suite run success761 tests passing in 120 suites. Report generated by 🧪jest coverage report action from 6808e5e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
src/components/common/WalletConnectTransactionHandler/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
| } | ||
|
|
||
| initWalletKit() | ||
| }, [projectId, isInitialized, isInitializing, pairingCode, setupEventListeners]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Hook useEffect has a missing dependency: 'setWalletKitInstance'. Either include it or remove the dependency array. If 'setWalletKitInstance' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
Suggestion(s) available:
| }, [projectId, isInitialized, isInitializing, pairingCode, setupEventListeners]) | |
| }, [projectId, isInitialized, isInitializing, pairingCode, setupEventListeners, setWalletKitInstance]) |
| throw e | ||
| } | ||
| }, | ||
| [isInitialized], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Hook useCallback has a missing dependency: 'walletKitInstance'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
Suggestion(s) available:
| [isInitialized], | |
| [isInitialized, walletKitInstance], |
| throw e | ||
| } | ||
| }, | ||
| [isInitialized], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Hook useCallback has a missing dependency: 'walletKitInstance'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
Suggestion(s) available:
| [isInitialized], | |
| [isInitialized, walletKitInstance], |
| import SignOrExecuteForm from '@/components/tx/SignOrExecuteForm' | ||
| import PageHeader from '@/components/common/PageHeader' | ||
| import { AppRoutes } from '@/config/routes' | ||
| import { TransactionDetails, TransactionInfoType } from '@safe-global/safe-gateway-typescript-sdk' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'TransactionInfoType' is defined but never used. unused-imports/no-unused-imports-ts
Fix available:
| import { TransactionDetails, TransactionInfoType } from '@safe-global/safe-gateway-typescript-sdk' | |
| import { TransactionDetails } from '@safe-global/safe-gateway-typescript-sdk' |
| if (safeTx) { | ||
| extractTxDetails(safeAddress, safeTx, safe).then(setTxDetails) | ||
| } | ||
| }, [safeTx]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React Hook useEffect has missing dependencies: 'safe' and 'safeAddress'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
Suggestion(s) available:
| }, [safeTx]) | |
| }, [safe, safeAddress, safeTx]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
What it solves
Resolves #
How this PR fixes it
How to test it
Screenshots
Checklist