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: Updates WalletConnect to v2 #1470

Merged
merged 112 commits into from
Jun 27, 2023
Merged

feat: Updates WalletConnect to v2 #1470

merged 112 commits into from
Jun 27, 2023

Conversation

JoaquinBattilana
Copy link
Member

@JoaquinBattilana JoaquinBattilana commented Feb 8, 2023

General Changes

  • Added a new WalletConnect connector for using the new version of WalletConnect sdk

Developer

  • There is a bug with the enable method of the WalletConnect provider, it returns a Promise but the promise only resolve when the user connects correctly, when the user closes the modal the Promise is still hanging.

Author Checklist

Please ensure you, the author, have gone through this checklist to ensure there is an efficient workflow for the reviewers.

  • The base branch is set to main
  • The title is using Conventional Commit formatting
  • The Github issue has been linked to the PR in the Development section
  • The General Changes section has been filled out
  • Developer Notes have been added (optional)

If the PR is ready for review:

  • The PR is in Open state and not in Draft mode
  • The Ready for Dev Review label has been added

Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code style generally follows existing patterns
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)
  • Code changes have been quality checked in the ephemeral URL
  • QA verification has been completed
  • There are two or more approvals from the core team
  • Squash and merge has been checked

@height
Copy link

height bot commented Feb 8, 2023

This pull request has been linked to 1 task:

💡Tip: Add "Close T-5133" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 612.63 KB (🟡 +86.87 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!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.03 KB (🟡 +2 B) 653.65 KB
/faucet 22.48 KB (🟡 +1 B) 635.11 KB
/governance 79.25 KB (-1 B) 691.87 KB
/history 31.2 KB (🟡 +1 B) 643.83 KB
/markets 17.13 KB (🟡 +1 B) 629.75 KB
/reserve-overview 65.92 KB (🟡 +2 B) 678.55 KB
/staking 20.62 KB (🟡 +2 B) 633.25 KB
/v3-migration 28.85 KB (🟡 +1 B) 641.48 KB
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.

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

@MareskoY
Copy link
Contributor

it's bugged

if try to connect via walletConnect we get error

Screenshot 2023-02-10 at 14 11 34

@0x4Graham
Copy link
Contributor

0x4Graham commented Feb 10, 2023 via email

@JoaquinBattilana
Copy link
Member Author

Oh yes, this PR is tagged as Draft because:

  1. we're waiting for the creation of the projectId
  2. we're waiting for WalletConnect team to address a bug with the modal state.

So it wont work for now.

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 526.02 KB (🟡 +266 B)
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!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.03 KB (🟡 +2 B) 567.05 KB
/faucet 22.48 KB (🟡 +1 B) 548.5 KB
/governance 79.25 KB (-1 B) 605.27 KB
/history 31.2 KB (🟡 +1 B) 557.22 KB
/markets 17.13 KB (🟡 +1 B) 543.15 KB
/reserve-overview 65.92 KB (🟡 +2 B) 591.94 KB
/staking 20.62 KB (🟡 +2 B) 546.64 KB
/v3-migration 28.85 KB (🟡 +1 B) 554.87 KB
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.

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 542.82 KB (🟡 +317 B)
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!

Seven Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.98 KB (🟡 +2 B) 584.8 KB
/faucet 22.9 KB (🟡 +1 B) 565.73 KB
/governance 79.63 KB (-1 B) 622.45 KB
/history 31.48 KB (🟡 +1 B) 574.31 KB
/reserve-overview 66.58 KB (🟡 +2 B) 609.4 KB
/staking 21.25 KB (🟡 +2 B) 564.08 KB
/v3-migration 29.27 KB (🟡 +2 B) 572.1 KB
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.

@grothem
Copy link
Collaborator

grothem commented Jun 23, 2023

Link T-5133

@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 542.85 KB (🟡 +340 B)
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!

Seven Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.98 KB (🟡 +2 B) 584.83 KB
/faucet 22.9 KB (🟡 +1 B) 565.75 KB
/governance 79.63 KB (-1 B) 622.47 KB
/history 31.48 KB (🟡 +1 B) 574.33 KB
/reserve-overview 66.58 KB (🟡 +2 B) 609.42 KB
/staking 21.25 KB (🟡 +2 B) 564.1 KB
/v3-migration 29.27 KB (🟡 +2 B) 572.12 KB
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.

defispartan
defispartan previously approved these changes Jun 27, 2023
0x4Graham
0x4Graham previously approved these changes Jun 27, 2023
@grothem grothem dismissed stale reviews from 0x4Graham and defispartan via be24232 June 27, 2023 14:40
@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 542.45 KB (🟡 +342 B)
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!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 42.09 KB (🟡 +2 B) 584.53 KB
/faucet 22.87 KB (🟡 +2 B) 565.32 KB
/governance 79.66 KB (-1 B) 622.1 KB
/history 31.59 KB (🟡 +1 B) 574.03 KB
/markets 17.66 KB (-1 B) 560.1 KB
/reserve-overview 66.59 KB (🟡 +2 B) 609.04 KB
/staking 21.37 KB (🟡 +1 B) 563.82 KB
/v3-migration 29.26 KB (🟡 +1 B) 571.7 KB
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.

@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 542.45 KB (🟡 +342 B)
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!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 42.09 KB (🟡 +2 B) 584.53 KB
/faucet 22.87 KB (🟡 +2 B) 565.32 KB
/governance 79.66 KB (-1 B) 622.1 KB
/history 31.59 KB (🟡 +1 B) 574.03 KB
/markets 17.66 KB (-1 B) 560.1 KB
/reserve-overview 66.59 KB (🟡 +2 B) 609.04 KB
/staking 21.37 KB (🟡 +1 B) 563.82 KB
/v3-migration 29.26 KB (🟡 +1 B) 571.7 KB
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.

@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 542.45 KB (🟡 +342 B)
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!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 42.09 KB (🟡 +2 B) 584.53 KB
/faucet 22.87 KB (🟡 +2 B) 565.32 KB
/governance 79.66 KB (-1 B) 622.1 KB
/history 31.59 KB (🟡 +1 B) 574.03 KB
/markets 17.66 KB (-1 B) 560.1 KB
/reserve-overview 66.59 KB (🟡 +2 B) 609.04 KB
/staking 21.37 KB (🟡 +1 B) 563.82 KB
/v3-migration 29.26 KB (🟡 +1 B) 571.7 KB
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.

@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 542.45 KB (🟡 +342 B)
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!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 42.09 KB (🟡 +2 B) 584.53 KB
/faucet 22.87 KB (🟡 +2 B) 565.32 KB
/governance 79.66 KB (-1 B) 622.1 KB
/history 31.59 KB (🟡 +1 B) 574.03 KB
/markets 17.66 KB (-1 B) 560.1 KB
/reserve-overview 66.59 KB (🟡 +2 B) 609.04 KB
/staking 21.37 KB (🟡 +1 B) 563.82 KB
/v3-migration 29.26 KB (🟡 +1 B) 571.7 KB
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.

@github-actions
Copy link

@grothem grothem merged commit e0ccdc0 into main Jun 27, 2023
33 checks passed
@grothem grothem deleted the feat/walletconnect-v2 branch June 27, 2023 19:19
grothem added a commit that referenced this pull request Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants