Releases: thirdweb-dev/js
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
[email protected]
Patch Changes
-
#7065
61152dd
Thanks @joaquim-verges! - Return timestamps in Engine.getTransactionStatus() -
#7069
da2a2a0
Thanks @joaquim-verges! - Fix buyWithCrypto false not respected when going back from quote -
#7040
20b5ba9
Thanks @joaquim-verges! - Propagate 401 errors when connecting in-app wallet -
#7061
8d47864
Thanks @joaquim-verges! - Expose prepareUserOp utility function -
Updated dependencies [
ae2ff74
]:- @thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
Patch Changes
- #7050
ae2ff74
Thanks @joaquim-verges! - Update openAPI spec
[email protected]
Patch Changes
-
#7016
1985de8
Thanks @joaquim-verges! - Expose inMemoryStorage for inAppWallet backend usage -
#7034
fc65350
Thanks @joaquim-verges! - Preload wallet balances on pay embed -
#7038
da3fc99
Thanks @joaquim-verges! - Default to in-memory storage when creating inapp wallets outside the browser
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]
[email protected]
Minor Changes
-
#7003
58e343c
Thanks @joaquim-verges! - Breaking change: EIP-5792 supportWe've significantly improved our EIP-5792 apis, which come with some breaking changes:
New Functions Added
-
useSendAndConfirmCalls
- Description: Hook to send and wait for confirmation of EIP-5792 calls
- Returns: React Query mutation object with transaction receipts
- Example:
const { mutate: sendAndConfirmCalls, data: result } = useSendAndConfirmCalls(); await sendAndConfirmCalls({ client, calls: [tx1, tx2], }); console.log("Transaction hash:", result.receipts?.[0]?.transactionHash);
-
useWaitForCallsReceipt
- Description: Hook to wait for the receipt of EIP-5792 calls, perfect for splitting submitting the call and waiting for receipt
- Returns: React Query object with call receipts
- Example:
const { mutate: sendCalls, data: result } = useSendCalls(); const { data: receipt, isLoading } = useWaitForCallsReceipt(result);
Breaking Changes
useSendCalls
ChangesBefore
// mutation returns id a string const sendCalls = useSendCalls({ client });
After
// no longer needs client // mutation returns an object with id const sendCalls = useSendCalls();
Waiting for call receipts is now done separately, via the
useWaitForCallsReceipt
.Before
const { mutate: sendCalls, data: receipt } = useSendCalls({ client, waitForBundle: true, });
After
const { mutate: sendCalls, data: result } = useSendCalls(); const { data: receipt, isLoading } = useWaitForCallsReceipt(result);
You can also use the helper
useSendAndConfirmCalls
to combine both submitting and waiting for confirmation.const { mutate: sendAndConfirmCalls, data: receipt } = useSendAndConfirmCalls();
sendCalls
ChangesBefore:
// Old output type type SendCallsResult = string;
After:
// New output type type SendCallsResult = { id: string; client: ThirdwebClient; chain: Chain; wallet: Wallet; };
-
@thirdweb-dev/[email protected]
@thirdweb-dev/[email protected]