Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/fluffy-bars-crash.md

This file was deleted.

95 changes: 0 additions & 95 deletions .changeset/fluffy-pigs-drive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-chairs-find.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/legal-pots-boil.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/whole-planets-heal.md

This file was deleted.

107 changes: 107 additions & 0 deletions packages/thirdweb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
82 changes: 61 additions & 21 deletions packages/thirdweb/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions packages/wagmi-adapter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @thirdweb-dev/wagmi-adapter

## 0.2.60

## 0.2.59

## 0.2.58
Expand Down
2 changes: 1 addition & 1 deletion packages/wagmi-adapter/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading