@wagmi/core 1.0.5 → 1.0.6
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.
|
@@ -2143,6 +2143,7 @@ async function multicall({
|
|
|
2143
2143
|
// src/actions/contracts/readContract.ts
|
|
2144
2144
|
async function readContract({
|
|
2145
2145
|
address,
|
|
2146
|
+
account,
|
|
2146
2147
|
chainId,
|
|
2147
2148
|
abi,
|
|
2148
2149
|
args,
|
|
@@ -2154,6 +2155,7 @@ async function readContract({
|
|
|
2154
2155
|
return publicClient.readContract({
|
|
2155
2156
|
abi,
|
|
2156
2157
|
address,
|
|
2158
|
+
account,
|
|
2157
2159
|
functionName,
|
|
2158
2160
|
args,
|
|
2159
2161
|
blockNumber,
|
package/dist/index.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ type ReadContractConfig<TAbi extends Abi | readonly unknown[] = Abi, TFunctionNa
|
|
|
298
298
|
chainId?: number;
|
|
299
299
|
};
|
|
300
300
|
type ReadContractResult<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = ReadContractReturnType<TAbi, TFunctionName>;
|
|
301
|
-
declare function readContract<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ address, chainId, abi, args, functionName, blockNumber, blockTag, }: ReadContractConfig<TAbi, TFunctionName>): Promise<ReadContractResult<TAbi, TFunctionName>>;
|
|
301
|
+
declare function readContract<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ address, account, chainId, abi, args, functionName, blockNumber, blockTag, }: ReadContractConfig<TAbi, TFunctionName>): Promise<ReadContractResult<TAbi, TFunctionName>>;
|
|
302
302
|
|
|
303
303
|
type ReadContractsConfig<TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true> = Omit<MulticallConfig<TContracts, TAllowFailure>, 'contracts' | 'chainId'> & {
|
|
304
304
|
/** Contracts to query */
|
package/dist/index.js
CHANGED
package/dist/internal/index.js
CHANGED
package/dist/internal/test.js
CHANGED
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.0.
|
|
5
|
+
"version": "1.0.6",
|
|
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": "~0.3.
|
|
114
|
+
"viem": "~0.3.35",
|
|
115
115
|
"typescript": ">=4.9.4"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
"abitype": "0.8.1",
|
|
124
124
|
"eventemitter3": "^4.0.7",
|
|
125
125
|
"zustand": "^4.3.1",
|
|
126
|
-
"@wagmi/chains": "0.2.
|
|
127
|
-
"@wagmi/connectors": "1.0.
|
|
126
|
+
"@wagmi/chains": "0.2.25",
|
|
127
|
+
"@wagmi/connectors": "1.0.5"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"viem": "~0.3.
|
|
130
|
+
"viem": "~0.3.35"
|
|
131
131
|
},
|
|
132
132
|
"keywords": [
|
|
133
133
|
"eth",
|