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 #4842

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Version Packages #4842

wants to merge 1 commit into from

Conversation

jnsdls
Copy link
Member

@jnsdls jnsdls commented Sep 28, 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

  • #4579 90b5495 Thanks @kien-ngo! - Add Pack extensions

    Deploy Pack

    import { deployPackContract } from "thirdweb/extensions/deploy";
    
    const packAddress = await deployPackContract({
      account,
      client,
      chain,
      params: {
        name: "Pack contract name",
        symbol: "PACK1155",
      },
    });

    Create a Pack

    import { createPack } from "thirdweb/extensions/pack";
    
    const transaction = createPack({
      contract: packContract,
      client,
      recipient: "0x...",
      tokenOwner: "0x...",
      packMetadata: {
        name: "Pack #1",
        image: "image-of-pack-1",
      },
      openStartTimestamp: new Date(),
      erc20Rewards: [
        {
          contractAddress: "0x...",
          quantityPerReward: 1,
          totalRewards: 1,
        },
      ],
      erc721Rewards: [
        {
          contractAddress: "0x...",
          tokenId: 0n,
        },
      ],
      erc1155Rewards: [
        {
          contractAddress: "0x...",
          tokenId: 0n,
          quantityPerReward: 1,
          totalRewards: 1,
        },
      ],
    });

PR-Codex overview

This PR updates the thirdweb package version from 5.59.2 to 5.60.0 and introduces new features related to Pack extensions, including deployment and creation functionalities.

Detailed summary

  • Updated version in package.json from 5.59.2 to 5.60.0.
  • Added new section in CHANGELOG.md for version 5.60.0.
  • Introduced deployPackContract function for deploying pack contracts.
  • Introduced createPack function for creating packs with metadata and rewards.

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

Copy link

vercel bot commented Sep 28, 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 Sep 28, 2024 11:28pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 11:28pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 11:28pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 11:28pm

Copy link

graphite-app bot commented Sep 28, 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.

Copy link
Contributor

github-actions bot commented Sep 28, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.91 KB (0%) 839 ms (0%) 3.3 s (+29.78% 🔺) 4.1 s
thirdweb (cjs) 101.54 KB (0%) 2.1 s (0%) 4.5 s (-5.6% 🔽) 6.5 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 308 ms (+123.74% 🔺) 404 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 93 ms (-9.37% 🔽) 103 ms
thirdweb/react (minimal + tree-shaking) 16.76 KB (0%) 336 ms (0%) 389 ms (-47.1% 🔽) 724 ms

Copy link

codecov bot commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.86%. Comparing base (6c26012) to head (aab45d5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4842      +/-   ##
==========================================
- Coverage   47.87%   47.86%   -0.02%     
==========================================
  Files        1054     1054              
  Lines       57093    57093              
  Branches     3928     3929       +1     
==========================================
- Hits        27334    27326       -8     
- Misses      29071    29079       +8     
  Partials      688      688              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 6c26012
packages 43.66% <ø> (-0.02%) ⬇️

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

see 2 files with indirect coverage changes

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.

1 participant