Files
github-actions[bot]andgithub-actions[bot] 318b274aae Version Packages (#924)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-03 21:24:18 -07:00

20 KiB

@thirdweb-dev/wallets

0.2.17

Patch Changes

0.2.16

Patch Changes

0.2.15

Patch Changes

  • #868 b616dca7 Thanks @iketw! - - Updates base wallet classes names

    • Makes InjectedWallet params optional
    • Removes connector storage constructor param from Injected and MetaMask wallets
  • #872 2545a440 Thanks @nachoiacovino! - Rename Wallet Connect to WalletConnect

  • #859 229a4741 Thanks @MananTank! - Fix Error when connecting to Safe in Vite

0.2.14

Patch Changes

0.2.13

Patch Changes

  • #851 c5c2d947 Thanks @MananTank! - Fix wallet autoconnect issues

    Fixes

    • infinite loading spinner on connect wallet button when wallet is locked or connection to app is closed
    • network switch popup on page load when wallet is connected to different network than it was previously connected
    • removed autoconnect timeout - don't need it anymore
  • #855 2dd192a5 Thanks @MananTank! - Add auth in Connect Wallet button

0.2.12

Patch Changes

0.2.11

Patch Changes

0.2.10

Patch Changes

0.2.9

Patch 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>
      }
    
  • #760 93eca1de Thanks @jnsdls! - keep @coinbase/wallet-sdk as a full dependency instead of peer dependency

  • #794 a6fce0f6 Thanks @shift4id! - Minor copy changes

  • #825 4bdeefe6 Thanks @iketw! - [Core,React,RN,Wallets] Allow for wallets to be created without props where possible

    You can now create wallets without having to worry about it's params. We provide sensible defaults.

    const w = new WalletConnectV1();
      w.connect();
    
    const w1 = new WalletConnect();
    w1.connect();
    
    const cb = new CoinbaseWallet()
    w1.connect();
    
    const safe = new SafeWallet();
    
    const device = new DeviceBrowserWallet();
    
  • #702 33d1cc7f Thanks @jnsdls! - enable browser export

  • #833 83e99dbf Thanks @MananTank! - Fix paper wallet autoconnect issue

  • #824 95bcfa6d Thanks @iketw! - [Wallets] Add autoconnect capabilities

    • You can now call .autoConnect on your wallets and it will check if the wallet is connected. If it's not, it will not trigger the connect flow
  • #802 4d07b4b4 Thanks @iketw! - [ReactCore/Wallets] ReactCore manages all coordination for wallet reconnection

  • #739 4d5fdda9 Thanks @jnsdls! - Add Safe connector and wallet

  • #835 6b31a9bc Thanks @iketw! - [Wallets] set qrcode prop correctly

  • #764 4b77bc9b Thanks @MananTank! - paper wallet, do not save device wallet password

  • #584 d01b135d Thanks @MananTank! - [Wallets] New and updated wallets. [RN] UI Components and Wallets support.

  • #832 e47ceafe Thanks @MananTank! - - Fix wallet.addListener "connect", "disconnect" event emit issue

    • update the paper sdk
  • #778 6c0c6538 Thanks @joaquim-verges! - Device wallet input cleanup

  • #786 ddc1c33a Thanks @MananTank! - Gnosis Safe

  • #748 2221f97d Thanks @MananTank! - [ReactCore] Inject api key to chains

  • Updated dependencies [d01b135d, e3161e59, 33d1cc7f, 6b145d4b, e2ec70c4, 1baed0b1, 2221f97d, 5c7c0923, 9a4a542c, b2d0ffb0]:

0.2.8

Patch Changes

0.2.7

Patch Changes

0.2.6

0.2.5

0.2.4

0.2.3

Patch Changes

0.2.2

0.2.1

Patch Changes

0.2.0

Minor Changes

  • #460 a6c074c Thanks @adam-maj! - Wallets abstraction along with major Auth upgrade. Wallets split into EVM and Solana entrypoints along with GenericAuthWallet implementation.

    Additionally, AWSKmsWallet and AWSSecretsManager wallets have been moved into the @thirdweb-dev/wallets/evm entrypoint from the SDK.

0.1.1

Patch Changes

0.1.0

Minor Changes