@wagmi/core 0.10.8-cjs → 0.10.9-cjs

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _wagmi_chains from '@wagmi/chains';
2
2
  import { Chain } from '@wagmi/chains';
3
- export { Chain, goerli, mainnet } from '@wagmi/chains';
3
+ export { Chain, goerli, mainnet, sepolia } from '@wagmi/chains';
4
4
  import { Mutate, StoreApi } from 'zustand/vanilla';
5
5
  import { Connector, ConnectorData } from '@wagmi/connectors';
6
6
  export { Connector, ConnectorData, ConnectorEvents, Ethereum } from '@wagmi/connectors';
@@ -1145,7 +1145,7 @@ type WatchContractEventConfig<TAbi extends Abi | readonly unknown[] = Abi, TEven
1145
1145
  address: Address;
1146
1146
  /** Chain id to use for provider */
1147
1147
  chainId?: number;
1148
- /** Function to invoke on the contract */
1148
+ /** Name of the event to listen to on the contract */
1149
1149
  eventName: GetEventName<TAbi, TEventName>;
1150
1150
  /** Receive only a single event */
1151
1151
  once?: boolean;
package/dist/index.js CHANGED
@@ -76,6 +76,7 @@ var _chunkVQG3VKORjs = require('./chunk-VQG3VKOR.js');
76
76
 
77
77
 
78
78
 
79
+
79
80
  var _chunkRIWXWG4Yjs = require('./chunk-RIWXWG4Y.js');
80
81
 
81
82
 
@@ -161,4 +162,5 @@ require('./chunk-MQXBDTVK.js');
161
162
 
162
163
 
163
164
 
