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

Version Packages #5921

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Version Packages #5921

merged 1 commit into from
Jan 15, 2025

Conversation

jnsdls
Copy link
Member

@jnsdls jnsdls commented Jan 9, 2025

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

[email protected]

Minor Changes

  • #5889 7a3dff0 Thanks @ElasticBottle! - Exposes autoConnect as a standalone function for use outside of react.

    import { autoConnect } from "thirdweb/wallets";
    
    const autoConnected = await autoConnect({
      client,
      onConnect: (wallet) => {
        console.log("wallet", wallet); /// wallet that is have been auto connected.
      },
    });
    console.log("isAutoConnected", isAutoConnected); // true or false
  • #5947 d1c03b0 Thanks @joaquim-verges! - Introducing engineAccount() for backend usage

    You can now use engineAccount() on the backend to create an account that can send transactions via your engine instance.

    This lets you use the full catalog of thirdweb SDK functions and extensions on the backend, with the performance, reliability, and monitoring of your engine instance.

    // get your engine url, auth token, and wallet address from your engine instance on the dashboard
    const engine = engineAccount({
      engineUrl: process.env.ENGINE_URL,
      authToken: process.env.ENGINE_AUTH_TOKEN,
      walletAddress: process.env.ENGINE_WALLET_ADDRESS,
    });
    
    // Now you can use engineAcc to send transactions, deploy contracts, etc.
    // For example, you can prepare extension functions:
    const tx = await claimTo({
      contract: getContract({ client, chain, address: "0x..." }),
      to: "0x...",
      tokenId: 0n,
      quantity: 1n,
    });
    
    // And then send the transaction via engine
    // this will automatically wait for the transaction to be mined and return the transaction hash
    const result = await sendTransaction({
      account: engine, // forward the transaction to your engine instance
      transaction: tx,
    });
    
    console.log(result.transactionHash);
  • #5948 b10f306 Thanks @joaquim-verges! - Introducing Nebula API

    You can now chat with Nebula and ask it to execute transactions with your wallet.

    Ask questions about real time blockchain data.

    import { Nebula } from "thirdweb/ai";
    
    const response = await Nebula.chat({
      client: TEST_CLIENT,
      prompt:
        "What's the symbol of this contract: 0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8",
      context: {
        chains: [sepolia],
      },
    });
    
    console.log("chat response:", response.message);

    Ask it to execute transactions with your wallet.

    import { Nebula } from "thirdweb/ai";
    
    const wallet = createWallet("io.metamask");
    const account = await wallet.connect({ client });
    
    const result = await Nebula.execute({
      client,
      prompt: "send 0.0001 ETH to vitalik.eth",
      account,
      context: {
        chains: [sepolia],
      },
    });
    
    console.log("executed transaction:", result.transactionHash);

Patch Changes

  • #5926 4b5661b Thanks @MananTank! - Export toEventSelector utility function from "thirdweb/utils"

  • #5923 42a313f Thanks @kumaryash90! - Fix deploy version for published contracts

  • #5924 7fb5ce1 Thanks @joaquim-verges! - Ensure resetting deploy flag on bundler errors

  • #5937 0e2b3df Thanks @MananTank! - Add isValidENSName utility function for checking if a string is a valid ENS name. It does not check if the name is actually registered, it only checks if the string is in a valid format.

    import { isValidENSName } from "thirdweb/utils";
    
    isValidENSName("thirdweb.eth"); // true
    isValidENSName("foo.bar.com"); // true
    isValidENSName("foo"); // false
  • #5790 e331e43 Thanks @gregfromstl! - Migrated underlying functionality to Ox

  • #5914 c5c6f9d Thanks @MananTank! - Do not prompt user for signing message for SIWE auth in Connect UI for Ecosystem wallets

@thirdweb-dev/[email protected]


PR-Codex overview

This PR focuses on updating versions and enhancing functionality in the wagmi-adapter and thirdweb packages. It includes version upgrades, new features, and utility functions.

Detailed summary

  • Updated version of @thirdweb-dev/wagmi-adapter from 0.1.7 to 0.1.8.
  • Updated version of thirdweb from 5.83.1 to 5.84.0.
  • Added autoConnect as a standalone function.
  • Introduced engineAccount() for backend usage.
  • Added Nebula API for transaction execution and querying blockchain data.
  • Exported toEventSelector utility function.
  • Added isValidENSName utility function for ENS name validation.
  • Fixed deploy version for published contracts and ensured proper error handling.

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

@jnsdls jnsdls requested review from a team as code owners January 9, 2025 20:42
Copy link

vercel bot commented Jan 9, 2025

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 Jan 15, 2025 2:03am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 2:03am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 2:03am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 2:03am

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Jan 9, 2025
Copy link

graphite-app bot commented Jan 9, 2025

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.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.68 KB (0%) 934 ms (0%) 3.7 s (+20.6% 🔺) 4.6 s
thirdweb (cjs) 116.72 KB (0%) 2.4 s (0%) 6.8 s (+9.44% 🔺) 9.1 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 318 ms (+2.26% 🔺) 430 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 256 ms (+337.33% 🔺) 266 ms
thirdweb/react (minimal + tree-shaking) 19.24 KB (0%) 385 ms (0%) 1.3 s (+1.08% 🔺) 1.7 s

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.86%. Comparing base (e331e43) to head (638ef94).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5921      +/-   ##
==========================================
+ Coverage   54.83%   54.86%   +0.03%     
==========================================
  Files        1142     1142              
  Lines       60952    60952              
  Branches     5138     5144       +6     
==========================================
+ Hits        33422    33441      +19     
+ Misses      26806    26784      -22     
- Partials      724      727       +3     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e331e43
packages 52.51% <ø> (+0.03%) ⬆️

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

see 5 files with indirect coverage changes

@jnsdls jnsdls force-pushed the changeset-release/main branch from 53451d3 to ef5235e Compare January 13, 2025 18:31
@jnsdls jnsdls force-pushed the changeset-release/main branch from ef5235e to 11bbe8f Compare January 14, 2025 11:57
@jnsdls jnsdls force-pushed the changeset-release/main branch from 11bbe8f to 638ef94 Compare January 14, 2025 17:44
@jnsdls jnsdls force-pushed the changeset-release/main branch from 638ef94 to 2c1e747 Compare January 14, 2025 18:01
@jnsdls jnsdls force-pushed the changeset-release/main branch from 2c1e747 to 58d5c40 Compare January 15, 2025 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants