Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Nov 25, 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

[email protected]

Minor Changes

  • #5495 d1845f3 Thanks @kien-ngo! - Add headless components: ChainProvider, ChainIcon & ChainName

  • #5529 7488102 Thanks @gregfromstl! - Adds LoyaltyCard extensions and support for ERC721 deployment.

    import { deployERC721Contract } from "thirdweb/deploys";
    
    const loyaltyCardContractAddress = await deployERC721Contract({
      chain: "your-chain-id", // replace with your chain ID
      client: yourThirdwebClient, // replace with your Thirdweb client instance
      account: yourAccount, // replace with your account details
      type: "LoyaltyCard",
      params: {
        name: "MyLoyaltyCard",
        symbol: "LOYAL",
        description: "A loyalty card NFT contract",
        image: "path/to/image.png", // replace with your image path
        defaultAdmin: "0xYourAdminAddress", // replace with your admin address
        royaltyRecipient: "0xYourRoyaltyRecipient", // replace with your royalty recipient address
        royaltyBps: 500n, // 5% royalty
        trustedForwarders: ["0xTrustedForwarderAddress"], // replace with your trusted forwarder addresses
        saleRecipient: "0xYourSaleRecipient", // replace with your sale recipient address
        platformFeeBps: 200n, // 2% platform fee
        platformFeeRecipient: "0xYourPlatformFeeRecipient", // replace with your platform fee recipient address
      },
    });

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes


PR-Codex overview

This PR focuses on updating versions and enhancing the @thirdweb-dev/service-utils and thirdweb packages. It includes new features, bug fixes, and improvements in type definitions.

Detailed summary

  • Updated @thirdweb-dev/service-utils version to 0.4.51.
  • Added promptTokens and completionTokens fields in @thirdweb-dev/service-utils.
  • Updated thirdweb version to 5.72.0.
  • Introduced headless components: ChainProvider, ChainIcon, and ChainName.
  • Added LoyaltyCard extensions and ERC721 deployment support.
  • Fixed UI issue with assetTabs.
  • Corrected transaction cost estimation for pay transaction modal.

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

@vercel
Copy link

vercel bot commented Nov 25, 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 2, 2024 1:42am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 1:42am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 1:42am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 1:42am

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 25, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.92 KB (0%) 959 ms (0%) 3.5 s (+3.78% 🔺) 4.5 s
thirdweb (cjs) 107.32 KB (0%) 2.2 s (0%) 6.9 s (+11.08% 🔺) 9.1 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 245 ms (+106.4% 🔺) 356 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 77 ms (-2.07% 🔽) 87 ms
thirdweb/react (minimal + tree-shaking) 18.28 KB (0%) 366 ms (0%) 436 ms (-7.84% 🔽) 802 ms

@codecov
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.22%. Comparing base (9337925) to head (fa300b5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5506      +/-   ##
==========================================
+ Coverage   46.18%   46.22%   +0.04%     
==========================================
  Files        1082     1080       -2     
  Lines       58626    58562      -64     
  Branches     3933     3933              
==========================================
- Hits        27079    27073       -6     
+ Misses      30864    30806      -58     
  Partials      683      683              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 9337925
packages 41.79% <ø> (+0.04%) ⬆️

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

see 2 files with indirect coverage changes

@jnsdls jnsdls force-pushed the changeset-release/main branch from c855dc9 to 76d04f7 Compare November 26, 2024 06:07
@jnsdls jnsdls force-pushed the changeset-release/main branch from 76d04f7 to 38eefd8 Compare November 26, 2024 09:06
@jnsdls jnsdls force-pushed the changeset-release/main branch from 38eefd8 to e0bd6f3 Compare November 26, 2024 20:07
@jnsdls jnsdls force-pushed the changeset-release/main branch from e0bd6f3 to f04204a Compare November 26, 2024 20:34
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.

3 participants