@wagmi/core 1.1.0 → 1.1.1
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/internal/test.d.ts +4 -4
- package/dist/internal/test.js +15 -5
- package/package.json +5 -5
package/dist/internal/test.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ declare const testChains: (Chain | {
|
|
|
44
44
|
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
45
45
|
};
|
|
46
46
|
readonly ensUniversalResolver: {
|
|
47
|
-
readonly address: "
|
|
48
|
-
readonly blockCreated:
|
|
47
|
+
readonly address: "0x56522D00C410a43BFfDF00a9A569489297385790";
|
|
48
|
+
readonly blockCreated: 8765204;
|
|
49
49
|
};
|
|
50
50
|
readonly multicall3: {
|
|
51
51
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -93,8 +93,8 @@ declare const testChains: (Chain | {
|
|
|
93
93
|
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
94
94
|
};
|
|
95
95
|
readonly ensUniversalResolver: {
|
|
96
|
-
readonly address: "
|
|
97
|
-
readonly blockCreated:
|
|
96
|
+
readonly address: "0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62";
|
|
97
|
+
readonly blockCreated: 16966585;
|
|
98
98
|
};
|
|
99
99
|
readonly multicall3: {
|
|
100
100
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
package/dist/internal/test.js
CHANGED
|
@@ -13,6 +13,7 @@ import "../chunk-KFW652VN.js";
|
|
|
13
13
|
import "../chunk-MQXBDTVK.js";
|
|
14
14
|
|
|
15
15
|
// test/utils.ts
|
|
16
|
+
import { RpcRequestError } from "viem";
|
|
16
17
|
import {
|
|
17
18
|
createPublicClient,
|
|
18
19
|
createWalletClient,
|
|
@@ -134,12 +135,21 @@ function getWalletClients() {
|
|
|
134
135
|
method = "eth_sign";
|
|
135
136
|
params = [params[1], params[0]];
|
|
136
137
|
}
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
const url = foundryMainnet.rpcUrls.default.http[0];
|
|
139
|
+
const body = {
|
|
140
|
+
method,
|
|
141
|
+
params
|
|
142
|
+
};
|
|
143
|
+
const { result, error } = await rpc.http(url, {
|
|
144
|
+
body
|
|
142
145
|
});
|
|
146
|
+
if (error) {
|
|
147
|
+
throw new RpcRequestError({
|
|
148
|
+
body,
|
|
149
|
+
error,
|
|
150
|
+
url
|
|
151
|
+
});
|
|
152
|
+
}
|
|
143
153
|
return result;
|
|
144
154
|
};
|
|
145
155
|
return accounts.map(
|
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": "1.1.
|
|
5
|
+
"version": "1.1.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wagmi-dev/wagmi.git",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"/dist"
|
|
112
112
|
],
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"viem": "
|
|
114
|
+
"viem": ">=0.3.35",
|
|
115
115
|
"typescript": ">=5.0.4"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
"abitype": "0.8.7",
|
|
124
124
|
"eventemitter3": "^4.0.7",
|
|
125
125
|
"zustand": "^4.3.1",
|
|
126
|
-
"@wagmi/chains": "1.
|
|
127
|
-
"@wagmi/connectors": "2.1.
|
|
126
|
+
"@wagmi/chains": "1.1.0",
|
|
127
|
+
"@wagmi/connectors": "2.1.1"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"viem": "
|
|
130
|
+
"viem": "^1.0.0"
|
|
131
131
|
},
|
|
132
132
|
"keywords": [
|
|
133
133
|
"eth",
|