web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

:feat refactor adapter clients

Open svenvoskamp opened this issue 1 year ago • 2 comments

Description

Please include a brief summary of the change.

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

svenvoskamp avatar Oct 11 '24 15:10 svenvoskamp

🦋 Changeset detected

Latest commit: fbef7e5cc119b16d609aaa080c474e9dad963937

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

This PR includes changesets to release 20 packages
Name Type
@reown/appkit-adapter-polkadot Minor
@reown/appkit-adapter-ethers5 Minor
@reown/appkit-adapter-ethers Minor
@reown/appkit-adapter-solana Minor
@reown/appkit-adapter-wagmi Minor
@reown/appkit-utils Minor
@reown/appkit-experimental Minor
@reown/appkit-scaffold-ui Minor
@reown/appkit-polyfills Minor
@apps/laboratory Minor
@reown/appkit Minor
@reown/appkit-common Minor
@reown/appkit-wallet Minor
@reown/appkit-core Minor
@reown/appkit-siwe Minor
@reown/appkit-siwx Minor
@apps/gallery Minor
@reown/appkit-cdn Minor
@reown/appkit-ui Minor
@apps/demo Minor

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

changeset-bot[bot] avatar Oct 11 '24 15:10 changeset-bot[bot]

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

Name Status Preview Comments Updated (UTC)
appkit-gallery ✅ Ready (Inspect) Visit Preview Nov 13, 2024 3:01pm
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:01pm
appkit-vue-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:01pm
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:01pm
vue-wagmi-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:01pm
web3modal-gallery ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:01pm

vercel[bot] avatar Oct 11 '24 15:10 vercel[bot]

Coverage Report for Coverage

