Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Dec 13, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@thirdweb-dev/[email protected]

Minor Changes

  • #5644 8d2e2ad Thanks @joaquim-verges! - Wagmi connector for in-app wallets

    You can now connect to an in-app wallet in your wagmi applications.

    Install the wagmi adapter:

    npm install @thirdweb-dev/wagmi-adapter

    Create a wagmi config with the in-app wallet connector:

    import { http, createConfig } from "wagmi";
    import { inAppWalletConnector } from "@thirdweb-dev/wagmi-adapter";
    import { createThirdwebClient, defineChain as thirdwebChain } from "thirdweb";
    
    const client = createThirdwebClient({
      clientId: "...",
    });
    
    export const config = createConfig({
      chains: [sepolia],
      connectors: [
        inAppWalletConnector({
          client,
          // optional: turn on smart accounts
          smartAccounts: {
            sponsorGas: true,
            chain: thirdwebChain(sepolia),
          },
        }),
      ],
      transports: {
        [sepolia.id]: http(),
      },
    });

    Then in your app, you can use the connector to connect with any supported strategy:

    const { connect, connectors } = useConnect();
    
    const onClick = () => {
      const inAppWallet = connectors.find((x) => x.id === "in-app-wallet");
      connect({
        connector: inAppWallet,
        strategy: "google",
      });
    };

PR-Codex overview

This PR updates the @thirdweb-dev/wagmi-adapter package to version 0.1.0, introducing a new connector for in-app wallets and providing installation and usage instructions.

Detailed summary

  • Updated version in packages/wagmi-adapter/package.json from 0.0.1 to 0.1.0.
  • Modified files structure in packages/wagmi-adapter/package.json.
  • Added a new section in packages/wagmi-adapter/CHANGELOG.md for version 0.1.0.
  • Introduced a new in-app wallet connector with usage instructions in the changelog.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Dec 13, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 2:46am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 2:46am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 2:46am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 2:46am

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 13, 2024

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@codecov
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.85%. Comparing base (8d2e2ad) to head (21559db).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5717   +/-   ##
=======================================
  Coverage   52.85%   52.85%           
=======================================
  Files        1098     1098           
  Lines       58976    58976           
  Branches     4788     4788           
=======================================
  Hits        31173    31173           
  Misses      27087    27087           
  Partials      716      716           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 8d2e2ad
packages 49.95% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.94 KB (0%) 899 ms (0%) 1.2 s (-6.25% 🔽) 2.1 s
thirdweb (cjs) 110.78 KB (0%) 2.3 s (0%) 2.5 s (+10.91% 🔺) 4.8 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 97 ms (+3% 🔺) 209 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 18 ms (-12.05% 🔽) 28 ms
thirdweb/react (minimal + tree-shaking) 19.03 KB (0%) 381 ms (0%) 274 ms (+55.9% 🔺) 655 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants