151 KiB
@wagmi/core
3.4.0
Minor Changes
- Added
signTransactionaction (#4995)
3.3.4
Patch Changes
- Added credential fast path to
webAuthnconnector — passcapabilities.credentialdirectly to skip the WebAuthn ceremony when the credential is already known. (#5005)
3.3.3
Patch Changes
- Added ability to sign arbitrary
hashonwebAuthn#connect. (#4994)
3.3.2
Patch Changes
- Updated internal exports (
68e17db)
3.3.1
Patch Changes
- Fixed "illegal invocation" error when signing up with passkeys while using password manager browser extensions (#4968)
3.3.0
Minor Changes
-
Added
getBlobBaseFeeandwriteContractSyncactions. (dfe7904) -
Added
getContractEventsaction. (#4905)
Patch Changes
-
Fixed
eth_accountsto returnmock#accountsparameter when provided. (#4920) -
Added explicit return type to mutation options. (#4964)
-
Fixed
readContractsQueryKeyusing passedchainIdwhen all contracts specifiychainId(5978cc5) -
wagmi/tempo: PropagatedrpIdtoAccount.fromWebAuthnP256in webAuthn connector. (#4963)
3.2.3
Patch Changes
-
wagmi/tempo: Fixed access key lookup to use
accountaddress instead ofaccessKeyaddress inwebAuthnconnector. (#4953) -
Propagated
chainto Viem'ssendTransactiionto preserve chain-specific configuration. (#4953) -
Fixed serialization of credentials in
KeyManager.http. (#4951)
3.2.2
Patch Changes
- Updated query internals. (
4fefa57)
3.2.1
Patch Changes
wagmi/tempo: Fixed issue wherewebAuthnconnector was not adhering to chain-specificprepareTransactionRequestphases. (#4939)
3.2.0
Minor Changes
-
Updated to
viem@2.44.0with Tempo Moderato support. (#4940)Breaking Changes (Tempo)
- Renamed
reward.start→reward.distribute(no longer supports streaming) - Renamed
reward.startSync→reward.distributeSync - Renamed
reward.getTotalPerSecond→reward.getGlobalRewardPerToken - Renamed
reward.watchRewardScheduled→reward.watchRewardDistributed - Removed
nonce.getNonceKeyCount - Removed
nonce.watchActiveKeyCountChanged - Removed
amm.watchFeeSwap(FeeSwap event no longer emitted by protocol)
New Features (Tempo)
- Added
dex.cancelStaleaction to cancel stale orders from restricted makers - Added
dex.cancelStaleSyncaction - Added
saltparameter totoken.create
- Renamed
3.1.0
Minor Changes
3.0.2
Patch Changes
- Fixed
config.connectorstype inference (#4923)
3.0.1
Patch Changes
- Fixed
readContractreturn type inference for ABI function overloads. (058c8c1)
3.0.0
Major Changes
-
All connector dependencies are now optional peer dependencies. This means that if you want to use a specific connector, you need to install its required dependencies. (#4857)
baseAccount
baseAccountrequires@base-org/accountpnpm add @base-org/account@~2.4.0coinbaseWallet
coinbaseWalletrequires@coinbase/wallet-sdkpnpm add @coinbase/wallet-sdk@~4.3.6gemini
geminirequires@gemini-wallet/corepnpm add @gemini-wallet/core@~0.3.1metaMask
metaMaskrequires@metamask/sdkpnpm add @metamask/sdk@~0.33.1porto
portorequiresportopnpm add porto@~0.2.35safe
saferequires@safe-global/safe-apps-providerand@safe-global/safe-apps-sdkpnpm add @safe-global/safe-apps-provider@~0.18.6 @safe-global/safe-apps-sdk@~9.1.0walletConnect
walletConnectrequireswalletconnect/ethereum-providerpnpm add @walletconnect/ethereum-provider@~2.21.1
2.22.1
Patch Changes
- Fixed passing
accountinwaitForTransactionReceiptfor reverted transaction. (#4832)
2.22.0
Minor Changes
- Added
sendTransactionSyncandsendCallsSyncActions. (#4823)
2.21.2
Patch Changes
- Added
assertChainIdparameter togetConnectorClient. (866aeb0)
2.21.1
Patch Changes
- Fixed
getConnectorscomparison (#4792)
2.21.0
Minor Changes
- #4784
8736133a13eb82099e20468b735525a266fdfd6cThanks @tmm! - AddedwithCapabilitiesoption toconnectfor exposing response capabilities.
2.20.3
Patch Changes
- #4752
ce06e137e7bfaf000464b1cecd6c86e19a66ebcfThanks @iamakulov! - FixeddeepEqualcrashing for objects with no prototype
2.20.2
Patch Changes
- #4733
986b96427a4bb743d2673dfbc7e8cb5041316db3Thanks @effie-ms! - FixedgetConnectorClientchain ID race condition.
2.20.1
Patch Changes
- #4773
d4c367ca46c508598c997cf229a31593a1e2b8b8Thanks @tmm! - Fixed issue with codegen actions/hooks, wheresyncConnectedChain: falsedid not work as intended.
2.20.0
Minor Changes
- #4770
a13aa2b68890f180f6ac3f741cbb9817494cb66cThanks @tmm! - Added internalrevalidatefunction.
2.19.0
Minor Changes
- #4756
b5f017dbc707729eb0b36d617352be224d1139d4Thanks @plusminushalf! - AddedgetActiontosendCallsandgetCallsStatus
2.18.1
Patch Changes
- #4704
6514ba29a5acb918773235fed0238d7d679d06d5Thanks @iceanddust! - Added missingfromaddress to thewallet_sendCallshandler in themockconnector
2.18.0
Minor Changes
- #4734
eac550ae5b49f96a7e3404a6d88adc62d3889013Thanks @jxom! - AddedbaseAccountconnector.
2.17.3
Patch Changes
- #4700
7ce242b549d8cc78e6c319d9ee419693da36704cThanks @jade-u410! - Updated@coinbase/wallet-sdkto 4.3.3
2.17.2
Patch Changes
-
29297a48af72b537173d948ccd2fe37d39914c66Thanks @jxom! - FixedsendCallsgenerics. -
07370106d5fb6b8fe300992d93abf25b3d0eaf57Thanks @jxom! - Fixed propagation ofwaitForCallsStatusparameters.
2.17.1
Patch Changes
- #4649
01f64e64fa4f85cdd30023903f972f4f9023681fThanks @jxom! - AddedchainIdparameter togetCapabilities/useCapabilities.
2.17.0
Minor Changes
- #4638
799ee4d4b23c2ecd64e3f3668e67634e81939719Thanks @jxom! - Stabilized EIP-5792 Actions & Hooks.
2.16.7
Patch Changes
a4bd0623eed28e3761a27295831a60ad835f0ee0Thanks @jxom! - Experimental (EIP-5792): Updatedidparameter to be optional onuseWaitForCallsStatus.
2.16.6
Patch Changes
- #4586
edf47477b2f6385a1c3ae01d36a8498c47f30a0bThanks @jxom! - Experimental (EIP-5792): AddedwaitForCallsStatus+useWaitForCallsStatus.
2.16.5
Patch Changes
d0c9a86921a4e939373cc6e763284e53f2a2e93cThanks @jxom! - Experimental (ERC-5792): Added support foraccount: nullinsendCallsto cater for sending calls without a connected account (account will be filled by the wallet).
2.16.4
Patch Changes
507f864d91238bfd423d0e36d3619eb9f6e52eecThanks @jxom! - Updated@coinbase/wallet-sdk.
2.16.3
Patch Changes
- #4480
384a1d91597622eb59e1c05dc13ce25017c5b6d8Thanks @RodeRickIsWatching! - Fixed invocation of default storage.
2.16.2
Patch Changes
012907032b532a438fce48f407470250cbc8f0c6Thanks @jxom! - Fixed assignment ingetDefaultStorage.
2.16.1
Patch Changes
- #4472
3892ebd21c06beef4b28ece4e70d2a38807bce6fThanks @tmm! - Added handling to default storage forsetItemerrors, likeQuotaExceededError,SecurityError, etc.
2.16.0
Minor Changes
- #4453
070e48480194c8d7f45bda1d7dd1346e6f5d7227Thanks @tmm! - Added narrowing toconfig.connectors.
Patch Changes
afea6b67822a7a2b96901ec851441d27ee0f7a52Thanks @tmm! - Passed through parameters toconnector.connectinconnectaction.
2.15.2
Patch Changes
- #4433
06e186cd679b27fe195309110e766fcf46d4efbcThanks @Aerilym! - Bumped Metamask SDK version to0.31.1.
2.15.1
Patch Changes
b8bbb409f4934538e3dd6cac5aaf7346292d0693Thanks @jxom! - Fixed issue wherenullgas would accidentally pass through.
2.15.0
Minor Changes
- #4417
42e65ea4fea99c639817088bba915e0933d17141Thanks @jxom! - Removed simulation inwriteContract&sendTransaction.
2.14.6
Patch Changes
- #4406
a13aa8d7c38eb3cc8171a02d6302e6d12cf6bcb3Thanks @tmm! - Added support for multiple connectorrdnsentries.
2.14.5
Patch Changes
- #4400
6b9bbacdc7bffd44fc2165362a5e65fd434e7646Thanks @AzzouQ! - FixedcreateWatchContractEventinternal wiring, whereeventNamewas incorrectlyfunctionName.
2.14.4
Patch Changes
- #4311
e08681c81fbdf475213e2d0f4c5517d0abf4e743Thanks @chybisov! - Fixedinjectedconnector race condition after calling'wallet_addEthereumChain'inswitchChain.
2.14.3
Patch Changes
cb7dd2ebb871d0be8f1a11a8cd8ce592cd74b7c7Thanks @tmm! - Removed unnecessary internal deep equal check instructuralSharing.
2.14.2
Patch Changes
-
#4339
d0d0963bb5904a15cf0355862d62dd141ce0c31cThanks @AndriyAntonenko! - Fixed bug inwaitForTransactionReceipt, where transaction data wasn't passed to'eth_call'method as part of getting the revert reason. -
ecac0ba36243d94c9199d0bd21937104c835d9a0Thanks @tmm! - FixedgetBalancesymbol error handling.
2.14.1
Patch Changes
-
052e72e1f8c1c14fcbdce04a9f8fa7ec28d83702Thanks @tmm! - AddeddefaultConnectedfeature tomockconnector. -
#4349
b250fc21ee577b2a75c5a34ff684f62fb4ad771aThanks @tmm! - Bumped internal deps.
2.14.0
Minor Changes
- #4343
f43e074f473820b208a6295d7c97f847332f1a1dThanks @tmm! - Addedrdnsproperty to connector interface. This is used to filter out duplicate EIP-6963 injected providers whencreateConfig#multiInjectedProviderDiscoveryis enabled andcreateConfig#connectorsalready matches EIP-6963 providers'rdnsproperty.
2.13.9
Patch Changes
- #4336
c05caabc20c3ced9682cfc7ba1f3f7dcfece0703Thanks @EdouardBougon! - Added deprecation notice toinjectedtarget flags.
2.13.8
Patch Changes
- #4207
56f2482508f2ba71bd6b0295c70c6abca7101e57Thanks @Smert! - Updated chain switch listener forinjectedandmetaMaskto be more robust.
2.13.7
Patch Changes
be75c2d4ef636d7362420ab0a106bfdf63f5d1e6Thanks @tmm! - Added guard for missingprovider.onforinjectedconnector.
2.13.6
Patch Changes
- #4286
edcbf5d6fbe92f639bead800502edda9e0aa39f1Thanks @holic! - Removed duplicate code.
2.13.5
Patch Changes
- #4259
f47ce8f6d263e49fdff90b8edb3190142d2657bbThanks @tmm! - Added guard togetConnectorClientwhen reconnecting to check if connector is fully restored.
2.13.4
Patch Changes
b4c8971788c70b09479946ecfa998cff2f1b3953Thanks @tmm! - Madeserializeanddeserializetypes more permissive.
2.13.3
Patch Changes
871dbdbfe59ac8ad01d1ec6150ea7b091b7b7de4Thanks @tmm! - Added validation to internal state for persistedchainId.
2.13.2
Patch Changes
1b9b523fa9b9dfe839aecdf4b40caa9547d7e594Thanks @tmm! - Fixed built-in cookie storageremoveItemworking for all paths.
2.13.1
Patch Changes
07c1227f306d0efb9421d4bb77a774f92f5fcf45Thanks @tmm! - Fixed internalextractRpcUrlsusage withunstable_connector.
2.13.0
Minor Changes
- #4162
a73a7737b756886b388f120ae423e72cca53e8a0Thanks @jxom! - Added functionality for consumer-defined RPC URLs (config.transports) to be propagated to the WalletConnect & MetaMask Connectors.
2.12.2
Patch Changes
5bc8c8877810b2eec24a829df87dce40a51e6f20Thanks @tmm! - Fixed reconnection whenstatusis defined.
2.12.1
Patch Changes
- #4146
cc996e08e930c9e88cf753a1e874652059e81a3bThanks @jxom! - Updated@safe-global/safe-apps-sdk+@safe-global/safe-apps-providerdependencies.
2.12.0
Minor Changes
- #4128
5581a810ef70308e99c6f8b630cd4bca59f64afcThanks @dalechyn! - AddedwatchAssetaction.
2.11.8
Patch Changes
-
b08013eaa9ce97c02f8a7128ea400e3da7ef74bbThanks @tmm! - Fixed injected accounts ordering for'wallet_requestPermissions'. -
d3814ab4b88f9f0e052b53bc3d458df87b43f01dThanks @jxom! - Updatedmipddependency.
2.11.7
Patch Changes
0bb8b562ae04ecfeb2d6b2f1b980ebae31dc127eThanks @tmm! - Improved TypeScript'exactOptionalPropertyTypes'support.
2.11.6
Patch Changes
- #4060
95965c1f19d480b97f2b297a077a9e607dee32adThanks @dalechyn! - Bumped Tanstack Query dependencies to fix typing issues between exported Wagmi query options and TanStack Query suspense query methods (due todirectionproperty inQueryFunctionContextbeing deprecated).
2.11.5
Patch Changes
- #4079
04f2b846b113f3d300d82c9fa75212f1805817c5Thanks @tmm! - Added revalidation for config chain ID in SSR and migration.
2.11.4
Patch Changes
9e8345cd56186b997b5e56deaa2cfc69b30d15f6Thanks @tmm! - SwitchedRegistertointerfaceto fix declaration merging.
2.11.3
Patch Changes
- #4065
8974e6269bb5d7bfaa90db0246bc7d13e8bff798Thanks @alx-khramov! - Added timeout to internal call of'wallet_revokePermissions'request duringinjected#disconnectas some wallets that do not support this method hang.
2.11.2
Patch Changes
- #4042
b4d9ef79deb554ee20fed6666a474be5e7cdd522Thanks @tmm! - RemovedinjectedconnectorisAuthorizedtimeout.
2.11.1
Patch Changes
9c862d8d63e3d692a22cef2a90782b74a9103f17Thanks @tmm! - Reverted internal module loading utility.
2.11.0
Minor Changes
- #3816
06bb598a7f04c7b167f5b7ff6d46bd15886a6a14Thanks @marthendalnunes! - AddeddeployContractaction.
Patch Changes
24a45b269bd0214a29d6f82a84ac66ef8c3f3822Thanks @tmm! - AddedSameSitedefault tocookieStorage
2.10.6
Patch Changes
-
#4009
f2a7cefab96691ebed8b8e45ffde071c47b58dbeThanks @roninjin10! - Markedtoas optional forsendTransaction. -
#4023
f0ea0b2a7fe193dadfeb49a4c8031ee451c638b5Thanks @jxom! - Added chain check togetConnectorClientsince it's possible for connection state chain ID to get out of sync with the connector (e.g. wallet bug).
2.10.5
Patch Changes
- #3970
030c7c2cb380dfd67a2182f62e2aa7a6e1601898Thanks @nanxiaobei! - FixedcookieStoragenot working across paths.
2.10.4
Patch Changes
- #3984
51fde8a0433b4fff357c1a8d7e08b41b4c86c968Thanks @tmm! - FixedwriteContractquery types forvalueproperty.
2.10.3
Patch Changes
- #3962
2804a8a583b1874271154898b4bae38756ef581cThanks @tmm! - Added catch toreconnect.
2.10.2
Patch Changes
- #3940
a5071f581dfdfb961718873643a2fc629101c72aThanks @jxom! - Fixed usage ofmetaMaskconnector in Vite environments.
2.10.1
Patch Changes
- Bumped versions.
2.10.0
Minor Changes
- #3928
3117e71825f9c58a0d718f3d1686f1a191fa9cb1Thanks @tmm! - Updated the default Coinbase SDK incoinbaseWalletConnector to v4.x.
2.9.8
Patch Changes
- #3906
32fcb4a31dde6b0206961d8ffe9c651f8a459c67Thanks @tmm! - Added support for Vue.
2.9.7
Patch Changes
- #3924
1f58734f88458e0f6adb05c99f0c90f36ab286b8Thanks @jxom! - RefactoredisChainsStalelogic inwalletConnectconnector.
2.9.6
Patch Changes
- #3917
05948fdad5bb4a56b08916d45b3dec2cb1e5f55bThanks @jxom! - Updated@metamask/sdk.
2.9.5
Patch Changes
4fecbbb66d0aacd03b8c62a6455d11a33cde8f85Thanks @jxom! - Fixed address comparison ingetConnectorClient.
2.9.4
Patch Changes
- #3910
e6139a97c4b8804d734b1547b5e3921ce01fbe24Thanks @tmm! - Added experimentalwallet_revokePermissionssupport toinjected.
2.9.3
Patch Changes
- #3904
addca28ebc20f1a4367c35fe9ef786decff9c87eThanks @jxom! - Updated@walletconnect/ethereum-provider.
2.9.2
Patch Changes
- #3902
204b7b624612405500ec098fb9e35facd3f74ca4Thanks @jxom! - Made third-party SDK imports type-only.
2.9.1
Patch Changes
2.9.0
Minor Changes
2.8.1
Patch Changes
- #3869
d4a78eb0Thanks @jxom! - Fixed issue whereprepareTransactionRequestwould internally call unsupported wallet RPC methods.
2.8.0
Minor Changes
- #3868
c2af20b8Thanks @jxom! - AddedsupportsSimulationproperty to connectors that indicates if the connector's wallet supports contract simulation.
Patch Changes
- #3858
0d141f17Thanks @yulafezmesi! - Fixed accessing reverted reason property insidewaitForTransactionReceipt.
2.7.0
Minor Changes
Patch Changes
-
#3849
4781a405Thanks @tmm! - FixedshimDisconnect: falsebehavior. -
#3859
400c960bThanks @holic! - Added workaround to injected connector for MetaMask bug, where chain switching does not work if target chain RPC'net_version'request fails.
2.6.19
Patch Changes
2.6.18
Patch Changes
2.6.17
Patch Changes
- #3822
a97bfbaeThanks @jxom! - Fixed an issue where Wagmi would not correctly rehydrate the active chain when a persisted store was being used.
2.6.16
Patch Changes
2.6.15
Patch Changes
2.6.14
Patch Changes
-
#3777
b3b54ef1Thanks @desfero! - FixedwriteContractto forwardchainInwhen simulating contract call -
#3779
3da20bb8Thanks @jxom! - Fixed an issue whereeth_requestAccountswould be called upon reconnect instead ofeth_accounts. -
a3d1858fThanks @jxom! - Fixed hydration conditional increateConfig.
2.6.13
Patch Changes
2.6.12
Patch Changes
-
#3763
a59069e9Thanks @tmm! - FixedgetConnectorClientinternal address comparison. -
#3608
0acd3132Thanks @mqklin! - Disabledwallet_requestPermissionsprompt whenshimDisconnectisfalse.
2.6.11
Patch Changes
2.6.10
Patch Changes
dbdca8fdThanks @jxom! - Fixed issue where duplicate connectors could be instantiated if injected after page mount.
2.6.9
Patch Changes
2.6.8
Patch Changes
2.6.7
Patch Changes
-
#3642
b479b5e8Thanks @johanneskares! - Fixed a bug where minification caused the wrong functions to be called on the client. -
f5648dd2Thanks @jxom! - UpdatedprepareTransactionRequesttypes forviem@2.8.0. -
1c1fee6aThanks @jxom! - Updated@walletconnect/ethereum-provider. -
#3653
88a2d744Thanks @tash-2s! - Fixed error occurring when adding chains without explorers to MetaMask.
2.6.6
Patch Changes
- #3644
a91c0b64Thanks @nishuzumi! - Exported types
2.6.5
Patch Changes
2.6.4
Patch Changes
2.6.3
Patch Changes
-
#3533
9c3b85ddThanks @tmm! - Fixedaccountproperty passthrough for actions. -
2a72214aThanks @tmm! - Shimmed EIP-1193removeListenerfor injected since some wallets do not follow spec.
2.6.2
Patch Changes
-
#3519
414eb048Thanks @tmm! - Fixed multicall passing through all properties to Viem method. -
#3518
338e857dThanks @tmm! - Fixed internal store migration between versions.
2.6.1
Patch Changes
-
#3510
660ff80dThanks @tmm! - Fixed issue where connectors returning multiple addresses didn't checksum correctly. -
#3433
101a7dd1Thanks @tmm! - FixedgetClientandgetPublicClientthrowing when used with unconfiguredchainId.
2.6.0
Minor Changes
2.5.0
Minor Changes
- #3461
ca98041dThanks @marthendalnunes! - AddedgetTransactionConfirmationsaction.
2.4.0
Minor Changes
- #3427
370f1b4aThanks @marthendalnunes! - AddedprepareTransactionRequestaction.
2.3.1
Patch Changes
- #3476
3be5bb7bThanks @jxom! - Modified persist strategy to only store "critical" properties that are needed before hydration.
2.3.0
Minor Changes
- #3459
d950b666Thanks @marthendalnunes! - AddedgetEnsTextaction.
Patch Changes
-
#3467
90ef39bbThanks @jxom! - Fixed an issue where connectors that share the same provider instance could reconnect when they have never been connected before. -
1cfb6e5aThanks @jxom! - Bumped listener limit on WalletConnect connector.
2.2.1
Patch Changes
2.2.0
Minor Changes
-
#3434
00bf10a4Thanks @marthendalnunes! - AddedgetBytecodeandgetStorageAtactions. -
#3416
64c073f6Thanks @marthendalnunes! - AddedgetTransactionReceiptaction. -
#3408
fb6c4148Thanks @marthendalnunes! - AddedgetProofaction.
2.1.2
Patch Changes
- #3407
e00b8205Thanks @jxom! - Added a prelude gas estimate check tosendTransaction/useSendTransaction.
2.1.1
Patch Changes
-
#3402
64b82282Thanks @Songkeys! - Fixed SSR cookie support for cookies that have special characters, e.g.=.
2.1.0
Minor Changes
- #3387
c9cd302eThanks @marthendalnunes! - Addedcallaction.
2.0.2
Patch Changes
- #3384
ee868c33Thanks @tmm! - Fixed connectors not bubbling error when connecting withchainIdand subsequent user rejection.
2.0.1
Major Changes
-
#3333
b3a0baaaThanks @tmm! - Wagmi Core 2.0 featuring:- Full TanStack Query support + queryKeys
- Connect multiple connectors
- Switch chains while disconnected
- EIP-6963 enabled
- Strongly typed chainId and chain properties
- Smaller bundle size
- Miscellaneous improvements and bug fixes
1.4.13
Patch Changes
- Updated dependencies [
bbbbf587]:- @wagmi/connectors@3.1.11
1.4.12
Patch Changes
-
53ca1f7eThanks @tmm! - Removed LedgerConnector due to security vulnerability -
Updated dependencies [
53ca1f7e]:- @wagmi/connectors@3.1.10
1.4.11
Patch Changes
-
#3299
b02020b3Thanks @dasanra! - Fixed issue with Safe SDK by bumping@safe-global/safe-apps-provider@0.18.1 -
Updated dependencies [
51eca0fb,b02020b3]:- @wagmi/connectors@3.1.9
1.4.10
Patch Changes
- Updated dependencies [
e8f7bcbc]:- @wagmi/connectors@3.1.8
1.4.9
Patch Changes
-
#3276
83223a06Thanks @glitch-txs! - Removed required namespaces from WalletConnect connector -
Updated dependencies [
83223a06]:- @wagmi/connectors@3.1.7
1.4.8
Patch Changes
1.4.7
Patch Changes
- Updated dependencies [
a1950449]:- @wagmi/connectors@3.1.5
1.4.6
Patch Changes
- Updated dependencies [
4e6ec415]:- @wagmi/connectors@3.1.4
1.4.5
Patch Changes
- Updated dependencies [
e78aa337]:- @wagmi/connectors@3.1.3
1.4.4
Patch Changes
- #3125
725e73feThanks @lukasrosario! - Fixed an issue wheredataSuffixwas not being passed down into viem'ssimulateContract, causing the data to be omitted from requests.
1.4.3
Patch Changes
-
#3076
4c36831bThanks @jxom! - Passchainto viemsendTransaction/writeContract. -
#3006
f2ddce23Thanks @jxom! - Changednormalizeto a dynamic import.
1.4.2
Patch Changes
- Updated dependencies [
3aaba328]:- @wagmi/connectors@3.1.2
1.4.1
Patch Changes
- Updated dependencies [
bf831bb3]:- @wagmi/connectors@3.1.1
1.4.0
Minor Changes
Patch Changes
- Updated dependencies [
2abeb285]:- @wagmi/connectors@3.1.0
1.3.10
Patch Changes
1.3.9
Patch Changes
1.3.8
Patch Changes
1.3.7
Patch Changes
1.3.6
Patch Changes
1.3.5
Patch Changes
1.3.4
Patch Changes
1.3.3
Patch Changes
1.3.2
Patch Changes
1.3.1
Patch Changes
1.3.0
Minor Changes
- #2619
0d79748cThanks @jxom! - Updated references:- Updated
@safe-global/safe-apps-sdkto^8.0.0(the one withviemsupport)
- Updated
1.2.2
Patch Changes
1.2.1
Patch Changes
-
#2589
9680c347Thanks @jxom! - FixedwriteContractparameters to be compatible withprepareWriteContract.
1.2.0
Minor Changes
Patch Changes
1.1.1
Patch Changes
1.1.0
Minor Changes
Patch Changes
1.0.8
Patch Changes
1.0.7
Patch Changes
- #2433
54fcff5fThanks @jxom! - Added ability to pass anaccounttowriteContract/prepareWriteContract.
1.0.6
Patch Changes
1.0.5
Patch Changes
1.0.4
Patch Changes
1.0.3
Patch Changes
- #2338
92bfdc2cThanks @jxom! - Fixed an issue where synchronous switch chain behavior (WalletConnect v2) would encounter chain id race conditions inwatchWalletClient.
1.0.2
Patch Changes
1.0.1
Patch Changes
-
Updated dependencies [
ea651cd7]:- @wagmi/connectors@1.0.1
1.0.0
Major Changes
- #2235
5be0655cThanks @jxom! - Released v1. Read Migration Guide.
1.0.0-next.7
Major Changes
-
#2235
708b2ce2Thanks @jxom! - Addedconfig.setPublicClient&config.setWebSocketPublicClient -
Updated references.
Patch Changes
- Updated dependencies []:
- @wagmi/connectors@1.0.0-next.5
1.0.0-next.6
Major Changes
-
#2235
708b2ce2Thanks @jxom! - Addedconfig.setPublicClient&config.setWebSocketPublicClient -
Added
config.setConnectors
Patch Changes
- Updated dependencies []:
- @wagmi/connectors@1.0.0-next.6
1.0.0-next.5
Major Changes
1.0.0-next.4
Major Changes
- Updated viem.
Removed
goerliexport from main entrypoint.
Patch Changes
- Updated dependencies []:
- @wagmi/connectors@1.0.0-next.5
1.0.0-next.3
Major Changes
- Updated references.
Patch Changes
- Updated dependencies []:
- @wagmi/connectors@1.0.0-next.4
1.0.0-next.2
Major Changes
- Breaking: Renamed
createClienttocreateConfig - Breaking: Renamed
getClienttogetConfig - Breaking: Removed
requestas an argument toprepareSendTransaction&sendTransaction. Arguments now belong on the root level of the Action.
Patch Changes
- Updated dependencies []:
- @wagmi/chains@1.0.0-next.0
- @wagmi/connectors@1.0.0-next.3
1.0.0-next.1
Major Changes
- updated viem
Patch Changes
- Updated dependencies []:
- @wagmi/connectors@1.0.0-next.2
1.0.0-next.0
Major Changes
Patch Changes
- Updated dependencies [
a7dda00c]:- @wagmi/connectors@1.0.0-next.1
0.10.11
Patch Changes
-
Updated dependencies []:
- @wagmi/connectors@0.3.19
0.10.10
Patch Changes
-
#2208
cfc696d8Thanks @bangtoven! - Bumped references to apply coinbase wallet sdk updates -
Updated dependencies []:
- @wagmi/connectors@0.3.16
0.10.9
Patch Changes
-
Updated dependencies []:
- @wagmi/connectors@0.3.12
0.10.8
Patch Changes
-
#2099
f1fee5b3Thanks @jxom! - Added chains:nexipolygonZkEvmxdcxdcTestnet
-
#2085
7d64e3f5Thanks @jxom! - Fixed an issue where multicall would not throw if the target chain was not configured on the wagmi client. -
Updated dependencies []:
- @wagmi/connectors@0.3.10
0.10.7
Patch Changes
-
Updated dependencies []:
- @wagmi/connectors@0.3.10
0.10.6
Patch Changes
0.10.5
Patch Changes
-
#2053
665df1bfThanks @tmm! - Fixed issue where you add a new chain to MetaMask, but the switch after is rejected. -
Updated dependencies []:
- @wagmi/connectors@0.3.7
0.10.4
Patch Changes
-
Updated dependencies []:
- @wagmi/connectors@0.3.6
0.10.3
Patch Changes
-
#2043
49a58320Thanks @tmm! - RemovedInjectedConnectorshimChainChangedDisconnectshim (no longer necessary). -
Updated dependencies []:
- @wagmi/connectors@0.3.6
0.10.2
Patch Changes
-
#2016
06bf61deThanks @jxom! - Added chains:bobachronoscrossbelldfkdogechainflareflareTestnetklaytnscrollTestnetshardeumSphinxskaleCalypsoskaleCalypsoTestnetskaleChaosTestnetskaleCryptoBladesskaleCryptoColosseumskaleEuropaskaleEuropaTestnetskaleExordeskaleHumanProtocolskaleNebulaskaleNebulaTestnetskaleRazorskaleTitanskaleTitanTestnetsongbirdsongbirdTestnettitantitanTestnetwanchainwanchainTestnet
-
#2016
06bf61deThanks @jxom! - Updated references/ submodule. -
Updated dependencies []:
- @wagmi/connectors@0.3.4
0.10.0
Minor Changes
-
#1902
0994e896Thanks @jxom! - Breaking: Removed theversionconfig option forWalletConnectConnector.WalletConnectConnectornow uses WalletConnect v2 by default. WalletConnect v1 is nowWalletConnectLegacyConnector.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
- Updated dependencies []:
- @wagmi/connectors@0.3.2
0.9.7
Patch Changes
-
#1907
cc4e74eeThanks @jxom! - Added the following chains to thewagmi/chainsentrypoint:baseGoerliharmonyOnepolygonZkEvmTestnet
-
Updated dependencies []:
- @wagmi/connectors@0.2.7
0.9.6
Patch Changes
0.9.5
Patch Changes
-
#1812
c7fd7fbdThanks @jxom! - Added the following chains to thewagmi/chainsentrypoint:filecoinCalibrationmoonbaseAlphamoonbeammoonriver
-
Updated dependencies []:
- @wagmi/connectors@0.2.5
0.9.4
Patch Changes
-
#1786
b173a431Thanks @tmm! - Locked ethers peer dependency version to >=5.5.1 <6 -
Updated dependencies []:
- @wagmi/connectors@0.2.4
0.9.3
Patch Changes
-
#1773
9aaf1955Thanks @jxom! - Updated@walletconnect/universal-provideronWalletConnectConnectorv2. Added more signable methods toWalletConnectConnectorv2. -
#1773
9aaf1955Thanks @jxom! - Added Telos to thewagmi/chainsentrypoint. Thanks @donnyquixotic! -
Updated dependencies []:
- @wagmi/connectors@0.2.3
0.9.2
Patch Changes
-
#1756
31d06b8cThanks @jxom! - Added OKC Chain. Thanks @clark-cui! -
#1756
31d06b8cThanks @jxom! - Fixed race condition betweenswitchNetworkand mutation Actions that usechainId(e.g.sendTransaction). Thanks @DanInTheD4rk! -
Updated dependencies []:
- @wagmi/connectors@0.2.2
0.9.1
Patch Changes
-
#1752
144a0e76Thanks @jxom! - ImprovedWalletConnectConnector(v2) initialization & updated dependencies. -
#1752
144a0e76Thanks @jxom! - Added the following chains to thewagmi/chainsentrypoint:- Aurora – thanks @salil-naik
- Bronos – thanks @chedetinaveen
- Canto – thanks @tster
- Celo – thanks @aaronmgdr
-
Updated dependencies []:
- @wagmi/connectors@0.2.1
0.9.0
Minor Changes
- #1732
01e21897Thanks @tmm! - Bumped minimum TypeScript version to typescript@>=4.9.4. TypeScript 5.0 is coming soon and has some great features we are excited to bring into wagmi. To prepare for this, update your TypeScript version to 4.9.4 or higher. There are likely no breaking changes if you are coming from typescript@4.7.x || typescript@4.8.x.
0.8.19
Patch Changes
0.8.18
Patch Changes
0.8.17
Patch Changes
-
#1705
9ff797dcThanks @jxom! - Added the following chains to the@wagmi/core/chainsentrypoint:crossbell(thanks @Songkeys)filecoin&filecoinHyperspace(thanks @neil0x46dc)gnosisChiado(thanks @theNvN)metis&metisGoerli(thanks @CookedCookee)
0.8.16
Patch Changes
0.8.15
Patch Changes
- #1685
917f5bc1Thanks @jxom! - Replaced qrcodemodal with web3modal for the WalletConnect v2 Connector.
0.8.14
Patch Changes
0.8.13
Patch Changes
0.8.12
Patch Changes
- #1636
025f6771Thanks @DanielSinclair! - AddedisRainbowflag to injectedwindow.ethereumtypes.
0.8.11
Patch Changes
0.8.10
Patch Changes
0.8.9
Patch Changes
0.8.8
Patch Changes
0.8.7
Patch Changes
-
#1570
216f585bThanks @wslyvh! - AddedwatchPendingTransactions -
#1470
3a1a6c9fThanks @jxom! - TheWalletConnectConnectornow supports WalletConnect v2.It can be enabled by setting
versionto'2'and supplying a WalletConnect CloudprojectId.
0.8.6
Patch Changes
-
#1539
732da004Thanks @0xFlicker! - All Providers (ie. Alchemy, Infura, Public) now use the ENS Registry address on the wagmiChainobject (chain.contracts.ensRegistry). -
#1574
ecde3d10Thanks @jxom! - Added the following chains:iotexiotexTestnetzkSynczkSyncTestnet
0.8.5
Patch Changes
-
#1542
731b3b73Thanks @jxom! - Added the following chains:evmosevmosTestnetgnosis
-
#1542
731b3b73Thanks @jxom! - Updated Goerli symbol to"ETH". -
#1542
731b3b73Thanks @jxom! - Updated Arbitrum Goerli RPC and Block Explorer. -
#1542
731b3b73Thanks @jxom! - Fixed issue where connecting to MetaMask may return with a stale address. -
#1542
731b3b73Thanks @jxom! - Removed ENS registry for Sepolia.
0.8.4
Patch Changes
-
#1508
0b50b62fThanks @jxom! - Updated@wagmi/chainsto0.1.3. -
#1504
11b8b794Thanks @tmm! - Converted ethers custom "ACTION_REJECTED" error to standard RPC Error.
0.8.3
Patch Changes
-
#1431
af28f8f9Thanks @jxom! - Re-export connectors from@wagmi/connectors -
#1431
af28f8f9Thanks @jxom! - AddedLedgerConnectorconnector
0.8.2
Patch Changes
-
#1442
cde15289Thanks @0xproflupin! - Added Phantom wallet support toInjectedConnector -
#1444
310a8bc4Thanks @jxom! - Assert that aconnectorexists before invoking the callback inwatchSigner. -
#1434
100e2a3bThanks @tmm! - UpdatedMockConnectorchainIdbehavior to default to first chain fromchainsif not provided inoptions.
0.8.1
Patch Changes
-
#1437
c34a3dc6Thanks @jxom! - Omitted"EIP712Domain"type fromsignTypedDatatypesarg since ethers throws an internal error if you include it. -
#1445
51dd53cbThanks @jxom! - Fixed an issue where the wagmi client wouldn't rehydrate the store in local storage whenautoConnectis truthy.
0.8.0
Minor Changes
-
#1344
57a19374Thanks @jxom! - Breaking: the shape of theChaintype has been modified.RPC URLs
The
rpcUrlsshape has changed to include an array of URLs, and also the transport method (httporwebSocket):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
multicallandensattributes have been moved into thecontractsobject: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
57a19374Thanks @jxom! - Breaking: Upgraded@coinbase/wallet-sdkpeer dependency to3.6.0.Migration steps: Update
@coinbase/wallet-sdkto^3.6.0. -
#1344
57a19374Thanks @jxom! - Breaking: Removed thewaitargument onwaitForTransaction. Use the transactionhashinstead.const data = await waitForTransaction({ - wait: transaction.wait + hash: transaction.hash }) -
#1344
57a19374Thanks @jxom! - Breaking: With the introduction of the@wagmi/core/chainsentrypoint,@wagmi/coreno longer exports the following:chainallChainsdefaultChainsdefaultL2ChainschainIdetherscanBlockExplorersalchemyRpcUrls,infuraRpcUrls,publicRpcUrls
Read below for migration steps.
Removed
chainThe
chainexport has been removed.@wagmi/corenow only exports themainnet&goerlichains. If you need to use an alternative chain (polygon,optimism, etc), you will need to import it from the@wagmi/core/chainsentrypoint.import { - chain configureChains } from '@wagmi/core' + import { mainnet, polygon, optimism } from '@wagmi/core/chains' const { ... } = configureChains( - [chain.mainnet, chain.polygon, chain.optimism], + [mainnet, polygon, optimism], { ... } )Removed
allChainsThe
allChainsexport has been removed. If you need a list of all chains, you can utilize@wagmi/core/chainsentrypoint.- import { allChains } from '@wagmi/core' + import * as allChains from '@wagmi/core/chains' const { ... } = configureChains(allChains, ...)Removed
defaultChains&defaultL2ChainsThe
defaultChains&defaultL2Chainsexports have been removed. If you still need thedefaultChainsordefaultL2Chainsexports, you can build them yourself:- import { defaultChains } from '@wagmi/core' + import { mainnet, goerli } from '@wagmi/core/chains' + const defaultChains = [mainnet, goerli]The
defaultChainsexport was previously populated withmainnet&goerli.- import { defaultL2Chains } from '@wagmi/core' + import { + arbitrum, + arbitrumGoerli, + polygon, + polygonMumbai, + optimism, + optimismGoerli + } from '@wagmi/core/chains' + const defaultL2Chains = [ + arbitrum, + arbitrumGoerli, + polygon, + polygonMumbai, + optimism + optimismGoerli + ]The
defaultL2Chainsexport was previously populated witharbitrum&optimism.Removed
chainIdThe
chainIdexport has been removed. You can extract a chain ID from the chain itself.- import { chainId } from '@wagmi/core' + import { mainnet, polygon, optimism } from '@wagmi/core/chains' -const mainnetChainId = chainId.mainnet -const polygonChainId = chainId.polygon -const optimismChainId = chainId.optimism +const mainnetChainId = mainnet.chainId +const polygonChainId = polygon.chainId +const optimismChainId = optimism.chainIdRemoved
etherscanBlockExplorersThe
etherscanBlockExplorersexport has been removed. You can extract a block explorer from the chain itself.- import { etherscanBlockExplorers } from '@wagmi/core' + import { mainnet, polygon, optimism } from '@wagmi/core/chains' -const mainnetEtherscanBlockExplorer = etherscanBlockExplorers.mainnet -const polygonEtherscanBlockExplorer = etherscanBlockExplorers.polygon -const optimismEtherscanBlockExplorer = etherscanBlockExplorers.optimism +const mainnetEtherscanBlockExplorer = mainnet.blockExplorer +const polygonEtherscanBlockExplorer = polygon.blockExplorer +const optimismEtherscanBlockExplorer = optimism.blockExplorerRemoved
alchemyRpcUrls,infuraRpcUrls&publicRpcUrlsThe
alchemyRpcUrls,infuraRpcUrls&publicRpcUrlsexports have been removed. You can extract a RPC URL from the chain itself.- import { alchemyRpcUrls, infuraRpcUrls, publicRpcUrls } from '@wagmi/core' + import { mainnet } from '@wagmi/core/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 -
#1344
57a19374Thanks @jxom! - Breaking: ChangedwaitForTransactionbehavior to throw an error if the transaction reverted. -
#1344
57a19374Thanks @jxom! - Updated errors to usecauseinstead ofinternal
Patch Changes
-
#1344
57a19374Thanks @jxom! -waitForTransactionnow respects repriced (sped up) transactions. -
#1344
57a19374Thanks @jxom! -waitForTransactionnow throws an error for cancelled or replaced transactions.
0.7.9
Patch Changes
- #1411
659be184Thanks @tmm! - Fixed issue where block invalidation was not properly disabled when settingenabled: false.
0.7.8
Patch Changes
-
#1406
4f18c450Thanks @tmm! - Function for selecting the EIP-1193 Ethereum Provider to target. Defaults to() => typeof window !== 'undefined' ? window.ethereum : undefined.import { InjectedConnector } from "@wagmi/core/connectors/injected"; const connector = new InjectedConnector({ options: { name: "My Injected Wallet", getProvider: () => typeof window !== "undefined" ? window.myInjectedWallet : undefined, }, });
0.7.7
Patch Changes
-
#1386
206a2adbThanks @jxom! - Fixed an issue wherepersisterwould still usewindow.localStorageinstead of the wagmistorage. -
#1376
a70a9528Thanks @jxom! - Fixed issue whereswitchChainonWalletConnectConnectorwould not resolve. -
#1386
206a2adbThanks @jxom! - Addedserialize/deserializeas config options tocreateStorage. -
#1392
88afc849Thanks @tmm! - Added check for active connector when connecting
0.7.6
Patch Changes
- #1384
027e88d6Thanks @tmm! - Fixed issue reconnecting after disconnect withMetaMaskConnectorin MetaMask mobile browser.
0.7.5
Patch Changes
0.7.4
Patch Changes
0.7.3
Patch Changes
- #1294
b2f88949Thanks @tmm! - Setabireturn type value forprepareContractWriteas more permissive when not inferrable asAbi.
0.7.2
Patch Changes
0.7.1
Patch Changes
0.7.0
Minor Changes
-
#1202
9bf56afThanks @tmm! - Breaking: Removed the following deprecated chains:ropstenrinkebykovanoptimismKovanarbitrumRinkeby
If you feel you still need to include one of these testnets in your application, you will have to define it manually:
-import { rinkeby } from 'wagmi' +import { Chain } from 'wagmi' +export const rinkeby: Chain = { + id: 4, + name: 'Rinkeby', + network: 'rinkeby', + nativeCurrency: { name: 'Rinkeby Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + alchemy: 'https://eth-rinkeby.alchemyapi.io/v2', + default: 'https://rpc.ankr.com/eth_rinkeby', + infura: 'https://rinkeby.infura.io/v3', + public: 'https://rpc.ankr.com/eth_rinkeby', + }, + blockExplorers: { + etherscan: 'https://rinkeby.etherscan.io', + default: 'https://rinkeby.etherscan.io', + }, + ens: { + address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', + }, + multicall: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 10299530, + }, + testnet: true, }You can reference these removed chains here.
-
#1202
9bf56afThanks @tmm! - Breaking:addressOrNamerenamed toaddressforfetchBalanceandfetchEnsAvatar.const result = await fetchBalance({ - addressOrName: '0x…', + address: '0x…', })If you were using an ENS name instead of an address, you can resolve the name to an address before passing it to the action.
+ const { data: address } = await fetchEnsAddress({ name: 'example.eth' }) const result = await fetchBalance({ - addressOrName: 'example.eth', + address, }) -
#1202
9bf56afThanks @tmm! - Breaking: MadeapiKeyrequired oninfuraProviderandalchemyProvider.import { configureChains } from 'wagmi' const config = configureChains(defaultChains, [ - alchemyProvider(), + alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY }) ])You can find your Alchemy API key from the Alchemy Dashboard, or your Infura API key from the Infura Dashboard.
0.6.12
Patch Changes
0.6.11
Patch Changes
0.6.10
Patch Changes
- #1232
c0ca509Thanks @tmm! - Added validation to check that chain is configured for connector when accessingSigner.
0.6.9
Patch Changes
- #1207
c73d463Thanks @lvshaoping007! - Added Kucoin wallet support toInjectedConnector
0.6.8
Patch Changes
-
#1132
d41c0d6Thanks @toniocodo! - Added ERC-4626 ABI -
#1201
9a07efaThanks @jxom! - Fixed issue where non-checksum addresses did not resolve with an ENS name
0.6.7
Patch Changes
-
#1174
196a458Thanks @jxom! - Fixed an issue whereclient.chains(active connector chains) would be populated when there is no active connector (disconnected user). -
#1176
389765fThanks @jxom! - Migrate away from Alchemy RPC URLs in the public RPC URL list
0.6.6
Patch Changes
-
81ce9e6Thanks @jxom! - AddisPortalto injected MetaMask flags. -
c2c0109Thanks @jxom! - Add etherscan block explorer to Optimism Goerli
0.6.5
Patch Changes
-
#1162
30335b3Thanks @tmm! - Fixed issue where non-indexed event parameter types were set tonull. -
#1162
30335b3Thanks @tmm! - Fixed issue whereuseContractReadsanduseContractInfiniteReadstypes were slowing down TypeScript compiler.
0.6.4
Patch Changes
0.6.3
Patch Changes
0.6.2
Patch Changes
0.6.1
Patch Changes
- #1074
8db807fThanks @IljaDaderko! - ExportedEventListenertype
0.6.0
Minor Changes
-
#940
b6cb8f4Thanks @jxom! - Breaking:watchSignernow requires an arguments object (that accepts an optionalchainId) as it's first parameter.import { watchSigner } from `@wagmi/core` -watchSigner(signer => { +watchSigner({}, signer => { console.log('new signer!', signer) }) -
#940
b6cb8f4Thanks @jxom! - Breaking:prepareSendTransactionnow throws when achainIdis specified and the end-user is on a different chain id (the wrong network). -
#941
0c96009Thanks @tmm! - Breaking:addressOrNameandcontractInterfacerenamed toaddressandabirespectively for contract actions:getContract,multicall,prepareWriteContract,readContract,readContracts,watchContractEvent,watchMulticall,watchReadContract,watchReadContracts,writeContract.import { readContract } from '@wagmi/core' const result = await readContract({ - addressOrName: '0x…', + address: '0x…', - contractInterface: […] as const, + abi: […] as const, functionName: 'balanceOf', args: ['0x…'], })If you were using an ENS name instead of an address, you can resolve the name to an address before passing it to the action.
- import { readContract } from '@wagmi/core' + import { fetchEnsAddress, readContract } from '@wagmi/core' + const address = await fetchEnsAddress('example.eth') const result = await readContract({ - addressOrName: 'example.eth', + address, abi: […] as const, functionName: 'balanceOf', args: ['0x…'], }) -
#940
b6cb8f4Thanks @jxom! - Breaking:prepareWriteContractnow throws when achainIdis specified and the end-user is on a different chain id (the wrong network). -
#940
b6cb8f4Thanks @jxom! - Breaking:prepareSendTransactionnow only accepts asignerinstead ofsignerOrProvider.This is to reach parity with
prepareWriteContract.If no
signeris provided, wagmi will use the signer that is currently connected. If no user is connected, thenprepareWriteContractwill throw an error. -
#941
0c96009Thanks @tmm! - Breaking:argsconfig option must now be an array for the following actions:readContract,writeContract,prepareWriteContract,multicall,readContracts,watchMulticall, andwatchReadContracts.import { readContract } from '@wagmi/core' const result = await readContract({ address: '0x…', abi: […], functionName: 'balanceOf', - args: '0x…', + args: ['0x…'], }) -
#941
0c96009Thanks @tmm! - Breaking:watchContractEventnow accepts a configuration object and callback instead of positional arguments.import { watchContractEvent } from '@wagmi/core' - const unsubscribe = watchContractEvent( - { - address: '0x…', - abi: […], - }, - 'Transfer', - (from, to, tokenId) => { - // ... - }, - { once: true }, - ) + const unsubscribe = watchContractEvent( + { + address: '0x…', + abi: […], + eventName: 'Transfer', + once: true, + }, + (from, to, tokenId) => { + // ... + }, + ) -
#941
0c96009Thanks @tmm! - Breaking: Updated TypeScript version totypescript@>=4.7.4.@wagmi/corecan now infer types based on ABI and EIP-712 Typed Data definitions, giving you full end-to-end type-safety from your contracts to your frontend and incredible developer experience (e.g. autocomplete contract function names and catch misspellings, type contract function arguments, etc.).For this to work, you must upgrade to
typescript@>=4.7.4. Why is TypeScript v4.7.4 or greater necessary? TypeScript 4.7.4 introduced the ability to extend constraints on inferred type variables, which is used extensively to help narrow types for ABIs. Good news! When upgrading TypeScript from 4.6 to 4.7 there are likely no breaking changes for your set up. -
#941
0c96009Thanks @tmm! - Breaking: Updated TypeScript generics for contract interaction and typed data actions.Adding a const assertion to
abiallows TypeScript to inferfunctionName,args,overrides, and return types for functions, andeventNameandlistenertypes for events.import { readContract } from '@wagmi/core' const result = await readContract({ address: '0x…', - abi: […], + abi: […] as const, functionName: 'balanceOf', // will autocomplete and catch typos args: ['0x…'], // inferred based on `functionName` }) result // inferred based on `functionName`This works for the following actions:
readContract,writeContract,prepareWriteContract,multicall,readContracts,watchMulticall,watchReadContracts, andwatchContractEvent.Adding a const assertion to
signTypedData's config option,types, allows TypeScript to infervalue.import { signTypedData } from '@wagmi/core' const result = await signTypedData({ domain: { name: 'Ether Mail', version: '1', chainId: 1, verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', }, types: { Person: [ { name: 'name', type: 'string' }, { name: 'wallet', type: 'address' }, ], Mail: [ { name: 'from', type: 'Person' }, { name: 'to', type: 'Person' }, { name: 'contents', type: 'string' }, ], - }, + } as const, value: { // `value` is inferred based on `types` from: { name: 'Cow', wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', }, to: { name: 'Bob', wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB', }, contents: 'Hello, Bob!', }, })
Patch Changes
-
#1061
a4ffe8bThanks @alecananian! - Added Arbitrum Goerli Arbiscan block explorer -
#940
b6cb8f4Thanks @jxom! - ThefetchSigneraction now accepts an optionalchainIdto use for signer initialization as an argument.import { fetchSigner } from "@wagmi/core"; import { optimism } from "@wagmi/core/chains"; // ... fetchSigner({ chainId: optimism.id }); -
#1048
ed13074Thanks @Max-3-7! - Added support for Avalanche core wallet -
#1046
ab9ecaaThanks @jxom! - make ethers block format validator compatible with Celo -
#1050
73d4d47Thanks @jxom! - update dependencieszustand@4.1.1
0.5.8
Patch Changes
0.5.7
Patch Changes
aa51bc4dThanks @jxom! - Fixed an issue inCoinbaseWalletConnectorwhere the browser extension would unintendedly reset the network when the browser is refreshed.
- #955
e326cd80Thanks @0xFlicker! - Added Infura RPC URL for Sepolia
cec14089Thanks @jxom! - Fixed an issue whereuseProvider&getProviderwere not returning referentially equal providers.
cec14089Thanks @jxom! - Fixed an issue where thewatchoption was not respecting the neighboringchainIdoption inuseBlockNumber.
cec14089Thanks @jxom! - Fixed an issue where block listeners (viawatch) were firing excessively on L2 chains.
0.5.6
Patch Changes
-
#936
3329d1fThanks @jxom! - Added the ability to provide a custom logger to override how logs are broadcasted to the consumer in wagmi.A custom logger can be provided to the wagmi client via
logger.API
logger?: { warn: typeof console.warn | null }Examples
Passing in a custom logger
You can pass in a function to define your own custom logger.
+ import { logWarn } from './logger'; const client = createClient({ ... + logger: { + warn: message => logWarn(message) + } ... })Disabling a logger
You can disable a logger by passing
nullas the value.const client = createClient({ ... + logger: { + warn: null + } ... })
0.5.5
Patch Changes
-
#912
e529e12Thanks @zouhangwithsweet! - Added BitKeep to injected flags -
#912 Thanks @mytangying! - Added MathWallet to injected flags
-
#904
c231058Thanks @jxom! - Minimized contract interface returned fromprepareWriteContract.
0.5.4
Patch Changes
0.5.3
Patch Changes
0.5.2
Patch Changes
0.5.1
Patch Changes
- #767
e9392f3Thanks @klyap! - Add Optimism Goerli chain ahead of Kovan deprecation.
- #817
7e5cac7Thanks @alecananian! - Added custom name mapping for 1inch Wallet injected provider
- #806
0b34e56Thanks @vmichalik! - Fix canonical testnet native asset symbols by changing them to ETH
0.5.0
Minor Changes
-
#658
d70c115Thanks @jxom! - Breaking: The configuration passed to thesendTransactionaction now needs to be:- prepared with the
prepareSendTransactionaction (new functionality), or - recklessly unprepared (previous functionality)
Why? Read here
Prepared usage
import { prepareSendTransaction, sendTransaction } from '@wagmi/core' +const config = await prepareSendTransaction({ + request: { + to: 'moxey.eth', + value: parseEther('1'), + } +}) const result = await sendTransaction({ - request: { - to: 'moxey.eth', - value: parseEther('1') - } + ...config })Recklessly unprepared usage
It is possible to use
sendTransactionwithout preparing the configuration first by passingmode: 'recklesslyUnprepared'.import { sendTransaction } from '@wagmi/core' const result = await sendTransaction({ + mode: 'recklesslyUnprepared', request: { to: 'moxey.eth', value: parseEther('1'), } }) - prepared with the
-
#760
d8af6bfThanks @tmm! - Breaking:alchemyProviderandinfuraProvidernow use a genericapiKeyconfiguration option instead ofalchemyIdandinfuraId.import { alchemyProvider } from '@wagmi/core/providers/alchemy' import { infuraProvider } from '@wagmi/core/providers/infura' alchemyProvider({ - alchemyId: 'yourAlchemyApiKey', + apiKey: 'yourAlchemyApiKey', }) infuraProvider({ - infuraId: 'yourInfuraApiKey', + apiKey: 'yourInfuraApiKey', })
-
#727
ac3b9b8Thanks @tmm! - Breaking: Moved thepollingIntervalconfig option from the chain provider config toconfigureChainsconfig.const { chains, provider } = configureChains( [chain.mainnet, chain.polygon], [ - alchemyProvider({ apiKey, pollingInterval: 5000 }), - publicProvider({ pollingInterval: 5000 }) + alchemyProvider({ apiKey }), + publicProvider() ], + { pollingInterval: 5000 } )
-
#658
d70c115Thanks @jxom! - Breaking: ThesendTransactionaction now returns an object only consisting ofhash&wait, and not the fullTransactionResponse.If you require the full
TransactionResponse, you can usefetchTransaction:import { sendTransaction, fetchTransaction } from '@wagmi/core' const { hash, wait, - ...transaction } = sendTransaction(...) +const transaction = fetchTransaction({ hash })Why? The old implementation of
sendTransactioncreated a long-running async task, causing UX pitfalls when invoked in a click handler.
-
#658
d70c115Thanks @jxom! - Breaking: If achainIdis passed towriteContractorsendTransaction, it will no longer attempt to switch chain before sending the transaction. Instead, it will throw an error if the user is on the wrong chain.Why?
- Eagerly prompting to switch chain in these actions created a long-running async task that that makes iOS App Links vulnerable.
- Not all wallets support programmatic chain switching.
Patch Changes
-
#658
d70c115Thanks @jxom! - Breaking: The configuration passed to thewriteContractaction now needs to be:- prepared with the
prepareWriteContractaction (new functionality), or - recklessly unprepared (previous functionality)
Why? Read here
Prepared usage
import { prepareWriteContract, writeContract } from '@wagmi/core' const tokenId = 69 +const config = await prepareWriteContract({ + addressOrName: '0x...', + contractInterface: wagmiAbi, + functionName: 'mint', + args: [tokenId] +}) const result = await writeContract({ - addressOrName: '0x...', - contractInterface: wagmiAbi, - functionName: 'mint', - args: [tokenId], + ...config })Recklessly unprepared usage
It is possible to use
writeContractwithout preparing the configuration first by passingmode: 'recklesslyUnprepared'.import { writeContract } from '@wagmi/core' const tokenId = 69 const result = await writeContract({ + mode: 'recklesslyUnprepared', addressOrName: '0x...', contractInterface: wagmiAbi, functionName: 'mint', args: [tokenId], }) - prepared with the
-
#658
d70c115Thanks @jxom! - Added theprepareSendTransactionhook that prepares the parameters required for sending a transaction.It returns config to be passed through to
sendTransaction.import { prepareSendTransaction, sendTransaction } from "@wagmi/core"; const config = await prepareSendTransaction({ request: { to: "moxey.eth", value: parseEther("1"), }, }); const result = await sendTransaction(config);
-
#658
d70c115Thanks @jxom! - Added theprepareWriteContracthook that prepares the parameters required for a contract write transaction.It returns config to be passed through to
writeContract.Example:
import { prepareWriteContract, writeContract } from "@wagmi/core"; const config = await prepareWriteContract({ addressOrName: "0x...", contractInterface: wagmiAbi, functionName: "mint", }); const result = await writeContract(config);
-
#759
959953dThanks @tmm! - AddedfetchTransactionaction:import { fetchTransaction } from "@wagmi/core"; const transaction = await fetchTransaction({ hash: "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060", });
0.4.9
Patch Changes
- #721
abea25fThanks @tmm! - Stay connected to existingclient.connectorwhenconnectaction fails to connect to new connector.
0.4.8
Patch Changes
- #693
56e468cThanks @markdalgleish! - Fix import errors with Coinbase Wallet SDK in Vite
0.4.7
Patch Changes
0.4.6
Patch Changes
0.4.5
Patch Changes
0.4.4
Patch Changes
- #616
7a7a17aThanks @tmm! - AddsUNSTABLE_shimOnConnectSelectAccountflag. With this flag and "disconnected" withshimDisconnectenabled, the user is prompted to select a different MetaMask account (than the currently connected account) when trying to connect (e.g.useConnect/connectaction).
0.4.3
Patch Changes
0.4.2
Patch Changes
0.4.1
Patch Changes
- #622
d171581Thanks @tmm! - Usedomain.chainIdto validate and switch chain before signing insignTypedData.
- #618
a5138e8Thanks @tmm! - Fix adding chains when using MetaMask mobile app, addpublicRpcUrlsconstant, and default to public endpoint when adding chain.
0.4.0
Minor Changes
-
fc94210Thanks @jxom! - Breaking: Theproviderconfig option is now required oncreateClient. It is recommended to pass theprovidergiven fromconfigureChains.import { createClient, + defaultChains, + configureChains } from 'wagmi' +import { publicProvider } from 'wagmi/providers/publicProvider' +const { provider } = configureChains(defaultChains, [ + publicProvider +]) const client = createClient({ + provider })If you previously used an ethers.js Provider, you now need to provide your
chainson the Provider instance:import { createClient, + defaultChains } from 'wagmi' import ethers from 'ethers' const client = createClient({ - provider: getDefaultProvider() + provider: Object.assign(getDefaultProvider(), { chains: defaultChains }) })
4f8f3c0Thanks @nachoiacovino! - Use ethereum-lists chains symbols
-
fc94210Thanks @jxom! - Breaking: Removed thechainIdparameter fromconnectorsfunction oncreateClient.const client = createClient({ - connectors({ chainId }) { + connectors() { ... } })If you previously derived RPC URLs from the
chainIdonconnectors, you can now remove that logic aswagminow handles RPC URLs internally when used withconfigureChains.import { chain, + configureChains, createClient } from 'wagmi'; +import { publicProvider } from 'wagmi/providers/public' import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet' import { InjectedConnector } from 'wagmi/connectors/injected' import { MetaMaskConnector } from 'wagmi/connectors/metaMask' import { WalletConnectConnector } from 'wagmi/connectors/walletConnect' +const { chains } = configureChains( + [chain.mainnet], + [publicProvider()] +); const client = createClient({ - connectors({ chainId }) { - const chain = chains.find((x) => x.id === chainId) ?? defaultChain - const rpcUrl = chain.rpcUrls.alchemy - ? `${chain.rpcUrls.alchemy}/${alchemyId}` - : chain.rpcUrls.default - return [ + connectors: [ new MetaMaskConnector({ chains }), new CoinbaseWalletConnector({ chains, options: { appName: 'wagmi', - chainId: chain.id, - jsonRpcUrl: rpcUrl, }, }), new WalletConnectConnector({ chains, options: { qrcode: true, - rpc: { [chain.id]: rpcUrl }, }, }), new InjectedConnector({ chains, options: { name: 'Injected' }, }), ] - }, })
- #611
3089c34Thanks @tmm! - Breaking:ConnectorsgetProvidermethod no longer supports thecreateconfig parameter. Use thechainIdconfig option instead.
- #596
a770af7Thanks @tmm! - Breaking:TypedDataDomainandTypedDataFieldtypes were removed and incorporated intoSignTypedDataArgs.
4f8f3c0Thanks @nachoiacovino! - Update symbols to match ethereum-lists/chains
-
fc94210Thanks @jxom! - Breaking: ThewriteContractfunction parameters have been consolidated into a singular config parameter.Before:
writeContract( { addressOrName: "0xecb504d39723b0be0e3a9aa33d646642d1051ee1", contractInterface: wagmigotchiABI, }, "feed", );After:
readContract({ addressOrName: "0xecb504d39723b0be0e3a9aa33d646642d1051ee1", contractInterface: wagmigotchiABI, functionName: "feed", });
Patch Changes
-
fc94210Thanks @jxom! - Breaking: ThereadContract&watchReadContractfunction parameters have been consolidated into a singular config parameter.Before:
readContract( { addressOrName: "0xecb504d39723b0be0e3a9aa33d646642d1051ee1", contractInterface: wagmigotchiABI, }, "getHunger", { args: [0] }, ); watchReadContract( { addressOrName: "0xecb504d39723b0be0e3a9aa33d646642d1051ee1", contractInterface: wagmigotchiABI, }, "getHunger", { args: [0] }, (result) => {}, );After:
readContract({ addressOrName: "0xecb504d39723b0be0e3a9aa33d646642d1051ee1", contractInterface: wagmigotchiABI, functionName: "getHunger", args: [0], }); watchReadContract( { addressOrName: "0xecb504d39723b0be0e3a9aa33d646642d1051ee1", contractInterface: wagmigotchiABI, functionName: "getHunger", args: [0], }, (result) => {}, );
- #598
fef26bfThanks @markdalgleish! - Update@coinbase/wallet-sdkpeer dependency to>=3.3.0to fix errors when connecting with older versions of the Coinbase Wallet extension and mobile app.
-
#611
3089c34Thanks @tmm! - AddedchainIdconfig parameter forwriteContractandsendTransaction.If
chainIdis provided, the connector will validate thatchainIdis the active chain before sending a transaction (and switch tochainIdif necessary).
- #582
b03830aThanks @jxom! - Fixed an issue where the wagmi client'sstatuswould not update from"disconnected"to"connecting" -> "connected"when theconnectaction is invoked.
-
fc94210Thanks @jxom! - Added amulticall&watchMulticallaction that provides multicall support.Internally uses the
multicall3contract.
fc94210Thanks @jxom! - Added areadContracts&watchReadContractsaction that provides the ability to batch up multiple ethers Contract read-only methods.
0.3.8
Patch Changes
0.3.7
Patch Changes
- #549
89b3a74Thanks @tmm! - Turns onnoUncheckedIndexedAccessandstrictNullChecksfor better runtime safety.
0.3.6
Patch Changes
- #526
e95c5f9Thanks @jxom! - AddedshimChainChangedDisconnectoption toInjectedConnector. Defaults totrueforMetaMaskConnector.
-
#526
e95c5f9Thanks @jxom! - AddedchainIdconfig option to theconnectaction.Example:
import { connect } from "@wagmi/core"; await connect({ chainId: 69 });
0.3.5
Patch Changes
0.3.4
Patch Changes
0.3.3
Patch Changes
0.3.2
Patch Changes
0.3.1
Patch Changes
0.3.0
Minor Changes
-
#408
bfcc3a5Thanks @jxom! - Breaking: Theconnectorsoption oncreateClientno longer reacts to chain switching.Passing a function to
connectorshas been deprecated.If you previously derived an RPC URL from the
chainIdinconnectors, you will need to migrate to use theconfigureChainsAPI.Before
import { providers } from "ethers"; import { chain, createClient, defaultChains } from "wagmi"; import { CoinbaseWalletConnector } from "wagmi/connectors/coinbaseWallet"; import { InjectedConnector } from "wagmi/connectors/injected"; import { MetaMaskConnector } from "wagmi/connectors/metaMask"; import { WalletConnectConnector } from "wagmi/connectors/walletConnect"; const alchemyId = process.env.ALCHEMY_ID; const chains = defaultChains; const defaultChain = chain.mainnet; const client = createClient({ autoConnect: true, connectors({ chainId }) { const chain = chains.find((x) => x.id === chainId) ?? defaultChain; const rpcUrl = chain.rpcUrls.alchemy ? `${chain.rpcUrls.alchemy}/${alchemyId}` : chain.rpcUrls.default; return [ new MetaMaskConnector({ chains }), new CoinbaseWalletConnector({ chains, options: { appName: "wagmi", chainId: chain.id, jsonRpcUrl: rpcUrl, }, }), new WalletConnectConnector({ chains, options: { qrcode: true, rpc: { [chain.id]: rpcUrl }, }, }), new InjectedConnector({ chains, options: { name: "Injected", shimDisconnect: true, }, }), ]; }, });After
import { chain, createClient, defaultChains } from "wagmi"; import { alchemyProvider } from "wagmi/providers/alchemy"; import { publicProvider } from "wagmi/providers/public"; import { CoinbaseWalletConnector } from "wagmi/connectors/coinbaseWallet"; import { InjectedConnector } from "wagmi/connectors/injected"; import { MetaMaskConnector } from "wagmi/connectors/metaMask"; import { WalletConnectConnector } from "wagmi/connectors/walletConnect"; const alchemyId = process.env.ALCHEMY_ID; const { chains } = configureChains(defaultChains, [ alchemyProvider({ alchemyId }), publicProvider(), ]); const client = createClient({ autoConnect: true, connectors: [ new MetaMaskConnector({ chains }), new CoinbaseWalletConnector({ chains, options: { appName: "wagmi", }, }), new WalletConnectConnector({ chains, options: { qrcode: true, }, }), new InjectedConnector({ chains, options: { name: "Injected", shimDisconnect: true, }, }), ], });
-
#468
44a884bThanks @tmm! - Breaking: Duplicate exports with different names and the same functionality were removed to simplify the public API. In addition, confusing exports were renamed to be more descriptive.createWagmiClientalias was removed. UsecreateClientinstead.useWagmiClientalias was removed. UseuseClientinstead.WagmiClientalias was removed. UseClientinstead.createWagmiStoragealias was removed. UsecreateStorageinstead.Providerwas renamed andWagmiProvideralias was removed. UseWagmiConfiginstead.
-
#408
bfcc3a5Thanks @jxom! - AddconfigureChainsAPI.The
configureChainsfunction allows you to configure your chains with a selected provider (Alchemy, Infura, JSON RPC, Public RPC URLs). This means you don't have to worry about deriving your own RPC URLs for each chain, or instantiating a Ethereum Provider.configureChainsaccepts 3 parameters: an array of chains, and an array of providers, and a config object.Learn more about configuring chains & providers.
Before
import { providers } from "ethers"; import { chain, createClient, defaultChains } from "wagmi"; import { CoinbaseWalletConnector } from "wagmi/connectors/coinbaseWallet"; import { InjectedConnector } from "wagmi/connectors/injected"; import { MetaMaskConnector } from "wagmi/connectors/metaMask"; import { WalletConnectConnector } from "wagmi/connectors/walletConnect"; const alchemyId = process.env.ALCHEMY_ID; const chains = defaultChains; const defaultChain = chain.mainnet; const client = createClient({ autoConnect: true, connectors({ chainId }) { const chain = chains.find((x) => x.id === chainId) ?? defaultChain; const rpcUrl = chain.rpcUrls.alchemy ? `${chain.rpcUrls.alchemy}/${alchemyId}` : chain.rpcUrls.default; return [ new MetaMaskConnector({ chains }), new CoinbaseWalletConnector({ chains, options: { appName: "wagmi", chainId: chain.id, jsonRpcUrl: rpcUrl, }, }), new WalletConnectConnector({ chains, options: { qrcode: true, rpc: { [chain.id]: rpcUrl }, }, }), new InjectedConnector({ chains, options: { name: "Injected", shimDisconnect: true, }, }), ]; }, provider: ({ chainId }) => new providers.AlchemyProvider(chainId, alchemyId), });After
import { chain, createClient, defaultChains } from "wagmi"; import { alchemyProvider } from "wagmi/providers/alchemy"; import { publicProvider } from "wagmi/providers/public"; import { CoinbaseWalletConnector } from "wagmi/connectors/coinbaseWallet"; import { InjectedConnector } from "wagmi/connectors/injected"; import { MetaMaskConnector } from "wagmi/connectors/metaMask"; import { WalletConnectConnector } from "wagmi/connectors/walletConnect"; const alchemyId = process.env.ALCHEMY_ID; const { chains, provider, webSocketProvider } = configureChains( defaultChains, [alchemyProvider({ alchemyId }), publicProvider()], ); const client = createClient({ autoConnect: true, connectors: [ new MetaMaskConnector({ chains }), new CoinbaseWalletConnector({ chains, options: { appName: "wagmi", }, }), new WalletConnectConnector({ chains, options: { qrcode: true, }, }), new InjectedConnector({ chains, options: { name: "Injected", shimDisconnect: true, }, }), ], provider, webSocketProvider, });
Patch Changes
-
#404
f81c156Thanks @holic! - AddProviderRpcErrorandRpcErrorerror classes.Certain wagmi-standardized errors may wrap
ProviderRpcErrororRpcError. For these cases, you can access the original provider rpc or rpc error value using theinternalproperty.
- #447
b9ebf78Thanks @tmm! - Fix case where connector disconnected while app was closed and stale data was returned when autoconnecting. For example, MetaMask was locked when page was closed.
0.2.5
Patch Changes
4e03666Thanks @tmm! - bump dependencies #429 add imToken support for WC switch chains #432 fix MetaMask and Brave Wallet collision #436
0.2.4
Patch Changes
0.2.3
Patch Changes
- #412
80bef4fThanks @markdalgleish! - Import providers frometherspeer dependency rather than@ethersproject/providersto avoid multiple conflicting versions being installed
0.2.2
Patch Changes
-
018c2a1Thanks @tmm! - - warn and fallback to default client #380-
remove signerOrProvider option from read contract #390
-
MetaMaskConnector #391
-
0.2.1
Patch Changes
afc4607Thanks @tmm! - - Fix time scaling e9593df- Use fully-specified path for use-sync-external-store import 7b235c1
- Update serialize 236fc17
0.2.0
Minor Changes
- #311
24ce011Thanks @tmm! - - Favourmessageevent overconnectingevent to conform to EIP-1193- Export
useWaitForTransaction
- Export
- #311
24ce011Thanks @tmm! - AddcacheOnBlockconfig foruseContractReadUpdatereact-queryto v4 FixwatchBlockNumberlistener leak
Patch Changes
0.2.0-next.18
Patch Changes
- showtime
0.2.0-next.17
Patch Changes
- update block explorers and rpc urls structure
0.2.0-next.16
Patch Changes
- last beta
0.2.0-next.15
Patch Changes
- update zustand
0.2.0-next.14
Minor Changes
- Add
cacheOnBlockconfig foruseContractRead - Update
react-queryto v4 - Fix
watchBlockNumberlistener leak
0.2.0-next.13
Patch Changes
- keep previous data when watching
0.2.0-next.12
Patch Changes
- add chainId to actions and hooks
0.2.0-next.11
Patch Changes
- fix stale connectors when switching chains
0.2.0-next.10
Patch Changes
- republish
0.2.0-next.9
Patch Changes
- improve type support for ethers providers
0.2.0-next.8
Patch Changes
- update babel target
0.2.0-next.7
Minor Changes
-
- Favour
messageevent overconnectingevent to conform to EIP-1193 - Export
useWaitForTransaction
- Favour
0.2.0-next.6
Minor Changes
- add
connectingevent to connectors
0.2.0-next.5
Minor Changes
- don't persist account data when
autoConnectis falsy
0.2.0-next.4
Minor Changes
- remove storage persistence of
connector - add
chainsto client state
0.2.0-next.3
Minor Changes
- Fix issue where
getProviderwas not being awaited ingetSigner
0.2.0-next.2
Minor Changes
- fix: persist connector chains to local storage
0.2.0-next.1
Minor Changes
- Initial 0.3.0 release
0.1.22
Patch Changes
0.1.21
Patch Changes
0.1.20
Patch Changes
0.1.19
Patch Changes
0.1.18
Patch Changes
0.1.17
Patch Changes
0.1.16
Patch Changes
0.1.15
Patch Changes
0.1.14
Patch Changes
- #236
53bad61Thanks @markdalgleish! - Updated@walletconnect/ethereum-providerto v1.7.4
0.1.13
Patch Changes
0.1.12
Patch Changes
0.1.11
Patch Changes
0.1.10
Patch Changes
0.1.9
Patch Changes
0.1.8
Patch Changes
0.1.7
Patch Changes
0.1.6
Patch Changes
0.1.5
Patch Changes
-
e338c3bThanks @tmm! - checksum connector address on change eventsadd shim to injected connector for simulating disconnect
0.1.4
Patch Changes
0.1.3
Patch Changes
0.1.2
Patch Changes
0.1.1
Patch Changes
0.1.0
Minor Changes
-
#52
da7a3a6Thanks @tmm! - Moves connectors to their own entrypoints to reduce bundle size.// old - WalletLinkConnector unused, but still in final bundle import { InjectedConnector, WalletConnectConnector } from "wagmi"; // new - WalletLinkConnector not in final bundle import { InjectedConnector } from "wagmi/connectors/injected"; import { WalletConnectConnector } from "wagmi/connectors/walletConnect";