Status Category Percentage Covered / Total
🔵 Lines 318.64% 4308 / 19590
🔵 Statements 318.64% 4308 / 19590
🔵 Functions 363.19000000000005% 368 / 1127
🔵 Branches 471.15999999999997% 685 / 1381
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/appkit/exports/adapters.ts 0% 0% 0% 0% 1
packages/appkit/exports/constants.ts 0% 0% 0% 0% 1
packages/appkit/src/client.ts 39.01% 69.23% 68.37% 39.01% 188-189, 233-234, 237-238, 253-256, 259-262, 265-266, 295-306, 309-318, 413, 417, 424, 462-465, 471-478, 481, 569-581, 596-599, 606-607, 615-616, 631-632, 635-636, 639-640, 643-644, 652-656, 661-668, 685-688, 699-782, 784-817, 819-823, 825-846, 848-853, 855-863, 865-874, 876-896, 898-905, 907-918, 920-933, 935-938, 940-943, 948-1008, 1011-1024, 1032-1033, 1041-1145, 1150-1190, 1197-1212, 1216-1218, 1222-1237, 1242-1252, 1255-1327, 1330-1344, 1347-1359, 1362-1404, 1407-1447, 1450-1461, 1472, 1486, 1488-1489, 1491-1492, 1494-1506, 1517, 1519-1520, 1526-1537, 1544-1545, 1555, 1557, 1578-1593, 1600-1601, 1639, 1650-1662
packages/appkit/src/adapters/ChainAdapterBlueprint.ts 22.47% 66.66% 20% 22.47% 54-55, 63-66, 81-82, 89-98, 105-114, 121-148, 157-162, 171-175, 184-188
packages/appkit/src/adapters/ChainAdapterConnector.ts 100% 100% 100% 100%
packages/appkit/src/adapters/index.ts 0% 0% 0% 0% 1
packages/appkit/src/store/ProviderUtil.ts 42.1% 100% 0% 42.1% 32-33, 36-37, 40-43, 46-47, 50-53, 56-57, 60-62, 65-67
packages/appkit/src/store/index.ts 0% 0% 0% 0% 1
packages/appkit/src/universal-adapter/client.ts 39.63% 100% 18.75% 39.63% 26-35, 44-45, 48-53, 56-69, 78-81, 84-88, 91-94, 97-100, 103-106, 109-110, 113-114, 117-124, 139-144
packages/appkit/src/universal-adapter/index.ts 0% 0% 0% 0% 1
packages/appkit/src/utils/HelpersUtil.ts 92.68% 85.71% 75% 92.68% 71-72, 85-89
packages/appkit-utils/src/ConstantsUtil.ts 100% 100% 100% 100%
packages/appkit-utils/src/ethers/EthersStoreUtil.ts 0% 0% 0% 0% 1-95
packages/common/src/utils/SafeLocalStorage.ts 91.11% 100% 80% 91.11% 59-62
packages/core/src/controllers/AccountController.ts 43.85% 83.33% 38.46% 43.85% 62-63, 69-76, 79-100, 103-104, 107-108, 111-114, 159-160, 171-172, 175-176, 179-182, 185-188, 191-195, 205-211, 214-220, 223-229, 232-261, 268-269
packages/core/src/controllers/ChainController.ts 70.57% 68.51% 66.66% 70.57% 71-74, 77-81, 84-101, 106-107, 144-145, 187-197, 202-203, 223-224, 228-236, 239-254, 257-260, 268-269, 272-273, 282-283, 288-289, 305-306, 311-312, 324-325, 358-366, 369-370, 373-374, 405-412, 424-425, 444-447, 470-471
packages/core/src/controllers/ConnectionController.ts 35.12% 66.66% 26.92% 35.12% 86-90, 104-134, 152-154, 157-173, 176-177, 180-181, 184-185, 188-189, 192-193, 196-197, 200-201, 204-205, 208-209, 212-213, 230-231, 234-236, 239-240, 243-244, 247-248, 256-262, 267-268, 277-330
packages/core/src/controllers/ConnectorController.ts 74.5% 89.47% 75% 74.5% 31-32, 44-50, 102-103, 118-119, 129-138, 194-215
packages/core/src/controllers/EnsController.ts 80% 57.89% 60% 80% 38-39, 42-43, 77-78, 95-97, 103-104, 109-110, 127-128, 135-136, 149-151, 160-163
packages/core/src/controllers/RouterController.ts 56.79% 100% 62.5% 56.79% 116-117, 124-161, 200-207
packages/core/src/controllers/SendController.ts 20.46% 100% 37.5% 20.46% 52-53, 56-57, 84-85, 88-89, 92-93, 96-108, 111-155, 158-210, 213-249, 252-277
packages/core/src/controllers/SwapController.ts 45.46% 61.53% 56.66% 45.46% 40-43, 166-167, 170-171, 180-181, 211-216, 242, 250-252, 261-265, 269-284, 287-300, 311-312, 315-316, 320-321, 329-332, 365, 372, 377-396, 405-407, 420-421, 432-433, 445, 452-453, 457-465, 493-494, 516-517, 531, 540-579, 582-640, 643-694, 698-734, 737-822, 838, 854-855
packages/core/src/utils/StorageUtil.ts 69.15% 74.07% 83.33% 69.15% 49-50, 59-62, 69-70, 74-79, 85-88, 95-96, 103-106, 113-116, 120-129
packages/core/src/utils/SwapApiUtil.ts 97.11% 79.16% 100% 97.11% 53-54, 107
packages/core/src/utils/TypeUtil.ts 100% 100% 100% 100%
packages/experimental/src/smart-session/grantPermissions.ts 0% 0% 0% 0% 1-152
packages/experimental/src/smart-session/controllers/SmartSessionsController.ts 51.74% 54.54% 50% 51.74% 47-51, 53-76, 84-85, 92-93, 149-150, 158-161, 165-166, 169-171, 178-179, 187, 193-232
packages/scaffold-ui/src/modal/w3m-account-button/index.ts 0% 0% 0% 0% 1-116
packages/scaffold-ui/src/modal/w3m-modal/index.ts 0% 0% 0% 0% 1-275
packages/scaffold-ui/src/partials/w3m-account-auth-button/index.ts 0% 0% 0% 0% 1-65
packages/scaffold-ui/src/partials/w3m-account-default-widget/index.ts 0% 0% 0% 0% 1-328
packages/scaffold-ui/src/partials/w3m-connect-external-widget/index.ts 0% 0% 0% 0% 1-62
packages/scaffold-ui/src/partials/w3m-connect-injected-widget/index.ts 0% 0% 0% 0% 1-96
packages/scaffold-ui/src/partials/w3m-connector-list/index.ts 0% 0% 0% 0% 1-119
packages/scaffold-ui/src/partials/w3m-header/index.ts 0% 0% 0% 0% 1-332
packages/scaffold-ui/src/views/w3m-account-settings-view/index.ts 0% 0% 0% 0% 1-303
packages/scaffold-ui/src/views/w3m-account-view/index.ts 0% 0% 0% 0% 1-28
packages/scaffold-ui/src/views/w3m-network-switch-view/index.ts 0% 0% 0% 0% 1-140
packages/scaffold-ui/src/views/w3m-networks-view/index.ts 0% 0% 0% 0% 1-181
packages/ui/src/composites/wui-list-account/index.ts 0% 0% 0% 0%
Generated in workflow #7337 for commit fbef7e5 by the Vitest Coverage Report Action

github-actions[bot] avatar Nov 05 '24 15:11 github-actions[bot]

Warnings
:warning: Changes were made to one or more package.json(s), but not to pnpm-lock.yaml

Generated by :no_entry_sign: dangerJS against fbef7e5cc119b16d609aaa080c474e9dad963937

github-actions[bot] avatar Nov 06 '24 14:11 github-actions[bot]

This is missing a changeset!

tomiir avatar Nov 13 '24 11:11 tomiir