diff --git a/.changeset/fluffy-bars-crash.md b/.changeset/fluffy-bars-crash.md deleted file mode 100644 index a8bf6fe4ce5..00000000000 --- a/.changeset/fluffy-bars-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Deprecate Pack diff --git a/.changeset/fluffy-pigs-drive.md b/.changeset/fluffy-pigs-drive.md deleted file mode 100644 index 5f20b4b5b03..00000000000 --- a/.changeset/fluffy-pigs-drive.md +++ /dev/null @@ -1,95 +0,0 @@ ---- -"thirdweb": minor ---- - -Enhanced SDK Bridge functionality with the following key updates: - -1. **Breaking Change:** Standardized parameter naming in bridge functions: - - Changed `buyAmountWei` to `amount` in Buy functions - - Changed `sellAmountWei` to `amount` in Sell functions - - Example: - ```ts - // Before - const buyQuote = await buy.quote({ - originChainId: 1, - originTokenAddress: NATIVE_TOKEN_ADDRESS, - destinationChainId: 10, - destinationTokenAddress: NATIVE_TOKEN_ADDRESS, - buyAmountWei: toWei("0.01"), - client: thirdwebClient, - }); - - // After - const buyQuote = await buy.quote({ - originChainId: 1, - originTokenAddress: NATIVE_TOKEN_ADDRESS, - destinationChainId: 10, - destinationTokenAddress: NATIVE_TOKEN_ADDRESS, - amount: toWei("0.01"), - client: thirdwebClient, - }); - ``` - -2. **Enhanced Quote Structure:** Added `steps` array to buy/sell quote responses with detailed token information: - ```ts - // Steps contains detailed information about each step in a cross-chain transaction - steps: [ - { - originToken: { - chainId: 1, - address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - symbol: "ETH", - name: "Ethereum", - decimals: 18, - priceUsd: 2000, - iconUri: "https://..." - }, - destinationToken: { - chainId: 10, - address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - symbol: "ETH", - name: "Ethereum", - decimals: 18, - priceUsd: 2000, - iconUri: "https://..." - }, - originAmount: 1000000000000000000n, - destinationAmount: 9980000000000000000n, - estimatedExecutionTimeMs: 1000, - transactions: [/* transactions for this step */] - } - ] - ``` - -3. **Added Purchase Data Support:** Added optional `purchaseData` parameter to Buy and Sell functions: - ```ts - // Example with purchaseData - const quote = await buy.prepare({ - originChainId: 1, - originTokenAddress: NATIVE_TOKEN_ADDRESS, - destinationChainId: 10, - destinationTokenAddress: NATIVE_TOKEN_ADDRESS, - amount: toWei("0.01"), - sender: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", - receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", - purchaseData: { - foo: "bar", - }, - client: thirdwebClient, - }); - ``` - -4. **Enhanced Status Responses:** Status responses now include the `purchaseData` field that was provided during the initial transaction: - ```ts - // Status response includes purchaseData - { - status: "COMPLETED", - // ...other status fields - purchaseData: { - foo: "bar" - } - } - ``` - -5. **Updated API Interactions:** Changed from query parameters to JSON body for prepare functions to accommodate complex data. \ No newline at end of file diff --git a/.changeset/great-chairs-find.md b/.changeset/great-chairs-find.md deleted file mode 100644 index fee1ea7983c..00000000000 --- a/.changeset/great-chairs-find.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -More efficient multi event querying when using indexer diff --git a/.changeset/legal-pots-boil.md b/.changeset/legal-pots-boil.md deleted file mode 100644 index 6762f9f311f..00000000000 --- a/.changeset/legal-pots-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -expose setServiceKey diff --git a/.changeset/whole-planets-heal.md b/.changeset/whole-planets-heal.md deleted file mode 100644 index 4ff8a98d59a..00000000000 --- a/.changeset/whole-planets-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Custom factory addr for Chiliz mainnet diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index 03daf028215..66bd9438465 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,112 @@ # thirdweb +## 5.96.0 + +### Minor Changes + +- [#6830](https://github.com/thirdweb-dev/js/pull/6830) [`e526f75`](https://github.com/thirdweb-dev/js/commit/e526f75f228401027c3acb3871eb2621cf89f41a) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Enhanced SDK Bridge functionality with the following key updates: + + 1. **Breaking Change:** Standardized parameter naming in bridge functions: + + - Changed `buyAmountWei` to `amount` in Buy functions + - Changed `sellAmountWei` to `amount` in Sell functions + + Example: + + ```ts + // Before + const buyQuote = await buy.quote({ + originChainId: 1, + originTokenAddress: NATIVE_TOKEN_ADDRESS, + destinationChainId: 10, + destinationTokenAddress: NATIVE_TOKEN_ADDRESS, + buyAmountWei: toWei("0.01"), + client: thirdwebClient, + }); + + // After + const buyQuote = await buy.quote({ + originChainId: 1, + originTokenAddress: NATIVE_TOKEN_ADDRESS, + destinationChainId: 10, + destinationTokenAddress: NATIVE_TOKEN_ADDRESS, + amount: toWei("0.01"), + client: thirdwebClient, + }); + ``` + + 2. **Enhanced Quote Structure:** Added `steps` array to buy/sell quote responses with detailed token information: + ```ts + // Steps contains detailed information about each step in a cross-chain transaction + steps: [ + { + originToken: { + chainId: 1, + address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + symbol: "ETH", + name: "Ethereum", + decimals: 18, + priceUsd: 2000, + iconUri: "https://...", + }, + destinationToken: { + chainId: 10, + address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + symbol: "ETH", + name: "Ethereum", + decimals: 18, + priceUsd: 2000, + iconUri: "https://...", + }, + originAmount: 1000000000000000000n, + destinationAmount: 9980000000000000000n, + estimatedExecutionTimeMs: 1000, + transactions: [ + /* transactions for this step */ + ], + }, + ]; + ``` + 3. **Added Purchase Data Support:** Added optional `purchaseData` parameter to Buy and Sell functions: + ```ts + // Example with purchaseData + const quote = await buy.prepare({ + originChainId: 1, + originTokenAddress: NATIVE_TOKEN_ADDRESS, + destinationChainId: 10, + destinationTokenAddress: NATIVE_TOKEN_ADDRESS, + amount: toWei("0.01"), + sender: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", + receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", + purchaseData: { + foo: "bar", + }, + client: thirdwebClient, + }); + ``` + 4. **Enhanced Status Responses:** Status responses now include the `purchaseData` field that was provided during the initial transaction: + ```ts + // Status response includes purchaseData + { + status: "COMPLETED", + // ...other status fields + purchaseData: { + foo: "bar" + } + } + ``` + 5. **Updated API Interactions:** Changed from query parameters to JSON body for prepare functions to accommodate complex data. + +### Patch Changes + +- [#6823](https://github.com/thirdweb-dev/js/pull/6823) [`dc2e514`](https://github.com/thirdweb-dev/js/commit/dc2e514e564c8fc9dba41ae3be459fabf267be8f) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Deprecate Pack + +- [#6822](https://github.com/thirdweb-dev/js/pull/6822) [`33666aa`](https://github.com/thirdweb-dev/js/commit/33666aa8c5adbe4f9f376c52dfebcd4091ce91db) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - More efficient multi event querying when using indexer + +- [#6819](https://github.com/thirdweb-dev/js/pull/6819) [`8b4b873`](https://github.com/thirdweb-dev/js/commit/8b4b8733172591853215072f1510396ef0e2ec96) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - expose setServiceKey + +- [#6824](https://github.com/thirdweb-dev/js/pull/6824) [`b2e56f8`](https://github.com/thirdweb-dev/js/commit/b2e56f89fe03e4d1c4c3cf80c784de9c35b1d4e5) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Custom factory addr for Chiliz mainnet + ## 5.95.3 ### Patch Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index a4bc83ddaf8..eb378555722 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.95.3", + "version": "5.96.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" @@ -142,26 +142,66 @@ }, "typesVersions": { "*": { - "adapters/*": ["./dist/types/exports/adapters/*.d.ts"], - "auth": ["./dist/types/exports/auth.d.ts"], - "chains": ["./dist/types/exports/chains.d.ts"], - "contract": ["./dist/types/exports/contract.d.ts"], - "deploys": ["./dist/types/exports/deploys.d.ts"], - "event": ["./dist/types/exports/event.d.ts"], - "extensions/*": ["./dist/types/exports/extensions/*.d.ts"], - "pay": ["./dist/types/exports/pay.d.ts"], - "react": ["./dist/types/exports/react.d.ts"], - "react-native": ["./dist/types/exports/react-native.d.ts"], - "rpc": ["./dist/types/exports/rpc.d.ts"], - "storage": ["./dist/types/exports/storage.d.ts"], - "transaction": ["./dist/types/exports/transaction.d.ts"], - "utils": ["./dist/types/exports/utils.d.ts"], - "wallets": ["./dist/types/exports/wallets.d.ts"], - "wallets/*": ["./dist/types/exports/wallets/*.d.ts"], - "modules": ["./dist/types/exports/modules.d.ts"], - "social": ["./dist/types/exports/social.d.ts"], - "ai": ["./dist/types/exports/ai.d.ts"], - "bridge": ["./dist/types/exports/bridge.d.ts"] + "adapters/*": [ + "./dist/types/exports/adapters/*.d.ts" + ], + "auth": [ + "./dist/types/exports/auth.d.ts" + ], + "chains": [ + "./dist/types/exports/chains.d.ts" + ], + "contract": [ + "./dist/types/exports/contract.d.ts" + ], + "deploys": [ + "./dist/types/exports/deploys.d.ts" + ], + "event": [ + "./dist/types/exports/event.d.ts" + ], + "extensions/*": [ + "./dist/types/exports/extensions/*.d.ts" + ], + "pay": [ + "./dist/types/exports/pay.d.ts" + ], + "react": [ + "./dist/types/exports/react.d.ts" + ], + "react-native": [ + "./dist/types/exports/react-native.d.ts" + ], + "rpc": [ + "./dist/types/exports/rpc.d.ts" + ], + "storage": [ + "./dist/types/exports/storage.d.ts" + ], + "transaction": [ + "./dist/types/exports/transaction.d.ts" + ], + "utils": [ + "./dist/types/exports/utils.d.ts" + ], + "wallets": [ + "./dist/types/exports/wallets.d.ts" + ], + "wallets/*": [ + "./dist/types/exports/wallets/*.d.ts" + ], + "modules": [ + "./dist/types/exports/modules.d.ts" + ], + "social": [ + "./dist/types/exports/social.d.ts" + ], + "ai": [ + "./dist/types/exports/ai.d.ts" + ], + "bridge": [ + "./dist/types/exports/bridge.d.ts" + ] } }, "browser": { diff --git a/packages/wagmi-adapter/CHANGELOG.md b/packages/wagmi-adapter/CHANGELOG.md index d6d6a7a153d..10c69623619 100644 --- a/packages/wagmi-adapter/CHANGELOG.md +++ b/packages/wagmi-adapter/CHANGELOG.md @@ -1,5 +1,7 @@ # @thirdweb-dev/wagmi-adapter +## 0.2.60 + ## 0.2.59 ## 0.2.58 diff --git a/packages/wagmi-adapter/package.json b/packages/wagmi-adapter/package.json index 21a00129215..a65ccda8f94 100644 --- a/packages/wagmi-adapter/package.json +++ b/packages/wagmi-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/wagmi-adapter", - "version": "0.2.59", + "version": "0.2.60", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main"