Skip to content

Commit 9b558b8

Browse files
Version Packages
1 parent 736c3f8 commit 9b558b8

File tree

7 files changed

+56
-59
lines changed

7 files changed

+56
-59
lines changed

.changeset/forty-states-shake.md

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

.changeset/icy-points-wish.md

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

.changeset/odd-rooms-sleep.md

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

packages/thirdweb/CHANGELOG.md

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

3+
## 5.96.9
4+
5+
### Patch Changes
6+
7+
- [#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:
8+
9+
```ts
10+
const quote = await bridge.Buy.quote({
11+
originChainId: 1,
12+
originTokenAddress: "0x...",
13+
destinationChainId: 137,
14+
destinationTokenAddress: "0x...",
15+
amount: 1000000n,
16+
maxSteps: 2,
17+
});
18+
19+
const preparedQuote = await bridge.Buy.prepare({
20+
originChainId: 1,
21+
originTokenAddress: "0x...",
22+
destinationChainId: 137,
23+
destinationTokenAddress: "0x...",
24+
amount: 1000000n,
25+
sender: "0x...",
26+
receiver: "0x...",
27+
maxSteps: 2,
28+
});
29+
30+
const quote = await bridge.Sell.quote({
31+
originChainId: 1,
32+
originTokenAddress: "0x...",
33+
destinationChainId: 137,
34+
destinationTokenAddress: "0x...",
35+
amount: 1000000n,
36+
maxSteps: 3,
37+
});
38+
39+
const preparedQuote = await bridge.Sell.prepare({
40+
originChainId: 1,
41+
originTokenAddress: "0x...",
42+
destinationChainId: 137,
43+
destinationTokenAddress: "0x...",
44+
amount: 1000000n,
45+
sender: "0x...",
46+
receiver: "0x...",
47+
maxSteps: 3,
48+
});
49+
```
50+
51+
- [#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
52+
53+
- [#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
54+
355
## 5.96.8
456

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

packages/wagmi-adapter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @thirdweb-dev/wagmi-adapter
22

3+
## 0.2.69
4+
35
## 0.2.68
46

57
## 0.2.67

packages/wagmi-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/wagmi-adapter",
3-
"version": "0.2.68",
3+
"version": "0.2.69",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

0 commit comments

Comments
 (0)