diff --git a/.changeset/forty-states-shake.md b/.changeset/forty-states-shake.md deleted file mode 100644 index 317a62aba25..00000000000 --- a/.changeset/forty-states-shake.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -"thirdweb": patch ---- - -Adds the `maxSteps` option to Buy.quote, Buy.prepare, Sell.quote, and Sell.prepare functions. This allows users to limit quotes to routes with a specific number of steps or fewer. For example: - -```ts -const quote = await bridge.Buy.quote({ - originChainId: 1, - originTokenAddress: "0x...", - destinationChainId: 137, - destinationTokenAddress: "0x...", - amount: 1000000n, - maxSteps: 2 -}); - -const preparedQuote = await bridge.Buy.prepare({ - originChainId: 1, - originTokenAddress: "0x...", - destinationChainId: 137, - destinationTokenAddress: "0x...", - amount: 1000000n, - sender: "0x...", - receiver: "0x...", - maxSteps: 2 -}); - -const quote = await bridge.Sell.quote({ - originChainId: 1, - originTokenAddress: "0x...", - destinationChainId: 137, - destinationTokenAddress: "0x...", - amount: 1000000n, - maxSteps: 3 -}); - -const preparedQuote = await bridge.Sell.prepare({ - originChainId: 1, - originTokenAddress: "0x...", - destinationChainId: 137, - destinationTokenAddress: "0x...", - amount: 1000000n, - sender: "0x...", - receiver: "0x...", - maxSteps: 3 -}); -``` diff --git a/.changeset/free-lemons-find.md b/.changeset/free-lemons-find.md deleted file mode 100644 index 6ee62584ed5..00000000000 --- a/.changeset/free-lemons-find.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"thirdweb": minor ---- - -feat(bridge): Add chains endpoint to retrieve Universal Bridge supported chains - -```typescript -import { Bridge } from "thirdweb"; - -const chains = await Bridge.chains({ - client: thirdwebClient, -}); -``` - -Returned chains include chain information such as chainId, name, icon, and nativeCurrency details. diff --git a/.changeset/icy-points-wish.md b/.changeset/icy-points-wish.md deleted file mode 100644 index a34dfb6c65c..00000000000 --- a/.changeset/icy-points-wish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -+Deprecate legacy Pay functions diff --git a/.changeset/ninety-snails-smash.md b/.changeset/ninety-snails-smash.md deleted file mode 100644 index 313b8424f53..00000000000 --- a/.changeset/ninety-snails-smash.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"thirdweb": patch ---- - -Added the `sortBy` option to Bridge.routes - -```ts -import { Bridge } from "thirdweb"; - -const routes = await Bridge.routes({ - originChainId: 1, - originTokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - limit: 10, - offset: 0, - sortBy: "popularity", - client: thirdwebClient, -}); -``` \ No newline at end of file diff --git a/.changeset/odd-rooms-sleep.md b/.changeset/odd-rooms-sleep.md deleted file mode 100644 index 886e2c7c30c..00000000000 --- a/.changeset/odd-rooms-sleep.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Only attempt autoconnect once diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index 78ed88985ec..03ea3f7fde9 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,86 @@ # thirdweb +## 5.97.0 + +### Minor Changes + +- [#6956](https://github.com/thirdweb-dev/js/pull/6956) [`08cff4b`](https://github.com/thirdweb-dev/js/commit/08cff4b6c2f0f7a02c0d4efae386a3bcc79de07b) Thanks [@gregfromstl](https://github.com/gregfromstl)! - feat(bridge): Add chains endpoint to retrieve Universal Bridge supported chains + + ```typescript + import { Bridge } from "thirdweb"; + + const chains = await Bridge.chains({ + client: thirdwebClient, + }); + ``` + + Returned chains include chain information such as chainId, name, icon, and nativeCurrency details. + +### Patch Changes + +- [#6953](https://github.com/thirdweb-dev/js/pull/6953) [`736c3f8`](https://github.com/thirdweb-dev/js/commit/736c3f8558330f55fd813fe11ca009c6f1f00f52) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds the `maxSteps` option to Buy.quote, Buy.prepare, Sell.quote, and Sell.prepare functions. This allows users to limit quotes to routes with a specific number of steps or fewer. For example: + + ```ts + const quote = await bridge.Buy.quote({ + originChainId: 1, + originTokenAddress: "0x...", + destinationChainId: 137, + destinationTokenAddress: "0x...", + amount: 1000000n, + maxSteps: 2, + }); + + const preparedQuote = await bridge.Buy.prepare({ + originChainId: 1, + originTokenAddress: "0x...", + destinationChainId: 137, + destinationTokenAddress: "0x...", + amount: 1000000n, + sender: "0x...", + receiver: "0x...", + maxSteps: 2, + }); + + const quote = await bridge.Sell.quote({ + originChainId: 1, + originTokenAddress: "0x...", + destinationChainId: 137, + destinationTokenAddress: "0x...", + amount: 1000000n, + maxSteps: 3, + }); + + const preparedQuote = await bridge.Sell.prepare({ + originChainId: 1, + originTokenAddress: "0x...", + destinationChainId: 137, + destinationTokenAddress: "0x...", + amount: 1000000n, + sender: "0x...", + receiver: "0x...", + maxSteps: 3, + }); + ``` + +- [#6952](https://github.com/thirdweb-dev/js/pull/6952) [`055e451`](https://github.com/thirdweb-dev/js/commit/055e451fd02b0336da23bd1a9994a36f99853831) Thanks [@gregfromstl](https://github.com/gregfromstl)! - +Deprecate legacy Pay functions + +- [#6955](https://github.com/thirdweb-dev/js/pull/6955) [`6dd2b09`](https://github.com/thirdweb-dev/js/commit/6dd2b09450e97da8a1a29200ca12ffc0c4d921e3) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Added the `sortBy` option to Bridge.routes + + ```ts + import { Bridge } from "thirdweb"; + + const routes = await Bridge.routes({ + originChainId: 1, + originTokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + limit: 10, + offset: 0, + sortBy: "popularity", + client: thirdwebClient, + }); + ``` + +- [#6900](https://github.com/thirdweb-dev/js/pull/6900) [`e9d0b6e`](https://github.com/thirdweb-dev/js/commit/e9d0b6e3d282e3fef902e98bf894b00fedc8d5d6) Thanks [@MananTank](https://github.com/MananTank)! - Only attempt autoconnect once + ## 5.96.8 ### Patch Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 8643b17b609..2ca38386538 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.96.8", + "version": "5.97.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" diff --git a/packages/wagmi-adapter/CHANGELOG.md b/packages/wagmi-adapter/CHANGELOG.md index 6f98958829a..c9c7dada1c1 100644 --- a/packages/wagmi-adapter/CHANGELOG.md +++ b/packages/wagmi-adapter/CHANGELOG.md @@ -1,5 +1,7 @@ # @thirdweb-dev/wagmi-adapter +## 0.2.69 + ## 0.2.68 ## 0.2.67 diff --git a/packages/wagmi-adapter/package.json b/packages/wagmi-adapter/package.json index e891eba812b..5a92b4b52bd 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.68", + "version": "0.2.69", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main"