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

fix: approved caip networks data for universal provider #2872

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

zoruka
Copy link
Contributor

@zoruka zoruka commented Sep 18, 2024

Description

This PR is adding the logic to verify the available networks when connecting through Universal Provider.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-xxx
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
appkit-laboratory ✅ Ready (Inspect) Visit Preview Sep 20, 2024 5:49pm
web3modal-gallery ✅ Ready (Inspect) Visit Preview Sep 20, 2024 5:49pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Sep 20, 2024 5:49pm

Copy link

changeset-bot bot commented Sep 18, 2024

🦋 Changeset detected

Latest commit: 59c51b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 34 packages
Name Type
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-core Patch
@apps/demo Patch
@apps/gallery Patch
@apps/laboratory Patch
@examples/html-ethers Patch
@examples/html-ethers5 Patch
@examples/html-wagmi Patch
@examples/next-ethers Patch
@examples/next-wagmi Patch
@examples/react-ethers Patch
@examples/react-ethers5 Patch
@examples/react-solana Patch
@examples/react-wagmi Patch
@examples/vue-ethers5 Patch
@examples/vue-solana Patch
@examples/vue-wagmi Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-polkadot Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-common Patch
@reown/appkit-ethers Patch
@reown/appkit-ethers5 Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-solana Patch
@reown/appkit-ui Patch
@reown/appkit-wagmi Patch
@reown/appkit-wallet Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Sep 18, 2024

Coverage Report for Coverage

Status Category Percentage Covered / Total
🔵 Lines 239.57% 4137 / 10421
🔵 Statements 239.57% 4137 / 10421
🔵 Functions 269.93% 323 / 806
🔵 Branches 309.76% 566 / 1045
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/appkit/src/universal-adapter/client.ts 54.29% 43.39% 50% 54.29% 95-96, 104-108, 126-127, 130, 135-136, 138-140, 149-152, 154-156, 158-160, 162-164, 166-171, 173, 175-184, 186, 188-191, 193-198, 200, 202, 204-207, 220-222, 231-233, 235-237, 239-242, 244-245, 271-272, 290-295, 299-304, 314, 316-319, 325-333, 335, 337-338, 355-356, 358-363, 392, 396-399, 401-402, 438-441, 443, 445-447, 450-453, 457-458, 460-469, 471-472, 474-477, 515-520, 523-526, 530-531, 533-536, 538-540, 542-544, 546-553, 556-558, 560-575
packages/appkit/src/utils/HelpersUtil.ts 100% 90.9% 100% 100%
packages/core/src/controllers/NetworkController.ts 60.19% 65.78% 72.22% 60.19% 46-47, 53-56, 58-67, 75-76, 89-90, 93-94, 107-113, 126-127, 133-134, 148-151, 165, 167-168, 170-177, 180-181, 183-185, 187-188, 190, 192-196, 198-199, 203-204, 216-217, 234-235, 238-239, 252-253, 263, 265-267, 269-270, 274
Generated in workflow #6221

Copy link
Contributor

github-actions bot commented Sep 18, 2024

♻️ Vite-Size ♻️

Size Difference

Size (kb) Gzip (kb)
Total Diff. 0 0

Current Size

Name Size (kb) Gzip (kb)
assets/index-YBwEB8hU.js 1867.174 532.987
assets/index.js 9.63 3.161
assets/index2.js 11.572 3.199
assets/w3m-modal.js 7.397 2.616
assets/noble-curves.js 31.941 12.778
assets/2.21.4_bufferutil.js 2.789 1.328
assets/index3.js 102.251 29.116
assets/index4.js 304.393 87.286
assets/hooks.module.js 74.443 25.59
index.html 0.329 0.237
Total Size 2411.919 698.298

Base Size

Name Size (kb) Gzip (kb)
assets/index-YBwEB8hU.js 1867.174 532.987
assets/index.js 9.63 3.161
assets/index2.js 11.572 3.199
assets/w3m-modal.js 7.397 2.616
assets/noble-curves.js 31.941 12.778
assets/2.21.4_bufferutil.js 2.789 1.328
assets/index3.js 102.251 29.116
assets/index4.js 304.393 87.286
assets/hooks.module.js 74.443 25.59
index.html 0.329 0.237
Total Size 2411.919 698.298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants