Files
github-actions[bot]andgithub-actions[bot] c5b7fef5ba Version Packages (#1966)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-17 10:40:41 +01:00

160 KiB
Raw Permalink Blame History

@thirdweb-dev/react

4.1.7

Patch Changes

  • #1969 4c5e40ae Thanks @MananTank! - Fix text alignment issue in embedded-wallet/paper

  • #1965 13029e32 Thanks @MananTank! - - Fix Minor Safari / iOS UI issues

    • Adjust Magic Link's social icons UI to match EmbeddedWallet's social icons UI
    • expose hook useEmbeddedWalletUserEmail for fetching email from connected embeddedWallet. The hook returns the react-query query object. See example below:
    const emailQuery = useEmbeddedWalletUserEmail();
    
    const email = emailQuery.data;
    const isFetchingEmail = emailQuery.isFetching;
    
  • Updated dependencies [ab2dfd4f, ab2dfd4f]:

4.1.6

Patch Changes

4.1.5

Patch Changes

4.1.4

Patch Changes

4.1.3

Patch Changes

4.1.2

Patch Changes

  • #1906 b90d3af5 Thanks @kien-ngo! - Add hideSwitchToPersonalWallet prop on ConnectWallet component to hide the "switch to Personal wallet" option in the ConnectWallet dropdown which is shown when wallet is connected to either Smart Wallet or Safe

    <ConnectWallet hideSwitchToPersonalWallet={true} > // default: false
    
  • #1891 20d0f53b Thanks @kien-ngo! - Add Core wallet (Avalanche)

  • #1847 c34ac468 Thanks @MananTank! - Add Localization API to change language used in components ConnectWallet and Web3Button and/or override the default texts

    Japanese

    import { ja } from "@thirdweb-dev/react";
    
    const japanese = ja();
    
    <ThirdwebProvider locale={japanese}>
      <App />
    </ThirdwebProvider>;
    

    Spanish

    import { es } from "@thirdweb-dev/react";
    
    const spanish = es();
    
    <ThirdwebProvider locale={spanish}>
      <App />
    </ThirdwebProvider>;
    

    English ( default )

    import { en } from "@thirdweb-dev/react";
    
    const english = en();
    
    <ThirdwebProvider locale={english}>
      <App />
    </ThirdwebProvider>;
    

    This API also allows overriding the default texts in the locale object. You can override all the texts or just some parts

    import { en } from "@thirdweb-dev/react";
    
    // override some texts
    const english = en({
      connectWallet: {
        confirmInWallet: "Confirm in your wallet",
      },
      wallets: {
        metamaskWallet: {
          connectionScreen: {
            inProgress: "Awaiting Confirmation",
            instruction: "Accept connection request in your MetaMask wallet",
          },
        },
      },
    });
    
    <ThirdwebProvider locale={english}>
      <App />
    </ThirdwebProvider>;
    
  • Updated dependencies [0dcb15b7, fefeaeef, 20d0f53b, 91c2352b]:

4.1.1

Patch Changes

4.1.0

Minor Changes

  • #1846 0acc530f Thanks @joaquim-verges! - New API to configure authentication options on embeddedWallet

    // default - google sign in is enabled
    embeddedWallet();
    
    // this is same as
    embeddedWallet({
      auth: {
        options: ["email", "google"],
      },
    });
    
    // only email
    embeddedWallet({
      auth: {
        options: ["email"],
      },
    });
    
    // only google sign in
    embeddedWallet({
      auth: {
        options: ["google"],
      },
    });
    

Patch Changes

  • #1885 961ef644 Thanks @joaquim-verges! - Improved useSmartWallet() hook

    Example with metamask:

    const { connect } = useSmartWallet(metamaskWallet(), {
      factoryAddress: factoryAddress,
      gasless: true,
    });
    
    const onClick = async () => {
      // nothing to do here, all handled internally
      await connect();
    };
    
    Example with localWallet:
    
    const { connect } = useSmartWallet(localWallet(), {
        factoryAddress: factoryAddress,
        gasless: true,
    });
    
    const onClick = async () => {
        // function to 'load' the local wallet before using it
        await connect({
            connectPersonalWallet: async (w) => {
                await w.generate();
                await w.connect();
            }
        });
    }
    
    Example with embeddedWallet:
    
    const { connect } = useSmartWallet(embeddedWallet(), {
        factoryAddress: factoryAddress,
        gasless: true,
    });
    
    const onClick = async () => {
        // function to 'auth' the embedded wallet before using it
        await connect({
            connectPersonalWallet: async (w) => {
                const authResult = await w.authenticate({ strategy: "google" });
                await w.connect({ authResult });
            }
        });
    }
    
  • #1886 6fcd09dd Thanks @edwardysun! - Fix for user address and active wallet address out of sync

  • Updated dependencies [a9d32f3c, 0acc530f]:

4.0.10

Patch Changes

4.0.9

Patch Changes

4.0.8

Patch Changes

4.0.7

Patch Changes

4.0.6

Patch Changes

4.0.5

Patch Changes

4.0.4

Patch Changes

4.0.3

Patch Changes

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Major Changes

  • #1630 ce4608bf Thanks @jnsdls! - Dropped Support for Solana:

    • We've decided to drop support for Solana across our SDKs.
    • Starting with this version of our SDKs all previous solana related functionality will be removed.
    • Previous versions of our SDKs will continue to work with Solana. However, we will not be providing any further updates or bug fixes for Solana.
    • You can read a detailed explanation of our decision on our blog.

Patch Changes

3.16.5

Patch Changes

3.16.4

Patch Changes

3.16.3

Patch Changes

3.16.2

Patch Changes

3.16.1

Patch Changes

3.16.0

Minor Changes

  • #1618 64528263 Thanks @MananTank! - ## New smartWallet() API (Breaking Change)

    Before

    In the previous API, adding a smart wallet created it's own new entry called "Smart wallet" in the ConnectWallet Modal and you had to pass in the personal wallets which was shown to the user when they clicked on the "Smart wallet".

    <ThirdwebProvider
      supportedWallets={[
        smartWalet({
          personalWallets: [metamaskWallet(), coinbaseWallet()],
          factoryAddress: "....",
          gassless: true,
        }),
      ]}
    />
    

    After

    Since most users don't know what a smart wallet is, this was confusing. So with the new API, you can just use smart wallet under the hood for any wallet you want and it will just show up as that wallet and not a "smart wallet" in ConnectWallet Modal to improve the user experience.

    Once the user is connected, the ConnectWallet Details button shows to the user that they are infact connected to a smart wallet.

    const config = {
      factoryAddress: "....",
      gassless: true,
    }
    
    <ThirdwebProvider
      supportedWallets={[
        smartWalet(metamaskWallet(), config),
        smartWalet(coinbaseWallet(), config),
      ]}
    />
    

    New Features added to ConnectWallet component

    • ENS Name + Avatar support added
    • New 'Send funds' button added to ConnectWallet which users can use to send various tokens.
    • New "Receive funds" button added to ConnectWallet which users scan the QR code from their wallet app on phone to send funds to their other wallet on desktop
    • Added supportedTokens prop to customize the list of tokens for each network in for the "Send Funds" screen.
    • "Transaction history" button added to ConnectWallet which opens the block explorer
    • New wallet embededWallet() to sign in with Google / Email
    • Ability to show balance of any token instead of just native token in the ConnectWallet details button using the displayBalanceToken prop
  • #1622 4268775f Thanks @ElasticBottle! - feat(react): add embeddedWallet wallet type

  • #1598 43f188c8 Thanks @ElasticBottle! - feat(wallets): Add EmbeddedWallet and EmbeddedWalletConnector to @thirdweb-dev/wallets for use in vanilla JS clients

Patch Changes

3.15.0

Minor Changes

  • #1550 3f3c63c0 Thanks @MananTank! - # New ConnectWallet UI and APIs

    This introduces a new UI for the ConnectWallet modal and some new APIs along with it.

    modalSize

    ConnectWallet modal now has two sizes - "wide" and "compact".

    The default is “wide” for desktop. Note that it's always “compact” on mobile device no matter what you pass in.

    <ConnectWallet modalSize="wide" />
    
    <ConnectWallet modalSize="compact" />
    

    New default wallets

    • MetaMask
    • Coinbase Wallet
    • WalletConnect
    • Trust Wallet
    • Rainbow
    • Zerion Wallet
    • Phantom

    Theme Customization

    ConnectWallet, Web3Button and ThirdwebProvider's theme prop now also takes an object which you can use to create a custom theme.

    To do this, there are two new functions darkTheme() and lightTheme() to create this theme object

    import { darkTheme } from '@thirdweb-dev/react'
    
    const customDarkTheme = darkTheme({
      fontFamily: 'Inter, sans-serif',
      color: {
        modalBg: 'black',
        accentText: 'red',
        // ...etc
      }
    })
    
    <ConnectWallet theme={customDarkTheme} />
    

    call the wallet configurator function with { recommended: true }

    recommended wallets are shown at the top of the list

    <ThirdwebProvider
      supportedWallets={[
        metamaskWallet({
          recommended: true,
        }),
        coinbaseWalletWallet({
          recommended: true,
        }),
      ]}
    >
      <App />
    </ThirdwebProvider>
    
    <ConnectWallet
      termsOfServiceUrl="https://...."
      privacyPolicyUrl="https://...."
    />
    

    Customize the “Welcome Screen” or Render your own

    The "wide" ConnectWallet modal renders a default welcome screen on the right side which you can customize the texts and image of or completely replace with your own component.

    // Customize texts and logo
    
    <ConnectWallet
      welcomeScreen={{
        title: "YOUR TITLE",
        subtitle: "YOUR SUBTITLE",
        img: {
          src: "https://...",
          width: 300,
          height: 50,
        },
      }}
    />
    
    // or render your own component
    
    <ConnectWallet
    	welcomeScreen={() => {
    		return <div> ... </div>
    	}}
    />
    

    ConnectWallet’s props are exposed to Web3Button as well

    Web3Button`` renders a ConnectWallet``component when the user is not connected, now you can customize thatConnectWalletby passing props for it viaconnectWallet object

    <Web3Button
      connectWallet={{
        modalTitle: "Login",
        modalSize: "compact", // etc..
      }}
    />
    

Patch Changes

3.14.41

Patch Changes

3.14.40

Patch Changes

3.14.39

Patch Changes

3.14.38

Patch Changes

3.14.37

Patch Changes

3.14.36

Patch Changes

3.14.35

Patch Changes

3.14.34

Patch Changes

3.14.33

Patch Changes

3.14.32

Patch Changes

3.14.31

Patch Changes

3.14.30

Patch Changes

3.14.29

Patch Changes

3.14.28

Patch Changes

3.14.27

Patch Changes

3.14.26

Patch Changes

3.14.25

Patch Changes

3.14.24

Patch Changes

3.14.23

Patch Changes

3.14.22

Patch Changes

3.14.21

Patch Changes

3.14.20

Patch Changes

3.14.19

Patch Changes

3.14.18

Patch Changes

3.14.17

Patch Changes

3.14.16

Patch Changes

3.14.15

Patch Changes

3.14.14

Patch Changes

3.14.13

Patch Changes

3.14.12

Patch Changes

3.14.11

Patch Changes

3.14.10

Patch Changes

3.14.9

Patch Changes

3.14.8

Patch Changes

3.14.7

Patch Changes

3.14.6

Patch Changes

3.14.5

Patch Changes

3.14.4

Patch Changes

3.14.3

Patch Changes

  • #1238 6e1fe6e5 Thanks @iketw! - '[React] Adds Rainbow and Trust wallets hooks'

    import { useRainbowWallet, useTrustWallet } from "@thirdweb-dev/react";
    
    const connectWithRainbow = useRainbowWallet();
    
    const connectWithTrust = useTrustWallet();
    
  • #1237 536b0f12 Thanks @iketw! - [React] Add Rainbow Wallet (implementing the WalletConnect wallet)

    import { ThirdwebProvider, rainbowWallet } from "@thirdweb-dev/react";
    
    const activeChain = "ethereum";
    
    <ThirdwebProvider
      activeChain={activeChain}
      supportedWallets={[rainbowWallet()]}
    >
      <App />
    </ThirdwebProvider>;
    
  • #1236 b626782b Thanks @iketw! - [Wallets/React] Add Trust Wallet

    import { ThirdwebProvider, trustWallet } from "@thirdweb-dev/react";
    
    const activeChain = "mumbai";
    
    <ThirdwebProvider
      activeChain={activeChain}
      autoSwitch={true}
      supportedWallets={[trustWallet()]}
    >
      <App />
    </ThirdwebProvider>;
    
  • Updated dependencies [536b0f12, 1d76334d, b626782b, d498c79a, 9af346ee]:

3.14.2

Patch Changes

3.14.1

Patch Changes

3.14.0

Minor Changes

Patch Changes

3.13.1

Patch Changes

3.13.0

Patch Changes

3.12.4

Patch Changes

3.12.3

Patch Changes

3.12.2

Patch Changes

3.12.1

Patch Changes

3.12.0

Minor Changes

  • #993 b1ede491 Thanks @0xfrosty! - Add React hook useBuyDirectListing() to buy a direct listing in a MarketplaceV3 contract

Patch Changes

3.11.11

Patch Changes

3.11.10

Patch Changes

3.11.9

Patch Changes

3.11.8

Patch Changes

3.11.7

Patch Changes

3.11.6

Patch Changes

3.11.5

Patch Changes

3.11.4

Patch Changes

3.11.3

Patch Changes

3.11.2

Patch Changes

3.11.1

Patch Changes

3.11.0

Minor Changes

  • #584 d01b135d Thanks @MananTank! - [Wallets, RN, React, ReactCore] New Wallets SDK implementation

    Breaking changes:

    React and React Native

    1. Replaced walletConnectors with supportedWallets in the ThirdwebProvider.
      import { coinbaseWallet, metamaskWallet, ThirdwebProvider } from "@thirdweb-dev/react";
    
      const App = () => {
      - return <ThirdwebProvider walletConnectors={["metamask", "coinbaseWallet"]}>{...}</ThirdwebProvider>
      + return <ThirdwebProvider supportedWallets={[metamaskWallet(), coinbaseWallet()]}>{...}</ThirdwebProvider>
      }
    
    1. magicLinkConnector not yet implemented in this version

    2. Removed desiredChainId, use activeChain instead

    3. DAppMetaData type now requires the url field to be passed in

    4. Removed chainRpc prop from the ThirdwebProvider. You can pass custom rpcs in the Chain object through the activeChain and supportedChains props.

    5. Replaced the useNetwork hook for useChain and useSwitchChain

    6. Updated ConnectWallet button in React:

    • Removed accentColor and colorMode
    • Added a theme prop with dark and light values
    1. Updated the Web3Button button in React:
    • Removed accentColor and colorMode
    • Added a theme prop with dark and light values

    Patch Changes

    • You can now pass a theme prop to the ThirdwebProvider. Values are light and dark
      import { ThirdwebProvider } from "@thirdweb-dev/react";
    
      const App = () => {
      return <ThirdwebProvider theme='light'>{...}</ThirdwebProvider>
      }
    
    • New wallet hooks added

      • useWallet()
      • useConenct()
      • useConnectionStatus()
      • useSwitchChain()
    • Removed wagmi dependency from the react-native-compat package and updated shims

    • New ConnectWallet and Web3Button components in React Native

    • New wallets package with support for the most common wallets. MetaMask, Coinbase, WalletConnect V1 and V2 and PaperWallet

    • Added autoSwitch prop to the ThirdwebProvider to control whether or not to automatically switch to wallet's network to active chain

      import { ThirdwebProvider } from "@thirdweb-dev/react";
    
      const App = () => {
      return <ThirdwebProvider autoSwitch>{...}</ThirdwebProvider>
      }
    

Patch Changes

3.10.3

Patch Changes

3.10.2

Patch Changes

3.10.1

Patch Changes

3.10.0

Patch Changes

3.9.5

Patch Changes

3.9.4

Patch Changes

3.9.3

Patch Changes

3.9.2

Patch Changes

3.9.1

Patch Changes

3.9.0

Minor Changes

  • af8cf40 Thanks @joaquim-verges! - ## Now supports Any EVM - Any Contract!

    • no longer requires desiredChainId to be passed to ThirdwebProvider
    • apps can now pass activeChain to ThirdwebProvider to define the chain to connect to (can be a chainId or a fully defined chain object from @thirdweb-dev/chains)
    • if no activeChain is passed but a wallet is connected the SDK will be initialized with the chain of the connected wallet
    • (advanced) apps can now define the chains they want to support by passing supportedChains to ThirdwebProvider

    Deprecated options

    • desiredChainId is now deprecated and will be removed in the next major version. Please use activeChain instead.
    • chainRPC is now deprecated and will be removed in the next major version. Please use supportedChains instead.

    Basic Setup

    import { ThirdwebProvider } from "@thirdweb-dev/react";
    - import { ChainId } from "@thirdweb-dev/sdk";
    
    const App = () => {
    - return <ThirdwebProvider desiredChainId={ChainId.Ethereum}>{...}</ThirdwebProvider>
    + return <ThirdwebProvider>{...}</ThirdwebProvider>
    }
    

    Use a specific chain

    import { ThirdwebProvider } from "@thirdweb-dev/react";
    
    const App = () => {
      // Polygon is a default chain, so you can pass the chain name without needing to define "supportedChains"
      return (
        <ThirdwebProvider activeChain="polygon">{/* {...} */}</ThirdwebProvider>
      );
    };
    

    Use a non-default chain

    import { Sepolia } from "@thirdweb-dev/chains";
    import { ThirdwebProvider } from "@thirdweb-dev/react";
    
    const App = () => {
      // since there is only one supported chain defined this will automatically default the SDK to Sepolia
      return (
        <ThirdwebProvider activeChain={Sepolia}>{/* {...} */}</ThirdwebProvider>
      );
    };
    

Patch Changes

3.8.2

Patch Changes

3.8.1

Patch Changes

3.8.0

Patch Changes

3.7.4

Patch Changes

3.7.3

Patch Changes

3.7.2

Patch Changes

3.7.1

Patch Changes

3.7.0

Minor Changes

  • #460 a6c074c Thanks @adam-maj! - All Auth hooks and configuration have been upgraded along with the major upgrade to Auth. This includes changes in necessary authConfig to the ThirdwebProvider, as well as usage of the useLogin, useLogout, and useUser hooks.

    How to upgrade

    In order to upgrade your frontend setup to account for these changes, you'll need to make the following changes to your app:

    1. Remove loginRedirect from authConfig

    In your ThirdwebProvider, you can remove the loginRedirect option from the authConfig object, as the login endpoint no longer uses redirects.

    export default function MyApp({ Component, pageProps }) {
      return (
        <ThirdwebProvider
          authConfig={{
            domain: "example.com",
            authUrl: "/api/auth",
            // No more loginRedirect
          }}
        >
          <Component {...pageProps} />
        </ThirdwebProvider>
      );
    }
    

    2. Update useLogin and useLogout to use object destructuring

    The useLogin and useLogout hooks now return an object with a login and logout function (as well as isLoading states), respectively. You'll need to update your usage of these hooks to use object destructuring.

    import { useLogin, useLogout } from "@thirdweb-dev/react";
    
    export default function Component() {
      const { login } = useLogin();
      const { logout } = useLogout();
    
      return (
        <div>
          <button onClick={login}>Login</button>
          <button onClick={logout}>Logout</button>
        </div>
      );
    }
    

Patch Changes

  • #514 48893c7 Thanks @jnsdls! - switch to using the new @thirdweb-dev/react-core package to power @thirdweb-dev/react

  • #493 f37e86b Thanks @joaquim-verges! - Move solana dependencies to peer dependencies, please install them separately:

    npm install @thirdweb-dev/sdk @thirdweb-dev/react @metaplex-foundation/js @project-serum/anchor @solana/wallet-adapter-wallets

  • #512 065c4db Thanks @ikethirdweb! - Updates useClaimedNFTs to only fetch claimed NFTs

  • Updated dependencies [48893c7, a6c074c, 62b7388]:

3.6.11

Patch Changes

3.6.10

3.6.9

3.6.8

Patch Changes

  • #454 c673e39 Thanks @jnsdls! - upgraded dependencies

  • #422 08d04fe Thanks @yehia67! - Add btnTitle prop to the ConnectWallet component. Now you can set customized string or child component to the connect button.

3.6.7

Patch Changes

  • #448 7a37e56 Thanks @jnsdls! - [EVM] - allow useContract to fail faster to enable the import case

3.6.6

Patch Changes

3.6.5

3.6.4

Patch Changes

3.6.3

3.6.2

Patch Changes

3.6.1

Patch Changes

3.6.0

Patch Changes

  • #386 612bcdd Thanks @jnsdls! - [Gnosis Connector] - switch to safe.global hostname & add support for bsc and optimism chains

  • #364 7cb8e59 Thanks @joaquim-verges! - Add experimental useActiveClaimConditionForWallet() hook

3.5.2

Patch Changes

3.5.1

3.5.0

3.4.5

3.4.4

Patch Changes

3.4.3

Patch Changes

3.4.2

Patch Changes

3.4.1

Patch Changes

3.4.0

Minor Changes

  • #327 ef27aad Thanks @jnsdls! - Gnosis Safe and Magic Link connectors are no longer included in the default export. They are now available as named exports instead.

    Gnosis Safe

    Connector

    - import { GnosisSafeConnector } from "@thirdweb-dev/react";
    + import { GnosisSafeConnector } from "@thirdweb-dev/react/evm/connectors/gnosis-safe";
    

    Hook

    - import { useGnosis } from "@thirdweb-dev/react";
    + import { useGnosis } from "@thirdweb-dev/react/evm/connectors/gnosis-safe";
    

    Connector

    - import { MagicLink } from "@thirdweb-dev/react";
    + import { MagicConnector } from "@thirdweb-dev/react/evm/connectors/magic";
    

    Hook

    - import { useMagic } from "@thirdweb-dev/react";
    + import { useMagic } from "@thirdweb-dev/react/evm/connectors/magic";
    

Patch Changes

3.3.1

3.3.0

3.2.6

Patch Changes

3.2.5

3.2.4

Patch Changes

3.2.3

Patch Changes

3.2.2

Patch Changes

3.2.1

Patch Changes

3.2.0

Patch Changes

  • #261 c8261b7 Thanks @jnsdls! - [EVM] - align behavior of useContract() and getContract() across react & sdk to both allow passing optional second params of contract types or ABIs

  • #236 cac373b Thanks @jnsdls! - [SOL] - do not require a connection, instead handle a network directly

  • #251 ea41231 Thanks @jnsdls! - fix missing Buffer implementation for WalletConnect and CoinbaseWallet connectors

  • #253 b6fc298 Thanks @jnsdls! - [EVM] - allow passing contractType as second param to useContract()

  • #243 1136d95 Thanks @jnsdls! - fix persister logic

  • #258 ac232b5 Thanks @nachoiacovino! - Accept SmartContract instead of erc20 instance

  • #245 1972f3e Thanks @jnsdls! - [SOL] - expose useBurnNFT hook

  • #255 9b92697 Thanks @jnsdls! - [EVM] - useContract() and <Web3Button /> can now accept an optional ABI directly and will return a SmartContract based on it

3.1.2

Patch Changes

3.1.1

Patch Changes

3.1.0

Minor Changes

Patch Changes

3.0.8

Patch Changes

3.0.7

Patch Changes

3.0.6

Patch Changes

3.0.5

Patch Changes

3.0.4

Patch Changes

3.0.3

Patch Changes

3.0.2

Patch Changes

3.0.1

Patch Changes

3.0.0

Major Changes

  • #19 82627ea Thanks @joaquim-verges! - 3.0.0 update

    MAJOR VERSION CHANGE

    • 85% reduction in package size!
    • Custom contracts are now first class citizens

    Full changelog

    Breaking changes:

    1. Hooks now accept custom contracts direclty and handle the logic internally

    before

    const { contract } = useContract(...)
    const { data: nfts } = useNFTs(contract?.nft)
    const { mutation: claim } = useClaimNFT(contract?.nft)
    

    after

    const { contract } = useContract(...)
    // works with any ERC721/ERC1155 contract
    const { data: nfts} = useNFTs(contract)
    const { mutation: claim } = useClaimNFT(contract)
    
    1. Custom contract hooks for reading and writing have been renamed:

    before

    const { contract } = useContract(...)
    const { data } = useContractData(contract, "myReadFunction", ...args);
    const { mutate: myFunction } = useContractCall(contract, "myWriteFunction");
    

    after

    const { contract } = useContract(...)
    const { data } = useContractRead(contract, "myReadFunction", ...args);
    const { mutate: myFunction } = useContractWrite(contract, "myWriteFunction");
    
    1. Web3Button benefits from the new Extension detection API:

    before

    <Web3Button
      contractAddress={...}
      action={(contract) => contract.nft?.drop?.claim?.to(...)}
      >
      Claim
      </Web3Button>
    

    after

    <Web3Button
      contractAddress={...}
      action={(contract) => contract.erc721.claim(...) }
      >
      Claim
      </Web3Button>
    

Minor Changes

  • #106 0fa6f3f Thanks @jnsdls! - switch all contracts to a new, universal useContract() hook

Patch Changes

2.9.7

Patch Changes

2.9.6

Patch Changes

2.9.5

Patch Changes

2.9.4

Patch Changes

2.9.3

Patch Changes

2.9.2

Patch Changes

2.9.1

Patch Changes

2.9.0

Minor Changes

  • #42 46ad691 Thanks @jnsdls! - remove functionName + params option from <Web3Button> - use action={...} instead

Patch Changes

2.8.1

Patch Changes

2.8.0

Minor Changes

  • 3abe26c: initialze monorepo packages

Patch Changes

2.7.5

Patch Changes