thirdweb@5.52.0
Minor Changes
-
#4349
a2d2291
Thanks @gregfromstl! - Adds social profile retrieval for Farcaster, Lens, and ENS.import { getSocialProfiles } from "thirdweb/social"; const profiles = await getSocialProfiles({ address: "0x...", client, });
[ { "type": "ens", "name": "joenrv.eth", "avatar": "ipfs://bafybeic2wvtpv5hpdyeuy6o77yd5fp2ndfygppd6drdxvtfd2jouijn72m", "metadata": { "name": "joenrv.eth" } }, { "type": "farcaster", "name": "joaquim", "bio": "Eng Lead @ thirdweb", "avatar": "https://lh3.googleusercontent.com/EUELPFJzdDNcc3qSaEMekh0_W16acnS8MSvWizt-7HPaQhfJsNFC5HA0W4NKcy6CN9zmV7d4Crqg2B8qM9BpiveqVTl2GPBQ16Ax2IQ", "metadata": { "fid": 2735, "bio": "Eng Lead @ thirdweb", "pfp": "https://lh3.googleusercontent.com/EUELPFJzdDNcc3qSaEMekh0_W16acnS8MSvWizt-7HPaQhfJsNFC5HA0W4NKcy6CN9zmV7d4Crqg2B8qM9BpiveqVTl2GPBQ16Ax2IQ", "username": "joaquim", "addresses": [ "0x2247d5d238d0f9d37184d8332ae0289d1ad9991b", "0xf7970369310b541b8a84086c8c1c81d3beb85e0e" ] } }, { "type": "lens", "name": "joaquim", "bio": "Lead engineer @thirdweb", "avatar": "https://ik.imagekit.io/lens/media-snapshot/557708cc7581172234133c10d473058ace362c5f547fa86cee5be2abe1478e5b.png", "metadata": { "name": "joaquim", "bio": "Lead engineer @thirdweb", "picture": "https://ik.imagekit.io/lens/media-snapshot/557708cc7581172234133c10d473058ace362c5f547fa86cee5be2abe1478e5b.png" } } ]
import { useSocialProfiles } from "thirdweb/react"; const { data: profiles } = useSocialProfiles({ client, address: "0x...", });
-
#3413
87d6b6a
Thanks @joaquim-verges! - Support for modular contractsDeploy and Interact with modular contracts programmatically
Deploy a modular contract
import { ClaimableERC721, BatchMetadataERC721, deployModularContract, } from "thirdweb/modules"; const deployed = deployModularContract({ client, chain, account, core: "ERC721", params: { name: "My Modular NFT Contract", }, modules: [ ClaimableERC721.module({ primarySaleRecipient: ..., }), BatchMetadataERC721.module(), ], });
Interact with a modular contract
import { ClaimableERC721 } from "thirdweb/modules"; const contract = getContract({ client, chain, address, }); const transaction = ClaimableERC721.mint({ contract, to: account.address, quantity: 1, }); await sendTransaction({ transaction, account, });
Patch Changes
-
#4444
9cefe5f
Thanks @edwardysun! - Add buyWithCrypto testMode in useSendTransaction -
#4447
f0d0f37
Thanks @jnsdls! - fix baseURI extraction logic -
#4435
e7bf498
Thanks @edwardysun! - Add testMode to buyWithCrypto pay options -
#4345
fa6809d
Thanks @kien-ngo! - Add ERC1155 getOwnedTokenIds + more tests -
#4450
775ab6d
Thanks @MananTank! - Add options for hiding buttons on details modal on useWalletDetailsModal -
#4443
498d543
Thanks @MananTank! - Fix getFunctionId -
#4446
f39e1ba
Thanks @gregfromstl! - Improve React Query caching performance