Skip to content

thirdweb@5.52.0

Compare
Choose a tag to compare
@jnsdls jnsdls released this 06 Sep 23:38
· 2544 commits to main since this release
10f654d

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 contracts

    Deploy 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