Skip to content

Commit 9cf5ba8

Browse files
Version Packages (#6820)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 33666aa commit 9cf5ba8

File tree

9 files changed

+171
-137
lines changed

9 files changed

+171
-137
lines changed

.changeset/fluffy-bars-crash.md

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

.changeset/fluffy-pigs-drive.md

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

.changeset/great-chairs-find.md

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

.changeset/legal-pots-boil.md

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

.changeset/whole-planets-heal.md

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

packages/thirdweb/CHANGELOG.md

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

3+
## 5.96.0
4+
5+
### Minor Changes
6+
7+
- [#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:
8+
9+
1. **Breaking Change:** Standardized parameter naming in bridge functions:
10+
11+
- Changed `buyAmountWei` to `amount` in Buy functions
12+
- Changed `sellAmountWei` to `amount` in Sell functions
13+
14+
Example:
15+
16+
```ts
17+
// Before
18+
const buyQuote = await buy.quote({
19+
originChainId: 1,
20+
originTokenAddress: NATIVE_TOKEN_ADDRESS,
21+
destinationChainId: 10,
22+
destinationTokenAddress: NATIVE_TOKEN_ADDRESS,
23+
buyAmountWei: toWei("0.01"),
24+
client: thirdwebClient,
25+
});
26+
27+
// After
28+
const buyQuote = await buy.quote({
29+
originChainId: 1,
30+
originTokenAddress: NATIVE_TOKEN_ADDRESS,
31+
destinationChainId: 10,
32+
destinationTokenAddress: NATIVE_TOKEN_ADDRESS,
33+
amount: toWei("0.01"),
34+
client: thirdwebClient,
35+
});
36+
```
37+
38+
2. **Enhanced Quote Structure:** Added `steps` array to buy/sell quote responses with detailed token information:
39+
```ts
40+
// Steps contains detailed information about each step in a cross-chain transaction
41+
steps: [
42+
{
43+
originToken: {
44+
chainId: 1,
45+
address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
46+
symbol: "ETH",
47+
name: "Ethereum",
48+
decimals: 18,
49+
priceUsd: 2000,
50+
iconUri: "https://...",
51+
},
52+
destinationToken: {
53+
chainId: 10,
54+
address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
55+
symbol: "ETH",
56+
name: "Ethereum",
57+
decimals: 18,
58+
priceUsd: 2000,
59+
iconUri: "https://...",
60+
},
61+
originAmount: 1000000000000000000n,
62+
destinationAmount: 9980000000000000000n,
63+
estimatedExecutionTimeMs: 1000,
64+
transactions: [
65+
/* transactions for this step */
66+
],
67+
},
68+
];
69+
```
70+
3. **Added Purchase Data Support:** Added optional `purchaseData` parameter to Buy and Sell functions:
71+
```ts
72+
// Example with purchaseData
73+
const quote = await buy.prepare({
74+
originChainId: 1,
75+
originTokenAddress: NATIVE_TOKEN_ADDRESS,
76+
destinationChainId: 10,
77+
destinationTokenAddress: NATIVE_TOKEN_ADDRESS,
78+
amount: toWei("0.01"),
79+
sender: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709",
80+
receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709",
81+
purchaseData: {
82+
foo: "bar",
83+
},
84+
client: thirdwebClient,
85+
});
86+
```
87+
4. **Enhanced Status Responses:** Status responses now include the `purchaseData` field that was provided during the initial transaction:
88+
```ts
89+
// Status response includes purchaseData
90+
{
91+
status: "COMPLETED",
92+
// ...other status fields
93+
purchaseData: {
94+
foo: "bar"
95+
}
96+
}
97+
```
98+
5. **Updated API Interactions:** Changed from query parameters to JSON body for prepare functions to accommodate complex data.
99+
100+
### Patch Changes
101+
102+
- [#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
103+
104+
- [#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
105+
106+
- [#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
107+
108+
- [#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
109+
3110
## 5.95.3
4111

5112
### Patch Changes

packages/thirdweb/package.json

Lines changed: 61 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.95.3",
3+
"version": "5.96.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -142,26 +142,66 @@
142142
},
143143
"typesVersions": {
144144
"*": {
145-
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
146-
"auth": ["./dist/types/exports/auth.d.ts"],
147-
"chains": ["./dist/types/exports/chains.d.ts"],
148-
"contract": ["./dist/types/exports/contract.d.ts"],
149-
"deploys": ["./dist/types/exports/deploys.d.ts"],
150-
"event": ["./dist/types/exports/event.d.ts"],
151-
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
152-
"pay": ["./dist/types/exports/pay.d.ts"],
153-
"react": ["./dist/types/exports/react.d.ts"],
154-
"react-native": ["./dist/types/exports/react-native.d.ts"],
155-
"rpc": ["./dist/types/exports/rpc.d.ts"],
156-
"storage": ["./dist/types/exports/storage.d.ts"],
157-
"transaction": ["./dist/types/exports/transaction.d.ts"],
158-
"utils": ["./dist/types/exports/utils.d.ts"],
159-
"wallets": ["./dist/types/exports/wallets.d.ts"],
160-
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
161-
"modules": ["./dist/types/exports/modules.d.ts"],
162-
"social": ["./dist/types/exports/social.d.ts"],
163-
"ai": ["./dist/types/exports/ai.d.ts"],
164-
"bridge": ["./dist/types/exports/bridge.d.ts"]
145+
"adapters/*": [
146+
"./dist/types/exports/adapters/*.d.ts"
147+
],
148+
"auth": [
149+
"./dist/types/exports/auth.d.ts"
150+
],
151+
"chains": [
152+
"./dist/types/exports/chains.d.ts"
153+
],
154+
"contract": [
155+
"./dist/types/exports/contract.d.ts"
156+
],
157+
"deploys": [
158+
"./dist/types/exports/deploys.d.ts"
159+
],
160+
"event": [
161+
"./dist/types/exports/event.d.ts"
162+
],
163+
"extensions/*": [
164+
"./dist/types/exports/extensions/*.d.ts"
165+
],
166+
"pay": [
167+
"./dist/types/exports/pay.d.ts"
168+
],
169+
"react": [
170+
"./dist/types/exports/react.d.ts"
171+
],
172+
"react-native": [
173+
"./dist/types/exports/react-native.d.ts"
174+
],
175+
"rpc": [
176+
"./dist/types/exports/rpc.d.ts"
177+
],
178+
"storage": [
179+
"./dist/types/exports/storage.d.ts"
180+
],
181+
"transaction": [
182+
"./dist/types/exports/transaction.d.ts"
183+
],
184+
"utils": [
185+
"./dist/types/exports/utils.d.ts"
186+
],
187+
"wallets": [
188+
"./dist/types/exports/wallets.d.ts"
189+
],
190+
"wallets/*": [
191+
"./dist/types/exports/wallets/*.d.ts"
192+
],
193+
"modules": [
194+
"./dist/types/exports/modules.d.ts"
195+
],
196+
"social": [
197+
"./dist/types/exports/social.d.ts"
198+
],
199+
"ai": [
200+
"./dist/types/exports/ai.d.ts"
201+
],
202+
"bridge": [
203+
"./dist/types/exports/bridge.d.ts"
204+
]
165205
}
166206
},
167207
"browser": {

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.60
4+
35
## 0.2.59
46

57
## 0.2.58

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

0 commit comments

Comments
 (0)