wagmi 0.4.0 → 0.4.3

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.
@@ -0,0 +1 @@
1
+ export * from "../../dist/declarations/src/chains";
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chains = require('@wagmi/core/chains');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, 'arbitrum', {
10
+ enumerable: true,
11
+ get: function () { return chains.arbitrum; }
12
+ });
13
+ Object.defineProperty(exports, 'arbitrumRinkeby', {
14
+ enumerable: true,
15
+ get: function () { return chains.arbitrumRinkeby; }
16
+ });
17
+ Object.defineProperty(exports, 'goerli', {
18
+ enumerable: true,
19
+ get: function () { return chains.goerli; }
20
+ });
21
+ Object.defineProperty(exports, 'hardhat', {
22
+ enumerable: true,
23
+ get: function () { return chains.hardhat; }
24
+ });
25
+ Object.defineProperty(exports, 'kovan', {
26
+ enumerable: true,
27
+ get: function () { return chains.kovan; }
28
+ });
29
+ Object.defineProperty(exports, 'localhost', {
30
+ enumerable: true,
31
+ get: function () { return chains.localhost; }
32
+ });
33
+ Object.defineProperty(exports, 'mainnet', {
34
+ enumerable: true,
35
+ get: function () { return chains.mainnet; }
36
+ });
37
+ Object.defineProperty(exports, 'optimism', {
38
+ enumerable: true,
39
+ get: function () { return chains.optimism; }
40
+ });
41
+ Object.defineProperty(exports, 'optimismKovan', {
42
+ enumerable: true,
43
+ get: function () { return chains.optimismKovan; }
44
+ });
45
+ Object.defineProperty(exports, 'polygon', {
46
+ enumerable: true,
47
+ get: function () { return chains.polygon; }
48
+ });
49
+ Object.defineProperty(exports, 'polygonMumbai', {
50
+ enumerable: true,
51
+ get: function () { return chains.polygonMumbai; }
52
+ });
53
+ Object.defineProperty(exports, 'rinkeby', {
54
+ enumerable: true,
55
+ get: function () { return chains.rinkeby; }
56
+ });
57
+ Object.defineProperty(exports, 'ropsten', {
58
+ enumerable: true,
59
+ get: function () { return chains.ropsten; }
60
+ });
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./wagmi-chains.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./wagmi-chains.cjs.dev.js");
7
+ }
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chains = require('@wagmi/core/chains');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, 'arbitrum', {
10
+ enumerable: true,
11
+ get: function () { return chains.arbitrum; }
12
+ });
13
+ Object.defineProperty(exports, 'arbitrumRinkeby', {
14
+ enumerable: true,
15
+ get: function () { return chains.arbitrumRinkeby; }
16
+ });
17
+ Object.defineProperty(exports, 'goerli', {
18
+ enumerable: true,
19
+ get: function () { return chains.goerli; }
20
+ });
21
+ Object.defineProperty(exports, 'hardhat', {
22
+ enumerable: true,
23
+ get: function () { return chains.hardhat; }
24
+ });
25
+ Object.defineProperty(exports, 'kovan', {
26
+ enumerable: true,
27
+ get: function () { return chains.kovan; }
28
+ });
29
+ Object.defineProperty(exports, 'localhost', {
30
+ enumerable: true,
31
+ get: function () { return chains.localhost; }
32
+ });
33
+ Object.defineProperty(exports, 'mainnet', {
34
+ enumerable: true,
35
+ get: function () { return chains.mainnet; }
36
+ });
37
+ Object.defineProperty(exports, 'optimism', {
38
+ enumerable: true,
39
+ get: function () { return chains.optimism; }
40
+ });
41
+ Object.defineProperty(exports, 'optimismKovan', {
42
+ enumerable: true,
43
+ get: function () { return chains.optimismKovan; }
44
+ });
45
+ Object.defineProperty(exports, 'polygon', {
46
+ enumerable: true,
47
+ get: function () { return chains.polygon; }
48
+ });
49
+ Object.defineProperty(exports, 'polygonMumbai', {
50
+ enumerable: true,
51
+ get: function () { return chains.polygonMumbai; }
52
+ });
53
+ Object.defineProperty(exports, 'rinkeby', {
54
+ enumerable: true,
55
+ get: function () { return chains.rinkeby; }
56
+ });
57
+ Object.defineProperty(exports, 'ropsten', {
58
+ enumerable: true,
59
+ get: function () { return chains.ropsten; }
60
+ });
@@ -0,0 +1 @@
1
+ export { arbitrum, arbitrumRinkeby, goerli, hardhat, kovan, localhost, mainnet, optimism, optimismKovan, polygon, polygonMumbai, rinkeby, ropsten } from '@wagmi/core/chains';
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "dist/wagmi-chains.cjs.js",
3
+ "module": "dist/wagmi-chains.esm.js"
4
+ }
@@ -0,0 +1 @@
1
+ export { arbitrum, arbitrumRinkeby, goerli, hardhat, kovan, localhost, mainnet, optimism, optimismKovan, polygon, polygonMumbai, rinkeby, ropsten, } from '@wagmi/core/chains';
@@ -1,6 +1,6 @@
1
- export { createClient, WagmiConfig,
1
+ export { Context,
2
2
  /** @deprecated use `WagmiConfig` instead */
3
- WagmiConfig as WagmiProvider, useClient, } from './context';
3
+ WagmiConfig as WagmiProvider, WagmiConfig, createClient, useClient, } from './context';
4
4
  export type { CreateClientConfig, WagmiConfigProps } from './context';
