Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency wagmi to ^0.12.0 #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Dec 7, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wagmi (source) ^0.8.5 -> ^0.12.0 age adoption passing confidence

Release Notes

wevm/wagmi (wagmi)

v0.12.13

Compare Source

Patch Changes

v0.12.12

Compare Source

Patch Changes

v0.12.11

Compare Source

Patch Changes

v0.12.10

Compare Source

Patch Changes

v0.12.9

Compare Source

Patch Changes

v0.12.8

Compare Source

Patch Changes

v0.12.7

Compare Source

Patch Changes

v0.12.6

Compare Source

Patch Changes

v0.12.5

Compare Source

Patch Changes

v0.12.4

Compare Source

Patch Changes

v0.12.3

Compare Source

Patch Changes

v0.12.2

Compare Source

Patch Changes
  • #​2016 06bf61de Thanks @​jxom! - Added chains:

    • boba
    • chronos
    • crossbell
    • dfk
    • dogechain
    • flare
    • flareTestnet
    • klaytn
    • scrollTestnet
    • shardeumSphinx
    • skaleCalypso
    • skaleCalypsoTestnet
    • skaleChaosTestnet
    • skaleCryptoBlades
    • skaleCryptoColosseum
    • skaleEuropa
    • skaleEuropaTestnet
    • skaleExorde
    • skaleHumanProtocol
    • skaleNebula
    • skaleNebulaTestnet
    • skaleRazor
    • skaleTitan
    • skaleTitanTestnet
    • songbird
    • songbirdTestnet
    • titan
    • titanTestnet
    • wanchain
    • wanchainTestnet
  • #​2016 06bf61de Thanks @​jxom! - Updated references/ submodule.

  • Updated dependencies [06bf61de, 06bf61de]:

v0.12.1

Compare Source

Patch Changes

v0.12.0

Compare Source

Minor Changes
  • #​1902 0994e896 Thanks @​jxom! - Breaking: Removed the version config option for WalletConnectConnector.

    WalletConnectConnector now uses WalletConnect v2 by default. WalletConnect v1 is now WalletConnectLegacyConnector.

WalletConnect v2
import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'

const connector = new WalletConnectConnector({
  options: {
-   version: '2',
    projectId: 'abc',
  },
})
WalletConnect v1
-import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'
+import { WalletConnectConnector } from 'wagmi/connectors/walletConnectLegacy'