164
- exports.AddChainError = _chunkVQG3VKORjs.AddChainError; exports.ChainDoesNotSupportMulticallError = _chunkVQG3VKORjs.ChainDoesNotSupportMulticallError; exports.ChainMismatchError = _chunkVQG3VKORjs.ChainMismatchError; exports.ChainNotConfiguredError = _chunkVQG3VKORjs.ChainNotConfiguredError; exports.Client = _chunkVQG3VKORjs.Client; exports.Connector = _chunkBVC4KGLQjs.Connector; exports.ConnectorAlreadyConnectedError = _chunkVQG3VKORjs.ConnectorAlreadyConnectedError; exports.ConnectorNotFoundError = _chunkVQG3VKORjs.ConnectorNotFoundError; exports.ContractMethodDoesNotExistError = _chunkVQG3VKORjs.ContractMethodDoesNotExistError; exports.ContractMethodNoResultError = _chunkVQG3VKORjs.ContractMethodNoResultError; exports.ContractMethodRevertedError = _chunkVQG3VKORjs.ContractMethodRevertedError; exports.ContractResultDecodeError = _chunkVQG3VKORjs.ContractResultDecodeError; exports.InjectedConnector = _chunkEQOEZP46js.InjectedConnector; exports.ProviderChainsNotFound = _chunkVQG3VKORjs.ProviderChainsNotFound; exports.ProviderRpcError = _chunkVQG3VKORjs.ProviderRpcError; exports.ResourceUnavailableError = _chunkVQG3VKORjs.ResourceUnavailableError; exports.RpcError = _chunkVQG3VKORjs.RpcError; exports.SwitchChainError = _chunkVQG3VKORjs.SwitchChainError; exports.SwitchChainNotSupportedError = _chunkVQG3VKORjs.SwitchChainNotSupportedError; exports.UserRejectedRequestError = _chunkVQG3VKORjs.UserRejectedRequestError; exports.configureChains = _chunkVQG3VKORjs.configureChains; exports.connect = _chunkVQG3VKORjs.connect; exports.createClient = _chunkVQG3VKORjs.createClient; exports.createStorage = _chunkVQG3VKORjs.createStorage; exports.deepEqual = _chunkVQG3VKORjs.deepEqual; exports.deserialize = _chunkVQG3VKORjs.deserialize; exports.disconnect = _chunkVQG3VKORjs.disconnect; exports.erc20ABI = _chunkVQG3VKORjs.erc20ABI; exports.erc4626ABI = _chunkVQG3VKORjs.erc4626ABI; exports.erc721ABI = _chunkVQG3VKORjs.erc721ABI; exports.fetchBalance = _chunkVQG3VKORjs.fetchBalance; exports.fetchBlockNumber = _chunkVQG3VKORjs.fetchBlockNumber; exports.fetchEnsAddress = _chunkVQG3VKORjs.fetchEnsAddress; exports.fetchEnsAvatar = _chunkVQG3VKORjs.fetchEnsAvatar; exports.fetchEnsName = _chunkVQG3VKORjs.fetchEnsName; exports.fetchEnsResolver = _chunkVQG3VKORjs.fetchEnsResolver; exports.fetchFeeData = _chunkVQG3VKORjs.fetchFeeData; exports.fetchSigner = _chunkVQG3VKORjs.fetchSigner; exports.fetchToken = _chunkVQG3VKORjs.fetchToken; exports.fetchTransaction = _chunkVQG3VKORjs.fetchTransaction; exports.getAccount = _chunkVQG3VKORjs.getAccount; exports.getClient = _chunkVQG3VKORjs.getClient; exports.getContract = _chunkVQG3VKORjs.getContract; exports.getNetwork = _chunkVQG3VKORjs.getNetwork; exports.getProvider = _chunkVQG3VKORjs.getProvider; exports.getWebSocketProvider = _chunkVQG3VKORjs.getWebSocketProvider; exports.goerli = _chunkRIWXWG4Yjs.goerli; exports.mainnet = _chunkRIWXWG4Yjs.mainnet; exports.minimizeContractInterface = _chunkVQG3VKORjs.minimizeContractInterface; exports.multicall = _chunkVQG3VKORjs.multicall; exports.noopStorage = _chunkVQG3VKORjs.noopStorage; exports.normalizeChainId = _chunkVQG3VKORjs.normalizeChainId; exports.parseContractResult = _chunkVQG3VKORjs.parseContractResult; exports.prepareSendTransaction = _chunkVQG3VKORjs.prepareSendTransaction; exports.prepareWriteContract = _chunkVQG3VKORjs.prepareWriteContract; exports.readContract = _chunkVQG3VKORjs.readContract; exports.readContracts = _chunkVQG3VKORjs.readContracts; exports.sendTransaction = _chunkVQG3VKORjs.sendTransaction; exports.serialize = _chunkVQG3VKORjs.serialize; exports.signMessage = _chunkVQG3VKORjs.signMessage; exports.signTypedData = _chunkVQG3VKORjs.signTypedData; exports.switchNetwork = _chunkVQG3VKORjs.switchNetwork; exports.units = _chunkVQG3VKORjs.units; exports.waitForTransaction = _chunkVQG3VKORjs.waitForTransaction; exports.watchAccount = _chunkVQG3VKORjs.watchAccount; exports.watchBlockNumber = _chunkVQG3VKORjs.watchBlockNumber; exports.watchContractEvent = _chunkVQG3VKORjs.watchContractEvent; exports.watchMulticall = _chunkVQG3VKORjs.watchMulticall; exports.watchNetwork = _chunkVQG3VKORjs.watchNetwork; exports.watchPendingTransactions = _chunkVQG3VKORjs.watchPendingTransactions; exports.watchProvider = _chunkVQG3VKORjs.watchProvider; exports.watchReadContract = _chunkVQG3VKORjs.watchReadContract; exports.watchReadContracts = _chunkVQG3VKORjs.watchReadContracts; exports.watchSigner = _chunkVQG3VKORjs.watchSigner; exports.watchWebSocketProvider = _chunkVQG3VKORjs.watchWebSocketProvider; exports.writeContract = _chunkVQG3VKORjs.writeContract;
165
+
166
+ exports.AddChainError = _chunkVQG3VKORjs.AddChainError; exports.ChainDoesNotSupportMulticallError = _chunkVQG3VKORjs.ChainDoesNotSupportMulticallError; exports.ChainMismatchError = _chunkVQG3VKORjs.ChainMismatchError; exports.ChainNotConfiguredError = _chunkVQG3VKORjs.ChainNotConfiguredError; exports.Client = _chunkVQG3VKORjs.Client; exports.Connector = _chunkBVC4KGLQjs.Connector; exports.ConnectorAlreadyConnectedError = _chunkVQG3VKORjs.ConnectorAlreadyConnectedError; exports.ConnectorNotFoundError = _chunkVQG3VKORjs.ConnectorNotFoundError; exports.ContractMethodDoesNotExistError = _chunkVQG3VKORjs.ContractMethodDoesNotExistError; exports.ContractMethodNoResultError = _chunkVQG3VKORjs.ContractMethodNoResultError; exports.ContractMethodRevertedError = _chunkVQG3VKORjs.ContractMethodRevertedError; exports.ContractResultDecodeError = _chunkVQG3VKORjs.ContractResultDecodeError; exports.InjectedConnector = _chunkEQOEZP46js.InjectedConnector; exports.ProviderChainsNotFound = _chunkVQG3VKORjs.ProviderChainsNotFound; exports.ProviderRpcError = _chunkVQG3VKORjs.ProviderRpcError; exports.ResourceUnavailableError = _chunkVQG3VKORjs.ResourceUnavailableError; exports.RpcError = _chunkVQG3VKORjs.RpcError; exports.SwitchChainError = _chunkVQG3VKORjs.SwitchChainError; exports.SwitchChainNotSupportedError = _chunkVQG3VKORjs.SwitchChainNotSupportedError; exports.UserRejectedRequestError = _chunkVQG3VKORjs.UserRejectedRequestError; exports.configureChains = _chunkVQG3VKORjs.configureChains; exports.connect = _chunkVQG3VKORjs.connect; exports.createClient = _chunkVQG3VKORjs.createClient; exports.createStorage = _chunkVQG3VKORjs.createStorage; exports.deepEqual = _chunkVQG3VKORjs.deepEqual; exports.deserialize = _chunkVQG3VKORjs.deserialize; exports.disconnect = _chunkVQG3VKORjs.disconnect; exports.erc20ABI = _chunkVQG3VKORjs.erc20ABI; exports.erc4626ABI = _chunkVQG3VKORjs.erc4626ABI; exports.erc721ABI = _chunkVQG3VKORjs.erc721ABI; exports.fetchBalance = _chunkVQG3VKORjs.fetchBalance; exports.fetchBlockNumber = _chunkVQG3VKORjs.fetchBlockNumber; exports.fetchEnsAddress = _chunkVQG3VKORjs.fetchEnsAddress; exports.fetchEnsAvatar = _chunkVQG3VKORjs.fetchEnsAvatar; exports.fetchEnsName = _chunkVQG3VKORjs.fetchEnsName; exports.fetchEnsResolver = _chunkVQG3VKORjs.fetchEnsResolver; exports.fetchFeeData = _chunkVQG3VKORjs.fetchFeeData; exports.fetchSigner = _chunkVQG3VKORjs.fetchSigner; exports.fetchToken = _chunkVQG3VKORjs.fetchToken; exports.fetchTransaction = _chunkVQG3VKORjs.fetchTransaction; exports.getAccount = _chunkVQG3VKORjs.getAccount; exports.getClient = _chunkVQG3VKORjs.getClient; exports.getContract = _chunkVQG3VKORjs.getContract; exports.getNetwork = _chunkVQG3VKORjs.getNetwork; exports.getProvider = _chunkVQG3VKORjs.getProvider; exports.getWebSocketProvider = _chunkVQG3VKORjs.getWebSocketProvider; exports.goerli = _chunkRIWXWG4Yjs.goerli; exports.mainnet = _chunkRIWXWG4Yjs.mainnet; exports.minimizeContractInterface = _chunkVQG3VKORjs.minimizeContractInterface; exports.multicall = _chunkVQG3VKORjs.multicall; exports.noopStorage = _chunkVQG3VKORjs.noopStorage; exports.normalizeChainId = _chunkVQG3VKORjs.normalizeChainId; exports.parseContractResult = _chunkVQG3VKORjs.parseContractResult; exports.prepareSendTransaction = _chunkVQG3VKORjs.prepareSendTransaction; exports.prepareWriteContract = _chunkVQG3VKORjs.prepareWriteContract; exports.readContract = _chunkVQG3VKORjs.readContract; exports.readContracts = _chunkVQG3VKORjs.readContracts; exports.sendTransaction = _chunkVQG3VKORjs.sendTransaction; exports.sepolia = _chunkRIWXWG4Yjs.sepolia; exports.serialize = _chunkVQG3VKORjs.serialize; exports.signMessage = _chunkVQG3VKORjs.signMessage; exports.signTypedData = _chunkVQG3VKORjs.signTypedData; exports.switchNetwork = _chunkVQG3VKORjs.switchNetwork; exports.units = _chunkVQG3VKORjs.units; exports.waitForTransaction = _chunkVQG3VKORjs.waitForTransaction; exports.watchAccount = _chunkVQG3VKORjs.watchAccount; exports.watchBlockNumber = _chunkVQG3VKORjs.watchBlockNumber; exports.watchContractEvent = _chunkVQG3VKORjs.watchContractEvent; exports.watchMulticall = _chunkVQG3VKORjs.watchMulticall; exports.watchNetwork = _chunkVQG3VKORjs.watchNetwork; exports.watchPendingTransactions = _chunkVQG3VKORjs.watchPendingTransactions; exports.watchProvider = _chunkVQG3VKORjs.watchProvider; exports.watchReadContract = _chunkVQG3VKORjs.watchReadContract; exports.watchReadContracts = _chunkVQG3VKORjs.watchReadContracts; exports.watchSigner = _chunkVQG3VKORjs.watchSigner; exports.watchWebSocketProvider = _chunkVQG3VKORjs.watchWebSocketProvider; exports.writeContract = _chunkVQG3VKORjs.writeContract;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/core",
3
3
  "description": "Vanilla JS library for Ethereum",
4
4
  "license": "MIT",
5
- "version": "0.10.8-cjs",
5
+ "version": "0.10.9-cjs",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -114,8 +114,8 @@
114
114
  }
115
115
  },
116
116
  "dependencies": {
117
- "@wagmi/chains": "0.2.15-cjs",
118
- "@wagmi/connectors": "0.3.10-cjs",
117
+ "@wagmi/chains": "0.2.17-cjs",
118
+ "@wagmi/connectors": "0.3.12-cjs",
119
119
  "abitype": "^0.3.0",
120
120
  "eventemitter3": "^4.0.7",
121
121
  "zustand": "^4.3.1"
@@ -1,4 +0,0 @@
1
- {
2
- "type": "module",
3
- "main": "../../dist/connectors/walletConnectV1.js"
4
- }
@@ -1,11 +0,0 @@
1
- // are you seeing an error that a default export doesn't exist but your source file has a default export?
2
- // you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
3
-
4
- // curious why you need to?
5
- // this file exists so that you can import from the entrypoint normally
6
- // except that it points to your source file and you don't need to run build constantly
7
- // which means we need to re-export all of the modules from your source file
8
- // and since export * doesn't include default exports, we need to read your source file
9
- // to check for a default export and re-export it if it exists
10
- // it's not ideal, but it works pretty well ¯\_(ツ)_/¯
11
- export * from "../../src/internal";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // this file might look strange and you might be wondering what it's for
3
- // it's lets you import your source files by importing this entrypoint
4
- // as you would import it if it was built with preconstruct build
5
- // this file is slightly different to some others though
6
- // it has a require hook which compiles your code with Babel
7
- // this means that you don't have to set up @babel/register or anything like that
8
- // but you can still require this module and it'll be compiled
9
-
10
- // this bit of code imports the require hook and registers it
11
- let unregister = require("../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../..", "../..");
12
-
13
- // this re-exports the source file
14
- module.exports = require("../../src/internal.ts");
15
-
16
- unregister();
@@ -1,11 +0,0 @@
1
- // are you seeing an error that a default export doesn't exist but your source file has a default export?
2
- // you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
3
-
4
- // curious why you need to?
5
- // this file exists so that you can import from the entrypoint normally
6
- // except that it points to your source file and you don't need to run build constantly
7
- // which means we need to re-export all of the modules from your source file
8
- // and since export * doesn't include default exports, we need to read your source file
9
- // to check for a default export and re-export it if it exists
10
- // it's not ideal, but it works pretty well ¯\_(ツ)_/¯
11
- export * from "../../../src/providers/alchemy";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // this file might look strange and you might be wondering what it's for
3
- // it's lets you import your source files by importing this entrypoint
4
- // as you would import it if it was built with preconstruct build
5
- // this file is slightly different to some others though
6
- // it has a require hook which compiles your code with Babel
7
- // this means that you don't have to set up @babel/register or anything like that
8
- // but you can still require this module and it'll be compiled
9
-
10
- // this bit of code imports the require hook and registers it
11
- let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
12
-
13
- // this re-exports the source file
14
- module.exports = require("../../../src/providers/alchemy.ts");
15
-
16
- unregister();
@@ -1,11 +0,0 @@
1
- // are you seeing an error that a default export doesn't exist but your source file has a default export?
2
- // you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
3
-
4
- // curious why you need to?
5
- // this file exists so that you can import from the entrypoint normally
6
- // except that it points to your source file and you don't need to run build constantly
7
- // which means we need to re-export all of the modules from your source file
8
- // and since export * doesn't include default exports, we need to read your source file
9
- // to check for a default export and re-export it if it exists
10
- // it's not ideal, but it works pretty well ¯\_(ツ)_/¯
11
- export * from "../../../src/providers/infura";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // this file might look strange and you might be wondering what it's for
3
- // it's lets you import your source files by importing this entrypoint
4
- // as you would import it if it was built with preconstruct build
5
- // this file is slightly different to some others though
6
- // it has a require hook which compiles your code with Babel
7
- // this means that you don't have to set up @babel/register or anything like that
8
- // but you can still require this module and it'll be compiled
9
-
10
- // this bit of code imports the require hook and registers it
11
- let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
12
-
13
- // this re-exports the source file
14
- module.exports = require("../../../src/providers/infura.ts");
15
-
16
- unregister();
@@ -1,11 +0,0 @@
1
- // are you seeing an error that a default export doesn't exist but your source file has a default export?
2
- // you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
3
-
4
- // curious why you need to?
5
- // this file exists so that you can import from the entrypoint normally
6
- // except that it points to your source file and you don't need to run build constantly
7
- // which means we need to re-export all of the modules from your source file
8
- // and since export * doesn't include default exports, we need to read your source file
9
- // to check for a default export and re-export it if it exists
10
- // it's not ideal, but it works pretty well ¯\_(ツ)_/¯
11
- export * from "../../../src/providers/jsonRpc";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // this file might look strange and you might be wondering what it's for
3
- // it's lets you import your source files by importing this entrypoint
4
- // as you would import it if it was built with preconstruct build
5
- // this file is slightly different to some others though
6
- // it has a require hook which compiles your code with Babel
7
- // this means that you don't have to set up @babel/register or anything like that
8
- // but you can still require this module and it'll be compiled
9
-
10
- // this bit of code imports the require hook and registers it
11
- let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
12
-
13
- // this re-exports the source file
14
- module.exports = require("../../../src/providers/jsonRpc.ts");
15
-
16
- unregister();
@@ -1,11 +0,0 @@
1
- // are you seeing an error that a default export doesn't exist but your source file has a default export?
2
- // you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
3
-
4
- // curious why you need to?
5
- // this file exists so that you can import from the entrypoint normally
6
- // except that it points to your source file and you don't need to run build constantly
7
- // which means we need to re-export all of the modules from your source file
8
- // and since export * doesn't include default exports, we need to read your source file
9
- // to check for a default export and re-export it if it exists
10
- // it's not ideal, but it works pretty well ¯\_(ツ)_/¯
11
- export * from "../../../src/providers/public";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // this file might look strange and you might be wondering what it's for
3
- // it's lets you import your source files by importing this entrypoint
4
- // as you would import it if it was built with preconstruct build
5
- // this file is slightly different to some others though
6
- // it has a require hook which compiles your code with Babel
7
- // this means that you don't have to set up @babel/register or anything like that
8
- // but you can still require this module and it'll be compiled
9
-
10
- // this bit of code imports the require hook and registers it
11
- let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
12
-
13
- // this re-exports the source file
14
- module.exports = require("../../../src/providers/public.ts");
15
-
16
- unregister();