5
5
  export { useAccount, useBalance, useBlockNumber, useConnect, useContract, useContractEvent, useContractRead, useContractWrite, useDisconnect, useEnsAddress, useEnsAvatar, useEnsName, useEnsResolver, useFeeData, useNetwork, useProvider, useQuery, useSendTransaction, useSignMessage, useSignTypedData, useSigner, useToken, useWaitForTransaction, useWebSocketProvider, } from './hooks';
6
6
  export { deserialize, serialize } from './utils';
@@ -1830,6 +1830,7 @@ Object.defineProperty(exports, 'infuraRpcUrls', {
1830
1830
  enumerable: true,
1831
1831
  get: function () { return core.infuraRpcUrls; }
1832
1832
  });
1833
+ exports.Context = Context;
1833
1834
  exports.WagmiConfig = WagmiConfig;
1834
1835
  exports.WagmiProvider = WagmiConfig;
1835
1836
  exports.createClient = createClient;
@@ -1830,6 +1830,7 @@ Object.defineProperty(exports, 'infuraRpcUrls', {
1830
1830
  enumerable: true,
1831
1831
  get: function () { return core.infuraRpcUrls; }
1832
1832
  });
1833
+ exports.Context = Context;
1833
1834
  exports.WagmiConfig = WagmiConfig;
1834
1835
  exports.WagmiProvider = WagmiConfig;
1835
1836
  exports.createClient = createClient;
package/dist/wagmi.esm.js CHANGED
@@ -1711,4 +1711,4 @@ function useWaitForTransaction() {
1711
1711
  });
1712
1712
  }
1713
1713
 
1714
- export { WagmiConfig, WagmiConfig as WagmiProvider, createClient, deserialize, serialize, useAccount, useBalance, useBlockNumber, useClient, useConnect, useContract, useContractEvent, useContractRead, useContractWrite, useDisconnect, useEnsAddress, useEnsAvatar, useEnsName, useEnsResolver, useFeeData, useNetwork, useProvider, useQuery, useSendTransaction, useSignMessage, useSignTypedData, useSigner, useToken, useWaitForTransaction, useWebSocketProvider };
1714
+ export { Context, WagmiConfig, WagmiConfig as WagmiProvider, createClient, deserialize, serialize, useAccount, useBalance, useBlockNumber, useClient, useConnect, useContract, useContractEvent, useContractRead, useContractWrite, useDisconnect, useEnsAddress, useEnsAvatar, useEnsName, useEnsResolver, useFeeData, useNetwork, useProvider, useQuery, useSendTransaction, useSignMessage, useSignTypedData, useSigner, useToken, useWaitForTransaction, useWebSocketProvider };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wagmi",
3
3
  "description": "React Hooks for Ethereum",
4
4
  "license": "WAGMIT",
5
- "version": "0.4.0",
5
+ "version": "0.4.3",
6
6
  "repository": "tmm/wagmi",
7
7
  "author": "awkweb.eth",
8
8
  "homepage": "https://wagmi.sh",
@@ -26,6 +26,10 @@
26
26
  "module": "./dist/wagmi.esm.js",
27
27
  "default": "./dist/wagmi.cjs.js"
28
28
  },
29
+ "./chains": {
30
+ "module": "./chains/dist/wagmi-chains.esm.js",
31
+ "default": "./chains/dist/wagmi-chains.cjs.js"
32
+ },
29
33
  "./connectors/coinbaseWallet": {
30
34
  "module": "./connectors/coinbaseWallet/dist/wagmi-connectors-coinbaseWallet.esm.js",
31
35
  "default": "./connectors/coinbaseWallet/dist/wagmi-connectors-coinbaseWallet.cjs.js"
@@ -46,10 +50,6 @@
46
50
  "module": "./providers/alchemy/dist/wagmi-providers-alchemy.esm.js",
47
51
  "default": "./providers/alchemy/dist/wagmi-providers-alchemy.cjs.js"
48
52
  },
49
- "./providers/public": {
50
- "module": "./providers/public/dist/wagmi-providers-public.esm.js",
51
- "default": "./providers/public/dist/wagmi-providers-public.cjs.js"
52
- },
53
53
  "./providers/infura": {
54
54
  "module": "./providers/infura/dist/wagmi-providers-infura.esm.js",
55
55
  "default": "./providers/infura/dist/wagmi-providers-infura.cjs.js"
@@ -57,9 +57,14 @@
57
57
  "./providers/jsonRpc": {
58
58
  "module": "./providers/jsonRpc/dist/wagmi-providers-jsonRpc.esm.js",
59
59
  "default": "./providers/jsonRpc/dist/wagmi-providers-jsonRpc.cjs.js"
60
+ },
61
+ "./providers/public": {
62
+ "module": "./providers/public/dist/wagmi-providers-public.esm.js",
63
+ "default": "./providers/public/dist/wagmi-providers-public.cjs.js"
60
64
  }
61
65
  },
62
66
  "files": [
67
+ "/chains",
63
68
  "/connectors",
64
69
  "/dist",
65
70
  "/providers"
@@ -67,6 +72,7 @@
67
72
  "preconstruct": {
68
73
  "entrypoints": [
69
74
  "index.ts",
75
+ "chains.ts",
70
76
  "connectors/coinbaseWallet.ts",
71
77
  "connectors/injected.ts",
72
78
  "connectors/metaMask.ts",
@@ -83,7 +89,7 @@
83
89
  },
84
90
  "dependencies": {
85
91
  "@coinbase/wallet-sdk": "^3.1.0",
86
- "@wagmi/core": "^0.3.0",
92
+ "@wagmi/core": "^0.3.3",
87
93
  "@walletconnect/ethereum-provider": "^1.7.8",
88
94
  "react-query": "4.0.0-beta.12",
89
95
  "use-sync-external-store": "^1.1.0"