@wagmi/core 1.2.0 → 1.2.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/chains.d.ts +1 -1
- package/dist/chains.js +7 -1
- package/dist/{chunk-OKULXQAF.js → chunk-LAFZBYO7.js} +1 -1
- package/dist/{chunk-JNJVMJJ2.js → chunk-Z77SMULX.js} +6 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/internal/index.js +1 -1
- package/dist/internal/test.js +2 -2
- package/package.json +3 -3
package/dist/chains.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Chain, arbitrum, arbitrumGoerli, aurora, auroraTestnet, avalanche, avalancheFuji, baseGoerli, boba, bronos, bronosTestnet, bsc, bscTestnet, canto, celo, celoAlfajores, celoCannoli, cronos, crossbell, dfk, dogechain, edgeware, edgewareTestnet, evmos, evmosTestnet, fantom, fantomTestnet, filecoin, filecoinCalibration, filecoinHyperspace, flare, flareTestnet, foundry, gnosis, gnosisChiado, goerli, haqqMainnet, haqqTestedge2, hardhat, harmonyOne, iotex, iotexTestnet, klaytn, lineaTestnet, localhost, mainnet, metis, metisGoerli, moonbaseAlpha, moonbeam, moonriver, nexi, okc, optimism, optimismGoerli, polygon, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, pulsechain, pulsechainV4, scrollTestnet, sepolia, shardeumSphinx, skaleBlockBrawlers, skaleCalypso, skaleCalypsoTestnet, skaleChaosTestnet, skaleCryptoBlades, skaleCryptoColosseum, skaleEuropa, skaleEuropaTestnet, skaleExorde, skaleHumanProtocol, skaleNebula, skaleNebulaTestnet, skaleRazor, skaleTitan, skaleTitanTestnet, songbird, songbirdTestnet, syscoin, taraxa, taraxaTestnet, telos, telosTestnet, thunderTestnet, wanchain, wanchainTestnet, xdc, xdcTestnet, zhejiang, zkSync, zkSyncTestnet, zoraTestnet } from '@wagmi/chains';
|
|
1
|
+
export { Chain, arbitrum, arbitrumGoerli, aurora, auroraTestnet, avalanche, avalancheFuji, baseGoerli, boba, bronos, bronosTestnet, bsc, bscTestnet, canto, celo, celoAlfajores, celoCannoli, cronos, cronosTestnet, crossbell, dfk, dogechain, edgeware, edgewareTestnet, evmos, evmosTestnet, fantom, fantomTestnet, fibo, filecoin, filecoinCalibration, filecoinHyperspace, flare, flareTestnet, foundry, gnosis, gnosisChiado, goerli, haqqMainnet, haqqTestedge2, hardhat, harmonyOne, iotex, iotexTestnet, klaytn, lineaTestnet, localhost, mainnet, metis, metisGoerli, moonbaseAlpha, moonbeam, moonriver, nexi, okc, optimism, optimismGoerli, polygon, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, pulsechain, pulsechainV4, scrollTestnet, sepolia, shardeumSphinx, skaleBlockBrawlers, skaleCalypso, skaleCalypsoTestnet, skaleChaosTestnet, skaleCryptoBlades, skaleCryptoColosseum, skaleEuropa, skaleEuropaTestnet, skaleExorde, skaleHumanProtocol, skaleNebula, skaleNebulaTestnet, skaleRazor, skaleTitan, skaleTitanTestnet, songbird, songbirdTestnet, syscoin, taraxa, taraxaTestnet, telos, telosTestnet, thunderTestnet, wanchain, wanchainTestnet, xdc, xdcTestnet, zhejiang, zkSync, zkSyncTestnet, zora, zoraTestnet } from '@wagmi/chains';
|
package/dist/chains.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
celoAlfajores,
|
|
17
17
|
celoCannoli,
|
|
18
18
|
cronos,
|
|
19
|
+
cronosTestnet,
|
|
19
20
|
crossbell,
|
|
20
21
|
dfk,
|
|
21
22
|
dogechain,
|
|
@@ -25,6 +26,7 @@ import {
|
|
|
25
26
|
evmosTestnet,
|
|
26
27
|
fantom,
|
|
27
28
|
fantomTestnet,
|
|
29
|
+
fibo,
|
|
28
30
|
filecoin,
|
|
29
31
|
filecoinCalibration,
|
|
30
32
|
filecoinHyperspace,
|
|
@@ -92,8 +94,9 @@ import {
|
|
|
92
94
|
zhejiang,
|
|
93
95
|
zkSync,
|
|
94
96
|
zkSyncTestnet,
|
|
97
|
+
zora,
|
|
95
98
|
zoraTestnet
|
|
96
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-Z77SMULX.js";
|
|
97
100
|
import "./chunk-MQXBDTVK.js";
|
|
98
101
|
export {
|
|
99
102
|
arbitrum,
|
|
@@ -113,6 +116,7 @@ export {
|
|
|
113
116
|
celoAlfajores,
|
|
114
117
|
celoCannoli,
|
|
115
118
|
cronos,
|
|
119
|
+
cronosTestnet,
|
|
116
120
|
crossbell,
|
|
117
121
|
dfk,
|
|
118
122
|
dogechain,
|
|
@@ -122,6 +126,7 @@ export {
|
|
|
122
126
|
evmosTestnet,
|
|
123
127
|
fantom,
|
|
124
128
|
fantomTestnet,
|
|
129
|
+
fibo,
|
|
125
130
|
filecoin,
|
|
126
131
|
filecoinCalibration,
|
|
127
132
|
filecoinHyperspace,
|
|
@@ -189,5 +194,6 @@ export {
|
|
|
189
194
|
zhejiang,
|
|
190
195
|
zkSync,
|
|
191
196
|
zkSyncTestnet,
|
|
197
|
+
zora,
|
|
192
198
|
zoraTestnet
|
|
193
199
|
};
|
|
@@ -2348,7 +2348,7 @@ async function writeContract(config2) {
|
|
|
2348
2348
|
assertActiveChain({ chainId: config2.chainId });
|
|
2349
2349
|
let request;
|
|
2350
2350
|
if (config2.mode === "prepared") {
|
|
2351
|
-
request = config2;
|
|
2351
|
+
request = config2.request;
|
|
2352
2352
|
} else {
|
|
2353
2353
|
const { chainId: _, mode: __, ...args } = config2;
|
|
2354
2354
|
const res = await prepareWriteContract(args);
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
celoAlfajores,
|
|
18
18
|
celoCannoli,
|
|
19
19
|
cronos,
|
|
20
|
+
cronosTestnet,
|
|
20
21
|
crossbell,
|
|
21
22
|
dfk,
|
|
22
23
|
dogechain,
|
|
@@ -26,6 +27,7 @@ import {
|
|
|
26
27
|
evmosTestnet,
|
|
27
28
|
fantom,
|
|
28
29
|
fantomTestnet,
|
|
30
|
+
fibo,
|
|
29
31
|
filecoin,
|
|
30
32
|
filecoinCalibration,
|
|
31
33
|
filecoinHyperspace,
|
|
@@ -93,6 +95,7 @@ import {
|
|
|
93
95
|
zhejiang,
|
|
94
96
|
zkSync,
|
|
95
97
|
zkSyncTestnet,
|
|
98
|
+
zora,
|
|
96
99
|
zoraTestnet
|
|
97
100
|
} from "@wagmi/chains";
|
|
98
101
|
|
|
@@ -114,6 +117,7 @@ export {
|
|
|
114
117
|
celoAlfajores,
|
|
115
118
|
celoCannoli,
|
|
116
119
|
cronos,
|
|
120
|
+
cronosTestnet,
|
|
117
121
|
crossbell,
|
|
118
122
|
dfk,
|
|
119
123
|
dogechain,
|
|
@@ -123,6 +127,7 @@ export {
|
|
|
123
127
|
evmosTestnet,
|
|
124
128
|
fantom,
|
|
125
129
|
fantomTestnet,
|
|
130
|
+
fibo,
|
|
126
131
|
filecoin,
|
|
127
132
|
filecoinCalibration,
|
|
128
133
|
filecoinHyperspace,
|
|
@@ -190,5 +195,6 @@ export {
|
|
|
190
195
|
zhejiang,
|
|
191
196
|
zkSync,
|
|
192
197
|
zkSyncTestnet,
|
|
198
|
+
zora,
|
|
193
199
|
zoraTestnet
|
|
194
200
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -337,15 +337,16 @@ type WatchReadContractsCallback<TContracts extends ContractFunctionConfig[] = Co
|
|
|
337
337
|
declare function watchReadContracts<TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true>(args: WatchReadContractsConfig<TContracts, TAllowFailure>, callback: WatchReadContractsCallback<TContracts, TAllowFailure>): () => void;
|
|
338
338
|
|
|
339
339
|
type WriteContractMode = 'prepared' | undefined;
|
|
340
|
-
type WriteContractPreparedArgs<TAbi extends Abi | readonly unknown[] = readonly unknown[], TFunctionName extends string = string> =
|
|
341
|
-
mode: 'prepared';
|
|
340
|
+
type WriteContractPreparedArgs<TAbi extends Abi | readonly unknown[] = readonly unknown[], TFunctionName extends string = string> = {
|
|
342
341
|
/** Chain id. */
|
|
343
342
|
chainId?: number;
|
|
343
|
+
mode: 'prepared';
|
|
344
|
+
request: WriteContractParameters<TAbi, TFunctionName, Chain$1, Account>;
|
|
344
345
|
};
|
|
345
346
|
type WriteContractUnpreparedArgs<TAbi extends Abi | readonly unknown[], TFunctionName extends string> = Omit<WriteContractParameters<TAbi, TFunctionName, Chain$1, Account>, 'chain'> & {
|
|
346
|
-
mode?: never;
|
|
347
347
|
/** Chain id. */
|
|
348
348
|
chainId?: number;
|
|
349
|
+
mode?: never;
|
|
349
350
|
};
|
|
350
351
|
type WriteContractArgs<TAbi extends Abi | readonly unknown[], TFunctionName extends string> = WriteContractPreparedArgs<TAbi, TFunctionName> | WriteContractUnpreparedArgs<TAbi, TFunctionName>;
|
|
351
352
|
type WriteContractResult = {
|
package/dist/index.js
CHANGED
|
@@ -58,11 +58,11 @@ import {
|
|
|
58
58
|
watchWalletClient,
|
|
59
59
|
watchWebSocketPublicClient,
|
|
60
60
|
writeContract
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LAFZBYO7.js";
|
|
62
62
|
import {
|
|
63
63
|
mainnet,
|
|
64
64
|
sepolia
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-Z77SMULX.js";
|
|
66
66
|
import {
|
|
67
67
|
Connector
|
|
68
68
|
} from "./chunk-BVC4KGLQ.js";
|
package/dist/internal/index.js
CHANGED
package/dist/internal/test.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-KX4UEHS5.js";
|
|
2
|
-
import "../chunk-
|
|
2
|
+
import "../chunk-LAFZBYO7.js";
|
|
3
3
|
import {
|
|
4
4
|
foundry,
|
|
5
5
|
goerli,
|
|
6
6
|
mainnet,
|
|
7
7
|
optimism,
|
|
8
8
|
polygon
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-Z77SMULX.js";
|
|
10
10
|
import "../chunk-BVC4KGLQ.js";
|
|
11
11
|
import "../chunk-EQOEZP46.js";
|
|
12
12
|
import "../chunk-KFW652VN.js";
|
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.2.
|
|
5
|
+
"version": "1.2.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wagmi-dev/wagmi.git",
|
|
@@ -123,8 +123,8 @@
|
|
|
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.
|
|
126
|
+
"@wagmi/chains": "1.2.0",
|
|
127
|
+
"@wagmi/connectors": "2.3.0"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"viem": "^1.0.0"
|