-const connector = new WalletConnectConnector({
+const connector = new WalletConnectLegacyConnector({
  options: {
    qrcode: true,
  },
})
Patch Changes

v0.11.7

Compare Source

Patch Changes

v0.11.6

Compare Source

Patch Changes

v0.11.5

Compare Source

Patch Changes

v0.11.4

Compare Source

Patch Changes

v0.11.3

Compare Source

Patch Changes

v0.11.2

Compare Source

Patch Changes

v0.11.1

Compare Source

Patch Changes

v0.11.0

Compare Source

Minor Changes
Patch Changes

v0.10.15

Compare Source

Patch Changes

v0.10.14

Compare Source

Patch Changes

v0.10.13

Compare Source

Patch Changes

v0.10.12

Compare Source

Patch Changes

v0.10.11

Compare Source

Patch Changes

v0.10.10

Compare Source

Patch Changes

v0.10.9

Compare Source

Patch Changes

v0.10.8

Compare Source

Patch Changes

v0.10.7

Compare Source

Patch Changes

v0.10.6

Compare Source

Patch Changes

v0.10.5

Compare Source

Patch Changes

v0.10.4

Compare Source

Patch Changes

v0.10.3

Compare Source

Patch Changes

v0.10.2

Compare Source

Patch Changes

v0.10.1

Compare Source

Patch Changes

v0.10.0

Compare Source

Minor Changes
  • #​1470 3a1a6c9f Thanks @​jxom! - Breaking: The useSigner hook now always returns undefined when no signer is present. Previously, it returned null.

    When no signer is present, the hook will be in an "idle" status.

Patch Changes

v0.9.6

Compare Source

Patch Changes

v0.9.5

Compare Source

Patch Changes

v0.9.4

Compare Source

Patch Changes

v0.9.3

Compare Source

Patch Changes

v0.9.2

Compare Source

Patch Changes

v0.9.1

Compare Source

Patch Changes

v0.9.0

Compare Source

Minor Changes
  • #​1344 57a19374 Thanks @​jxom! - Breaking: With the introduction of the wagmi/chains entrypoint, wagmi no longer exports the following:

    • chain
    • allChains
    • defaultChains
    • defaultL2Chains
    • chainId
    • etherscanBlockExplorers
    • alchemyRpcUrls, infuraRpcUrls, publicRpcUrls

    Read below for migration steps.

Removed chain

The chain export has been removed. wagmi now only exports the mainnet & goerli chains. If you need to use an alternative chain (polygon, optimism, etc), you will need to import it from the wagmi/chains entrypoint.

import {
- chain
  configureChains
} from 'wagmi'
+ import { mainnet, polygon, optimism } from 'wagmi/chains'

const { ... } = configureChains(
- [chain.mainnet, chain.polygon, chain.optimism],
+ [mainnet, polygon, optimism],
  {
    ...
  }
)
Removed allChains

The allChains export has been removed. If you need a list of all chains, you can utilize wagmi/chains entrypoint.

- import { allChains } from 'wagmi'
+ import * as allChains from 'wagmi/chains'

const { ... } = configureChains(allChains, ...)
Removed defaultChains & defaultL2Chains

The defaultChains & defaultL2Chains exports have been removed. If you still need the defaultChains or defaultL2Chains exports, you can build them yourself:

- import { defaultChains } from 'wagmi'
+ import { mainnet, goerli } from 'wagmi/chains'

+ const defaultChains = [mainnet, goerli]

The defaultChains export was previously populated with mainnet & goerli.

- import { defaultL2Chains } from 'wagmi'
+ import {
+   arbitrum,
+   arbitrumGoerli,
+   polygon,
+   polygonMumbai,
+   optimism,
+   optimismGoerli
+ } from 'wagmi/chains'

+ const defaultL2Chains = [
+  arbitrum,
+  arbitrumGoerli,
+  polygon,
+  polygonMumbai,
+  optimism
+  optimismGoerli
+ ]

The defaultL2Chains export was previously populated with arbitrum & optimism.

Removed chainId

The chainId export has been removed. You can extract a chain ID from the chain itself.

- import { chainId } from 'wagmi'
+ import { mainnet, polygon, optimism } from 'wagmi/chains'

-const mainnetChainId = chainId.mainnet
-const polygonChainId = chainId.polygon
-const optimismChainId = chainId.optimism
+const mainnetChainId = mainnet.chainId
+const polygonChainId = polygon.chainId
+const optimismChainId = optimism.chainId
Removed etherscanBlockExplorers

The etherscanBlockExplorers export has been removed. You can extract a block explorer from the chain itself.

- import { etherscanBlockExplorers } from 'wagmi'
+ import { mainnet, polygon, optimism } from 'wagmi/chains'

-const mainnetEtherscanBlockExplorer = etherscanBlockExplorers.mainnet
-const polygonEtherscanBlockExplorer = etherscanBlockExplorers.polygon
-const optimismEtherscanBlockExplorer = etherscanBlockExplorers.optimism
+const mainnetEtherscanBlockExplorer = mainnet.blockExplorer
+const polygonEtherscanBlockExplorer = polygon.blockExplorer
+const optimismEtherscanBlockExplorer = optimism.blockExplorer
Removed alchemyRpcUrls, infuraRpcUrls & publicRpcUrls

The alchemyRpcUrls, infuraRpcUrls & publicRpcUrls exports have been removed. You can extract a RPC URL from the chain itself.

- import { alchemyRpcUrls, infuraRpcUrls, publicRpcUrls } from 'wagmi'
+ import { mainnet } from 'wagmi/chains'

-const mainnetAlchemyRpcUrl = alchemyRpcUrls.mainnet
-const mainnetInfuraRpcUrl = infuraRpcUrls.mainnet
-const mainnetOptimismRpcUrl = publicRpcUrls.mainnet
+const mainnetAlchemyRpcUrl = mainnet.rpcUrls.alchemy
+const mainnetInfuraRpcUrl = mainnet.rpcUrls.infura
+const mainnetOptimismRpcUrl = mainnet.rpcUrls.optimism
RPC URLs

The rpcUrls shape has changed to include an array of URLs, and also the transport method (http or webSocket):

type Chain = {
  ...
  rpcUrls: {
-   [key: string]: string
+   [key: string]: {
+     http: string[]
+     webSocket: string[]
+   }
  }
  ...
}

Note that you will also need to ensure that usage is migrated:

- const rpcUrl = mainnet.rpcUrls.alchemy
+ const rpcUrl = mainnet.rpcUrls.alchemy.http[0]
Contracts

The multicall and ens attributes have been moved into the contracts object:

type Contract = {
  address: Address
  blockCreated?: number
}

type Chain = {
  ...
- multicall: Contract
- ens: Contract
+ contracts: {
+   multicall3: Contract
+   ensRegistry: Contract
+ }
  ...
}

Note that you will also need to ensure that usage is migrated:

- const multicallContract = mainnet.multicall
+ const multicallContract = mainnet.contracts.multicall3
  • #​1344 57a19374 Thanks @​jxom! - Breaking: Removed the wait config option on useWaitForTransaction. Use the transaction hash instead.

    const { data } = useWaitForTransaction({
    - wait: transaction.wait
    + hash: transaction.hash
    })
  • #​1344 57a19374 Thanks @​jxom! - Updated errors to use cause instead of internal

  • #​1344 57a19374 Thanks @​jxom! - useEnsResolver's result is no longer persisted by the query client since it cannot serialize its prototype methods.

  • #​1344 57a19374 Thanks @​jxom! - Breaking: Changed useWaitForTransaction behavior to return an error if the transaction reverted.

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label Dec 7, 2022
@vercel
Copy link

vercel bot commented Dec 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
sponsor ❌ Failed (Inspect) Jan 27, 2023 at 0:41AM (UTC)

@renovate renovate bot changed the title fix(deps): update dependency wagmi to ^0.9.0 Update dependency wagmi to ^0.9.0 Dec 17, 2022
@renovate renovate bot changed the title Update dependency wagmi to ^0.9.0 fix(deps): update dependency wagmi to ^0.9.0 Dec 17, 2022
@renovate renovate bot force-pushed the renovate/wagmi-0.x branch from e05eb25 to f6b534f Compare December 28, 2022 02:31
@renovate renovate bot changed the title fix(deps): update dependency wagmi to ^0.9.0 fix(deps): update dependency wagmi to ^0.10.0 Dec 28, 2022
@renovate renovate bot force-pushed the renovate/wagmi-0.x branch from f6b534f to a41c341 Compare January 27, 2023 00:40
@renovate renovate bot changed the title fix(deps): update dependency wagmi to ^0.10.0 fix(deps): update dependency wagmi to ^0.11.0 Jan 27, 2023
@renovate renovate bot force-pushed the renovate/wagmi-0.x branch from a41c341 to 2355e3f Compare March 9, 2023 14:30
@renovate renovate bot changed the title fix(deps): update dependency wagmi to ^0.11.0 fix(deps): update dependency wagmi to ^0.12.0 Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants