Skip to content

Releases: thirdweb-dev/js

@thirdweb-dev/react-native-adapter@1.4.4

03 Oct 01:38
bfe9753
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.60.0

01 Oct 00:42
97c0900
Compare
Choose a tag to compare

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,
        },
      ],
    });

Patch Changes

thirdweb@5.59.2

28 Sep 08:52
70adb57
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.59.1

27 Sep 22:34
bec828d
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.59.0

26 Sep 03:34
98f2b56
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@thirdweb-dev/service-utils@0.4.40

26 Sep 03:34
98f2b56
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/react-native-adapter@1.4.3

26 Sep 03:34
98f2b56
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.58.5

23 Sep 19:44
daf5fda
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.58.4

23 Sep 07:21
5a4ef08
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/service-utils@0.4.39

23 Sep 19:44
daf5fda
Compare
Choose a tag to compare

Patch Changes