Skip to content

Commit 97c0900

Browse files
Version Packages (#4842)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5d0505c commit 97c0900

File tree

5 files changed

+68
-68
lines changed

5 files changed

+68
-68
lines changed

.changeset/forty-bags-travel.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/olive-rings-develop.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/sixty-seals-tell.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

packages/thirdweb/CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
# thirdweb
22

3+
## 5.60.0
4+
5+
### Minor Changes
6+
7+
- [#4579](https://github.com/thirdweb-dev/js/pull/4579) [`90b5495`](https://github.com/thirdweb-dev/js/commit/90b5495efb84b8220e7ba352416601c2f239d110) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add Pack extensions
8+
9+
### Deploy Pack
10+
11+
```ts
12+
import { deployPackContract } from "thirdweb/extensions/deploy";
13+
14+
const packAddress = await deployPackContract({
15+
account,
16+
client,
17+
chain,
18+
params: {
19+
name: "Pack contract name",
20+
symbol: "PACK1155",
21+
},
22+
});
23+
```
24+
25+
### Create a Pack
26+
27+
```ts
28+
import { createPack } from "thirdweb/extensions/pack";
29+
30+
const transaction = createPack({
31+
contract: packContract,
32+
client,
33+
recipient: "0x...",
34+
tokenOwner: "0x...",
35+
packMetadata: {
36+
name: "Pack #1",
37+
image: "image-of-pack-1",
38+
},
39+
openStartTimestamp: new Date(),
40+
erc20Rewards: [
41+
{
42+
contractAddress: "0x...",
43+
quantityPerReward: 1,
44+
totalRewards: 1,
45+
},
46+
],
47+
erc721Rewards: [
48+
{
49+
contractAddress: "0x...",
50+
tokenId: 0n,
51+
},
52+
],
53+
erc1155Rewards: [
54+
{
55+
contractAddress: "0x...",
56+
tokenId: 0n,
57+
quantityPerReward: 1,
58+
totalRewards: 1,
59+
},
60+
],
61+
});
62+
```
63+
64+
### Patch Changes
65+
66+
- [#4820](https://github.com/thirdweb-dev/js/pull/4820) [`80729e9`](https://github.com/thirdweb-dev/js/commit/80729e974808be1b2abd715af8e003b228d6da1b) Thanks [@MananTank](https://github.com/MananTank)! - Added "use client" directives on various client side hooks
67+
68+
- [#4871](https://github.com/thirdweb-dev/js/pull/4871) [`5d0505c`](https://github.com/thirdweb-dev/js/commit/5d0505c43cdb484504c252f6a45cf7dfbf4a2e57) Thanks [@edwardysun](https://github.com/edwardysun)! - Add purchaseData to direct transfer pay transactions
69+
370
## 5.59.2
471

572
### Patch Changes

packages/thirdweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.59.2",
3+
"version": "5.60.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

0 commit comments

Comments
 (0)