diff --git a/.changeset/long-queens-draw.md b/.changeset/long-queens-draw.md deleted file mode 100644 index 2853f28dc5d..00000000000 --- a/.changeset/long-queens-draw.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -"thirdweb": minor ---- - -Added new deployment utility functions to help manage infrastructure contracts and initialization: - -- `getInitializeTransaction`: Prepare initialization transaction for contract deployment -- `getOrDeployInfraForPublishedContract`: Get or deploy required infrastructure for published contracts - -```typescript -import { - getInitializeTransaction, - getOrDeployInfraForPublishedContract -} from "thirdweb"; - -// Get initialization transaction -const initTx = await getInitializeTransaction({ - client, - chain, - account, - implementationContract, - deployMetadata, - initializeParams: { - name: "My Contract", - symbol: "CNTRCT" - } -}); - -// Get or deploy infrastructure -const infra = await getOrDeployInfraForPublishedContract({ - chain, - client, - account, - contractId: "MyContract", - constructorParams: params -}); -``` diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index ef7e2f80863..e5c7e7b3fc1 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,43 @@ # thirdweb +## 5.71.0 + +### Minor Changes + +- [#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: + + - `getInitializeTransaction`: Prepare initialization transaction for contract deployment + - `getOrDeployInfraForPublishedContract`: Get or deploy required infrastructure for published contracts + + ```typescript + import { + getInitializeTransaction, + getOrDeployInfraForPublishedContract, + } from "thirdweb"; + + // Get initialization transaction + const initTx = await getInitializeTransaction({ + client, + chain, + account, + implementationContract, + deployMetadata, + initializeParams: { + name: "My Contract", + symbol: "CNTRCT", + }, + }); + + // Get or deploy infrastructure + const infra = await getOrDeployInfraForPublishedContract({ + chain, + client, + account, + contractId: "MyContract", + constructorParams: params, + }); + ``` + ## 5.70.1 ### Patch Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 8e296934f14..0288aa4c7fd 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.70.1", + "version": "5.71.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main"