@wagmi/core 1.1.1 → 1.2.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/dist/index.d.ts +8 -8
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import { Mutate, StoreApi } from 'zustand/vanilla';
|
|
|
5
5
|
import { Connector, ConnectorData } from '@wagmi/connectors';
|
|
6
6
|
export { Connector, ConnectorData, ConnectorEvents, ConnectorNotFoundError, WindowProvider } from '@wagmi/connectors';
|
|
7
7
|
import { P as PublicClient, W as WebSocketPublicClient, U as Unit, a as WalletClient, H as Hash, C as ChainProviderFn } from './index-fc9ab085.js';
|
|
8
|
-
import { Address,
|
|
9
|
-
export { Address } from '
|
|
10
|
-
import {
|
|
8
|
+
import { Address, SignMessageReturnType, SignTypedDataParameters, Account, SignTypedDataReturnType, SimulateContractParameters, SimulateContractReturnType, GetContractParameters, Transport, Chain as Chain$1, PublicClient as PublicClient$1, GetContractReturnType, ContractFunctionConfig, MulticallParameters, MulticallReturnType, ReadContractParameters, ReadContractReturnType, MulticallContracts, WatchContractEventParameters, WriteContractParameters, WriteContractReturnType, GetEnsResolverReturnType, Hex, GetTransactionReturnType, SendTransactionParameters, SendTransactionReturnType, WaitForTransactionReceiptParameters, WaitForTransactionReceiptReturnType, WatchPendingTransactionsParameters, OnTransactionsParameter, FallbackTransportConfig, PublicClientConfig, FallbackTransport } from 'viem';
|
|
9
|
+
export { Address } from 'viem';
|
|
10
|
+
import { TypedData, Abi, Narrow, ExtractAbiFunctionNames } from 'abitype';
|
|
11
11
|
import { GetEnsAvatarReturnType } from 'viem/ens';
|
|
12
12
|
export { InjectedConnector, InjectedConnectorOptions } from '@wagmi/connectors/injected';
|
|
13
13
|
|
|
@@ -140,10 +140,10 @@ type FetchBalanceArgs = {
|
|
|
140
140
|
token?: Address;
|
|
141
141
|
};
|
|
142
142
|
type FetchBalanceResult = {
|
|
143
|
-
decimals:
|
|
143
|
+
decimals: number;
|
|
144
144
|
formatted: string;
|
|
145
145
|
symbol: string;
|
|
146
|
-
value:
|
|
146
|
+
value: bigint;
|
|
147
147
|
};
|
|
148
148
|
declare function fetchBalance({ address, chainId, formatUnits: unit, token, }: FetchBalanceArgs): Promise<FetchBalanceResult>;
|
|
149
149
|
|
|
@@ -240,12 +240,12 @@ type FetchTokenArgs = {
|
|
|
240
240
|
};
|
|
241
241
|
type FetchTokenResult = {
|
|
242
242
|
address: Address;
|
|
243
|
-
decimals:
|
|
243
|
+
decimals: number;
|
|
244
244
|
name: string;
|
|
245
245
|
symbol: string;
|
|
246
246
|
totalSupply: {
|
|
247
247
|
formatted: string;
|
|
248
|
-
value:
|
|
248
|
+
value: bigint;
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
declare function fetchToken({ address, chainId, formatUnits: unit, }: FetchTokenArgs): Promise<FetchTokenResult>;
|
|
@@ -522,7 +522,7 @@ type PrepareSendTransactionArgs<TWalletClient extends WalletClient = WalletClien
|
|
|
522
522
|
};
|
|
523
523
|
type PrepareSendTransactionResult = Omit<SendTransactionArgs, 'mode' | 'to'> & {
|
|
524
524
|
mode: 'prepared';
|
|
525
|
-
to: Address
|
|
525
|
+
to: Address;
|
|
526
526
|
};
|
|
527
527
|
/**
|
|
528
528
|
* @description Prepares the parameters required for sending a transaction.
|
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.
|
|
5
|
+
"version": "1.2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wagmi-dev/wagmi.git",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"eventemitter3": "^4.0.7",
|
|
125
125
|
"zustand": "^4.3.1",
|
|
126
126
|
"@wagmi/chains": "1.1.0",
|
|
127
|
-
"@wagmi/connectors": "2.
|
|
127
|
+
"@wagmi/connectors": "2.2.0"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"viem": "^1.0.0"
|