viem 0.2.0-jxom-local-accounts.20230321T212822 → 0.2.0-jxom-local-accounts.20230327T004031
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/abi.d.ts +3 -3
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/accounts/index.d.ts +62 -5
- package/dist/accounts/index.js +79 -16
- package/dist/accounts/index.js.map +1 -1
- package/dist/accounts/index.mjs +74 -11
- package/dist/accounts/index.mjs.map +1 -1
- package/dist/{chain-f8db473f.d.ts → chain-40443542.d.ts} +1 -1
- package/dist/{chain-75b0942e.d.ts → chain-4af995bf.d.ts} +63 -27
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +63 -63
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-NJSAEA2H.js → chunk-CGTZNR2R.js} +507 -3
- package/dist/chunk-CGTZNR2R.js.map +1 -0
- package/dist/{chunk-IVRML3IK.mjs → chunk-HWVZ6VEQ.mjs} +506 -2
- package/dist/chunk-HWVZ6VEQ.mjs.map +1 -0
- package/dist/{chunk-FNVFGFWN.mjs → chunk-PVK5TA2L.mjs} +2 -2
- package/dist/chunk-PVK5TA2L.mjs.map +1 -0
- package/dist/{chunk-6UKHPIXX.mjs → chunk-UCNDS4FE.mjs} +2 -2
- package/dist/chunk-UCNDS4FE.mjs.map +1 -0
- package/dist/{chunk-LYQKHD7R.js → chunk-VSAG2LPH.js} +19 -19
- package/dist/chunk-VSAG2LPH.js.map +1 -0
- package/dist/{chunk-FQM5MF6U.js → chunk-XLIQDCZW.js} +6 -6
- package/dist/chunk-XLIQDCZW.js.map +1 -0
- package/dist/contract.d.ts +8 -8
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/{createClient-f87255c1.d.ts → createClient-1f19be8d.d.ts} +23 -9
- package/dist/{createPublicClient-d2c37c92.d.ts → createPublicClient-b53e3c3d.d.ts} +116 -116
- package/dist/{eip1193-ae706fd8.d.ts → eip1193-210ab776.d.ts} +1 -1
- package/dist/{encodeFunctionResult-4792a6a3.d.ts → encodeFunctionResult-a252fba1.d.ts} +1 -1
- package/dist/{encodePacked-3fcdd54b.d.ts → encodePacked-a9464e97.d.ts} +1 -1
- package/dist/ens.d.ts +5 -5
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/ethers.d.ts +3 -3
- package/dist/ethers.js +4 -4
- package/dist/ethers.mjs +2 -2
- package/dist/{formatAbiItem-765ebc53.d.ts → formatAbiItem-6ed70dbd.d.ts} +1 -1
- package/dist/{getAbiItem-693e6e1b.d.ts → getAbiItem-1ff0f41a.d.ts} +1 -1
- package/dist/index.d.ts +21 -15
- package/dist/index.js +127 -102
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +67 -42
- package/dist/index.mjs.map +1 -1
- package/dist/{parseAccount-2d7ea01d.d.ts → parseAccount-8e131c73.d.ts} +1 -1
- package/dist/{parseGwei-377678bc.d.ts → parseGwei-b3a175f7.d.ts} +51 -7
- package/dist/public.d.ts +5 -5
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test-e28db435.d.ts +198 -0
- package/dist/test.d.ts +11 -11
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/{typedData-ade018d6.d.ts → typedData-848139b1.d.ts} +11 -11
- package/dist/utils/index.d.ts +16 -36
- package/dist/utils/index.js +18 -2
- package/dist/utils/index.mjs +17 -1
- package/dist/wallet.d.ts +5 -5
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/dist/window.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-6UKHPIXX.mjs.map +0 -1
- package/dist/chunk-FNVFGFWN.mjs.map +0 -1
- package/dist/chunk-FQM5MF6U.js.map +0 -1
- package/dist/chunk-IVRML3IK.mjs.map +0 -1
- package/dist/chunk-LYQKHD7R.js.map +0 -1
- package/dist/chunk-NJSAEA2H.js.map +0 -1
- package/dist/test-98c0b642.d.ts +0 -206
@@ -0,0 +1,198 @@
|
|
1
|
+
import { a as Transport, b as ClientConfig, C as Client } from './createClient-1f19be8d.js';
|
2
|
+
import { a as Hash, C as Chain, y as RpcTransaction, ak as Quantity, P as TransactionRequest, H as Hex } from './chain-4af995bf.js';
|
3
|
+
import { T as TestRequests } from './eip1193-210ab776.js';
|
4
|
+
import { Address } from 'abitype';
|
5
|
+
import { Chain as Chain$1 } from '@wagmi/chains';
|
6
|
+
|
7
|
+
type DropTransactionParameters = {
|
8
|
+
/** The hash of the transaction to drop. */
|
9
|
+
hash: Hash;
|
10
|
+
};
|
11
|
+
declare function dropTransaction<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { hash }: DropTransactionParameters): Promise<void>;
|
12
|
+
|
13
|
+
type GetAutomineReturnType = boolean;
|
14
|
+
declare function getAutomine<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<GetAutomineReturnType>;
|
15
|
+
|
16
|
+
type GetTxpoolContentReturnType = {
|
17
|
+
pending: Record<Address, Record<string, RpcTransaction>>;
|
18
|
+
queued: Record<Address, Record<string, RpcTransaction>>;
|
19
|
+
};
|
20
|
+
declare function getTxpoolContent<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<GetTxpoolContentReturnType>;
|
21
|
+
|
22
|
+
type GetTxpoolStatusReturnType = {
|
23
|
+
pending: number;
|
24
|
+
queued: number;
|
25
|
+
};
|
26
|
+
declare function getTxpoolStatus<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<GetTxpoolStatusReturnType>;
|
27
|
+
|
28
|
+
type ImpersonateAccountParameters = {
|
29
|
+
/** The account to impersonate. */
|
30
|
+
address: Address;
|
31
|
+
};
|
32
|
+
declare function impersonateAccount<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address }: ImpersonateAccountParameters): Promise<void>;
|
33
|
+
|
34
|
+
type IncreaseTimeParameters = {
|
35
|
+
/** The amount of seconds to jump forward in time. */
|
36
|
+
seconds: number;
|
37
|
+
};
|
38
|
+
declare function increaseTime<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { seconds }: IncreaseTimeParameters): Promise<`0x${string}`>;
|
39
|
+
|
40
|
+
type InspectTxpoolReturnType = {
|
41
|
+
pending: Record<Address, Record<string, string>>;
|
42
|
+
queued: Record<Address, Record<string, string>>;
|
43
|
+
};
|
44
|
+
declare function inspectTxpool<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<InspectTxpoolReturnType>;
|
45
|
+
|
46
|
+
type MineParameters = {
|
47
|
+
/** Number of blocks to mine. */
|
48
|
+
blocks: number;
|
49
|
+
/** Interval between each block in seconds. */
|
50
|
+
interval?: number;
|
51
|
+
};
|
52
|
+
declare function mine<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { blocks, interval }: MineParameters): Promise<void>;
|
53
|
+
|
54
|
+
type ResetParameters = {
|
55
|
+
/** The block number to reset from. */
|
56
|
+
blockNumber?: bigint;
|
57
|
+
/** The JSON RPC URL. */
|
58
|
+
jsonRpcUrl?: string;
|
59
|
+
};
|
60
|
+
declare function reset<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { blockNumber, jsonRpcUrl }?: ResetParameters): Promise<void>;
|
61
|
+
|
62
|
+
type RevertParameters = {
|
63
|
+
/** The snapshot ID to revert to. */
|
64
|
+
id: Quantity;
|
65
|
+
};
|
66
|
+
declare function revert<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { id }: RevertParameters): Promise<void>;
|
67
|
+
|
68
|
+
type SendUnsignedTransactionParameters = TransactionRequest;
|
69
|
+
type SendUnsignedTransactionReturnType = Hash;
|
70
|
+
declare function sendUnsignedTransaction<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, request: SendUnsignedTransactionParameters): Promise<SendUnsignedTransactionReturnType>;
|
71
|
+
|
72
|
+
type SetBalanceParameters = {
|
73
|
+
/** The account address. */
|
74
|
+
address: Address;
|
75
|
+
/** Amount (in wei) to set */
|
76
|
+
value: bigint;
|
77
|
+
};
|
78
|
+
declare function setBalance<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, value }: SetBalanceParameters): Promise<void>;
|
79
|
+
|
80
|
+
type SetBlockGasLimitParameters = {
|
81
|
+
/** Gas limit (in wei). */
|
82
|
+
gasLimit: bigint;
|
83
|
+
};
|
84
|
+
declare function setBlockGasLimit<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { gasLimit }: SetBlockGasLimitParameters): Promise<void>;
|
85
|
+
|
86
|
+
type SetBlockTimestampIntervalParameters = {
|
87
|
+
/** The interval (in seconds). */
|
88
|
+
interval: number;
|
89
|
+
};
|
90
|
+
declare function setBlockTimestampInterval<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { interval }: SetBlockTimestampIntervalParameters): Promise<void>;
|
91
|
+
|
92
|
+
type SetCodeParameters = {
|
93
|
+
/** The account address. */
|
94
|
+
address: Address;
|
95
|
+
/** The bytecode to set */
|
96
|
+
bytecode: Hex;
|
97
|
+
};
|
98
|
+
declare function setCode<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, bytecode }: SetCodeParameters): Promise<void>;
|
99
|
+
|
100
|
+
type SetCoinbaseParameters = {
|
101
|
+
/** The coinbase address. */
|
102
|
+
address: Address;
|
103
|
+
};
|
104
|
+
declare function setCoinbase<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address }: SetCoinbaseParameters): Promise<void>;
|
105
|
+
|
106
|
+
type SetIntervalMiningParameters = {
|
107
|
+
/** The mining interval. */
|
108
|
+
interval: number;
|
109
|
+
};
|
110
|
+
declare function setIntervalMining<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { interval }: SetIntervalMiningParameters): Promise<void>;
|
111
|
+
|
112
|
+
type SetMinGasPriceParameters = {
|
113
|
+
/** The gas price. */
|
114
|
+
gasPrice: bigint;
|
115
|
+
};
|
116
|
+
declare function setMinGasPrice<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { gasPrice }: SetMinGasPriceParameters): Promise<void>;
|
117
|
+
|
118
|
+
type SetNextBlockBaseFeePerGasParameters = {
|
119
|
+
/** Base fee per gas (in wei). */
|
120
|
+
baseFeePerGas: bigint;
|
121
|
+
};
|
122
|
+
declare function setNextBlockBaseFeePerGas<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { baseFeePerGas }: SetNextBlockBaseFeePerGasParameters): Promise<void>;
|
123
|
+
|
124
|
+
type SetNextBlockTimestampParameters = {
|
125
|
+
/** The timestamp (in seconds). */
|
126
|
+
timestamp: bigint;
|
127
|
+
};
|
128
|
+
declare function setNextBlockTimestamp<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { timestamp }: SetNextBlockTimestampParameters): Promise<void>;
|
129
|
+
|
130
|
+
type SetNonceParameters = {
|
131
|
+
/** The account address. */
|
132
|
+
address: Address;
|
133
|
+
/** The nonce to set. */
|
134
|
+
nonce: number;
|
135
|
+
};
|
136
|
+
declare function setNonce<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, nonce }: SetNonceParameters): Promise<void>;
|
137
|
+
|
138
|
+
type SetStorageAtParameters = {
|
139
|
+
/** The account address. */
|
140
|
+
address: Address;
|
141
|
+
/** The storage slot (index). Can either be a number or hash value. */
|
142
|
+
index: number | Hash;
|
143
|
+
/** The value to store as a 32 byte hex string. */
|
144
|
+
value: Hex;
|
145
|
+
};
|
146
|
+
declare function setStorageAt<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, index, value }: SetStorageAtParameters): Promise<void>;
|
147
|
+
|
148
|
+
type StopImpersonatingAccountParameters = {
|
149
|
+
/** The account to impersonate. */
|
150
|
+
address: Address;
|
151
|
+
};
|
152
|
+
declare function stopImpersonatingAccount<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address }: StopImpersonatingAccountParameters): Promise<void>;
|
153
|
+
|
154
|
+
type TestClientMode = 'anvil' | 'hardhat';
|
155
|
+
type TestClientConfig<TMode extends TestClientMode = TestClientMode, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
|
156
|
+
/** Mode of the test client. Available: "anvil" | "hardhat" */
|
157
|
+
mode: TMode;
|
158
|
+
};
|
159
|
+
type TestClient<TMode extends TestClientMode = TestClientMode, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TIncludeActions extends boolean = true> = Client<TTransport, TestRequests<TMode>, TChain> & (TIncludeActions extends true ? TestActions : unknown) & {
|
160
|
+
mode: TMode;
|
161
|
+
};
|
162
|
+
/**
|
163
|
+
* @description Creates a test client with a given transport.
|
164
|
+
*/
|
165
|
+
declare function createTestClient<TMode extends TestClientMode, TTransport extends Transport, TChain extends Chain | undefined = undefined>({ chain, key, name, mode, pollingInterval, transport, }: TestClientConfig<TMode, TTransport, TChain>): TestClient<TMode, TTransport, TChain, true>;
|
166
|
+
|
167
|
+
type TestActions = {
|
168
|
+
dropTransaction: (args: DropTransactionParameters) => Promise<void>;
|
169
|
+
getAutomine: () => Promise<GetAutomineReturnType>;
|
170
|
+
getTxpoolContent: () => Promise<GetTxpoolContentReturnType>;
|
171
|
+
getTxpoolStatus: () => Promise<GetTxpoolStatusReturnType>;
|
172
|
+
impersonateAccount: (args: ImpersonateAccountParameters) => Promise<void>;
|
173
|
+
increaseTime: (args: IncreaseTimeParameters) => Promise<Quantity>;
|
174
|
+
inspectTxpool: () => Promise<InspectTxpoolReturnType>;
|
175
|
+
mine: (args: MineParameters) => Promise<void>;
|
176
|
+
removeBlockTimestampInterval: () => Promise<void>;
|
177
|
+
reset: (args?: ResetParameters) => Promise<void>;
|
178
|
+
revert: (args: RevertParameters) => Promise<void>;
|
179
|
+
sendUnsignedTransaction: (args: SendUnsignedTransactionParameters) => Promise<SendUnsignedTransactionReturnType>;
|
180
|
+
setAutomine: (args: boolean) => Promise<void>;
|
181
|
+
setBalance: (args: SetBalanceParameters) => Promise<void>;
|
182
|
+
setBlockGasLimit: (args: SetBlockGasLimitParameters) => Promise<void>;
|
183
|
+
setBlockTimestampInterval: (args: SetBlockTimestampIntervalParameters) => Promise<void>;
|
184
|
+
setCode: (args: SetCodeParameters) => Promise<void>;
|
185
|
+
setCoinbase: (args: SetCoinbaseParameters) => Promise<void>;
|
186
|
+
setIntervalMining: (args: SetIntervalMiningParameters) => Promise<void>;
|
187
|
+
setLoggingEnabled: (args: boolean) => Promise<void>;
|
188
|
+
setMinGasPrice: (args: SetMinGasPriceParameters) => Promise<void>;
|
189
|
+
setNextBlockBaseFeePerGas: (args: SetNextBlockBaseFeePerGasParameters) => Promise<void>;
|
190
|
+
setNextBlockTimestamp: (args: SetNextBlockTimestampParameters) => Promise<void>;
|
191
|
+
setNonce: (args: SetNonceParameters) => Promise<void>;
|
192
|
+
setRpcUrl: (args: string) => Promise<void>;
|
193
|
+
setStorageAt: (args: SetStorageAtParameters) => Promise<void>;
|
194
|
+
snapshot: () => Promise<Quantity>;
|
195
|
+
stopImpersonatingAccount: (args: StopImpersonatingAccountParameters) => Promise<void>;
|
196
|
+
};
|
197
|
+
|
198
|
+
export { IncreaseTimeParameters as A, RevertParameters as B, SendUnsignedTransactionReturnType as C, DropTransactionParameters as D, SetBalanceParameters as E, SetBlockGasLimitParameters as F, SetBlockTimestampIntervalParameters as G, SetCodeParameters as H, ImpersonateAccountParameters as I, SetCoinbaseParameters as J, SetIntervalMiningParameters as K, SetMinGasPriceParameters as L, MineParameters as M, SetNextBlockBaseFeePerGasParameters as N, SetNextBlockTimestampParameters as O, SetNonceParameters as P, SetStorageAtParameters as Q, ResetParameters as R, SendUnsignedTransactionParameters as S, TestClient as T, StopImpersonatingAccountParameters as U, TestClientConfig as a, TestClientMode as b, createTestClient as c, dropTransaction as d, getTxpoolContent as e, getTxpoolStatus as f, getAutomine as g, increaseTime as h, impersonateAccount as i, inspectTxpool as j, revert as k, setBalance as l, mine as m, setBlockGasLimit as n, setBlockTimestampInterval as o, setCode as p, setCoinbase as q, reset as r, sendUnsignedTransaction as s, setIntervalMining as t, setMinGasPrice as u, setNextBlockBaseFeePerGas as v, setNextBlockTimestamp as w, setNonce as x, setStorageAt as y, stopImpersonatingAccount as z };
|
package/dist/test.d.ts
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import { b as
|
2
|
-
export { D as DropTransactionParameters, I as ImpersonateAccountParameters, A as IncreaseTimeParameters, M as MineParameters, R as ResetParameters, B as RevertParameters, S as SendUnsignedTransactionParameters, C as SendUnsignedTransactionReturnType, E as SetBalanceParameters, F as SetBlockGasLimitParameters, G as SetBlockTimestampIntervalParameters, H as SetCodeParameters, J as SetCoinbaseParameters, K as SetIntervalMiningParameters, L as SetMinGasPriceParameters, N as SetNextBlockBaseFeePerGasParameters, O as SetNextBlockTimestampParameters, P as SetNonceParameters, Q as SetStorageAtParameters, U as StopImpersonatingAccountParameters, d as dropTransaction, g as getAutomine, e as getTxpoolContent, f as getTxpoolStatus, i as impersonateAccount, h as increaseTime, j as inspectTxpool, m as mine, r as reset, k as revert, s as sendUnsignedTransaction, l as setBalance, n as setBlockGasLimit, o as setBlockTimestampInterval, p as setCode, q as setCoinbase, t as setIntervalMining, u as setMinGasPrice, v as setNextBlockBaseFeePerGas, w as setNextBlockTimestamp, x as setNonce, y as setStorageAt, z as stopImpersonatingAccount } from './test-
|
3
|
-
import '
|
4
|
-
import '
|
1
|
+
import { T as TestClient, b as TestClientMode } from './test-e28db435.js';
|
2
|
+
export { D as DropTransactionParameters, I as ImpersonateAccountParameters, A as IncreaseTimeParameters, M as MineParameters, R as ResetParameters, B as RevertParameters, S as SendUnsignedTransactionParameters, C as SendUnsignedTransactionReturnType, E as SetBalanceParameters, F as SetBlockGasLimitParameters, G as SetBlockTimestampIntervalParameters, H as SetCodeParameters, J as SetCoinbaseParameters, K as SetIntervalMiningParameters, L as SetMinGasPriceParameters, N as SetNextBlockBaseFeePerGasParameters, O as SetNextBlockTimestampParameters, P as SetNonceParameters, Q as SetStorageAtParameters, U as StopImpersonatingAccountParameters, d as dropTransaction, g as getAutomine, e as getTxpoolContent, f as getTxpoolStatus, i as impersonateAccount, h as increaseTime, j as inspectTxpool, m as mine, r as reset, k as revert, s as sendUnsignedTransaction, l as setBalance, n as setBlockGasLimit, o as setBlockTimestampInterval, p as setCode, q as setCoinbase, t as setIntervalMining, u as setMinGasPrice, v as setNextBlockBaseFeePerGas, w as setNextBlockTimestamp, x as setNonce, y as setStorageAt, z as stopImpersonatingAccount } from './test-e28db435.js';
|
3
|
+
import { Chain } from '@wagmi/chains';
|
4
|
+
import { a as Transport } from './createClient-1f19be8d.js';
|
5
|
+
import { C as Chain$1 } from './chain-4af995bf.js';
|
6
|
+
import './eip1193-210ab776.js';
|
5
7
|
import 'abitype';
|
6
|
-
import './createClient-f87255c1.js';
|
7
|
-
import './eip1193-ae706fd8.js';
|
8
8
|
|
9
|
-
declare function removeBlockTimestampInterval(client:
|
9
|
+
declare function removeBlockTimestampInterval<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<void>;
|
10
10
|
|
11
|
-
declare function setAutomine(client:
|
11
|
+
declare function setAutomine<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, enabled: boolean): Promise<void>;
|
12
12
|
|
13
|
-
declare function setLoggingEnabled(client:
|
13
|
+
declare function setLoggingEnabled<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, enabled: boolean): Promise<void>;
|
14
14
|
|
15
|
-
declare function setRpcUrl(client:
|
15
|
+
declare function setRpcUrl<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, jsonRpcUrl: string): Promise<void>;
|
16
16
|
|
17
|
-
declare function snapshot(client:
|
17
|
+
declare function snapshot<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<`0x${string}`>;
|
18
18
|
|
19
19
|
export { removeBlockTimestampInterval, setAutomine, setLoggingEnabled, setRpcUrl, snapshot };
|
package/dist/test.js
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
|
-
var
|
30
|
+
var _chunkCGTZNR2Rjs = require('./chunk-CGTZNR2R.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -57,5 +57,5 @@ var _chunkNJSAEA2Hjs = require('./chunk-NJSAEA2H.js');
|
|
57
57
|
|
58
58
|
|
59
59
|
|
60
|
-
exports.dropTransaction =
|
60
|
+
exports.dropTransaction = _chunkCGTZNR2Rjs.dropTransaction; exports.getAutomine = _chunkCGTZNR2Rjs.getAutomine; exports.getTxpoolContent = _chunkCGTZNR2Rjs.getTxpoolContent; exports.getTxpoolStatus = _chunkCGTZNR2Rjs.getTxpoolStatus; exports.impersonateAccount = _chunkCGTZNR2Rjs.impersonateAccount; exports.increaseTime = _chunkCGTZNR2Rjs.increaseTime; exports.inspectTxpool = _chunkCGTZNR2Rjs.inspectTxpool; exports.mine = _chunkCGTZNR2Rjs.mine; exports.removeBlockTimestampInterval = _chunkCGTZNR2Rjs.removeBlockTimestampInterval; exports.reset = _chunkCGTZNR2Rjs.reset; exports.revert = _chunkCGTZNR2Rjs.revert; exports.sendUnsignedTransaction = _chunkCGTZNR2Rjs.sendUnsignedTransaction; exports.setAutomine = _chunkCGTZNR2Rjs.setAutomine; exports.setBalance = _chunkCGTZNR2Rjs.setBalance; exports.setBlockGasLimit = _chunkCGTZNR2Rjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkCGTZNR2Rjs.setBlockTimestampInterval; exports.setCode = _chunkCGTZNR2Rjs.setCode; exports.setCoinbase = _chunkCGTZNR2Rjs.setCoinbase; exports.setIntervalMining = _chunkCGTZNR2Rjs.setIntervalMining; exports.setLoggingEnabled = _chunkCGTZNR2Rjs.setLoggingEnabled; exports.setMinGasPrice = _chunkCGTZNR2Rjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkCGTZNR2Rjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkCGTZNR2Rjs.setNextBlockTimestamp; exports.setNonce = _chunkCGTZNR2Rjs.setNonce; exports.setRpcUrl = _chunkCGTZNR2Rjs.setRpcUrl; exports.setStorageAt = _chunkCGTZNR2Rjs.setStorageAt; exports.snapshot = _chunkCGTZNR2Rjs.snapshot; exports.stopImpersonatingAccount = _chunkCGTZNR2Rjs.stopImpersonatingAccount;
|
61
61
|
//# sourceMappingURL=test.js.map
|
package/dist/test.mjs
CHANGED
@@ -1,30 +1,26 @@
|
|
1
1
|
import { HDKey } from '@scure/bip32';
|
2
2
|
import { Address, TypedData, TypedDataToPrimitiveTypes, TypedDataDomain, Narrow } from 'abitype';
|
3
|
-
import { a as Hash,
|
3
|
+
import { a as Hash, W as TransactionSerializable, H as Hex } from './chain-4af995bf.js';
|
4
4
|
|
5
|
-
type Account = JsonRpcAccount | LocalAccount
|
5
|
+
type Account<TAddress extends Address = Address> = JsonRpcAccount<TAddress> | LocalAccount<string, TAddress>;
|
6
6
|
type AccountSource = Address | CustomSource;
|
7
7
|
type CustomSource = {
|
8
8
|
address: Address;
|
9
9
|
signMessage: ({ message }: {
|
10
10
|
message: string;
|
11
11
|
}) => Promise<Hash>;
|
12
|
-
signTransaction: (transaction:
|
13
|
-
chainId: number;
|
14
|
-
from: Address;
|
15
|
-
}) => Promise<Hash>;
|
12
|
+
signTransaction: (transaction: TransactionSerializable) => Promise<Hash>;
|
16
13
|
signTypedData: <TTypedData extends TypedData | {
|
17
14
|
[key: string]: unknown;
|
18
15
|
}, TPrimaryType extends string = string>(typedData: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<Hash>;
|
19
16
|
};
|
20
|
-
type JsonRpcAccount = {
|
21
|
-
address:
|
17
|
+
type JsonRpcAccount<TAddress extends Address = Address> = {
|
18
|
+
address: TAddress;
|
22
19
|
type: 'json-rpc';
|
23
20
|
};
|
24
|
-
type LocalAccount<TSource = 'custom'> = CustomSource & {
|
25
|
-
address:
|
21
|
+
type LocalAccount<TSource extends string = 'custom', TAddress extends Address = Address> = CustomSource & {
|
22
|
+
address: TAddress;
|
26
23
|
publicKey: Hex;
|
27
|
-
getPrivateKey(): Hex;
|
28
24
|
source: TSource;
|
29
25
|
type: 'local';
|
30
26
|
};
|
@@ -32,14 +28,18 @@ type HDAccount = LocalAccount<'hd'> & {
|
|
32
28
|
getHdKey(): HDKey;
|
33
29
|
};
|
34
30
|
type HDOptions = {
|
31
|
+
/** The account index to use in the path (`"m/44'/60'/${accountIndex}'/0/0"`). */
|
35
32
|
accountIndex?: number;
|
33
|
+
/** The address index to use in the path (`"m/44'/60'/0'/0/${addressIndex}"`). */
|
36
34
|
addressIndex?: number;
|
35
|
+
/** The change index to use in the path (`"m/44'/60'/0'/${changeIndex}/0"`). */
|
37
36
|
changeIndex?: number;
|
38
37
|
path?: never;
|
39
38
|
} | {
|
40
39
|
accountIndex?: never;
|
41
40
|
addressIndex?: never;
|
42
41
|
changeIndex?: never;
|
42
|
+
/** The HD path. */
|
43
43
|
path: `m/44'/60'/${string}`;
|
44
44
|
};
|
45
45
|
type PrivateKeyAccount = LocalAccount<'privateKey'>;
|
package/dist/utils/index.d.ts
CHANGED
@@ -1,21 +1,20 @@
|
|
1
|
-
import { Address } from 'abitype';
|
2
1
|
export { ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters } from 'abitype';
|
3
|
-
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from '../getAbiItem-
|
4
|
-
export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from '../encodeFunctionResult-
|
5
|
-
export { e as encodePacked } from '../encodePacked-
|
6
|
-
export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-
|
7
|
-
export { p as parseAccount } from '../parseAccount-
|
8
|
-
import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError,
|
9
|
-
export { G as GetContractAddressOptions,
|
10
|
-
export { d as defineChain, g as getChainContractAddress } from '../chain-
|
11
|
-
import { C as CallParameters, E as EstimateGasParameters, S as SendTransactionParameters
|
12
|
-
export { B as BlockFormatter, F as FormattedBlock, f as FormattedTransactionReceipt, g as FormattedTransactionRequest, T as TransactionReceiptFormatter, h as TransactionRequestFormatter, i as defineBlock, j as defineTransactionReceipt, k as defineTransactionRequest, l as formatBlock, m as formatTransactionRequest } from '../createPublicClient-
|
13
|
-
import {
|
14
|
-
export {
|
15
|
-
import { A as Account } from '../typedData-
|
16
|
-
import { a as Transport } from '../createClient-f87255c1.js';
|
2
|
+
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from '../getAbiItem-1ff0f41a.js';
|
3
|
+
export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from '../encodeFunctionResult-a252fba1.js';
|
4
|
+
export { e as encodePacked } from '../encodePacked-a9464e97.js';
|
5
|
+
export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-6ed70dbd.js';
|
6
|
+
export { p as parseAccount } from '../parseAccount-8e131c73.js';
|
7
|
+
import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, i as NonceTooHighError, j as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, m as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, l as TransactionExecutionError } from '../parseGwei-b3a175f7.js';
|
8
|
+
export { G as GetContractAddressOptions, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, H as HttpOptions, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, R as RpcResponse, aW as Socket, D as ToRlpReturnType, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, M as assertRequest, O as assertTransactionEIP1559, P as assertTransactionEIP2930, Q as assertTransactionLegacy, S as boolToBytes, X as boolToHex, Y as bytesToBigint, Z as bytesToBool, _ as bytesToHex, $ as bytesToNumber, a0 as bytesToString, a1 as concat, a2 as concatBytes, a3 as concatHex, a4 as formatEther, a5 as formatGwei, a6 as formatUnits, a7 as fromBytes, a8 as fromHex, a9 as fromRlp, aa as getAddress, ab as getContractAddress, ac as getContractError, ad as getCreate2Address, ae as getCreateAddress, af as getEventSelector, ag as getFunctionSelector, ah as getSerializedTransactionType, aX as getSocket, ai as getTransactionType, aj as hashMessage, ak as hashTypedData, al as hexToBigInt, am as hexToBool, an as hexToBytes, ao as hexToNumber, ap as hexToString, aq as isAddress, ar as isAddressEqual, as as isBytes, at as isHash, au as isHex, av as keccak256, aw as numberToBytes, ax as numberToHex, ay as pad, az as padBytes, aA as padHex, aB as parseEther, aC as parseGwei, aD as parseTransaction, aE as parseUnits, aF as prepareRequest, aG as recoverAddress, aH as recoverMessageAddress, aZ as recoverTypedDataAddress, aY as rpc, aI as serializeTransaction, aJ as size, aK as slice, aL as sliceBytes, aM as sliceHex, aN as stringToBytes, aO as stringToHex, aP as stringify, aQ as toBytes, aR as toHex, aS as toRlp, aT as trim, aU as validateTypedData, aV as verifyMessage, a_ as verifyTypedData } from '../parseGwei-b3a175f7.js';
|
9
|
+
export { d as defineChain, g as getChainContractAddress } from '../chain-40443542.js';
|
10
|
+
import { C as CallParameters, E as EstimateGasParameters, S as SendTransactionParameters } from '../createPublicClient-b53e3c3d.js';
|
11
|
+
export { B as BlockFormatter, F as FormattedBlock, f as FormattedTransactionReceipt, g as FormattedTransactionRequest, T as TransactionReceiptFormatter, h as TransactionRequestFormatter, i as defineBlock, j as defineTransactionReceipt, k as defineTransactionRequest, l as formatBlock, m as formatTransactionRequest } from '../createPublicClient-b53e3c3d.js';
|
12
|
+
import { ac as Formatter, C as Chain } from '../chain-4af995bf.js';
|
13
|
+
export { a4 as ExtractFormatter, a5 as Formatted, a6 as FormattedTransaction, a7 as TransactionFormatter, ao as defineFormatter, a8 as defineTransaction, ap as format, a9 as formatTransaction, aa as transactionType } from '../chain-4af995bf.js';
|
14
|
+
import { A as Account } from '../typedData-848139b1.js';
|
17
15
|
import 'isomorphic-ws';
|
18
|
-
import '../
|
16
|
+
import '../createClient-1f19be8d.js';
|
17
|
+
import '../eip1193-210ab776.js';
|
19
18
|
import '@wagmi/chains';
|
20
19
|
import '@scure/bip32';
|
21
20
|
|
@@ -68,23 +67,4 @@ declare const arrayRegex: RegExp;
|
|
68
67
|
declare const bytesRegex: RegExp;
|
69
68
|
declare const integerRegex: RegExp;
|
70
69
|
|
71
|
-
|
72
|
-
|
73
|
-
type PrepareRequestParameters<TAccount extends Account | undefined = undefined> = GetAccountParameter<TAccount> & {
|
74
|
-
gas?: SendTransactionParameters['gas'];
|
75
|
-
gasPrice?: SendTransactionParameters['gasPrice'];
|
76
|
-
maxFeePerGas?: SendTransactionParameters['maxFeePerGas'];
|
77
|
-
maxPriorityFeePerGas?: SendTransactionParameters['maxPriorityFeePerGas'];
|
78
|
-
nonce?: SendTransactionParameters['nonce'];
|
79
|
-
};
|
80
|
-
type PrepareRequestReturnType<TAccount extends Account | undefined = undefined, TParameters extends PrepareRequestParameters<TAccount> = PrepareRequestParameters<TAccount>> = TParameters & {
|
81
|
-
from: Address;
|
82
|
-
gas: SendTransactionParameters['gas'];
|
83
|
-
gasPrice?: SendTransactionParameters['gasPrice'];
|
84
|
-
maxFeePerGas?: SendTransactionParameters['maxFeePerGas'];
|
85
|
-
maxPriorityFeePerGas?: SendTransactionParameters['maxPriorityFeePerGas'];
|
86
|
-
nonce: SendTransactionParameters['nonce'];
|
87
|
-
};
|
88
|
-
declare function prepareRequest<TAccount extends Account | undefined, TParameters extends PrepareRequestParameters<TAccount>, TChain extends Chain | undefined>(client: WalletClientArg<Transport, TChain, TAccount> | PublicClientArg<Transport, TChain>, args: TParameters): Promise<PrepareRequestReturnType<TAccount, TParameters>>;
|
89
|
-
|
90
|
-
export { arrayRegex, assertRequest, buildRequest, bytesRegex, containsNodeError, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, getCallError, getEstimateGasError, getNodeError, getTransactionError, integerRegex, prepareRequest };
|
70
|
+
export { arrayRegex, buildRequest, bytesRegex, containsNodeError, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, getCallError, getEstimateGasError, getNodeError, getTransactionError, integerRegex };
|
package/dist/utils/index.js
CHANGED
@@ -109,7 +109,6 @@
|
|
109
109
|
|
110
110
|
|
111
111
|
|
112
|
-
var _chunkNJSAEA2Hjs = require('../chunk-NJSAEA2H.js');
|
113
112
|
|
114
113
|
|
115
114
|
|
@@ -118,6 +117,7 @@ var _chunkNJSAEA2Hjs = require('../chunk-NJSAEA2H.js');
|
|
118
117
|
|
119
118
|
|
120
119
|
|
120
|
+
var _chunkCGTZNR2Rjs = require('../chunk-CGTZNR2R.js');
|
121
121
|
|
122
122
|
|
123
123
|
|
@@ -221,5 +221,21 @@ var _chunkNJSAEA2Hjs = require('../chunk-NJSAEA2H.js');
|
|
221
221
|
|
222
222
|
|
223
223
|
|
224
|
-
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
exports.arrayRegex = _chunkCGTZNR2Rjs.arrayRegex; exports.assertRequest = _chunkCGTZNR2Rjs.assertRequest; exports.assertTransactionEIP1559 = _chunkCGTZNR2Rjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkCGTZNR2Rjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkCGTZNR2Rjs.assertTransactionLegacy; exports.boolToBytes = _chunkCGTZNR2Rjs.boolToBytes; exports.boolToHex = _chunkCGTZNR2Rjs.boolToHex; exports.buildRequest = _chunkCGTZNR2Rjs.buildRequest; exports.bytesRegex = _chunkCGTZNR2Rjs.bytesRegex; exports.bytesToBigint = _chunkCGTZNR2Rjs.bytesToBigint; exports.bytesToBool = _chunkCGTZNR2Rjs.bytesToBool; exports.bytesToHex = _chunkCGTZNR2Rjs.bytesToHex; exports.bytesToNumber = _chunkCGTZNR2Rjs.bytesToNumber; exports.bytesToString = _chunkCGTZNR2Rjs.bytesToString; exports.concat = _chunkCGTZNR2Rjs.concat; exports.concatBytes = _chunkCGTZNR2Rjs.concatBytes; exports.concatHex = _chunkCGTZNR2Rjs.concatHex; exports.containsNodeError = _chunkCGTZNR2Rjs.containsNodeError; exports.decodeAbiParameters = _chunkCGTZNR2Rjs.decodeAbiParameters; exports.decodeErrorResult = _chunkCGTZNR2Rjs.decodeErrorResult; exports.decodeEventLog = _chunkCGTZNR2Rjs.decodeEventLog; exports.decodeFunctionData = _chunkCGTZNR2Rjs.decodeFunctionData; exports.decodeFunctionResult = _chunkCGTZNR2Rjs.decodeFunctionResult; exports.defineBlock = _chunkCGTZNR2Rjs.defineBlock; exports.defineChain = _chunkCGTZNR2Rjs.defineChain; exports.defineFormatter = _chunkCGTZNR2Rjs.defineFormatter; exports.defineTransaction = _chunkCGTZNR2Rjs.defineTransaction; exports.defineTransactionReceipt = _chunkCGTZNR2Rjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkCGTZNR2Rjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkCGTZNR2Rjs.encodeAbiParameters; exports.encodeDeployData = _chunkCGTZNR2Rjs.encodeDeployData; exports.encodeErrorResult = _chunkCGTZNR2Rjs.encodeErrorResult; exports.encodeEventTopics = _chunkCGTZNR2Rjs.encodeEventTopics; exports.encodeFunctionData = _chunkCGTZNR2Rjs.encodeFunctionData; exports.encodeFunctionResult = _chunkCGTZNR2Rjs.encodeFunctionResult; exports.encodePacked = _chunkCGTZNR2Rjs.encodePacked; exports.extract = _chunkCGTZNR2Rjs.extract; exports.extractFunctionName = _chunkCGTZNR2Rjs.extractFunctionName; exports.extractFunctionParams = _chunkCGTZNR2Rjs.extractFunctionParams; exports.extractFunctionParts = _chunkCGTZNR2Rjs.extractFunctionParts; exports.extractFunctionType = _chunkCGTZNR2Rjs.extractFunctionType; exports.format = _chunkCGTZNR2Rjs.format; exports.formatAbiItem = _chunkCGTZNR2Rjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkCGTZNR2Rjs.formatAbiItemWithArgs; exports.formatBlock = _chunkCGTZNR2Rjs.formatBlock; exports.formatEther = _chunkCGTZNR2Rjs.formatEther; exports.formatGwei = _chunkCGTZNR2Rjs.formatGwei; exports.formatTransaction = _chunkCGTZNR2Rjs.formatTransaction; exports.formatTransactionRequest = _chunkCGTZNR2Rjs.formatTransactionRequest; exports.formatUnits = _chunkCGTZNR2Rjs.formatUnits; exports.fromBytes = _chunkCGTZNR2Rjs.fromBytes; exports.fromHex = _chunkCGTZNR2Rjs.fromHex; exports.fromRlp = _chunkCGTZNR2Rjs.fromRlp; exports.getAbiItem = _chunkCGTZNR2Rjs.getAbiItem; exports.getAddress = _chunkCGTZNR2Rjs.getAddress; exports.getCallError = _chunkCGTZNR2Rjs.getCallError; exports.getChainContractAddress = _chunkCGTZNR2Rjs.getChainContractAddress; exports.getContractAddress = _chunkCGTZNR2Rjs.getContractAddress; exports.getContractError = _chunkCGTZNR2Rjs.getContractError; exports.getCreate2Address = _chunkCGTZNR2Rjs.getCreate2Address; exports.getCreateAddress = _chunkCGTZNR2Rjs.getCreateAddress; exports.getEstimateGasError = _chunkCGTZNR2Rjs.getEstimateGasError; exports.getEventSelector = _chunkCGTZNR2Rjs.getEventSelector; exports.getFunctionSelector = _chunkCGTZNR2Rjs.getFunctionSelector; exports.getNodeError = _chunkCGTZNR2Rjs.getNodeError; exports.getSerializedTransactionType = _chunkCGTZNR2Rjs.getSerializedTransactionType; exports.getSocket = _chunkCGTZNR2Rjs.getSocket; exports.getTransactionError = _chunkCGTZNR2Rjs.getTransactionError; exports.getTransactionType = _chunkCGTZNR2Rjs.getTransactionType; exports.hashMessage = _chunkCGTZNR2Rjs.hashMessage; exports.hashTypedData = _chunkCGTZNR2Rjs.hashTypedData; exports.hexToBigInt = _chunkCGTZNR2Rjs.hexToBigInt; exports.hexToBool = _chunkCGTZNR2Rjs.hexToBool; exports.hexToBytes = _chunkCGTZNR2Rjs.hexToBytes; exports.hexToNumber = _chunkCGTZNR2Rjs.hexToNumber; exports.hexToString = _chunkCGTZNR2Rjs.hexToString; exports.integerRegex = _chunkCGTZNR2Rjs.integerRegex; exports.isAddress = _chunkCGTZNR2Rjs.isAddress; exports.isAddressEqual = _chunkCGTZNR2Rjs.isAddressEqual; exports.isBytes = _chunkCGTZNR2Rjs.isBytes; exports.isHash = _chunkCGTZNR2Rjs.isHash; exports.isHex = _chunkCGTZNR2Rjs.isHex; exports.keccak256 = _chunkCGTZNR2Rjs.keccak256; exports.numberToBytes = _chunkCGTZNR2Rjs.numberToBytes; exports.numberToHex = _chunkCGTZNR2Rjs.numberToHex; exports.pad = _chunkCGTZNR2Rjs.pad; exports.padBytes = _chunkCGTZNR2Rjs.padBytes; exports.padHex = _chunkCGTZNR2Rjs.padHex; exports.parseAbi = _chunkCGTZNR2Rjs.parseAbi; exports.parseAbiItem = _chunkCGTZNR2Rjs.parseAbiItem; exports.parseAbiParameter = _chunkCGTZNR2Rjs.parseAbiParameter; exports.parseAbiParameters = _chunkCGTZNR2Rjs.parseAbiParameters; exports.parseAccount = _chunkCGTZNR2Rjs.parseAccount; exports.parseEther = _chunkCGTZNR2Rjs.parseEther; exports.parseGwei = _chunkCGTZNR2Rjs.parseGwei; exports.parseTransaction = _chunkCGTZNR2Rjs.parseTransaction; exports.parseUnits = _chunkCGTZNR2Rjs.parseUnits; exports.prepareRequest = _chunkCGTZNR2Rjs.prepareRequest; exports.recoverAddress = _chunkCGTZNR2Rjs.recoverAddress; exports.recoverMessageAddress = _chunkCGTZNR2Rjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkCGTZNR2Rjs.recoverTypedDataAddress; exports.rpc = _chunkCGTZNR2Rjs.rpc; exports.serializeTransaction = _chunkCGTZNR2Rjs.serializeTransaction; exports.size = _chunkCGTZNR2Rjs.size; exports.slice = _chunkCGTZNR2Rjs.slice; exports.sliceBytes = _chunkCGTZNR2Rjs.sliceBytes; exports.sliceHex = _chunkCGTZNR2Rjs.sliceHex; exports.stringToBytes = _chunkCGTZNR2Rjs.stringToBytes; exports.stringToHex = _chunkCGTZNR2Rjs.stringToHex; exports.stringify = _chunkCGTZNR2Rjs.stringify; exports.toBytes = _chunkCGTZNR2Rjs.toBytes; exports.toHex = _chunkCGTZNR2Rjs.toHex; exports.toRlp = _chunkCGTZNR2Rjs.toRlp; exports.transactionType = _chunkCGTZNR2Rjs.transactionType; exports.trim = _chunkCGTZNR2Rjs.trim; exports.validateTypedData = _chunkCGTZNR2Rjs.validateTypedData; exports.verifyMessage = _chunkCGTZNR2Rjs.verifyMessage; exports.verifyTypedData = _chunkCGTZNR2Rjs.verifyTypedData;
|
225
241
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.mjs
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
arrayRegex,
|
3
3
|
assertRequest,
|
4
|
+
assertTransactionEIP1559,
|
5
|
+
assertTransactionEIP2930,
|
6
|
+
assertTransactionLegacy,
|
4
7
|
boolToBytes,
|
5
8
|
boolToHex,
|
6
9
|
buildRequest,
|
@@ -61,8 +64,10 @@ import {
|
|
61
64
|
getEventSelector,
|
62
65
|
getFunctionSelector,
|
63
66
|
getNodeError,
|
67
|
+
getSerializedTransactionType,
|
64
68
|
getSocket,
|
65
69
|
getTransactionError,
|
70
|
+
getTransactionType,
|
66
71
|
hashMessage,
|
67
72
|
hashTypedData,
|
68
73
|
hexToBigInt,
|
@@ -74,6 +79,7 @@ import {
|
|
74
79
|
isAddress,
|
75
80
|
isAddressEqual,
|
76
81
|
isBytes,
|
82
|
+
isHash,
|
77
83
|
isHex,
|
78
84
|
keccak256,
|
79
85
|
numberToBytes,
|
@@ -88,12 +94,14 @@ import {
|
|
88
94
|
parseAccount,
|
89
95
|
parseEther,
|
90
96
|
parseGwei,
|
97
|
+
parseTransaction,
|
91
98
|
parseUnits,
|
92
99
|
prepareRequest,
|
93
100
|
recoverAddress,
|
94
101
|
recoverMessageAddress,
|
95
102
|
recoverTypedDataAddress,
|
96
103
|
rpc,
|
104
|
+
serializeTransaction,
|
97
105
|
size,
|
98
106
|
slice,
|
99
107
|
sliceBytes,
|
@@ -109,10 +117,13 @@ import {
|
|
109
117
|
validateTypedData,
|
110
118
|
verifyMessage,
|
111
119
|
verifyTypedData
|
112
|
-
} from "../chunk-
|
120
|
+
} from "../chunk-HWVZ6VEQ.mjs";
|
113
121
|
export {
|
114
122
|
arrayRegex,
|
115
123
|
assertRequest,
|
124
|
+
assertTransactionEIP1559,
|
125
|
+
assertTransactionEIP2930,
|
126
|
+
assertTransactionLegacy,
|
116
127
|
boolToBytes,
|
117
128
|
boolToHex,
|
118
129
|
buildRequest,
|
@@ -173,8 +184,10 @@ export {
|
|
173
184
|
getEventSelector,
|
174
185
|
getFunctionSelector,
|
175
186
|
getNodeError,
|
187
|
+
getSerializedTransactionType,
|
176
188
|
getSocket,
|
177
189
|
getTransactionError,
|
190
|
+
getTransactionType,
|
178
191
|
hashMessage,
|
179
192
|
hashTypedData,
|
180
193
|
hexToBigInt,
|
@@ -186,6 +199,7 @@ export {
|
|
186
199
|
isAddress,
|
187
200
|
isAddressEqual,
|
188
201
|
isBytes,
|
202
|
+
isHash,
|
189
203
|
isHex,
|
190
204
|
keccak256,
|
191
205
|
numberToBytes,
|
@@ -200,12 +214,14 @@ export {
|
|
200
214
|
parseAccount,
|
201
215
|
parseEther,
|
202
216
|
parseGwei,
|
217
|
+
parseTransaction,
|
203
218
|
parseUnits,
|
204
219
|
prepareRequest,
|
205
220
|
recoverAddress,
|
206
221
|
recoverMessageAddress,
|
207
222
|
recoverTypedDataAddress,
|
208
223
|
rpc,
|
224
|
+
serializeTransaction,
|
209
225
|
size,
|
210
226
|
slice,
|
211
227
|
sliceBytes,
|
package/dist/wallet.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
export {
|
2
|
-
import './eip1193-
|
1
|
+
export { bj as AddChainParameters, bk as FormattedTransactionRequest, bm as GetAddressesReturnType, bl as GetPermissionsReturnType, bn as RequestAddressesReturnType, bo as RequestPermissionsReturnType, S as SendTransactionParameters, bp as SendTransactionReturnType, bq as SignMessageParameters, br as SignMessageReturnType, bs as SignTypedDataParameters, bt as SignTypedDataReturnType, bu as SwitchChainParameters, bv as WatchAssetParameters, bw as WatchAssetReturnType, b9 as addChain, ba as getAddresses, bb as getPermissions, bc as requestAddresses, bd as requestPermissions, be as sendTransaction, bf as signMessage, bg as signTypedData, bh as switchChain, bi as watchAsset } from './createPublicClient-b53e3c3d.js';
|
2
|
+
import './eip1193-210ab776.js';
|
3
3
|
import 'abitype';
|
4
|
-
import './chain-
|
4
|
+
import './chain-4af995bf.js';
|
5
5
|
import '@wagmi/chains';
|
6
|
-
import './createClient-
|
7
|
-
import './typedData-
|
6
|
+
import './createClient-1f19be8d.js';
|
7
|
+
import './typedData-848139b1.js';
|
8
8
|
import '@scure/bip32';
|
package/dist/wallet.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
var
|
12
|
+
var _chunkCGTZNR2Rjs = require('./chunk-CGTZNR2R.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkNJSAEA2Hjs = require('./chunk-NJSAEA2H.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunkCGTZNR2Rjs.addChain; exports.getAddresses = _chunkCGTZNR2Rjs.getAddresses; exports.getPermissions = _chunkCGTZNR2Rjs.getPermissions; exports.requestAddresses = _chunkCGTZNR2Rjs.requestAddresses; exports.requestPermissions = _chunkCGTZNR2Rjs.requestPermissions; exports.sendTransaction = _chunkCGTZNR2Rjs.sendTransaction; exports.signMessage = _chunkCGTZNR2Rjs.signMessage; exports.signTypedData = _chunkCGTZNR2Rjs.signTypedData; exports.switchChain = _chunkCGTZNR2Rjs.switchChain; exports.watchAsset = _chunkCGTZNR2Rjs.watchAsset;
|
25
25
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/dist/window.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { R as Requests, E as Events } from './eip1193-
|
1
|
+
import { R as Requests, E as Events } from './eip1193-210ab776.js';
|
2
2
|
import 'abitype';
|
3
|
-
import './chain-
|
3
|
+
import './chain-4af995bf.js';
|
4
4
|
import '@wagmi/chains';
|
5
5
|
|
6
6
|
type WindowProvider = Requests & Events;
|