Releases: thirdweb-dev/js
thirdweb@5.88.0
Minor Changes
-
#6194
9663079
Thanks @joaquim-verges! - Added session keys to smart wallet optionsYou can now pass a
sessionKey
to thesmartWallet
options function to immediately add a session key to the smart wallet upon connection.This is great in combination with an engine backend wallet! Let's you act on behalf of the user from your backend, making executing transactions as easy as a REST API call. Also unblocks automations, like renewing a subscription, or paying for a service.
const wallet = smartWallet({ sessionKey: { address: "0x...", // the session key address (ex: engine backend wallet) permissions: { approvedTargets: ["0x..."], // allowed contract addresses (or * for all) nativeTokenLimitPerTransaction: 0.1, // max spend per transaction in ETH permissionEndTimestamp: new Date(Date.now() + 1000 * 60 * 60), // expiration date }, }, }); // this will connect the user wallet and add the session key if not already added await wallet.connect({ client: TEST_CLIENT, personalAccount, });
You can also pass the
sessionKey
to theConnectButton
,ConnectEmbed
components anduseConnect
hook.<ConnectButton client={client} accountAbstraction={{ chain, sponsorGas: true, sessionKey: { address: "0x...", permissions: { approvedTargets: "*", }, }, }} />
Also works for the
inAppWallet
smartAccount
option!const wallet = inAppWallet({ smartAccount: { chain, sponsorGas: true, sessionKey: { address: "0x...", permissions: { approvedTargets: "*", }, }, }, });
Patch Changes
-
#6193
1f6bb7c
Thanks @joaquim-verges! - Show fiat amount in PayEmbed main screen -
#6192
30e13e6
Thanks @joaquim-verges! - Allow editing pay amount mid flow -
#6190
2dfc245
Thanks @joaquim-verges! - Add fiat provider selection in PayEmbed -
#6187
ee57ded
Thanks @joaquim-verges! - Requery allowances when getting back to quote screen -
#6188
64d7bf3
Thanks @jnsdls! - when explicitly passingclientId
tocreateThirdwebClient()
prefer it over computing theclientId
from a passedsecretKey
option
@thirdweb-dev/wagmi-adapter@0.2.15
@thirdweb-dev/wagmi-adapter@0.2.15
@thirdweb-dev/wagmi-adapter@0.2.14
@thirdweb-dev/wagmi-adapter@0.2.14
@thirdweb-dev/service-utils@0.8.7
Patch Changes
- #6206
8aeb4d6
Thanks @arcoraven! - Export usageV2 sources
@thirdweb-dev/service-utils@0.8.6
Patch Changes
-
#6172
a8ac98b
Thanks @catalyst17! - addcanCreatePublicChains
to TeamResponse -
#6183
18f0e57
Thanks @arcoraven! - [service-utils] Update list of usageV2 sources"
thirdweb@5.87.4
Patch Changes
- #6182
f77165e
Thanks @joaquim-verges! - Skip swap approvals if already approved and always calculate gas prices locally
@thirdweb-dev/wagmi-adapter@0.2.13
@thirdweb-dev/wagmi-adapter@0.2.13
@thirdweb-dev/service-utils@0.8.5
Patch Changes
-
#6171
ee6bd4f
Thanks @arcoraven! - [service-utils] export KafkaProducer -
#6181
dfd64d2
Thanks @arcoraven! - [service-utils] Expose maxInFlightRequests in Kafka producer -
#6164
821caa6
Thanks @arcoraven! - [service-utils] fix: Add missing CompressionCodecs import -
#6170
ccf6329
Thanks @arcoraven! - Add raw kafka producer
thirdweb@5.87.3
Patch Changes
-
#6116
9d5828e
Thanks @alecananian! - Skip factory entrypoint lookup for ZKsync chains -
#6119
b693b78
Thanks @gregfromstl! - Fix: Ecosystem smart wallets now properly trigger switch chain on their admin wallets -
#6093
08cc489
Thanks @kumaryash90! - 7702 delegation designator
@thirdweb-dev/wagmi-adapter@0.2.12
@thirdweb-dev/wagmi-adapter@0.2.12