viem 0.0.1-alpha.13 → 0.0.1-alpha.15
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.js +5 -5
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-4XV4JRFM.mjs → chunk-2HENAFQN.mjs} +16 -6
- package/dist/{chunk-O3XABJRL.js → chunk-EMQSYKNY.js} +11 -11
- package/dist/{chunk-OHOJCVQD.js → chunk-HTYEJEWI.js} +156 -529
- package/dist/chunk-IMYI7Z6M.js +255 -0
- package/dist/chunk-KGXH5DYI.js +152 -0
- package/dist/chunk-NYXBQHNJ.mjs +255 -0
- package/dist/chunk-PHAG5KUF.mjs +152 -0
- package/dist/{chunk-NJ5NFIT4.mjs → chunk-PPDHFNFM.mjs} +107 -480
- package/dist/{chunk-AGF7GU6G.js → chunk-QMLDI5JU.js} +16 -6
- package/dist/{chunk-KZVBHS2T.mjs → chunk-SX7GPOCZ.mjs} +1 -1
- package/dist/clients/index.d.ts +6 -3
- package/dist/clients/index.js +3 -3
- package/dist/clients/index.mjs +2 -2
- package/dist/createClient-cd948138.d.ts +62 -0
- package/dist/createPublicClient-989a0556.d.ts +19 -0
- package/dist/createTestClient-81507f58.d.ts +34 -0
- package/dist/createWalletClient-43f801b9.d.ts +30 -0
- package/dist/{eip1193-c001fcd5.d.ts → eip1193-4330b722.d.ts} +1 -1
- package/dist/index.d.ts +13 -6
- package/dist/index.js +10 -4
- package/dist/index.mjs +35 -29
- package/dist/{parseGwei-21f98a29.d.ts → parseGwei-f2d23de6.d.ts} +1 -1
- package/dist/public.d.ts +12 -0
- package/dist/public.js +58 -0
- package/dist/public.mjs +58 -0
- package/dist/sendTransaction-7a9d241a.d.ts +13 -0
- package/dist/stopImpersonatingAccount-8113150e.d.ts +156 -0
- package/dist/test.d.ts +7 -0
- package/dist/test.js +59 -0
- package/dist/test.mjs +59 -0
- package/dist/{transactionRequest-1d4e4385.d.ts → transactionReceipt-5d332aab.d.ts} +4 -32
- package/dist/transactionRequest-327eb7c2.d.ts +33 -0
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +9 -0
- package/dist/wallet.js +23 -0
- package/dist/wallet.mjs +23 -0
- package/dist/watchAsset-0088384c.d.ts +39 -0
- package/dist/{stopImpersonatingAccount-70c4a70c.d.ts → watchPendingTransactions-670a7ca3.d.ts} +19 -197
- package/dist/{webSocket-3385e295.d.ts → webSocket-9a3b0b26.d.ts} +1 -1
- package/dist/window.d.ts +1 -1
- package/package.json +16 -6
- package/actions/package.json +0 -4
- package/dist/actions/index.d.ts +0 -8
- package/dist/actions/index.js +0 -127
- package/dist/actions/index.mjs +0 -127
- package/dist/createWalletClient-3f9fa8b6.d.ts +0 -130
package/dist/{stopImpersonatingAccount-70c4a70c.d.ts → watchPendingTransactions-670a7ca3.d.ts}
RENAMED
@@ -1,9 +1,11 @@
|
|
1
1
|
import { Abi } from 'abitype';
|
2
2
|
import { Chain, Formatter } from './chains.js';
|
3
|
-
import { H as Hex, A as Address, b as BlockTag, M as MergeIntersectionProperties, v as TransactionRequest,
|
4
|
-
import {
|
5
|
-
import { P as PublicClient
|
6
|
-
import {
|
3
|
+
import { H as Hex, A as Address, b as BlockTag, M as MergeIntersectionProperties, v as TransactionRequest, K as EstimateGasParameters, a as Hash, F as FeeHistory, L as Log, r as RpcTransactionReceipt, T as TransactionReceipt, N as TransactionType, D as Transaction } from './rpc-b77c5aee.js';
|
4
|
+
import { E as ExtractFunctionNameFromAbi, G as GetValue, c as ExtractArgsFromAbi, d as ExtractResultFromAbi, e as ExtractConstructorArgsFromAbi, F as FormattedBlock, B as BlockFormatter, a as FormattedTransaction, T as TransactionFormatter, g as FormattedTransactionReceipt, h as TransactionReceiptFormatter } from './transactionReceipt-5d332aab.js';
|
5
|
+
import { P as PublicClient } from './createPublicClient-989a0556.js';
|
6
|
+
import { T as TransactionRequestFormatter, a as Formatted, E as ExtractFormatter } from './transactionRequest-327eb7c2.js';
|
7
|
+
import { W as WalletClient } from './createWalletClient-43f801b9.js';
|
8
|
+
import { S as SendTransactionArgs, a as SendTransactionResponse } from './sendTransaction-7a9d241a.js';
|
7
9
|
|
8
10
|
type FilterType = 'transaction' | 'block' | 'event';
|
9
11
|
type Filter<TFilterType extends FilterType = 'event'> = {
|
@@ -45,46 +47,6 @@ declare function createPendingTransactionFilter(client: PublicClient): Promise<C
|
|
45
47
|
type CreateBlockFilterResponse = Filter<'block'>;
|
46
48
|
declare function createBlockFilter(client: PublicClient): Promise<CreateBlockFilterResponse>;
|
47
49
|
|
48
|
-
declare function addChain(client: WalletClient, chain: Chain): Promise<void>;
|
49
|
-
|
50
|
-
declare function getAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
51
|
-
|
52
|
-
type GetPermissionsResponse = WalletPermission[];
|
53
|
-
declare function getPermissions(client: WalletClient): Promise<WalletPermission[]>;
|
54
|
-
|
55
|
-
declare function requestAccounts(client: WalletClient): Promise<`0x${string}`[]>;
|
56
|
-
|
57
|
-
type RequestPermissionsArgs = {
|
58
|
-
eth_accounts: Record<string, any>;
|
59
|
-
} & {
|
60
|
-
[key: string]: Record<string, any>;
|
61
|
-
};
|
62
|
-
type RequestPermissionsResponse = WalletPermission[];
|
63
|
-
declare function requestPermissions(client: WalletClient, permissions: RequestPermissionsArgs): Promise<WalletPermission[]>;
|
64
|
-
|
65
|
-
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
66
|
-
type SendTransactionArgs<TChain extends Chain = Chain> = FormattedTransactionRequest<TransactionRequestFormatter<TChain>> & {
|
67
|
-
chain?: TChain;
|
68
|
-
};
|
69
|
-
type SendTransactionResponse = Hash;
|
70
|
-
declare function sendTransaction<TChain extends Chain>(client: WalletClient, { chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: SendTransactionArgs<TChain>): Promise<SendTransactionResponse>;
|
71
|
-
|
72
|
-
type SignMessageArgs = {
|
73
|
-
from: Address;
|
74
|
-
data: Hex | ByteArray;
|
75
|
-
};
|
76
|
-
type SignMessageResponse = Hex;
|
77
|
-
declare function signMessage(client: WalletClient, { from, data: data_ }: SignMessageArgs): Promise<SignMessageResponse>;
|
78
|
-
|
79
|
-
type SwitchChainArgs = {
|
80
|
-
id: Chain['id'];
|
81
|
-
};
|
82
|
-
declare function switchChain(client: WalletClient, { id }: SwitchChainArgs): Promise<void>;
|
83
|
-
|
84
|
-
type WatchAssetArgs = WatchAssetParams;
|
85
|
-
type WatchAssetResponse = boolean;
|
86
|
-
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
|
87
|
-
|
88
50
|
type DeployContractArgs<TChain extends Chain = Chain, TAbi extends Abi = Abi> = Omit<SendTransactionArgs<TChain>, 'accessList' | 'to' | 'data' | 'value'> & {
|
89
51
|
abi: TAbi;
|
90
52
|
bytecode: Hex;
|
@@ -198,6 +160,18 @@ type GetBlockTransactionCountArgs = {
|
|
198
160
|
type GetBlockTransactionCountResponse = number;
|
199
161
|
declare function getBlockTransactionCount<TChain extends Chain>(client: PublicClient<any, TChain>, { blockHash, blockNumber, blockTag, }?: GetBlockTransactionCountArgs): Promise<GetBlockTransactionCountResponse>;
|
200
162
|
|
163
|
+
type GetBytecodeArgs = {
|
164
|
+
address: Address;
|
165
|
+
} & ({
|
166
|
+
blockNumber?: never;
|
167
|
+
blockTag?: BlockTag;
|
168
|
+
} | {
|
169
|
+
blockNumber?: bigint;
|
170
|
+
blockTag?: never;
|
171
|
+
});
|
172
|
+
type GetBytecodeResponse = Hex | undefined;
|
173
|
+
declare function getBytecode(client: PublicClient, { address, blockNumber, blockTag }: GetBytecodeArgs): Promise<GetBytecodeResponse>;
|
174
|
+
|
201
175
|
declare function getChainId(client: PublicClient): Promise<number>;
|
202
176
|
|
203
177
|
type GetFeeHistoryArgs = {
|
@@ -386,156 +360,4 @@ type WatchPendingTransactionsArgs = {
|
|
386
360
|
};
|
387
361
|
declare function watchPendingTransactions(client: PublicClient, { batch, onError, onTransactions, pollingInterval, }: WatchPendingTransactionsArgs): () => void;
|
388
362
|
|
389
|
-
|
390
|
-
/** The hash of the transaction to drop. */
|
391
|
-
hash: Hash;
|
392
|
-
};
|
393
|
-
declare function dropTransaction(client: TestClient, { hash }: DropTransactionArgs): Promise<void>;
|
394
|
-
|
395
|
-
type GetAutomineResponse = boolean;
|
396
|
-
declare function getAutomine(client: TestClient): Promise<GetAutomineResponse>;
|
397
|
-
|
398
|
-
declare function getTxpoolContent(client: TestClient): Promise<{
|
399
|
-
pending: Record<`0x${string}`, Record<string, RpcTransaction>>;
|
400
|
-
queued: Record<`0x${string}`, Record<string, RpcTransaction>>;
|
401
|
-
}>;
|
402
|
-
|
403
|
-
declare function getTxpoolStatus(client: TestClient): Promise<{
|
404
|
-
pending: number;
|
405
|
-
queued: number;
|
406
|
-
}>;
|
407
|
-
|
408
|
-
type ImpersonateAccountArgs = {
|
409
|
-
/** The account to impersonate. */
|
410
|
-
address: Address;
|
411
|
-
};
|
412
|
-
declare function impersonateAccount(client: TestClient, { address }: ImpersonateAccountArgs): Promise<void>;
|
413
|
-
|
414
|
-
type IncreaseTimeArgs = {
|
415
|
-
/** The amount of seconds to jump forward in time. */
|
416
|
-
seconds: number;
|
417
|
-
};
|
418
|
-
declare function increaseTime(client: TestClient, { seconds }: IncreaseTimeArgs): Promise<`0x${string}`>;
|
419
|
-
|
420
|
-
declare function inspectTxpool(client: TestClient): Promise<{
|
421
|
-
pending: Record<`0x${string}`, Record<string, string>>;
|
422
|
-
queued: Record<`0x${string}`, Record<string, string>>;
|
423
|
-
}>;
|
424
|
-
|
425
|
-
type MineArgs = {
|
426
|
-
/** Number of blocks to mine. */
|
427
|
-
blocks: number;
|
428
|
-
/** Interval between each block in seconds. */
|
429
|
-
interval?: number;
|
430
|
-
};
|
431
|
-
declare function mine(client: TestClient, { blocks, interval }: MineArgs): Promise<void>;
|
432
|
-
|
433
|
-
declare function removeBlockTimestampInterval(client: TestClient): Promise<void>;
|
434
|
-
|
435
|
-
type ResetArgs = {
|
436
|
-
/** The block number to reset from. */
|
437
|
-
blockNumber?: bigint;
|
438
|
-
/** The JSON RPC URL. */
|
439
|
-
jsonRpcUrl?: string;
|
440
|
-
};
|
441
|
-
declare function reset(client: TestClient, { blockNumber, jsonRpcUrl }?: ResetArgs): Promise<void>;
|
442
|
-
|
443
|
-
type RevertArgs = {
|
444
|
-
/** The snapshot ID to revert to. */
|
445
|
-
id: Quantity;
|
446
|
-
};
|
447
|
-
declare function revert(client: TestClient, { id }: RevertArgs): Promise<void>;
|
448
|
-
|
449
|
-
type SendUnsignedTransactionArgs = TransactionRequest;
|
450
|
-
type SendUnsignedTransactionResponse = Hash;
|
451
|
-
declare function sendUnsignedTransaction(client: TestClient, request: SendUnsignedTransactionArgs): Promise<SendUnsignedTransactionResponse>;
|
452
|
-
|
453
|
-
declare function setAutomine(client: TestClient, enabled: boolean): Promise<void>;
|
454
|
-
|
455
|
-
type SetBalanceArgs = {
|
456
|
-
/** The account address. */
|
457
|
-
address: Address;
|
458
|
-
/** Amount (in wei) to set */
|
459
|
-
value: bigint;
|
460
|
-
};
|
461
|
-
declare function setBalance(client: TestClient, { address, value }: SetBalanceArgs): Promise<void>;
|
462
|
-
|
463
|
-
type SetBlockGasLimitArgs = {
|
464
|
-
/** Gas limit (in wei). */
|
465
|
-
gasLimit: bigint;
|
466
|
-
};
|
467
|
-
declare function setBlockGasLimit(client: TestClient, { gasLimit }: SetBlockGasLimitArgs): Promise<void>;
|
468
|
-
|
469
|
-
type SetBlockTimestampIntervalArgs = {
|
470
|
-
/** The interval (in seconds). */
|
471
|
-
interval: number;
|
472
|
-
};
|
473
|
-
declare function setBlockTimestampInterval(client: TestClient, { interval }: SetBlockTimestampIntervalArgs): Promise<void>;
|
474
|
-
|
475
|
-
type SetCodeArgs = {
|
476
|
-
/** The account address. */
|
477
|
-
address: Address;
|
478
|
-
/** The bytecode to set */
|
479
|
-
bytecode: Hex;
|
480
|
-
};
|
481
|
-
declare function setCode(client: TestClient, { address, bytecode }: SetCodeArgs): Promise<void>;
|
482
|
-
|
483
|
-
type SetCoinbaseArgs = {
|
484
|
-
/** The coinbase address. */
|
485
|
-
address: Address;
|
486
|
-
};
|
487
|
-
declare function setCoinbase(client: TestClient, { address }: SetCoinbaseArgs): Promise<void>;
|
488
|
-
|
489
|
-
type SetIntervalMiningArgs = {
|
490
|
-
/** The mining interval. */
|
491
|
-
interval: number;
|
492
|
-
};
|
493
|
-
declare function setIntervalMining(client: TestClient, { interval }: SetIntervalMiningArgs): Promise<void>;
|
494
|
-
|
495
|
-
declare function setLoggingEnabled(client: TestClient, enabled: boolean): Promise<void>;
|
496
|
-
|
497
|
-
type SetMinGasPriceArgs = {
|
498
|
-
/** The gas price. */
|
499
|
-
gasPrice: bigint;
|
500
|
-
};
|
501
|
-
declare function setMinGasPrice(client: TestClient, { gasPrice }: SetMinGasPriceArgs): Promise<void>;
|
502
|
-
|
503
|
-
type SetNextBlockBaseFeePerGasArgs = {
|
504
|
-
/** Base fee per gas (in wei). */
|
505
|
-
baseFeePerGas: bigint;
|
506
|
-
};
|
507
|
-
declare function setNextBlockBaseFeePerGas(client: TestClient, { baseFeePerGas }: SetNextBlockBaseFeePerGasArgs): Promise<void>;
|
508
|
-
|
509
|
-
type SetNextBlockTimestampArgs = {
|
510
|
-
/** The timestamp (in seconds). */
|
511
|
-
timestamp: bigint;
|
512
|
-
};
|
513
|
-
declare function setNextBlockTimestamp(client: TestClient, { timestamp }: SetNextBlockTimestampArgs): Promise<void>;
|
514
|
-
|
515
|
-
type SetNonceArgs = {
|
516
|
-
/** The account address. */
|
517
|
-
address: Address;
|
518
|
-
/** The nonce to set. */
|
519
|
-
nonce: number;
|
520
|
-
};
|
521
|
-
declare function setNonce(client: TestClient, { address, nonce }: SetNonceArgs): Promise<void>;
|
522
|
-
|
523
|
-
type SetStorageAtArgs = {
|
524
|
-
/** The account address. */
|
525
|
-
address: Address;
|
526
|
-
/** The storage slot (index). Can either be a number or hash value. */
|
527
|
-
index: number | Hash;
|
528
|
-
/** The value to store as a 32 byte hex string. */
|
529
|
-
value: Hex;
|
530
|
-
};
|
531
|
-
declare function setStorageAt(client: TestClient, { address, index, value }: SetStorageAtArgs): Promise<void>;
|
532
|
-
|
533
|
-
declare function snapshot(client: TestClient): Promise<`0x${string}`>;
|
534
|
-
|
535
|
-
type StopImpersonatingAccountArgs = {
|
536
|
-
/** The account to impersonate. */
|
537
|
-
address: Address;
|
538
|
-
};
|
539
|
-
declare function stopImpersonatingAccount(client: TestClient, { address }: StopImpersonatingAccountArgs): Promise<void>;
|
540
|
-
|
541
|
-
export { SetCodeArgs as $, GetTransactionCountArgs as A, GetTransactionCountResponse as B, CallArgs as C, DeployContractArgs as D, EstimateGasArgs as E, GetTransactionResponse as F, GetBalanceArgs as G, GetTransactionReceiptArgs as H, GetTransactionReceiptResponse as I, ImpersonateAccountArgs as J, IncreaseTimeArgs as K, OnBlockNumber as L, MineArgs as M, OnBlockNumberResponse as N, OnBlock as O, OnBlockResponse as P, OnTransactions as Q, OnTransactionsResponse as R, ResetArgs as S, RequestPermissionsResponse as T, RevertArgs as U, SendTransactionArgs as V, SendTransactionResponse as W, SendUnsignedTransactionArgs as X, SendUnsignedTransactionResponse as Y, SetBalanceArgs as Z, SetBlockGasLimitArgs as _, CallContractArgs as a, setCoinbase as a$, SetCoinbaseArgs as a0, SetIntervalMiningArgs as a1, SetMinGasPriceArgs as a2, SetBlockTimestampIntervalArgs as a3, SetNextBlockTimestampArgs as a4, SetNextBlockBaseFeePerGasArgs as a5, SetNonceArgs as a6, SetStorageAtArgs as a7, SignMessageArgs as a8, SignMessageResponse as a9, getFeeHistory as aA, getFilterChanges as aB, getFilterLogs as aC, getGasPrice as aD, getPermissions as aE, getTransaction as aF, getTransactionConfirmations as aG, getTransactionCount as aH, getTransactionReceipt as aI, getTxpoolContent as aJ, getTxpoolStatus as aK, impersonateAccount as aL, increaseTime as aM, inspectTxpool as aN, mine as aO, removeBlockTimestampInterval as aP, reset as aQ, requestAccounts as aR, requestPermissions as aS, revert as aT, sendTransaction as aU, sendUnsignedTransaction as aV, setAutomine as aW, setBalance as aX, setBlockGasLimit as aY, setBlockTimestampInterval as aZ, setCode as a_, StopImpersonatingAccountArgs as aa, SwitchChainArgs as ab, UninstallFilterArgs as ac, UninstallFilterResponse as ad, WaitForTransactionReceiptArgs as ae, WaitForTransactionReceiptResponse as af, WatchAssetArgs as ag, WatchAssetResponse as ah, WatchBlockNumberArgs as ai, WatchBlocksArgs as aj, WatchPendingTransactionsArgs as ak, addChain as al, call as am, callContract as an, createBlockFilter as ao, createPendingTransactionFilter as ap, deployContract as aq, dropTransaction as ar, estimateGas as as, getAccounts as at, getAutomine as au, getBalance as av, getBlock as aw, getBlockNumber as ax, getBlockTransactionCount as ay, getChainId as az, CallContractResponse as b, setIntervalMining as b0, setLoggingEnabled as b1, setMinGasPrice as b2, setNextBlockBaseFeePerGas as b3, setNextBlockTimestamp as b4, setNonce as b5, setStorageAt as b6, signMessage as b7, snapshot as b8, stopImpersonatingAccount as b9, switchChain as ba, uninstallFilter as bb, waitForTransactionReceipt as bc, watchAsset as bd, watchBlockNumber as be, watchBlocks as bf, watchPendingTransactions as bg, getBlockNumberCache as bh, ReplacementReason as bi, ReplacementResponse as bj, FormattedTransactionRequest as bk, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, DeployContractResponse as g, DropTransactionArgs as h, GetBalanceResponse as i, GetBlockArgs as j, GetBlockNumberArgs as k, GetBlockNumberResponse as l, GetBlockResponse as m, GetBlockTransactionCountArgs as n, GetBlockTransactionCountResponse as o, GetFeeHistoryArgs as p, GetFeeHistoryResponse as q, GetFilterChangesArgs as r, GetFilterChangesResponse as s, GetFilterLogsArgs as t, GetFilterLogsResponse as u, GetGasPriceResponse as v, GetPermissionsResponse as w, GetTransactionArgs as x, GetTransactionConfirmationsArgs as y, GetTransactionConfirmationsResponse as z };
|
363
|
+
export { estimateGas as $, GetTransactionCountArgs as A, GetTransactionCountResponse as B, CallArgs as C, DeployContractArgs as D, EstimateGasArgs as E, GetTransactionResponse as F, GetBalanceArgs as G, GetTransactionReceiptArgs as H, GetTransactionReceiptResponse as I, OnBlockNumber as J, OnBlockNumberResponse as K, OnBlockResponse as L, OnTransactions as M, OnTransactionsResponse as N, OnBlock as O, UninstallFilterResponse as P, WaitForTransactionReceiptResponse as Q, WatchBlockNumberArgs as R, WatchBlocksArgs as S, WatchPendingTransactionsArgs as T, UninstallFilterArgs as U, call as V, WaitForTransactionReceiptArgs as W, callContract as X, createBlockFilter as Y, createPendingTransactionFilter as Z, deployContract as _, CallContractArgs as a, getBalance as a0, getBlock as a1, getBlockNumber as a2, getBlockTransactionCount as a3, getBytecode as a4, getChainId as a5, getFeeHistory as a6, getFilterChanges as a7, getFilterLogs as a8, getGasPrice as a9, getTransaction as aa, getTransactionConfirmations as ab, getTransactionCount as ac, getTransactionReceipt as ad, uninstallFilter as ae, waitForTransactionReceipt as af, watchBlockNumber as ag, watchBlocks as ah, watchPendingTransactions as ai, getBlockNumberCache as aj, ReplacementReason as ak, ReplacementResponse as al, CallContractResponse as b, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, DeployContractResponse as g, GetBalanceResponse as h, GetBlockArgs as i, GetBlockNumberArgs as j, GetBlockNumberResponse as k, GetBlockResponse as l, GetBlockTransactionCountArgs as m, GetBlockTransactionCountResponse as n, GetBytecodeArgs as o, GetBytecodeResponse as p, GetFeeHistoryArgs as q, GetFeeHistoryResponse as r, GetFilterChangesArgs as s, GetFilterChangesResponse as t, GetFilterLogsArgs as u, GetFilterLogsResponse as v, GetGasPriceResponse as w, GetTransactionArgs as x, GetTransactionConfirmationsArgs as y, GetTransactionConfirmationsResponse as z };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { b as TransportConfig, T as Transport, B as BaseRpcRequests } from './createClient-cd948138.js';
|
2
2
|
import { a as Hash } from './rpc-b77c5aee.js';
|
3
3
|
import { R as RpcResponse } from './rpc-26932bae.js';
|
4
4
|
|
package/dist/window.d.ts
CHANGED
package/package.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
"@wagmi/chains": "0.0.0-20230201210619",
|
7
7
|
"abitype": "^0.2.5"
|
8
8
|
},
|
9
|
-
"version": "0.0.1-alpha.
|
9
|
+
"version": "0.0.1-alpha.15",
|
10
10
|
"files": [
|
11
11
|
"/actions",
|
12
12
|
"/chains",
|
@@ -22,11 +22,6 @@
|
|
22
22
|
"module": "./dist/index.mjs",
|
23
23
|
"default": "./dist/index.js"
|
24
24
|
},
|
25
|
-
"./actions": {
|
26
|
-
"types": "./dist/actions/index.d.ts",
|
27
|
-
"module": "./dist/actions/index.mjs",
|
28
|
-
"default": "./dist/actions/index.js"
|
29
|
-
},
|
30
25
|
"./chains": {
|
31
26
|
"types": "./dist/chains.d.ts",
|
32
27
|
"module": "./dist/chains.mjs",
|
@@ -37,11 +32,26 @@
|
|
37
32
|
"module": "./dist/clients/index.mjs",
|
38
33
|
"default": "./dist/clients/index.js"
|
39
34
|
},
|
35
|
+
"./public": {
|
36
|
+
"types": "./dist/public.d.ts",
|
37
|
+
"module": "./dist/public.mjs",
|
38
|
+
"default": "./dist/public.js"
|
39
|
+
},
|
40
|
+
"./test": {
|
41
|
+
"types": "./dist/test.d.ts",
|
42
|
+
"module": "./dist/test.mjs",
|
43
|
+
"default": "./dist/test.js"
|
44
|
+
},
|
40
45
|
"./utils": {
|
41
46
|
"types": "./dist/utils/index.d.ts",
|
42
47
|
"module": "./dist/utils/index.mjs",
|
43
48
|
"default": "./dist/utils/index.js"
|
44
49
|
},
|
50
|
+
"./wallet": {
|
51
|
+
"types": "./dist/wallet.d.ts",
|
52
|
+
"module": "./dist/wallet.mjs",
|
53
|
+
"default": "./dist/wallet.js"
|
54
|
+
},
|
45
55
|
"./window": {
|
46
56
|
"types": "./dist/window.d.ts",
|
47
57
|
"module": "./dist/window.mjs",
|
package/actions/package.json
DELETED
package/dist/actions/index.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, h as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, bk as FormattedTransactionRequest, G as GetBalanceArgs, i as GetBalanceResponse, j as GetBlockArgs, k as GetBlockNumberArgs, l as GetBlockNumberResponse, m as GetBlockResponse, n as GetBlockTransactionCountArgs, o as GetBlockTransactionCountResponse, p as GetFeeHistoryArgs, q as GetFeeHistoryResponse, r as GetFilterChangesArgs, s as GetFilterChangesResponse, t as GetFilterLogsArgs, u as GetFilterLogsResponse, v as GetGasPriceResponse, w as GetPermissionsResponse, x as GetTransactionArgs, y as GetTransactionConfirmationsArgs, z as GetTransactionConfirmationsResponse, A as GetTransactionCountArgs, B as GetTransactionCountResponse, H as GetTransactionReceiptArgs, I as GetTransactionReceiptResponse, F as GetTransactionResponse, J as ImpersonateAccountArgs, K as IncreaseTimeArgs, M as MineArgs, O as OnBlock, L as OnBlockNumber, N as OnBlockNumberResponse, P as OnBlockResponse, Q as OnTransactions, R as OnTransactionsResponse, bi as ReplacementReason, bj as ReplacementResponse, T as RequestPermissionsResponse, S as ResetArgs, U as RevertArgs, V as SendTransactionArgs, W as SendTransactionResponse, X as SendUnsignedTransactionArgs, Y as SendUnsignedTransactionResponse, Z as SetBalanceArgs, _ as SetBlockGasLimitArgs, a3 as SetBlockTimestampIntervalArgs, $ as SetCodeArgs, a0 as SetCoinbaseArgs, a1 as SetIntervalMiningArgs, a2 as SetMinGasPriceArgs, a5 as SetNextBlockBaseFeePerGasArgs, a4 as SetNextBlockTimestampArgs, a6 as SetNonceArgs, a7 as SetStorageAtArgs, a8 as SignMessageArgs, a9 as SignMessageResponse, aa as StopImpersonatingAccountArgs, ab as SwitchChainArgs, ac as UninstallFilterArgs, ad as UninstallFilterResponse, ae as WaitForTransactionReceiptArgs, af as WaitForTransactionReceiptResponse, ag as WatchAssetArgs, ah as WatchAssetResponse, ai as WatchBlockNumberArgs, aj as WatchBlocksArgs, ak as WatchPendingTransactionsArgs, al as addChain, am as call, an as callContract, ao as createBlockFilter, ap as createPendingTransactionFilter, aq as deployContract, ar as dropTransaction, as as estimateGas, at as getAccounts, au as getAutomine, av as getBalance, aw as getBlock, ax as getBlockNumber, bh as getBlockNumberCache, ay as getBlockTransactionCount, az as getChainId, aA as getFeeHistory, aB as getFilterChanges, aC as getFilterLogs, aD as getGasPrice, aE as getPermissions, aF as getTransaction, aG as getTransactionConfirmations, aH as getTransactionCount, aI as getTransactionReceipt, aJ as getTxpoolContent, aK as getTxpoolStatus, aL as impersonateAccount, aM as increaseTime, aN as inspectTxpool, aO as mine, aP as removeBlockTimestampInterval, aR as requestAccounts, aS as requestPermissions, aQ as reset, aT as revert, aU as sendTransaction, aV as sendUnsignedTransaction, aW as setAutomine, aX as setBalance, aY as setBlockGasLimit, aZ as setBlockTimestampInterval, a_ as setCode, a$ as setCoinbase, b0 as setIntervalMining, b1 as setLoggingEnabled, b2 as setMinGasPrice, b3 as setNextBlockBaseFeePerGas, b4 as setNextBlockTimestamp, b5 as setNonce, b6 as setStorageAt, b7 as signMessage, b8 as snapshot, b9 as stopImpersonatingAccount, ba as switchChain, bb as uninstallFilter, bc as waitForTransactionReceipt, bd as watchAsset, be as watchBlockNumber, bf as watchBlocks, bg as watchPendingTransactions } from '../stopImpersonatingAccount-70c4a70c.js';
|
2
|
-
import 'abitype';
|
3
|
-
import '../chains.js';
|
4
|
-
import '../rpc-b77c5aee.js';
|
5
|
-
import '@wagmi/chains';
|
6
|
-
import '../transactionRequest-1d4e4385.js';
|
7
|
-
import '../createWalletClient-3f9fa8b6.js';
|
8
|
-
import '../eip1193-c001fcd5.js';
|
package/dist/actions/index.js
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
var _chunkOHOJCVQDjs = require('../chunk-OHOJCVQD.js');
|
64
|
-
require('../chunk-AGF7GU6G.js');
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
exports.addChain = _chunkOHOJCVQDjs.addChain; exports.call = _chunkOHOJCVQDjs.call; exports.callContract = _chunkOHOJCVQDjs.callContract; exports.createBlockFilter = _chunkOHOJCVQDjs.createBlockFilter; exports.createPendingTransactionFilter = _chunkOHOJCVQDjs.createPendingTransactionFilter; exports.deployContract = _chunkOHOJCVQDjs.deployContract; exports.dropTransaction = _chunkOHOJCVQDjs.dropTransaction; exports.estimateGas = _chunkOHOJCVQDjs.estimateGas; exports.getAccounts = _chunkOHOJCVQDjs.getAccounts; exports.getAutomine = _chunkOHOJCVQDjs.getAutomine; exports.getBalance = _chunkOHOJCVQDjs.getBalance; exports.getBlock = _chunkOHOJCVQDjs.getBlock; exports.getBlockNumber = _chunkOHOJCVQDjs.getBlockNumber; exports.getBlockNumberCache = _chunkOHOJCVQDjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkOHOJCVQDjs.getBlockTransactionCount; exports.getChainId = _chunkOHOJCVQDjs.getChainId; exports.getFeeHistory = _chunkOHOJCVQDjs.getFeeHistory; exports.getFilterChanges = _chunkOHOJCVQDjs.getFilterChanges; exports.getFilterLogs = _chunkOHOJCVQDjs.getFilterLogs; exports.getGasPrice = _chunkOHOJCVQDjs.getGasPrice; exports.getPermissions = _chunkOHOJCVQDjs.getPermissions; exports.getTransaction = _chunkOHOJCVQDjs.getTransaction; exports.getTransactionConfirmations = _chunkOHOJCVQDjs.getTransactionConfirmations; exports.getTransactionCount = _chunkOHOJCVQDjs.getTransactionCount; exports.getTransactionReceipt = _chunkOHOJCVQDjs.getTransactionReceipt; exports.getTxpoolContent = _chunkOHOJCVQDjs.getTxpoolContent; exports.getTxpoolStatus = _chunkOHOJCVQDjs.getTxpoolStatus; exports.impersonateAccount = _chunkOHOJCVQDjs.impersonateAccount; exports.increaseTime = _chunkOHOJCVQDjs.increaseTime; exports.inspectTxpool = _chunkOHOJCVQDjs.inspectTxpool; exports.mine = _chunkOHOJCVQDjs.mine; exports.removeBlockTimestampInterval = _chunkOHOJCVQDjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkOHOJCVQDjs.requestAccounts; exports.requestPermissions = _chunkOHOJCVQDjs.requestPermissions; exports.reset = _chunkOHOJCVQDjs.reset; exports.revert = _chunkOHOJCVQDjs.revert; exports.sendTransaction = _chunkOHOJCVQDjs.sendTransaction; exports.sendUnsignedTransaction = _chunkOHOJCVQDjs.sendUnsignedTransaction; exports.setAutomine = _chunkOHOJCVQDjs.setAutomine; exports.setBalance = _chunkOHOJCVQDjs.setBalance; exports.setBlockGasLimit = _chunkOHOJCVQDjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkOHOJCVQDjs.setBlockTimestampInterval; exports.setCode = _chunkOHOJCVQDjs.setCode; exports.setCoinbase = _chunkOHOJCVQDjs.setCoinbase; exports.setIntervalMining = _chunkOHOJCVQDjs.setIntervalMining; exports.setLoggingEnabled = _chunkOHOJCVQDjs.setLoggingEnabled; exports.setMinGasPrice = _chunkOHOJCVQDjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkOHOJCVQDjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkOHOJCVQDjs.setNextBlockTimestamp; exports.setNonce = _chunkOHOJCVQDjs.setNonce; exports.setStorageAt = _chunkOHOJCVQDjs.setStorageAt; exports.signMessage = _chunkOHOJCVQDjs.signMessage; exports.snapshot = _chunkOHOJCVQDjs.snapshot; exports.stopImpersonatingAccount = _chunkOHOJCVQDjs.stopImpersonatingAccount; exports.switchChain = _chunkOHOJCVQDjs.switchChain; exports.uninstallFilter = _chunkOHOJCVQDjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkOHOJCVQDjs.waitForTransactionReceipt; exports.watchAsset = _chunkOHOJCVQDjs.watchAsset; exports.watchBlockNumber = _chunkOHOJCVQDjs.watchBlockNumber; exports.watchBlocks = _chunkOHOJCVQDjs.watchBlocks; exports.watchPendingTransactions = _chunkOHOJCVQDjs.watchPendingTransactions;
|
package/dist/actions/index.mjs
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
addChain,
|
3
|
-
call,
|
4
|
-
callContract,
|
5
|
-
createBlockFilter,
|
6
|
-
createPendingTransactionFilter,
|
7
|
-
deployContract,
|
8
|
-
dropTransaction,
|
9
|
-
estimateGas,
|
10
|
-
getAccounts,
|
11
|
-
getAutomine,
|
12
|
-
getBalance,
|
13
|
-
getBlock,
|
14
|
-
getBlockNumber,
|
15
|
-
getBlockNumberCache,
|
16
|
-
getBlockTransactionCount,
|
17
|
-
getChainId,
|
18
|
-
getFeeHistory,
|
19
|
-
getFilterChanges,
|
20
|
-
getFilterLogs,
|
21
|
-
getGasPrice,
|
22
|
-
getPermissions,
|
23
|
-
getTransaction,
|
24
|
-
getTransactionConfirmations,
|
25
|
-
getTransactionCount,
|
26
|
-
getTransactionReceipt,
|
27
|
-
getTxpoolContent,
|
28
|
-
getTxpoolStatus,
|
29
|
-
impersonateAccount,
|
30
|
-
increaseTime,
|
31
|
-
inspectTxpool,
|
32
|
-
mine,
|
33
|
-
removeBlockTimestampInterval,
|
34
|
-
requestAccounts,
|
35
|
-
requestPermissions,
|
36
|
-
reset,
|
37
|
-
revert,
|
38
|
-
sendTransaction,
|
39
|
-
sendUnsignedTransaction,
|
40
|
-
setAutomine,
|
41
|
-
setBalance,
|
42
|
-
setBlockGasLimit,
|
43
|
-
setBlockTimestampInterval,
|
44
|
-
setCode,
|
45
|
-
setCoinbase,
|
46
|
-
setIntervalMining,
|
47
|
-
setLoggingEnabled,
|
48
|
-
setMinGasPrice,
|
49
|
-
setNextBlockBaseFeePerGas,
|
50
|
-
setNextBlockTimestamp,
|
51
|
-
setNonce,
|
52
|
-
setStorageAt,
|
53
|
-
signMessage,
|
54
|
-
snapshot,
|
55
|
-
stopImpersonatingAccount,
|
56
|
-
switchChain,
|
57
|
-
uninstallFilter,
|
58
|
-
waitForTransactionReceipt,
|
59
|
-
watchAsset,
|
60
|
-
watchBlockNumber,
|
61
|
-
watchBlocks,
|
62
|
-
watchPendingTransactions
|
63
|
-
} from "../chunk-NJ5NFIT4.mjs";
|
64
|
-
import "../chunk-4XV4JRFM.mjs";
|
65
|
-
export {
|
66
|
-
addChain,
|
67
|
-
call,
|
68
|
-
callContract,
|
69
|
-
createBlockFilter,
|
70
|
-
createPendingTransactionFilter,
|
71
|
-
deployContract,
|
72
|
-
dropTransaction,
|
73
|
-
estimateGas,
|
74
|
-
getAccounts,
|
75
|
-
getAutomine,
|
76
|
-
getBalance,
|
77
|
-
getBlock,
|
78
|
-
getBlockNumber,
|
79
|
-
getBlockNumberCache,
|
80
|
-
getBlockTransactionCount,
|
81
|
-
getChainId,
|
82
|
-
getFeeHistory,
|
83
|
-
getFilterChanges,
|
84
|
-
getFilterLogs,
|
85
|
-
getGasPrice,
|
86
|
-
getPermissions,
|
87
|
-
getTransaction,
|
88
|
-
getTransactionConfirmations,
|
89
|
-
getTransactionCount,
|
90
|
-
getTransactionReceipt,
|
91
|
-
getTxpoolContent,
|
92
|
-
getTxpoolStatus,
|
93
|
-
impersonateAccount,
|
94
|
-
increaseTime,
|
95
|
-
inspectTxpool,
|
96
|
-
mine,
|
97
|
-
removeBlockTimestampInterval,
|
98
|
-
requestAccounts,
|
99
|
-
requestPermissions,
|
100
|
-
reset,
|
101
|
-
revert,
|
102
|
-
sendTransaction,
|
103
|
-
sendUnsignedTransaction,
|
104
|
-
setAutomine,
|
105
|
-
setBalance,
|
106
|
-
setBlockGasLimit,
|
107
|
-
setBlockTimestampInterval,
|
108
|
-
setCode,
|
109
|
-
setCoinbase,
|
110
|
-
setIntervalMining,
|
111
|
-
setLoggingEnabled,
|
112
|
-
setMinGasPrice,
|
113
|
-
setNextBlockBaseFeePerGas,
|
114
|
-
setNextBlockTimestamp,
|
115
|
-
setNonce,
|
116
|
-
setStorageAt,
|
117
|
-
signMessage,
|
118
|
-
snapshot,
|
119
|
-
stopImpersonatingAccount,
|
120
|
-
switchChain,
|
121
|
-
uninstallFilter,
|
122
|
-
waitForTransactionReceipt,
|
123
|
-
watchAsset,
|
124
|
-
watchBlockNumber,
|
125
|
-
watchBlocks,
|
126
|
-
watchPendingTransactions
|
127
|
-
};
|