@wagmi/core 0.10.10 → 1.0.0-next.0
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/README.md +2 -2
- package/connectors/walletConnectV1/package.json +4 -0
- package/dist/{chunk-VQG3VKOR.js → chunk-BSUU37OK.js} +707 -1243
- package/dist/index-fc9ab085.d.ts +22 -0
- package/dist/index.d.ts +1042 -1294
- package/dist/index.js +17 -45
- package/dist/internal/index.d.ts +18 -8
- package/dist/internal/index.js +5 -3
- package/dist/internal/test.d.ts +771 -9
- package/dist/internal/test.js +46 -34
- package/dist/providers/alchemy.d.ts +4 -6
- package/dist/providers/alchemy.js +9 -26
- package/dist/providers/infura.d.ts +4 -6
- package/dist/providers/infura.js +9 -26
- package/dist/providers/jsonRpc.d.ts +4 -7
- package/dist/providers/jsonRpc.js +4 -20
- package/dist/providers/public.d.ts +4 -7
- package/dist/providers/public.js +3 -18
- package/dist/window.d.ts +7 -0
- package/dist/window.js +0 -0
- package/internal/dist/wagmi-core-internal.cjs.d.ts +11 -0
- package/internal/dist/wagmi-core-internal.cjs.js +16 -0
- package/package.json +11 -6
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.d.ts +11 -0
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.js +16 -0
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.d.ts +11 -0
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.js +16 -0
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.d.ts +11 -0
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.js +16 -0
- package/providers/public/dist/wagmi-core-providers-public.cjs.d.ts +11 -0
- package/providers/public/dist/wagmi-core-providers-public.cjs.js +16 -0
- package/window/package.json +4 -0
- package/dist/getContract-2443b222.d.ts +0 -310
- package/dist/index-35b6525c.d.ts +0 -49
package/dist/index.js
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import "./chunk-KX4UEHS5.js";
|
|
2
2
|
import {
|
|
3
|
-
AddChainError,
|
|
4
|
-
ChainDoesNotSupportMulticallError,
|
|
5
3
|
ChainMismatchError,
|
|
6
4
|
ChainNotConfiguredError,
|
|
7
5
|
Client,
|
|
6
|
+
ClientChainsNotFound,
|
|
8
7
|
ConnectorAlreadyConnectedError,
|
|
9
8
|
ConnectorNotFoundError,
|
|
10
|
-
ContractMethodDoesNotExistError,
|
|
11
|
-
ContractMethodNoResultError,
|
|
12
|
-
ContractMethodRevertedError,
|
|
13
|
-
ContractResultDecodeError,
|
|
14
|
-
ProviderChainsNotFound,
|
|
15
|
-
ProviderRpcError,
|
|
16
|
-
ResourceUnavailableError,
|
|
17
|
-
RpcError,
|
|
18
|
-
SwitchChainError,
|
|
19
9
|
SwitchChainNotSupportedError,
|
|
20
|
-
UserRejectedRequestError,
|
|
21
10
|
configureChains,
|
|
22
11
|
connect,
|
|
23
12
|
createClient,
|
|
@@ -35,20 +24,18 @@ import {
|
|
|
35
24
|
fetchEnsName,
|
|
36
25
|
fetchEnsResolver,
|
|
37
26
|
fetchFeeData,
|
|
38
|
-
fetchSigner,
|
|
39
27
|
fetchToken,
|
|
40
28
|
fetchTransaction,
|
|
41
29
|
getAccount,
|
|
42
30
|
getClient,
|
|
43
31
|
getContract,
|
|
44
32
|
getNetwork,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
getPublicClient,
|
|
34
|
+
getUnit,
|
|
35
|
+
getWalletClient,
|
|
36
|
+
getWebSocketPublicClient,
|
|
48
37
|
multicall,
|
|
49
38
|
noopStorage,
|
|
50
|
-
normalizeChainId,
|
|
51
|
-
parseContractResult,
|
|
52
39
|
prepareSendTransaction,
|
|
53
40
|
prepareWriteContract,
|
|
54
41
|
readContract,
|
|
@@ -58,7 +45,6 @@ import {
|
|
|
58
45
|
signMessage,
|
|
59
46
|
signTypedData,
|
|
60
47
|
switchNetwork,
|
|
61
|
-
units,
|
|
62
48
|
waitForTransaction,
|
|
63
49
|
watchAccount,
|
|
64
50
|
watchBlockNumber,
|
|
@@ -66,13 +52,13 @@ import {
|
|
|
66
52
|
watchMulticall,
|
|
67
53
|
watchNetwork,
|
|
68
54
|
watchPendingTransactions,
|
|
69
|
-
|
|
55
|
+
watchPublicClient,
|
|
70
56
|
watchReadContract,
|
|
71
57
|
watchReadContracts,
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
watchWalletClient,
|
|
59
|
+
watchWebSocketPublicClient,
|
|
74
60
|
writeContract
|
|
75
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BSUU37OK.js";
|
|
76
62
|
import {
|
|
77
63
|
goerli,
|
|
78
64
|
mainnet,
|
|
@@ -86,26 +72,15 @@ import {
|
|
|
86
72
|
} from "./chunk-EQOEZP46.js";
|
|
87
73
|
import "./chunk-MQXBDTVK.js";
|
|
88
74
|
export {
|
|
89
|
-
AddChainError,
|
|
90
|
-
ChainDoesNotSupportMulticallError,
|
|
91
75
|
ChainMismatchError,
|
|
92
76
|
ChainNotConfiguredError,
|
|
93
77
|
Client,
|
|
78
|
+
ClientChainsNotFound,
|
|
94
79
|
Connector,
|
|
95
80
|
ConnectorAlreadyConnectedError,
|
|
96
81
|
ConnectorNotFoundError,
|
|
97
|
-
ContractMethodDoesNotExistError,
|
|
98
|
-
ContractMethodNoResultError,
|
|
99
|
-
ContractMethodRevertedError,
|
|
100
|
-
ContractResultDecodeError,
|
|
101
82
|
InjectedConnector,
|
|
102
|
-
ProviderChainsNotFound,
|
|
103
|
-
ProviderRpcError,
|
|
104
|
-
ResourceUnavailableError,
|
|
105
|
-
RpcError,
|
|
106
|
-
SwitchChainError,
|
|
107
83
|
SwitchChainNotSupportedError,
|
|
108
|
-
UserRejectedRequestError,
|
|
109
84
|
configureChains,
|
|
110
85
|
connect,
|
|
111
86
|
createClient,
|
|
@@ -123,22 +98,20 @@ export {
|
|
|
123
98
|
fetchEnsName,
|
|
124
99
|
fetchEnsResolver,
|
|
125
100
|
fetchFeeData,
|
|
126
|
-
fetchSigner,
|
|
127
101
|
fetchToken,
|
|
128
102
|
fetchTransaction,
|
|
129
103
|
getAccount,
|
|
130
104
|
getClient,
|
|
131
105
|
getContract,
|
|
132
106
|
getNetwork,
|
|
133
|
-
|
|
134
|
-
|
|
107
|
+
getPublicClient,
|
|
108
|
+
getUnit,
|
|
109
|
+
getWalletClient,
|
|
110
|
+
getWebSocketPublicClient,
|
|
135
111
|
goerli,
|
|
136
112
|
mainnet,
|
|
137
|
-
minimizeContractInterface,
|
|
138
113
|
multicall,
|
|
139
114
|
noopStorage,
|
|
140
|
-
normalizeChainId,
|
|
141
|
-
parseContractResult,
|
|
142
115
|
prepareSendTransaction,
|
|
143
116
|
prepareWriteContract,
|
|
144
117
|
readContract,
|
|
@@ -149,7 +122,6 @@ export {
|
|
|
149
122
|
signMessage,
|
|
150
123
|
signTypedData,
|
|
151
124
|
switchNetwork,
|
|
152
|
-
units,
|
|
153
125
|
waitForTransaction,
|
|
154
126
|
watchAccount,
|
|
155
127
|
watchBlockNumber,
|
|
@@ -157,10 +129,10 @@ export {
|
|
|
157
129
|
watchMulticall,
|
|
158
130
|
watchNetwork,
|
|
159
131
|
watchPendingTransactions,
|
|
160
|
-
|
|
132
|
+
watchPublicClient,
|
|
161
133
|
watchReadContract,
|
|
162
134
|
watchReadContracts,
|
|
163
|
-
|
|
164
|
-
|
|
135
|
+
watchWalletClient,
|
|
136
|
+
watchWebSocketPublicClient,
|
|
165
137
|
writeContract
|
|
166
138
|
};
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import '../index-35b6525c.js';
|
|
3
|
-
import 'abitype';
|
|
4
|
-
import 'ethers';
|
|
5
|
-
import '@wagmi/connectors';
|
|
6
|
-
import '@wagmi/chains';
|
|
1
|
+
import { CallParameters, SendTransactionParameters } from 'viem';
|
|
7
2
|
|
|
8
|
-
declare function
|
|
3
|
+
declare function getCallParameters(args: Omit<CallParameters, 'account'>): Omit<CallParameters, 'account'>;
|
|
4
|
+
declare function getSendTransactionParameters(args: Omit<SendTransactionParameters, 'account' | 'chain'>): Omit<SendTransactionParameters, 'account' | 'chain'>;
|
|
9
5
|
|
|
10
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Converts properties of {@link T} to never
|
|
8
|
+
*
|
|
9
|
+
* @param T - Object to convert
|
|
10
|
+
* @returns Object with properties converted to `never`
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* type Result = Never<{ foo: string, bar: number }>
|
|
14
|
+
* // ^? { foo: never, bar: never }
|
|
15
|
+
*/
|
|
16
|
+
type Never<T> = {
|
|
17
|
+
[K in keyof T]: never;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Never, getCallParameters, getSendTransactionParameters };
|
package/dist/internal/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
getCallParameters,
|
|
3
|
+
getSendTransactionParameters
|
|
4
|
+
} from "../chunk-BSUU37OK.js";
|
|
4
5
|
import "../chunk-BVC4KGLQ.js";
|
|
5
6
|
import "../chunk-MQXBDTVK.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
getCallParameters,
|
|
9
|
+
getSendTransactionParameters
|
|
8
10
|
};
|