Skip to content

Commit de2a7ba

Browse files
Version Packages (#5503)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ac42c45 commit de2a7ba

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

.changeset/long-queens-draw.md

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

packages/thirdweb/CHANGELOG.md

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

3+
## 5.71.0
4+
5+
### Minor Changes
6+
7+
- [#5501](https://github.com/thirdweb-dev/js/pull/5501) [`ac42c45`](https://github.com/thirdweb-dev/js/commit/ac42c4538ef41cc842d2fd723471c21d865ee411) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Added new deployment utility functions to help manage infrastructure contracts and initialization:
8+
9+
- `getInitializeTransaction`: Prepare initialization transaction for contract deployment
10+
- `getOrDeployInfraForPublishedContract`: Get or deploy required infrastructure for published contracts
11+
12+
```typescript
13+
import {
14+
getInitializeTransaction,
15+
getOrDeployInfraForPublishedContract,
16+
} from "thirdweb";
17+
18+
// Get initialization transaction
19+
const initTx = await getInitializeTransaction({
20+
client,
21+
chain,
22+
account,
23+
implementationContract,
24+
deployMetadata,
25+
initializeParams: {
26+
name: "My Contract",
27+
symbol: "CNTRCT",
28+
},
29+
});
30+
31+
// Get or deploy infrastructure
32+
const infra = await getOrDeployInfraForPublishedContract({
33+
chain,
34+
client,
35+
account,
36+
contractId: "MyContract",
37+
constructorParams: params,
38+
});
39+
```
40+
341
## 5.70.1
442

543
### 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.70.1",
3+
"version": "5.71.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

0 commit comments

Comments
 (0)