Releases: thirdweb-dev/js
[email protected]
@thirdweb-dev/[email protected]
[email protected]
Patch Changes
- #6846
31ce837
Thanks @joaquim-verges! - Only update isLoggedIn state on successfull logins
[email protected]
Patch Changes
- #6834
4c33936
Thanks @joaquim-verges! - Always checksum Account.address
[email protected]
Patch Changes
- #6832
436750e
Thanks @joaquim-verges! - Lazy import native dependencies in React Native
[email protected]
Minor Changes
-
#6830
e526f75
Thanks @gregfromstl! - Enhanced SDK Bridge functionality with the following key updates:-
Breaking Change: Standardized parameter naming in bridge functions:
- Changed
buyAmountWei
toamount
in Buy functions - Changed
sellAmountWei
toamount
in Sell functions
Example:
// 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, });
- Changed
-
Enhanced Quote Structure: Added
steps
array to buy/sell quote responses with detailed token information:// 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 */ ], }, ];
-
Added Purchase Data Support: Added optional
purchaseData
parameter to Buy and Sell functions:// 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, });
-
Enhanced Status Responses: Status responses now include the
purchaseData
field that was provided during the initial transaction:// Status response includes purchaseData { status: "COMPLETED", // ...other status fields purchaseData: { foo: "bar" } }
-
Updated API Interactions: Changed from query parameters to JSON body for prepare functions to accommodate complex data.
-
Patch Changes
-
#6823
dc2e514
Thanks @kumaryash90! - Deprecate Pack -
#6822
33666aa
Thanks @joaquim-verges! - More efficient multi event querying when using indexer -
#6819
8b4b873
Thanks @joaquim-verges! - expose setServiceKey -
#6824
b2e56f8
Thanks @kumaryash90! - Custom factory addr for Chiliz mainnet
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]