viem 0.0.1-alpha.26 → 0.0.1-alpha.28
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/chain-4d46a747.d.ts +543 -0
- package/dist/{chain-b0cfb141.d.ts → chain-c7c44165.d.ts} +1 -1
- package/dist/chains.d.ts +5 -3
- package/dist/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/chunk-67DKKHAV.js +210 -0
- package/dist/chunk-67DKKHAV.js.map +1 -0
- package/dist/{chunk-LINNE4N4.js → chunk-7GQB4KE5.js} +219 -157
- package/dist/chunk-7GQB4KE5.js.map +1 -0
- package/dist/chunk-FPEKYEVU.js +265 -0
- package/dist/chunk-FPEKYEVU.js.map +1 -0
- package/dist/chunk-GRILGOX5.mjs +210 -0
- package/dist/chunk-GRILGOX5.mjs.map +1 -0
- package/dist/{chunk-YTG4YXMB.js → chunk-JJ4FDDDW.js} +16 -16
- package/dist/chunk-JJ4FDDDW.js.map +1 -0
- package/dist/chunk-NKO23GXR.mjs +265 -0
- package/dist/chunk-NKO23GXR.mjs.map +1 -0
- package/dist/{chunk-DSQO3E4F.js → chunk-NYWN5V47.js} +219 -59
- package/dist/chunk-NYWN5V47.js.map +1 -0
- package/dist/{chunk-BSAB6UH4.mjs → chunk-PVBEFQET.mjs} +7 -7
- package/dist/chunk-PVBEFQET.mjs.map +1 -0
- package/dist/{chunk-QSIX64VZ.mjs → chunk-RCJJFKTU.mjs} +164 -102
- package/dist/chunk-RCJJFKTU.mjs.map +1 -0
- package/dist/{chunk-PRG3BBPZ.mjs → chunk-TDOKFOQ5.mjs} +223 -63
- package/dist/chunk-TDOKFOQ5.mjs.map +1 -0
- package/dist/contract.d.ts +12 -128
- package/dist/contract.js +6 -4
- package/dist/contract.mjs +5 -3
- package/dist/{createClient-6689596e.d.ts → createClient-5d5c14d6.d.ts} +5 -3
- package/dist/createPublicClient-2b4afeac.d.ts +629 -0
- package/dist/{eip1193-617a05ae.d.ts → eip1193-f09a55af.d.ts} +2 -2
- package/dist/ens.d.ts +10 -68
- package/dist/ens.js +5 -199
- package/dist/ens.js.map +1 -1
- package/dist/ens.mjs +7 -201
- package/dist/ens.mjs.map +1 -1
- package/dist/formatAbiItem-d231fef2.d.ts +14 -0
- package/dist/{getAbiItem-d2e8bd76.d.ts → getAbiItem-0e085959.d.ts} +15 -15
- package/dist/index.d.ts +21 -12
- package/dist/index.js +368 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +358 -16
- package/dist/index.mjs.map +1 -1
- package/dist/namehash-88f4639d.d.ts +22 -0
- package/dist/parseGwei-07adffee.d.ts +344 -0
- package/dist/public.d.ts +11 -334
- package/dist/public.js +5 -3
- package/dist/public.mjs +4 -2
- package/dist/test-b9208949.d.ts +213 -0
- package/dist/test.d.ts +8 -149
- package/dist/test.js +20 -222
- package/dist/test.js.map +1 -1
- package/dist/test.mjs +30 -232
- package/dist/test.mjs.map +1 -1
- package/dist/{transactionReceipt-44dbf122.d.ts → transactionReceipt-84fc92e1.d.ts} +1 -1
- package/dist/{transactionRequest-f437b4ba.d.ts → transactionRequest-44c539b4.d.ts} +1 -1
- package/dist/utils/index.d.ts +12 -238
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +13 -13
- package/dist/wallet-9b1c6905.d.ts +104 -0
- package/dist/wallet.d.ts +7 -41
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/dist/window.d.ts +4 -2
- package/package.json +1 -2
- package/dist/call-3476b8ee.d.ts +0 -22
- package/dist/chain-42de87e5.d.ts +0 -359
- package/dist/chunk-BSAB6UH4.mjs.map +0 -1
- package/dist/chunk-DSQO3E4F.js.map +0 -1
- package/dist/chunk-LINNE4N4.js.map +0 -1
- package/dist/chunk-PRG3BBPZ.mjs.map +0 -1
- package/dist/chunk-QSIX64VZ.mjs.map +0 -1
- package/dist/chunk-YTG4YXMB.js.map +0 -1
- package/dist/contract-9dd2f98b.d.ts +0 -166
- package/dist/createPublicClient-fd558574.d.ts +0 -19
- package/dist/createTestClient-bc1d9028.d.ts +0 -34
- package/dist/createWalletClient-4df88244.d.ts +0 -30
- package/dist/decodeErrorResult-ac835649.d.ts +0 -16
- package/dist/readContract-c460f23a.d.ts +0 -10
- package/dist/rpc-8c10fc98.d.ts +0 -119
- package/dist/sendTransaction-7ce442c0.d.ts +0 -12
- package/dist/watchEvent-569c9976.d.ts +0 -41
package/dist/utils/index.mjs
CHANGED
@@ -8,13 +8,10 @@ import {
|
|
8
8
|
bytesToNumber,
|
9
9
|
bytesToString,
|
10
10
|
decodeAbi,
|
11
|
-
decodeBytes,
|
12
11
|
decodeErrorResult,
|
13
12
|
decodeEventLog,
|
14
13
|
decodeFunctionData,
|
15
14
|
decodeFunctionResult,
|
16
|
-
decodeHex,
|
17
|
-
decodeRlp,
|
18
15
|
defineBlock,
|
19
16
|
defineChain,
|
20
17
|
defineFormatter,
|
@@ -22,14 +19,11 @@ import {
|
|
22
19
|
defineTransactionReceipt,
|
23
20
|
defineTransactionRequest,
|
24
21
|
encodeAbi,
|
25
|
-
encodeBytes,
|
26
22
|
encodeDeployData,
|
27
23
|
encodeErrorResult,
|
28
24
|
encodeEventTopics,
|
29
25
|
encodeFunctionData,
|
30
26
|
encodeFunctionResult,
|
31
|
-
encodeHex,
|
32
|
-
encodeRlp,
|
33
27
|
etherUnits,
|
34
28
|
extract,
|
35
29
|
extractFunctionName,
|
@@ -45,6 +39,9 @@ import {
|
|
45
39
|
formatTransaction,
|
46
40
|
formatTransactionRequest,
|
47
41
|
formatUnit,
|
42
|
+
fromBytes,
|
43
|
+
fromHex,
|
44
|
+
fromRlp,
|
48
45
|
getAbiItem,
|
49
46
|
getAddress,
|
50
47
|
getContractAddress,
|
@@ -80,10 +77,13 @@ import {
|
|
80
77
|
stringToBytes,
|
81
78
|
stringToHex,
|
82
79
|
stringify,
|
80
|
+
toBytes,
|
81
|
+
toHex,
|
82
|
+
toRlp,
|
83
83
|
transactionType,
|
84
84
|
trim,
|
85
85
|
weiUnits
|
86
|
-
} from "../chunk-
|
86
|
+
} from "../chunk-TDOKFOQ5.mjs";
|
87
87
|
export {
|
88
88
|
boolToBytes,
|
89
89
|
boolToHex,
|
@@ -94,13 +94,10 @@ export {
|
|
94
94
|
bytesToNumber,
|
95
95
|
bytesToString,
|
96
96
|
decodeAbi,
|
97
|
-
decodeBytes,
|
98
97
|
decodeErrorResult,
|
99
98
|
decodeEventLog,
|
100
99
|
decodeFunctionData,
|
101
100
|
decodeFunctionResult,
|
102
|
-
decodeHex,
|
103
|
-
decodeRlp,
|
104
101
|
defineBlock,
|
105
102
|
defineChain,
|
106
103
|
defineFormatter,
|
@@ -108,14 +105,11 @@ export {
|
|
108
105
|
defineTransactionReceipt,
|
109
106
|
defineTransactionRequest,
|
110
107
|
encodeAbi,
|
111
|
-
encodeBytes,
|
112
108
|
encodeDeployData,
|
113
109
|
encodeErrorResult,
|
114
110
|
encodeEventTopics,
|
115
111
|
encodeFunctionData,
|
116
112
|
encodeFunctionResult,
|
117
|
-
encodeHex,
|
118
|
-
encodeRlp,
|
119
113
|
etherUnits,
|
120
114
|
extract,
|
121
115
|
extractFunctionName,
|
@@ -131,6 +125,9 @@ export {
|
|
131
125
|
formatTransaction,
|
132
126
|
formatTransactionRequest,
|
133
127
|
formatUnit,
|
128
|
+
fromBytes,
|
129
|
+
fromHex,
|
130
|
+
fromRlp,
|
134
131
|
getAbiItem,
|
135
132
|
getAddress,
|
136
133
|
getContractAddress,
|
@@ -166,6 +163,9 @@ export {
|
|
166
163
|
stringToBytes,
|
167
164
|
stringToHex,
|
168
165
|
stringify,
|
166
|
+
toBytes,
|
167
|
+
toHex,
|
168
|
+
toRlp,
|
169
169
|
transactionType,
|
170
170
|
trim,
|
171
171
|
weiUnits
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { Abi, Narrow, Address } from 'abitype';
|
2
|
+
import { C as Chain, H as Hex, a3 as ExtractConstructorArgsFromAbi, W as Formatter, X as MergeIntersectionProperties, K as Formatted, u as TransactionRequest, a as Hash, A as Address$1, B as ByteArray, Y as GetValue, h as ContractConfig } from './chain-4d46a747.js';
|
3
|
+
import { W as WalletPermission, a as WatchAssetParams, S as SignableRequests, b as WalletRequests } from './eip1193-f09a55af.js';
|
4
|
+
import { a as Transport, b as ClientConfig, C as Client } from './createClient-5d5c14d6.js';
|
5
|
+
import { T as TransactionRequestFormatter } from './transactionRequest-44c539b4.js';
|
6
|
+
|
7
|
+
type AddChainArgs = {
|
8
|
+
chain: Chain;
|
9
|
+
};
|
10
|
+
declare function addChain(client: WalletClient, { chain }: AddChainArgs): Promise<void>;
|
11
|
+
|
12
|
+
type DeployContractArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi> = Omit<SendTransactionArgs<TChain>, 'accessList' | 'to' | 'data' | 'value'> & {
|
13
|
+
abi: Narrow<TAbi>;
|
14
|
+
bytecode: Hex;
|
15
|
+
} & ExtractConstructorArgsFromAbi<TAbi>;
|
16
|
+
type DeployContractResponse = SendTransactionResponse;
|
17
|
+
declare function deployContract<TChain extends Chain, TAbi extends Abi | readonly unknown[]>(walletClient: WalletClient, { abi, args, bytecode, ...request }: DeployContractArgs<TChain, TAbi>): Promise<DeployContractResponse>;
|
18
|
+
|
19
|
+
type GetAccountsResponse = Address[];
|
20
|
+
declare function getAccounts(client: WalletClient): Promise<GetAccountsResponse>;
|
21
|
+
|
22
|
+
type GetPermissionsResponse = WalletPermission[];
|
23
|
+
declare function getPermissions(client: WalletClient): Promise<WalletPermission[]>;
|
24
|
+
|
25
|
+
type RequestAccountsResponse = Address[];
|
26
|
+
declare function requestAccounts(client: WalletClient): Promise<RequestAccountsResponse>;
|
27
|
+
|
28
|
+
type RequestPermissionsArgs = {
|
29
|
+
eth_accounts: Record<string, any>;
|
30
|
+
} & {
|
31
|
+
[key: string]: Record<string, any>;
|
32
|
+
};
|
33
|
+
type RequestPermissionsResponse = WalletPermission[];
|
34
|
+
declare function requestPermissions(client: WalletClient, permissions: RequestPermissionsArgs): Promise<WalletPermission[]>;
|
35
|
+
|
36
|
+
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
37
|
+
type SendTransactionArgs<TChain extends Chain = Chain> = FormattedTransactionRequest<TransactionRequestFormatter<TChain>> & {
|
38
|
+
chain?: TChain;
|
39
|
+
};
|
40
|
+
type SendTransactionResponse = Hash;
|
41
|
+
declare function sendTransaction<TChain extends Chain>(client: WalletClient, { chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: SendTransactionArgs<TChain>): Promise<SendTransactionResponse>;
|
42
|
+
|
43
|
+
type SignMessageArgs = {
|
44
|
+
from: Address$1;
|
45
|
+
data: Hex | ByteArray;
|
46
|
+
};
|
47
|
+
type SignMessageResponse = Hex;
|
48
|
+
declare function signMessage(client: WalletClient, { from, data: data_ }: SignMessageArgs): Promise<SignMessageResponse>;
|
49
|
+
|
50
|
+
type SwitchChainArgs = {
|
51
|
+
id: Chain['id'];
|
52
|
+
};
|
53
|
+
declare function switchChain(client: WalletClient, { id }: SwitchChainArgs): Promise<void>;
|
54
|
+
|
55
|
+
type WatchAssetArgs = WatchAssetParams;
|
56
|
+
type WatchAssetResponse = boolean;
|
57
|
+
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
|
58
|
+
|
59
|
+
type WriteContractArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = Omit<SendTransactionArgs<TChain>, 'to' | 'data' | 'value'> & {
|
60
|
+
value?: GetValue<TAbi, TFunctionName, SendTransactionArgs<TChain>['value']>;
|
61
|
+
} & ContractConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'>;
|
62
|
+
type WriteContractResponse = SendTransactionResponse;
|
63
|
+
declare function writeContract<TChain extends Chain, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(client: WalletClient, { abi, address, args, functionName, ...request }: WriteContractArgs<TChain, TAbi, TFunctionName>): Promise<WriteContractResponse>;
|
64
|
+
|
65
|
+
type WalletClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain> = {
|
66
|
+
chain?: ClientConfig<TTransport, TChain>['chain'];
|
67
|
+
/** The key of the Wallet Client. */
|
68
|
+
key?: ClientConfig['key'];
|
69
|
+
/** The name of the Wallet Client. */
|
70
|
+
name?: ClientConfig['name'];
|
71
|
+
/** Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds. */
|
72
|
+
pollingInterval?: ClientConfig['pollingInterval'];
|
73
|
+
transport: ClientConfig<TTransport, TChain>['transport'];
|
74
|
+
};
|
75
|
+
type WalletClient<TTransport extends Transport = Transport, TChain extends Chain = Chain, TIncludeActions extends boolean = true> = Client<TTransport, TChain, SignableRequests & WalletRequests> & (TIncludeActions extends true ? WalletActions<TChain> : {});
|
76
|
+
/**
|
77
|
+
* @description Creates a wallet client with a given transport.
|
78
|
+
*
|
79
|
+
* - Only has access to "wallet" & "signable" EIP-1474 RPC methods
|
80
|
+
* (ie. `eth_sendTransaction`, `eth_requestAccounts`, etc).
|
81
|
+
*
|
82
|
+
* @example
|
83
|
+
* import { createWalletClient, custom } from 'viem'
|
84
|
+
* const client = createWalletClient(
|
85
|
+
* custom(window.ethereum)
|
86
|
+
* )
|
87
|
+
*/
|
88
|
+
declare function createWalletClient<TTransport extends Transport, TChain extends Chain>({ transport, key, name, pollingInterval, }: WalletClientConfig<TTransport, TChain>): WalletClient<TTransport, TChain, true>;
|
89
|
+
|
90
|
+
type WalletActions<TChain extends Chain = Chain> = {
|
91
|
+
addChain: (args: AddChainArgs) => Promise<void>;
|
92
|
+
deployContract: <TAbi extends Abi | readonly unknown[]>(args: DeployContractArgs<TChain, TAbi>) => Promise<DeployContractResponse>;
|
93
|
+
getAccounts: () => Promise<GetAccountsResponse>;
|
94
|
+
getPermissions: () => Promise<GetPermissionsResponse>;
|
95
|
+
requestAccounts: () => Promise<RequestAccountsResponse>;
|
96
|
+
requestPermissions: (args: RequestPermissionsArgs) => Promise<RequestPermissionsResponse>;
|
97
|
+
sendTransaction: (args: SendTransactionArgs<TChain>) => Promise<SendTransactionResponse>;
|
98
|
+
signMessage: (args: SignMessageArgs) => Promise<SignMessageResponse>;
|
99
|
+
switchChain: (args: SwitchChainArgs) => Promise<void>;
|
100
|
+
watchAsset: (args: WatchAssetArgs) => Promise<WatchAssetResponse>;
|
101
|
+
writeContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: WriteContractArgs<TChain, TAbi, TFunctionName>) => Promise<WriteContractResponse>;
|
102
|
+
};
|
103
|
+
|
104
|
+
export { AddChainArgs as A, DeployContractArgs as D, FormattedTransactionRequest as F, GetPermissionsResponse as G, RequestAccountsResponse as R, SendTransactionArgs as S, WalletClient as W, WalletClientConfig as a, WriteContractArgs as b, createWalletClient as c, DeployContractResponse as d, WriteContractResponse as e, deployContract as f, addChain as g, getAccounts as h, getPermissions as i, requestPermissions as j, signMessage as k, switchChain as l, watchAsset as m, GetAccountsResponse as n, RequestPermissionsResponse as o, SendTransactionResponse as p, SignMessageArgs as q, requestAccounts as r, sendTransaction as s, SignMessageResponse as t, SwitchChainArgs as u, WatchAssetArgs as v, writeContract as w, WatchAssetResponse as x };
|
package/dist/wallet.d.ts
CHANGED
@@ -1,42 +1,8 @@
|
|
1
|
-
|
2
|
-
import
|
3
|
-
import
|
4
|
-
export { F as FormattedTransactionRequest, S as SendTransactionArgs, a as SendTransactionResponse, s as sendTransaction } from './sendTransaction-7ce442c0.js';
|
1
|
+
export { A as AddChainArgs, F as FormattedTransactionRequest, n as GetAccountsResponse, G as GetPermissionsResponse, R as RequestAccountsResponse, o as RequestPermissionsResponse, S as SendTransactionArgs, p as SendTransactionResponse, q as SignMessageArgs, t as SignMessageResponse, u as SwitchChainArgs, v as WatchAssetArgs, x as WatchAssetResponse, g as addChain, h as getAccounts, i as getPermissions, r as requestAccounts, j as requestPermissions, s as sendTransaction, k as signMessage, l as switchChain, m as watchAsset } from './wallet-9b1c6905.js';
|
2
|
+
import 'abitype';
|
3
|
+
import './chain-4d46a747.js';
|
5
4
|
import '@wagmi/chains';
|
6
|
-
import '
|
7
|
-
import './
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
declare function getAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
12
|
-
|
13
|
-
type GetPermissionsResponse = WalletPermission[];
|
14
|
-
declare function getPermissions(client: WalletClient): Promise<WalletPermission[]>;
|
15
|
-
|
16
|
-
declare function requestAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
17
|
-
|
18
|
-
type RequestPermissionsArgs = {
|
19
|
-
eth_accounts: Record<string, any>;
|
20
|
-
} & {
|
21
|
-
[key: string]: Record<string, any>;
|
22
|
-
};
|
23
|
-
type RequestPermissionsResponse = WalletPermission[];
|
24
|
-
declare function requestPermissions(client: WalletClient, permissions: RequestPermissionsArgs): Promise<WalletPermission[]>;
|
25
|
-
|
26
|
-
type SignMessageArgs = {
|
27
|
-
from: Address;
|
28
|
-
data: Hex | ByteArray;
|
29
|
-
};
|
30
|
-
type SignMessageResponse = Hex;
|
31
|
-
declare function signMessage(client: WalletClient, { from, data: data_ }: SignMessageArgs): Promise<SignMessageResponse>;
|
32
|
-
|
33
|
-
type SwitchChainArgs = {
|
34
|
-
id: Chain['id'];
|
35
|
-
};
|
36
|
-
declare function switchChain(client: WalletClient, { id }: SwitchChainArgs): Promise<void>;
|
37
|
-
|
38
|
-
type WatchAssetArgs = WatchAssetParams;
|
39
|
-
type WatchAssetResponse = boolean;
|
40
|
-
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
|
41
|
-
|
42
|
-
export { GetPermissionsResponse, RequestPermissionsResponse, SignMessageArgs, SignMessageResponse, SwitchChainArgs, WatchAssetArgs, WatchAssetResponse, addChain, getAccounts, getPermissions, requestAccounts, requestPermissions, signMessage, switchChain, watchAsset };
|
5
|
+
import 'ethers@6/types/providers';
|
6
|
+
import './eip1193-f09a55af.js';
|
7
|
+
import './createClient-5d5c14d6.js';
|
8
|
+
import './transactionRequest-44c539b4.js';
|
package/dist/wallet.js
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
12
|
-
require('./chunk-
|
11
|
+
var _chunkJJ4FDDDWjs = require('./chunk-JJ4FDDDW.js');
|
12
|
+
require('./chunk-NYWN5V47.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -20,5 +20,5 @@ require('./chunk-DSQO3E4F.js');
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
exports.addChain =
|
23
|
+
exports.addChain = _chunkJJ4FDDDWjs.addChain; exports.getAccounts = _chunkJJ4FDDDWjs.getAccounts; exports.getPermissions = _chunkJJ4FDDDWjs.getPermissions; exports.requestAccounts = _chunkJJ4FDDDWjs.requestAccounts; exports.requestPermissions = _chunkJJ4FDDDWjs.requestPermissions; exports.sendTransaction = _chunkJJ4FDDDWjs.sendTransaction; exports.signMessage = _chunkJJ4FDDDWjs.signMessage; exports.switchChain = _chunkJJ4FDDDWjs.switchChain; exports.watchAsset = _chunkJJ4FDDDWjs.watchAsset;
|
24
24
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/dist/window.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
import { R as Requests, E as Events } from './eip1193-
|
2
|
-
import './chain-
|
1
|
+
import { R as Requests, E as Events } from './eip1193-f09a55af.js';
|
2
|
+
import './chain-4d46a747.js';
|
3
3
|
import '@wagmi/chains';
|
4
|
+
import 'abitype';
|
5
|
+
import 'ethers@6/types/providers';
|
4
6
|
|
5
7
|
type WindowProvider = Requests & Events;
|
6
8
|
declare global {
|
package/package.json
CHANGED
@@ -6,11 +6,10 @@
|
|
6
6
|
"@wagmi/chains": "~0.2.8",
|
7
7
|
"abitype": "~0.3.0",
|
8
8
|
"idna-uts46-hx": "^4.1.2",
|
9
|
-
"isomorphic-unfetch": "^4.0.2",
|
10
9
|
"isomorphic-ws": "^5.0.0",
|
11
10
|
"ws": "^8.12.0"
|
12
11
|
},
|
13
|
-
"version": "0.0.1-alpha.
|
12
|
+
"version": "0.0.1-alpha.28",
|
14
13
|
"files": [
|
15
14
|
"/dist",
|
16
15
|
"/chains",
|
package/dist/call-3476b8ee.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { C as Chain, A as Address, b as BlockTag, H as Hex, M as Formatter, O as MergeIntersectionProperties, S as Formatted, s as TransactionRequest } from './chain-42de87e5.js';
|
2
|
-
import { P as PublicClient } from './createPublicClient-fd558574.js';
|
3
|
-
import { T as TransactionRequestFormatter } from './transactionRequest-f437b4ba.js';
|
4
|
-
|
5
|
-
type FormattedCall<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
6
|
-
type CallArgs<TChain extends Chain = Chain> = FormattedCall<TransactionRequestFormatter<TChain>> & {
|
7
|
-
from?: Address;
|
8
|
-
} & ({
|
9
|
-
/** The balance of the account at a block number. */
|
10
|
-
blockNumber?: bigint;
|
11
|
-
blockTag?: never;
|
12
|
-
} | {
|
13
|
-
blockNumber?: never;
|
14
|
-
/** The balance of the account at a block tag. */
|
15
|
-
blockTag?: BlockTag;
|
16
|
-
});
|
17
|
-
type CallResponse = {
|
18
|
-
data: Hex | undefined;
|
19
|
-
};
|
20
|
-
declare function call<TChain extends Chain>(client: PublicClient<any, TChain>, { blockNumber, blockTag, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: CallArgs<TChain>): Promise<CallResponse>;
|
21
|
-
|
22
|
-
export { CallArgs as C, CallResponse as a, call as c };
|