wagmi 0.7.13 → 0.7.14
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/declarations/src/hooks/contracts/useContractInfiniteReads.d.ts +1 -1
- package/dist/declarations/src/hooks/contracts/useContractRead.d.ts +1 -1
- package/dist/declarations/src/hooks/contracts/useContractReads.d.ts +1 -1
- package/dist/declarations/src/hooks/utils/query/useBaseQuery.d.ts +4 -0
- package/dist/declarations/src/types/index.d.ts +2 -2
- package/dist/wagmi.cjs.dev.js +19 -14
- package/dist/wagmi.cjs.prod.js +19 -14
- package/dist/wagmi.esm.js +19 -14
- package/package.json +4 -4
|
@@ -15,7 +15,7 @@ export declare type UseContractInfiniteReadsConfig<TContracts extends unknown[]
|
|
|
15
15
|
export declare function useContractInfiniteReads<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TContracts extends {
|
|
16
16
|
abi: TAbi;
|
|
17
17
|
functionName: TFunctionName;
|
|
18
|
-
}[], TPageParam = any>({ allowFailure, cacheKey, cacheTime, contracts, enabled: enabled_, getNextPageParam, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, overrides, scopeKey, select, staleTime, suspense, }: UseContractInfiniteReadsConfig<TContracts, TPageParam>): UseInfiniteQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
18
|
+
}[], TPageParam = any>({ allowFailure, cacheKey, cacheTime, contracts, enabled: enabled_, getNextPageParam, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, overrides, scopeKey, select, staleTime, structuralSharing, suspense, }: UseContractInfiniteReadsConfig<TContracts, TPageParam>): UseInfiniteQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
19
19
|
export declare function paginatedIndexesConfig<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TContracts extends {
|
|
20
20
|
abi: TAbi;
|
|
21
21
|
functionName: TFunctionName;
|
|
@@ -12,7 +12,7 @@ export declare type UseContractReadConfig<TAbi = Abi, TFunctionName = string> =
|
|
|
12
12
|
/** Subscribe to changes */
|
|
13
13
|
watch?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare function useContractRead<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, address,
|
|
15
|
+
export declare function useContractRead<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, address, args, cacheOnBlock, cacheTime, chainId: chainId_, enabled: enabled_, functionName, isDataEqual, onError, onSettled, onSuccess, overrides, scopeKey, select, staleTime, structuralSharing, suspense, watch, }?: UseContractReadConfig<TAbi, TFunctionName>): import("../utils").UseQueryResult<import("@wagmi/core/internal").GetReturnType<{
|
|
16
16
|
abi: TAbi;
|
|
17
17
|
functionName: TFunctionName;
|
|
18
18
|
}>, Error>;
|
|
@@ -17,4 +17,4 @@ export declare type UseContractReadsConfig<TContracts extends unknown[]> = ReadC
|
|
|
17
17
|
export declare function useContractReads<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TContracts extends {
|
|
18
18
|
abi: TAbi;
|
|
19
19
|
functionName: TFunctionName;
|
|
20
|
-
}[]>({ allowFailure, cacheOnBlock, cacheTime,
|
|
20
|
+
}[]>({ allowFailure, cacheOnBlock, cacheTime, contracts, enabled: enabled_, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, overrides, scopeKey, select, staleTime, structuralSharing, suspense, watch, }?: UseContractReadsConfig<TContracts>): UseQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
@@ -14,6 +14,7 @@ export declare function useBaseQuery<TQueryFnData, TError = unknown, TData = TQu
|
|
|
14
14
|
readonly dataUpdatedAt: number;
|
|
15
15
|
readonly errorUpdatedAt: number;
|
|
16
16
|
readonly failureCount: number;
|
|
17
|
+
readonly failureReason: TError | null;
|
|
17
18
|
readonly errorUpdateCount: number;
|
|
18
19
|
readonly isFetched: boolean;
|
|
19
20
|
readonly isFetchedAfterMount: boolean;
|
|
@@ -42,6 +43,7 @@ export declare function useBaseQuery<TQueryFnData, TError = unknown, TData = TQu
|
|
|
42
43
|
readonly dataUpdatedAt: number;
|
|
43
44
|
readonly errorUpdatedAt: number;
|
|
44
45
|
readonly failureCount: number;
|
|
46
|
+
readonly failureReason: TError | null;
|
|
45
47
|
readonly errorUpdateCount: number;
|
|
46
48
|
readonly isFetched: boolean;
|
|
47
49
|
readonly isFetchedAfterMount: boolean;
|
|
@@ -70,6 +72,7 @@ export declare function useBaseQuery<TQueryFnData, TError = unknown, TData = TQu
|
|
|
70
72
|
readonly dataUpdatedAt: number;
|
|
71
73
|
readonly errorUpdatedAt: number;
|
|
72
74
|
readonly failureCount: number;
|
|
75
|
+
readonly failureReason: TError | null;
|
|
73
76
|
readonly errorUpdateCount: number;
|
|
74
77
|
readonly isFetched: boolean;
|
|
75
78
|
readonly isFetchedAfterMount: boolean;
|
|
@@ -98,6 +101,7 @@ export declare function useBaseQuery<TQueryFnData, TError = unknown, TData = TQu
|
|
|
98
101
|
readonly dataUpdatedAt: number;
|
|
99
102
|
readonly errorUpdatedAt: number;
|
|
100
103
|
readonly failureCount: number;
|
|
104
|
+
readonly failureReason: TError | null;
|
|
101
105
|
readonly errorUpdateCount: number;
|
|
102
106
|
readonly isFetched: boolean;
|
|
103
107
|
readonly isFetchedAfterMount: boolean;
|
|
@@ -20,11 +20,11 @@ declare module 'ethers/lib/utils' {
|
|
|
20
20
|
} | ResolvedConfig['BytesType'] | string): string;
|
|
21
21
|
}
|
|
22
22
|
export declare type QueryFunctionArgs<T extends (...args: any) => any> = QueryFunctionContext<ReturnType<T>>;
|
|
23
|
-
export declare type QueryConfig<Data, Error> = Pick<UseQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'isDataEqual' | 'keepPreviousData' | 'staleTime' | '
|
|
23
|
+
export declare type QueryConfig<Data, Error> = Pick<UseQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'isDataEqual' | 'keepPreviousData' | 'select' | 'staleTime' | 'structuralSharing' | 'suspense' | 'onError' | 'onSettled' | 'onSuccess'> & {
|
|
24
24
|
/** Scope the cache to a given context. */
|
|
25
25
|
scopeKey?: string;
|
|
26
26
|
};
|
|
27
|
-
export declare type InfiniteQueryConfig<Data, Error> = Pick<UseInfiniteQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'getNextPageParam' | 'isDataEqual' | 'keepPreviousData' | 'select' | 'staleTime' | 'suspense' | 'onError' | 'onSettled' | 'onSuccess'> & {
|
|
27
|
+
export declare type InfiniteQueryConfig<Data, Error> = Pick<UseInfiniteQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'getNextPageParam' | 'isDataEqual' | 'keepPreviousData' | 'select' | 'staleTime' | 'structuralSharing' | 'suspense' | 'onError' | 'onSettled' | 'onSuccess'> & {
|
|
28
28
|
/** Scope the cache to a given context. */
|
|
29
29
|
scopeKey?: string;
|
|
30
30
|
};
|
package/dist/wagmi.cjs.dev.js
CHANGED
|
@@ -675,7 +675,7 @@ const isPlainObject = obj => typeof obj === 'object' && !Array.isArray(obj);
|
|
|
675
675
|
|
|
676
676
|
function useSyncExternalStoreWithTracked(subscribe, getSnapshot) {
|
|
677
677
|
let getServerSnapshot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getSnapshot;
|
|
678
|
-
let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
678
|
+
let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : core.deepEqual;
|
|
679
679
|
const trackedKeys = React__namespace.useRef([]);
|
|
680
680
|
const result = withSelector_js.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, x => x, (a, b) => {
|
|
681
681
|
if (isPlainObject(a) && isPlainObject(b)) {
|
|
@@ -1354,7 +1354,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1354
1354
|
contracts,
|
|
1355
1355
|
enabled: enabled_ = true,
|
|
1356
1356
|
getNextPageParam,
|
|
1357
|
-
isDataEqual
|
|
1357
|
+
isDataEqual,
|
|
1358
1358
|
keepPreviousData,
|
|
1359
1359
|
onError,
|
|
1360
1360
|
onSettled,
|
|
@@ -1363,6 +1363,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1363
1363
|
scopeKey,
|
|
1364
1364
|
select,
|
|
1365
1365
|
staleTime,
|
|
1366
|
+
structuralSharing,
|
|
1366
1367
|
suspense
|
|
1367
1368
|
} = _ref4;
|
|
1368
1369
|
const queryKey_ = React__namespace.useMemo(() => queryKey$b({
|
|
@@ -1385,6 +1386,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1385
1386
|
keepPreviousData,
|
|
1386
1387
|
select,
|
|
1387
1388
|
staleTime,
|
|
1389
|
+
structuralSharing,
|
|
1388
1390
|
suspense,
|
|
1389
1391
|
onError,
|
|
1390
1392
|
onSettled,
|
|
@@ -1470,22 +1472,23 @@ function useContractRead() {
|
|
|
1470
1472
|
let {
|
|
1471
1473
|
abi,
|
|
1472
1474
|
address,
|
|
1473
|
-
functionName,
|
|
1474
1475
|
args,
|
|
1475
|
-
chainId: chainId_,
|
|
1476
|
-
overrides,
|
|
1477
1476
|
cacheOnBlock = false,
|
|
1478
1477
|
cacheTime,
|
|
1478
|
+
chainId: chainId_,
|
|
1479
1479
|
enabled: enabled_ = true,
|
|
1480
|
-
|
|
1480
|
+
functionName,
|
|
1481
|
+
isDataEqual,
|
|
1482
|
+
onError,
|
|
1483
|
+
onSettled,
|
|
1484
|
+
onSuccess,
|
|
1485
|
+
overrides,
|
|
1481
1486
|
scopeKey,
|
|
1482
1487
|
select,
|
|
1483
1488
|
staleTime,
|
|
1489
|
+
structuralSharing,
|
|
1484
1490
|
suspense,
|
|
1485
|
-
watch
|
|
1486
|
-
onError,
|
|
1487
|
-
onSettled,
|
|
1488
|
-
onSuccess
|
|
1491
|
+
watch
|
|
1489
1492
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1490
1493
|
const chainId = useChainId({
|
|
1491
1494
|
chainId: chainId_
|
|
@@ -1535,6 +1538,7 @@ function useContractRead() {
|
|
|
1535
1538
|
},
|
|
1536
1539
|
|
|
1537
1540
|
staleTime,
|
|
1541
|
+
structuralSharing,
|
|
1538
1542
|
suspense,
|
|
1539
1543
|
onError,
|
|
1540
1544
|
onSettled,
|
|
@@ -1603,17 +1607,18 @@ function useContractReads() {
|
|
|
1603
1607
|
allowFailure = true,
|
|
1604
1608
|
cacheOnBlock = false,
|
|
1605
1609
|
cacheTime,
|
|
1606
|
-
scopeKey,
|
|
1607
1610
|
contracts,
|
|
1608
|
-
overrides,
|
|
1609
1611
|
enabled: enabled_ = true,
|
|
1610
|
-
isDataEqual
|
|
1612
|
+
isDataEqual,
|
|
1611
1613
|
keepPreviousData,
|
|
1612
1614
|
onError,
|
|
1613
1615
|
onSettled,
|
|
1614
1616
|
onSuccess,
|
|
1617
|
+
overrides,
|
|
1618
|
+
scopeKey,
|
|
1615
1619
|
select,
|
|
1616
1620
|
staleTime,
|
|
1621
|
+
structuralSharing,
|
|
1617
1622
|
suspense,
|
|
1618
1623
|
watch
|
|
1619
1624
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -1671,6 +1676,7 @@ function useContractReads() {
|
|
|
1671
1676
|
return select ? select(result) : result;
|
|
1672
1677
|
},
|
|
1673
1678
|
|
|
1679
|
+
structuralSharing,
|
|
1674
1680
|
suspense,
|
|
1675
1681
|
onError,
|
|
1676
1682
|
onSettled,
|
|
@@ -2365,7 +2371,6 @@ function usePrepareSendTransaction() {
|
|
|
2365
2371
|
}), {
|
|
2366
2372
|
cacheTime,
|
|
2367
2373
|
enabled: Boolean(enabled && signer && request && request.to),
|
|
2368
|
-
isDataEqual: core.deepEqual,
|
|
2369
2374
|
staleTime,
|
|
2370
2375
|
suspense,
|
|
2371
2376
|
onError,
|
package/dist/wagmi.cjs.prod.js
CHANGED
|
@@ -675,7 +675,7 @@ const isPlainObject = obj => typeof obj === 'object' && !Array.isArray(obj);
|
|
|
675
675
|
|
|
676
676
|
function useSyncExternalStoreWithTracked(subscribe, getSnapshot) {
|
|
677
677
|
let getServerSnapshot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getSnapshot;
|
|
678
|
-
let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
678
|
+
let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : core.deepEqual;
|
|
679
679
|
const trackedKeys = React__namespace.useRef([]);
|
|
680
680
|
const result = withSelector_js.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, x => x, (a, b) => {
|
|
681
681
|
if (isPlainObject(a) && isPlainObject(b)) {
|
|
@@ -1354,7 +1354,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1354
1354
|
contracts,
|
|
1355
1355
|
enabled: enabled_ = true,
|
|
1356
1356
|
getNextPageParam,
|
|
1357
|
-
isDataEqual
|
|
1357
|
+
isDataEqual,
|
|
1358
1358
|
keepPreviousData,
|
|
1359
1359
|
onError,
|
|
1360
1360
|
onSettled,
|
|
@@ -1363,6 +1363,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1363
1363
|
scopeKey,
|
|
1364
1364
|
select,
|
|
1365
1365
|
staleTime,
|
|
1366
|
+
structuralSharing,
|
|
1366
1367
|
suspense
|
|
1367
1368
|
} = _ref4;
|
|
1368
1369
|
const queryKey_ = React__namespace.useMemo(() => queryKey$b({
|
|
@@ -1385,6 +1386,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1385
1386
|
keepPreviousData,
|
|
1386
1387
|
select,
|
|
1387
1388
|
staleTime,
|
|
1389
|
+
structuralSharing,
|
|
1388
1390
|
suspense,
|
|
1389
1391
|
onError,
|
|
1390
1392
|
onSettled,
|
|
@@ -1470,22 +1472,23 @@ function useContractRead() {
|
|
|
1470
1472
|
let {
|
|
1471
1473
|
abi,
|
|
1472
1474
|
address,
|
|
1473
|
-
functionName,
|
|
1474
1475
|
args,
|
|
1475
|
-
chainId: chainId_,
|
|
1476
|
-
overrides,
|
|
1477
1476
|
cacheOnBlock = false,
|
|
1478
1477
|
cacheTime,
|
|
1478
|
+
chainId: chainId_,
|
|
1479
1479
|
enabled: enabled_ = true,
|
|
1480
|
-
|
|
1480
|
+
functionName,
|
|
1481
|
+
isDataEqual,
|
|
1482
|
+
onError,
|
|
1483
|
+
onSettled,
|
|
1484
|
+
onSuccess,
|
|
1485
|
+
overrides,
|
|
1481
1486
|
scopeKey,
|
|
1482
1487
|
select,
|
|
1483
1488
|
staleTime,
|
|
1489
|
+
structuralSharing,
|
|
1484
1490
|
suspense,
|
|
1485
|
-
watch
|
|
1486
|
-
onError,
|
|
1487
|
-
onSettled,
|
|
1488
|
-
onSuccess
|
|
1491
|
+
watch
|
|
1489
1492
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1490
1493
|
const chainId = useChainId({
|
|
1491
1494
|
chainId: chainId_
|
|
@@ -1535,6 +1538,7 @@ function useContractRead() {
|
|
|
1535
1538
|
},
|
|
1536
1539
|
|
|
1537
1540
|
staleTime,
|
|
1541
|
+
structuralSharing,
|
|
1538
1542
|
suspense,
|
|
1539
1543
|
onError,
|
|
1540
1544
|
onSettled,
|
|
@@ -1603,17 +1607,18 @@ function useContractReads() {
|
|
|
1603
1607
|
allowFailure = true,
|
|
1604
1608
|
cacheOnBlock = false,
|
|
1605
1609
|
cacheTime,
|
|
1606
|
-
scopeKey,
|
|
1607
1610
|
contracts,
|
|
1608
|
-
overrides,
|
|
1609
1611
|
enabled: enabled_ = true,
|
|
1610
|
-
isDataEqual
|
|
1612
|
+
isDataEqual,
|
|
1611
1613
|
keepPreviousData,
|
|
1612
1614
|
onError,
|
|
1613
1615
|
onSettled,
|
|
1614
1616
|
onSuccess,
|
|
1617
|
+
overrides,
|
|
1618
|
+
scopeKey,
|
|
1615
1619
|
select,
|
|
1616
1620
|
staleTime,
|
|
1621
|
+
structuralSharing,
|
|
1617
1622
|
suspense,
|
|
1618
1623
|
watch
|
|
1619
1624
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -1671,6 +1676,7 @@ function useContractReads() {
|
|
|
1671
1676
|
return select ? select(result) : result;
|
|
1672
1677
|
},
|
|
1673
1678
|
|
|
1679
|
+
structuralSharing,
|
|
1674
1680
|
suspense,
|
|
1675
1681
|
onError,
|
|
1676
1682
|
onSettled,
|
|
@@ -2365,7 +2371,6 @@ function usePrepareSendTransaction() {
|
|
|
2365
2371
|
}), {
|
|
2366
2372
|
cacheTime,
|
|
2367
2373
|
enabled: Boolean(enabled && signer && request && request.to),
|
|
2368
|
-
isDataEqual: core.deepEqual,
|
|
2369
2374
|
staleTime,
|
|
2370
2375
|
suspense,
|
|
2371
2376
|
onError,
|
package/dist/wagmi.esm.js
CHANGED
|
@@ -651,7 +651,7 @@ const isPlainObject = obj => typeof obj === 'object' && !Array.isArray(obj);
|
|
|
651
651
|
|
|
652
652
|
function useSyncExternalStoreWithTracked(subscribe, getSnapshot) {
|
|
653
653
|
let getServerSnapshot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getSnapshot;
|
|
654
|
-
let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
654
|
+
let isEqual = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : deepEqual;
|
|
655
655
|
const trackedKeys = React.useRef([]);
|
|
656
656
|
const result = useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, x => x, (a, b) => {
|
|
657
657
|
if (isPlainObject(a) && isPlainObject(b)) {
|
|
@@ -1330,7 +1330,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1330
1330
|
contracts,
|
|
1331
1331
|
enabled: enabled_ = true,
|
|
1332
1332
|
getNextPageParam,
|
|
1333
|
-
isDataEqual
|
|
1333
|
+
isDataEqual,
|
|
1334
1334
|
keepPreviousData,
|
|
1335
1335
|
onError,
|
|
1336
1336
|
onSettled,
|
|
@@ -1339,6 +1339,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1339
1339
|
scopeKey,
|
|
1340
1340
|
select,
|
|
1341
1341
|
staleTime,
|
|
1342
|
+
structuralSharing,
|
|
1342
1343
|
suspense
|
|
1343
1344
|
} = _ref4;
|
|
1344
1345
|
const queryKey_ = React.useMemo(() => queryKey$b({
|
|
@@ -1361,6 +1362,7 @@ function useContractInfiniteReads(_ref4) {
|
|
|
1361
1362
|
keepPreviousData,
|
|
1362
1363
|
select,
|
|
1363
1364
|
staleTime,
|
|
1365
|
+
structuralSharing,
|
|
1364
1366
|
suspense,
|
|
1365
1367
|
onError,
|
|
1366
1368
|
onSettled,
|
|
@@ -1446,22 +1448,23 @@ function useContractRead() {
|
|
|
1446
1448
|
let {
|
|
1447
1449
|
abi,
|
|
1448
1450
|
address,
|
|
1449
|
-
functionName,
|
|
1450
1451
|
args,
|
|
1451
|
-
chainId: chainId_,
|
|
1452
|
-
overrides,
|
|
1453
1452
|
cacheOnBlock = false,
|
|
1454
1453
|
cacheTime,
|
|
1454
|
+
chainId: chainId_,
|
|
1455
1455
|
enabled: enabled_ = true,
|
|
1456
|
-
|
|
1456
|
+
functionName,
|
|
1457
|
+
isDataEqual,
|
|
1458
|
+
onError,
|
|
1459
|
+
onSettled,
|
|
1460
|
+
onSuccess,
|
|
1461
|
+
overrides,
|
|
1457
1462
|
scopeKey,
|
|
1458
1463
|
select,
|
|
1459
1464
|
staleTime,
|
|
1465
|
+
structuralSharing,
|
|
1460
1466
|
suspense,
|
|
1461
|
-
watch
|
|
1462
|
-
onError,
|
|
1463
|
-
onSettled,
|
|
1464
|
-
onSuccess
|
|
1467
|
+
watch
|
|
1465
1468
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1466
1469
|
const chainId = useChainId({
|
|
1467
1470
|
chainId: chainId_
|
|
@@ -1511,6 +1514,7 @@ function useContractRead() {
|
|
|
1511
1514
|
},
|
|
1512
1515
|
|
|
1513
1516
|
staleTime,
|
|
1517
|
+
structuralSharing,
|
|
1514
1518
|
suspense,
|
|
1515
1519
|
onError,
|
|
1516
1520
|
onSettled,
|
|
@@ -1579,17 +1583,18 @@ function useContractReads() {
|
|
|
1579
1583
|
allowFailure = true,
|
|
1580
1584
|
cacheOnBlock = false,
|
|
1581
1585
|
cacheTime,
|
|
1582
|
-
scopeKey,
|
|
1583
1586
|
contracts,
|
|
1584
|
-
overrides,
|
|
1585
1587
|
enabled: enabled_ = true,
|
|
1586
|
-
isDataEqual
|
|
1588
|
+
isDataEqual,
|
|
1587
1589
|
keepPreviousData,
|
|
1588
1590
|
onError,
|
|
1589
1591
|
onSettled,
|
|
1590
1592
|
onSuccess,
|
|
1593
|
+
overrides,
|
|
1594
|
+
scopeKey,
|
|
1591
1595
|
select,
|
|
1592
1596
|
staleTime,
|
|
1597
|
+
structuralSharing,
|
|
1593
1598
|
suspense,
|
|
1594
1599
|
watch
|
|
1595
1600
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -1647,6 +1652,7 @@ function useContractReads() {
|
|
|
1647
1652
|
return select ? select(result) : result;
|
|
1648
1653
|
},
|
|
1649
1654
|
|
|
1655
|
+
structuralSharing,
|
|
1650
1656
|
suspense,
|
|
1651
1657
|
onError,
|
|
1652
1658
|
onSettled,
|
|
@@ -2341,7 +2347,6 @@ function usePrepareSendTransaction() {
|
|
|
2341
2347
|
}), {
|
|
2342
2348
|
cacheTime,
|
|
2343
2349
|
enabled: Boolean(enabled && signer && request && request.to),
|
|
2344
|
-
isDataEqual: deepEqual,
|
|
2345
2350
|
staleTime,
|
|
2346
2351
|
suspense,
|
|
2347
2352
|
onError,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "wagmi",
|
|
3
3
|
"description": "React Hooks for Ethereum",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.14",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wagmi-dev/wagmi.git",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@coinbase/wallet-sdk": "^3.5.3",
|
|
108
|
-
"@tanstack/query-sync-storage-persister": "^4.
|
|
109
|
-
"@tanstack/react-query": "^4.
|
|
110
|
-
"@tanstack/react-query-persist-client": "^4.
|
|
108
|
+
"@tanstack/query-sync-storage-persister": "^4.14.5",
|
|
109
|
+
"@tanstack/react-query": "^4.14.5",
|
|
110
|
+
"@tanstack/react-query-persist-client": "^4.14.5",
|
|
111
111
|
"@wagmi/core": "^0.6.12",
|
|
112
112
|
"@walletconnect/ethereum-provider": "^1.8.0",
|
|
113
113
|
"abitype": "^0.1.7",
|