You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/thirdweb/CHANGELOG.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,43 @@
1
1
# thirdweb
2
2
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({
0 commit comments