viem 0.1.9 → 0.1.10
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/{chain-d64be356.d.ts → chain-94f99620.d.ts} +7 -31
- package/dist/{chain-81b3f26c.d.ts → chain-f8edc5d7.d.ts} +1 -1
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +63 -63
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-JTX5BKWL.js → chunk-5FH7E6C5.js} +19 -19
- package/dist/{chunk-BYG4UCLI.mjs → chunk-6YZF7223.mjs} +2 -2
- package/dist/{chunk-NJT5TACH.js → chunk-L5P7BYGT.js} +3 -3
- package/dist/chunk-L5P7BYGT.js.map +1 -0
- package/dist/{chunk-GQ3EDBYX.mjs → chunk-UI4RZ2SR.mjs} +3 -3
- package/dist/chunk-UI4RZ2SR.mjs.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-8575dcd6.d.ts → createClient-ff222f1b.d.ts} +2 -2
- package/dist/{createPublicClient-4d54af8a.d.ts → createPublicClient-110e0ff7.d.ts} +3 -3
- package/dist/{eip1193-029d52f0.d.ts → eip1193-e31a0368.d.ts} +1 -1
- package/dist/{encodeFunctionResult-12963e93.d.ts → encodeFunctionResult-5455530b.d.ts} +1 -1
- package/dist/{encodePacked-98b20b4d.d.ts → encodePacked-de79982f.d.ts} +1 -1
- package/dist/ens.d.ts +4 -4
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/{formatAbiItem-8ee3a7fa.d.ts → formatAbiItem-62cbb896.d.ts} +1 -1
- package/dist/{getAbiItem-de103f9b.d.ts → getAbiItem-46aa68bf.d.ts} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +89 -89
- package/dist/index.mjs +2 -2
- package/dist/{parseGwei-66ef1ac7.d.ts → parseGwei-d221a29d.d.ts} +3 -3
- package/dist/public.d.ts +4 -4
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/{test-f964519b.d.ts → test-796738d1.d.ts} +3 -3
- package/dist/test.d.ts +6 -6
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/utils/index.d.ts +13 -13
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +4 -4
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/dist/window.d.ts +2 -2
- package/package.json +2 -2
- package/dist/chunk-GQ3EDBYX.mjs.map +0 -1
- package/dist/chunk-NJT5TACH.js.map +0 -1
- /package/dist/{chunk-JTX5BKWL.js.map → chunk-5FH7E6C5.js.map} +0 -0
- /package/dist/{chunk-BYG4UCLI.mjs.map → chunk-6YZF7223.mjs.map} +0 -0
package/dist/abi.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters } from 'abitype';
|
2
|
-
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-
|
3
|
-
|
4
|
-
|
2
|
+
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-46aa68bf.js';
|
3
|
+
export { e as encodePacked } from './encodePacked-de79982f.js';
|
4
|
+
import './chain-94f99620.js';
|
5
5
|
import '@wagmi/chains';
|
package/dist/abi.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
|
10
|
-
var
|
10
|
+
var _chunkL5P7BYGTjs = require('./chunk-L5P7BYGT.js');
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -17,5 +17,5 @@ var _chunkNJT5TACHjs = require('./chunk-NJT5TACH.js');
|
|
17
17
|
|
18
18
|
|
19
19
|
|
20
|
-
exports.decodeAbiParameters =
|
20
|
+
exports.decodeAbiParameters = _chunkL5P7BYGTjs.decodeAbiParameters; exports.encodeAbiParameters = _chunkL5P7BYGTjs.encodeAbiParameters; exports.encodePacked = _chunkL5P7BYGTjs.encodePacked; exports.getAbiItem = _chunkL5P7BYGTjs.getAbiItem; exports.parseAbi = _chunkL5P7BYGTjs.parseAbi; exports.parseAbiItem = _chunkL5P7BYGTjs.parseAbiItem; exports.parseAbiParameter = _chunkL5P7BYGTjs.parseAbiParameter; exports.parseAbiParameters = _chunkL5P7BYGTjs.parseAbiParameters;
|
21
21
|
//# sourceMappingURL=abi.js.map
|
package/dist/abi.mjs
CHANGED
@@ -1,20 +1,11 @@
|
|
1
1
|
import { Chain as Chain$1 } from '@wagmi/chains';
|
2
|
-
import { Address, Abi, AbiFunction, ExtractAbiFunction, AbiParametersToPrimitiveTypes, AbiError, ExtractAbiError, AbiEvent, ExtractAbiEvent, ExtractAbiErrorNames, ExtractAbiEventNames, AbiStateMutability, ExtractAbiFunctionNames, Narrow, AbiParameter, AbiParameterToPrimitiveType } from 'abitype';
|
2
|
+
import { Address, Abi, AbiFunction, ExtractAbiFunction, AbiParametersToPrimitiveTypes, AbiConstructor, AbiError, ExtractAbiError, AbiEvent, ExtractAbiEvent, ExtractAbiErrorNames, ExtractAbiEventNames, AbiStateMutability, ExtractAbiFunctionNames, Narrow, AbiParameter, AbiParameterToPrimitiveType } from 'abitype';
|
3
3
|
|
4
4
|
type ByteArray = Uint8Array;
|
5
5
|
type Hex = `0x${string}`;
|
6
6
|
type Hash = `0x${string}`;
|
7
7
|
type LogTopic = Hex | Hex[] | null;
|
8
8
|
|
9
|
-
declare module 'abitype' {
|
10
|
-
interface Config {
|
11
|
-
BytesType: {
|
12
|
-
inputs: Hex;
|
13
|
-
outputs: Hex;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
9
|
type ExtractFormatter<TChain extends Chain, TKey extends keyof NonNullable<TChain['formatters']>, TFallbackFormatter extends Formatter = Formatter> = NonNullable<TChain['formatters']>[TKey] extends NonNullable<unknown> ? NonNullable<TChain['formatters']>[TKey] : TFallbackFormatter;
|
19
10
|
type FormatOptions<TSource, TTarget> = {
|
20
11
|
formatter: Formatter<TSource, TTarget>;
|
@@ -291,11 +282,7 @@ type AbiEventTopicsToPrimitiveTypes<TAbiParameters extends readonly AbiParameter
|
|
291
282
|
AbiParameterToPrimitiveType<Head>,
|
292
283
|
...(Tail extends readonly [] ? [] : Tail extends readonly AbiParameter[] ? AbiEventTopicsToPrimitiveTypes<Tail, [], TData> : [])
|
293
284
|
] : TBase : TBase : TBase : undefined>;
|
294
|
-
type ExtractArgsFromAbi<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction
|
295
|
-
type: 'function';
|
296
|
-
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction & {
|
297
|
-
type: 'function';
|
298
|
-
}, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
285
|
+
type ExtractArgsFromAbi<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
299
286
|
/**
|
300
287
|
* Arguments to pass contract method
|
301
288
|
*
|
@@ -307,13 +294,9 @@ type ExtractArgsFromAbi<TAbi extends Abi | readonly unknown[], TFunctionName ext
|
|
307
294
|
} : {
|
308
295
|
/** Arguments to pass contract method */ args: TArgs;
|
309
296
|
};
|
310
|
-
type ExtractConstructorArgsFromAbi<TAbi extends Abi | readonly unknown[], TAbiFunction extends
|
311
|
-
type: 'constructor';
|
312
|
-
} = TAbi extends Abi ? Extract<TAbi[number], {
|
297
|
+
type ExtractConstructorArgsFromAbi<TAbi extends Abi | readonly unknown[], TAbiFunction extends AbiConstructor = TAbi extends Abi ? Extract<TAbi[number], {
|
313
298
|
type: 'constructor';
|
314
|
-
}> :
|
315
|
-
type: 'constructor';
|
316
|
-
}, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
299
|
+
}> : AbiConstructor, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
317
300
|
/**
|
318
301
|
* Arguments to pass contract method
|
319
302
|
*
|
@@ -360,9 +343,7 @@ type ExtractNames<TAbi extends Abi> = ExtractAbiFunctionNames<TAbi> | ExtractAbi
|
|
360
343
|
type ExtractNameFromAbi<TAbi extends Abi | readonly unknown[] = Abi, TName extends string = string> = TAbi extends Abi ? ExtractNames<TAbi> extends infer AbiNames ? AbiNames | (TName extends AbiNames ? TName : never) | (Abi extends TAbi ? string : never) : never : TName;
|
361
344
|
type ExtractResultFromAbi<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TAbiFunction extends AbiFunction & {
|
362
345
|
type: 'function';
|
363
|
-
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction
|
364
|
-
type: 'function';
|
365
|
-
}, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['outputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? unknown : TArgs extends readonly [] ? void : TArgs extends readonly [infer Arg] ? Arg : TArgs;
|
346
|
+
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['outputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? unknown : TArgs extends readonly [] ? void : TArgs extends readonly [infer Arg] ? Arg : TArgs;
|
366
347
|
type MaybeAbiEventName<TAbiEvent extends AbiEvent | undefined> = TAbiEvent extends AbiEvent ? TAbiEvent['name'] : undefined;
|
367
348
|
type MaybeExtractEventArgsFromAbi<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string | undefined = undefined> = TEventName extends string ? ExtractEventArgsFromAbi<TAbi, TEventName> : undefined;
|
368
349
|
type ContractConfig<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TAbiStateMutability extends AbiStateMutability = AbiStateMutability> = {
|
@@ -373,13 +354,8 @@ type ContractConfig<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName e
|
|
373
354
|
/** Function to invoke on the contract */
|
374
355
|
functionName: ExtractFunctionNameFromAbi<TAbi, TFunctionName, TAbiStateMutability>;
|
375
356
|
} & ExtractArgsFromAbi<TAbi, TFunctionName>;
|
376
|
-
type GetValue<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TValueType = TransactionRequest['value'], TAbiFunction extends AbiFunction
|
377
|
-
type: 'function';
|
378
|
-
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction & {
|
379
|
-
type: 'function';
|
380
|
-
}> = TAbiFunction['stateMutability'] extends 'payable' ? TValueType : TAbiFunction['payable'] extends true ? TValueType : never;
|
357
|
+
type GetValue<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TValueType = TransactionRequest['value'], TAbiFunction extends AbiFunction = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction> = TAbiFunction['stateMutability'] extends 'payable' ? TValueType : TAbiFunction['payable'] extends true ? TValueType : never;
|
381
358
|
|
382
|
-
type TopicFilter = (null | string | string[])[];
|
383
359
|
type DecodedAbiEvent<TAbiEvent extends AbiEvent | undefined = undefined, TAbi extends Abi | readonly unknown[] = [TAbiEvent], TEventName extends string | undefined = TAbiEvent extends AbiEvent ? TAbiEvent['name'] : undefined> = TAbi extends Abi ? TEventName extends string ? {
|
384
360
|
args: ExtractEventArgsFromAbi<TAbi, TEventName, {
|
385
361
|
enableUnion: false;
|
@@ -413,7 +389,7 @@ type Log<TQuantity = bigint, TIndex = number, TAbiEvent extends AbiEvent | undef
|
|
413
389
|
/** Index of the transaction that created this log or `null` if pending */
|
414
390
|
transactionIndex: TIndex | null;
|
415
391
|
/** List of order-dependent topics */
|
416
|
-
topics:
|
392
|
+
topics: Hex[];
|
417
393
|
/** `true` if this filter has been destroyed and is invalid */
|
418
394
|
removed: boolean;
|
419
395
|
} & DecodedAbiEvent<TAbiEvent, TAbi, TEventName>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Q as Formatters, C as Chain } from './chain-
|
1
|
+
import { Q as Formatters, C as Chain } from './chain-94f99620.js';
|
2
2
|
|
3
3
|
declare function defineChain<TFormatters extends Formatters = Formatters, TChain extends Chain<TFormatters> = Chain<TFormatters>>(chain: TChain): TChain;
|
4
4
|
declare function getChainContractAddress({ blockNumber, chain, contract: name, }: {
|
package/dist/chains.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { R as RpcBlock, c as Block, y as Transaction, H as Hex, p as RpcTransaction, q as RpcTransactionReceipt, T as TransactionReceipt, V as TransactionType, t as TransactionRequest, r as RpcTransactionRequest } from './chain-
|
2
|
-
export { C as Chain } from './chain-
|
1
|
+
import { R as RpcBlock, c as Block, y as Transaction, H as Hex, p as RpcTransaction, q as RpcTransactionReceipt, T as TransactionReceipt, V as TransactionType, t as TransactionRequest, r as RpcTransactionRequest } from './chain-94f99620.js';
|
2
|
+
export { C as Chain } from './chain-94f99620.js';
|
3
3
|
import * as chains from '@wagmi/chains';
|
4
|
-
export { d as defineChain } from './chain-
|
4
|
+
export { d as defineChain } from './chain-f8edc5d7.js';
|
5
5
|
import 'abitype';
|
6
6
|
|
7
7
|
declare const arbitrum: {
|
package/dist/chains.js
CHANGED
@@ -4,32 +4,32 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
var
|
7
|
+
var _chunkL5P7BYGTjs = require('./chunk-L5P7BYGT.js');
|
8
8
|
|
9
9
|
// src/chains.ts
|
10
10
|
var _chains = require('@wagmi/chains'); var chains = _interopRequireWildcard(_chains);
|
11
11
|
var celoFormatters = {
|
12
|
-
block:
|
12
|
+
block: _chunkL5P7BYGTjs.defineBlock.call(void 0, {
|
13
13
|
exclude: ["difficulty", "gasLimit", "mixHash", "nonce", "uncles"],
|
14
14
|
format: (block) => ({
|
15
15
|
randomness: block.randomness
|
16
16
|
})
|
17
17
|
}),
|
18
|
-
transaction:
|
18
|
+
transaction: _chunkL5P7BYGTjs.defineTransaction.call(void 0, {
|
19
19
|
format: (transaction) => ({
|
20
20
|
feeCurrency: transaction.feeCurrency,
|
21
21
|
gatewayFee: transaction.gatewayFee ? BigInt(transaction.gatewayFee) : null,
|
22
22
|
gatewayFeeRecipient: transaction.gatewayFeeRecipient
|
23
23
|
})
|
24
24
|
}),
|
25
|
-
transactionReceipt:
|
25
|
+
transactionReceipt: _chunkL5P7BYGTjs.defineTransactionReceipt.call(void 0, {
|
26
26
|
format: (transaction) => ({
|
27
27
|
feeCurrency: transaction.feeCurrency,
|
28
28
|
gatewayFee: transaction.gatewayFee ? BigInt(transaction.gatewayFee) : null,
|
29
29
|
gatewayFeeRecipient: transaction.gatewayFeeRecipient
|
30
30
|
})
|
31
31
|
}),
|
32
|
-
transactionRequest:
|
32
|
+
transactionRequest: _chunkL5P7BYGTjs.defineTransactionRequest.call(void 0, {
|
33
33
|
format: (transactionRequest) => ({
|
34
34
|
feeCurrency: transactionRequest.feeCurrency,
|
35
35
|
gatewayFee: transactionRequest.gatewayFee,
|
@@ -37,69 +37,69 @@ var celoFormatters = {
|
|
37
37
|
})
|
38
38
|
})
|
39
39
|
};
|
40
|
-
var arbitrum2 =
|
41
|
-
var arbitrumGoerli2 =
|
42
|
-
var aurora2 =
|
43
|
-
var auroraGoerli =
|
44
|
-
var avalanche2 =
|
45
|
-
var avalancheFuji2 =
|
46
|
-
var baseGoerli2 =
|
47
|
-
var boba2 =
|
48
|
-
var bronos2 =
|
49
|
-
var bronosTestnet2 =
|
50
|
-
var bsc2 =
|
51
|
-
var bscTestnet2 =
|
52
|
-
var canto2 =
|
53
|
-
var celo2 =
|
40
|
+
var arbitrum2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.arbitrum);
|
41
|
+
var arbitrumGoerli2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.arbitrumGoerli);
|
42
|
+
var aurora2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.aurora);
|
43
|
+
var auroraGoerli = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.auroraTestnet);
|
44
|
+
var avalanche2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.avalanche);
|
45
|
+
var avalancheFuji2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.avalancheFuji);
|
46
|
+
var baseGoerli2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.baseGoerli);
|
47
|
+
var boba2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.boba);
|
48
|
+
var bronos2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.bronos);
|
49
|
+
var bronosTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.bronosTestnet);
|
50
|
+
var bsc2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.bsc);
|
51
|
+
var bscTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.bscTestnet);
|
52
|
+
var canto2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.canto);
|
53
|
+
var celo2 = _chunkL5P7BYGTjs.defineChain.call(void 0, {
|
54
54
|
...chains.celo,
|
55
55
|
formatters: celoFormatters
|
56
56
|
});
|
57
|
-
var celoAlfajores2 =
|
57
|
+
var celoAlfajores2 = _chunkL5P7BYGTjs.defineChain.call(void 0, {
|
58
58
|
...chains.celoAlfajores,
|
59
59
|
formatters: celoFormatters
|
60
60
|
});
|
61
|
-
var crossbell2 =
|
62
|
-
var evmos2 =
|
63
|
-
var evmosTestnet2 =
|
64
|
-
var fantom2 =
|
65
|
-
var fantomTestnet2 =
|
66
|
-
var filecoin2 =
|
67
|
-
var filecoinCalibration2 =
|
68
|
-
var filecoinHyperspace2 =
|
69
|
-
var flare2 =
|
70
|
-
var flareTestnet2 =
|
71
|
-
var foundry2 =
|
72
|
-
var goerli2 =
|
73
|
-
var gnosis2 =
|
74
|
-
var gnosisChiado2 =
|
75
|
-
var hardhat2 =
|
76
|
-
var harmonyOne2 =
|
77
|
-
var iotex2 =
|
78
|
-
var iotexTestnet2 =
|
79
|
-
var localhost2 =
|
80
|
-
var mainnet2 =
|
81
|
-
var metis2 =
|
82
|
-
var metisGoerli2 =
|
83
|
-
var moonbaseAlpha2 =
|
84
|
-
var moonbeam2 =
|
85
|
-
var moonriver2 =
|
86
|
-
var okc2 =
|
87
|
-
var optimism2 =
|
88
|
-
var optimismGoerli2 =
|
89
|
-
var polygon2 =
|
90
|
-
var polygonMumbai2 =
|
91
|
-
var polygonZkEvmTestnet2 =
|
92
|
-
var sepolia2 =
|
93
|
-
var shardeumSphinx2 =
|
94
|
-
var songbird2 =
|
95
|
-
var songbirdTestnet2 =
|
96
|
-
var taraxa2 =
|
97
|
-
var taraxaTestnet2 =
|
98
|
-
var telos2 =
|
99
|
-
var telosTestnet2 =
|
100
|
-
var zhejiang2 =
|
101
|
-
var zkSync2 =
|
102
|
-
var zkSyncTestnet2 =
|
61
|
+
var crossbell2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.crossbell);
|
62
|
+
var evmos2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.evmos);
|
63
|
+
var evmosTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.evmosTestnet);
|
64
|
+
var fantom2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.fantom);
|
65
|
+
var fantomTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.fantomTestnet);
|
66
|
+
var filecoin2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.filecoin);
|
67
|
+
var filecoinCalibration2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.filecoinCalibration);
|
68
|
+
var filecoinHyperspace2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.filecoinHyperspace);
|
69
|
+
var flare2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.flare);
|
70
|
+
var flareTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.flareTestnet);
|
71
|
+
var foundry2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.foundry);
|
72
|
+
var goerli2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.goerli);
|
73
|
+
var gnosis2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.gnosis);
|
74
|
+
var gnosisChiado2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.gnosisChiado);
|
75
|
+
var hardhat2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.hardhat);
|
76
|
+
var harmonyOne2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.harmonyOne);
|
77
|
+
var iotex2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.iotex);
|
78
|
+
var iotexTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.iotexTestnet);
|
79
|
+
var localhost2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.localhost);
|
80
|
+
var mainnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.mainnet);
|
81
|
+
var metis2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.metis);
|
82
|
+
var metisGoerli2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.metisGoerli);
|
83
|
+
var moonbaseAlpha2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.moonbaseAlpha);
|
84
|
+
var moonbeam2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.moonbeam);
|
85
|
+
var moonriver2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.moonriver);
|
86
|
+
var okc2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.okc);
|
87
|
+
var optimism2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.optimism);
|
88
|
+
var optimismGoerli2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.optimismGoerli);
|
89
|
+
var polygon2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.polygon);
|
90
|
+
var polygonMumbai2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.polygonMumbai);
|
91
|
+
var polygonZkEvmTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.polygonZkEvmTestnet);
|
92
|
+
var sepolia2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.sepolia);
|
93
|
+
var shardeumSphinx2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.shardeumSphinx);
|
94
|
+
var songbird2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.songbird);
|
95
|
+
var songbirdTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.songbirdTestnet);
|
96
|
+
var taraxa2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.taraxa);
|
97
|
+
var taraxaTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.taraxaTestnet);
|
98
|
+
var telos2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.telos);
|
99
|
+
var telosTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.telosTestnet);
|
100
|
+
var zhejiang2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.zhejiang);
|
101
|
+
var zkSync2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.zkSync);
|
102
|
+
var zkSyncTestnet2 = _chunkL5P7BYGTjs.defineChain.call(void 0, chains.zkSyncTestnet);
|
103
103
|
|
104
104
|
|
105
105
|
|
@@ -159,5 +159,5 @@ var zkSyncTestnet2 = _chunkNJT5TACHjs.defineChain.call(void 0, chains.zkSyncTest
|
|
159
159
|
|
160
160
|
|
161
161
|
|
162
|
-
exports.arbitrum = arbitrum2; exports.arbitrumGoerli = arbitrumGoerli2; exports.aurora = aurora2; exports.auroraGoerli = auroraGoerli; exports.avalanche = avalanche2; exports.avalancheFuji = avalancheFuji2; exports.baseGoerli = baseGoerli2; exports.boba = boba2; exports.bronos = bronos2; exports.bronosTestnet = bronosTestnet2; exports.bsc = bsc2; exports.bscTestnet = bscTestnet2; exports.canto = canto2; exports.celo = celo2; exports.celoAlfajores = celoAlfajores2; exports.crossbell = crossbell2; exports.defineChain =
|
162
|
+
exports.arbitrum = arbitrum2; exports.arbitrumGoerli = arbitrumGoerli2; exports.aurora = aurora2; exports.auroraGoerli = auroraGoerli; exports.avalanche = avalanche2; exports.avalancheFuji = avalancheFuji2; exports.baseGoerli = baseGoerli2; exports.boba = boba2; exports.bronos = bronos2; exports.bronosTestnet = bronosTestnet2; exports.bsc = bsc2; exports.bscTestnet = bscTestnet2; exports.canto = canto2; exports.celo = celo2; exports.celoAlfajores = celoAlfajores2; exports.crossbell = crossbell2; exports.defineChain = _chunkL5P7BYGTjs.defineChain; exports.evmos = evmos2; exports.evmosTestnet = evmosTestnet2; exports.fantom = fantom2; exports.fantomTestnet = fantomTestnet2; exports.filecoin = filecoin2; exports.filecoinCalibration = filecoinCalibration2; exports.filecoinHyperspace = filecoinHyperspace2; exports.flare = flare2; exports.flareTestnet = flareTestnet2; exports.foundry = foundry2; exports.gnosis = gnosis2; exports.gnosisChiado = gnosisChiado2; exports.goerli = goerli2; exports.hardhat = hardhat2; exports.harmonyOne = harmonyOne2; exports.iotex = iotex2; exports.iotexTestnet = iotexTestnet2; exports.localhost = localhost2; exports.mainnet = mainnet2; exports.metis = metis2; exports.metisGoerli = metisGoerli2; exports.moonbaseAlpha = moonbaseAlpha2; exports.moonbeam = moonbeam2; exports.moonriver = moonriver2; exports.okc = okc2; exports.optimism = optimism2; exports.optimismGoerli = optimismGoerli2; exports.polygon = polygon2; exports.polygonMumbai = polygonMumbai2; exports.polygonZkEvmTestnet = polygonZkEvmTestnet2; exports.sepolia = sepolia2; exports.shardeumSphinx = shardeumSphinx2; exports.songbird = songbird2; exports.songbirdTestnet = songbirdTestnet2; exports.taraxa = taraxa2; exports.taraxaTestnet = taraxaTestnet2; exports.telos = telos2; exports.telosTestnet = telosTestnet2; exports.zhejiang = zhejiang2; exports.zkSync = zkSync2; exports.zkSyncTestnet = zkSyncTestnet2;
|
163
163
|
//# sourceMappingURL=chains.js.map
|
package/dist/chains.mjs
CHANGED
@@ -11,27 +11,27 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
var
|
14
|
+
var _chunkL5P7BYGTjs = require('./chunk-L5P7BYGT.js');
|
15
15
|
|
16
16
|
// src/utils/ens/labelhash.ts
|
17
17
|
function labelhash(label) {
|
18
18
|
let result = new Uint8Array(32).fill(0);
|
19
19
|
if (!label)
|
20
|
-
return
|
21
|
-
return
|
20
|
+
return _chunkL5P7BYGTjs.bytesToHex.call(void 0, result);
|
21
|
+
return _chunkL5P7BYGTjs.keccak256.call(void 0, _chunkL5P7BYGTjs.stringToBytes.call(void 0, label));
|
22
22
|
}
|
23
23
|
|
24
24
|
// src/utils/ens/namehash.ts
|
25
25
|
function namehash(name) {
|
26
26
|
let result = new Uint8Array(32).fill(0);
|
27
27
|
if (!name)
|
28
|
-
return
|
28
|
+
return _chunkL5P7BYGTjs.bytesToHex.call(void 0, result);
|
29
29
|
const labels = name.split(".");
|
30
30
|
for (let i = labels.length - 1; i >= 0; i -= 1) {
|
31
|
-
const hashed =
|
32
|
-
result =
|
31
|
+
const hashed = _chunkL5P7BYGTjs.keccak256.call(void 0, _chunkL5P7BYGTjs.stringToBytes.call(void 0, labels[i]), "bytes");
|
32
|
+
result = _chunkL5P7BYGTjs.keccak256.call(void 0, _chunkL5P7BYGTjs.concat.call(void 0, [result, hashed]), "bytes");
|
33
33
|
}
|
34
|
-
return
|
34
|
+
return _chunkL5P7BYGTjs.bytesToHex.call(void 0, result);
|
35
35
|
}
|
36
36
|
|
37
37
|
// src/utils/ens/packetToBytes.ts
|
@@ -39,7 +39,7 @@ function packetToBytes(packet) {
|
|
39
39
|
function length(value2) {
|
40
40
|
if (value2 === "." || value2 === "..")
|
41
41
|
return 1;
|
42
|
-
return
|
42
|
+
return _chunkL5P7BYGTjs.toBytes.call(void 0, value2.replace(/^\.|\.$/gm, "")).length + 2;
|
43
43
|
}
|
44
44
|
const bytes = new Uint8Array(length(packet));
|
45
45
|
const value = packet.replace(/^\.|\.$/gm, "");
|
@@ -48,7 +48,7 @@ function packetToBytes(packet) {
|
|
48
48
|
let offset = 0;
|
49
49
|
const list = value.split(".");
|
50
50
|
for (let i = 0; i < list.length; i++) {
|
51
|
-
const encoded =
|
51
|
+
const encoded = _chunkL5P7BYGTjs.toBytes.call(void 0, list[i]);
|
52
52
|
bytes[offset] = encoded.length;
|
53
53
|
bytes.set(encoded, offset + 1);
|
54
54
|
offset += encoded.length + 1;
|
@@ -69,13 +69,13 @@ async function getEnsAddress(client, {
|
|
69
69
|
throw new Error(
|
70
70
|
"client chain not configured. universalResolverAddress is required."
|
71
71
|
);
|
72
|
-
universalResolverAddress =
|
72
|
+
universalResolverAddress = _chunkL5P7BYGTjs.getChainContractAddress.call(void 0, {
|
73
73
|
blockNumber,
|
74
74
|
chain: client.chain,
|
75
75
|
contract: "ensUniversalResolver"
|
76
76
|
});
|
77
77
|
}
|
78
|
-
const res = await
|
78
|
+
const res = await _chunkL5P7BYGTjs.readContract.call(void 0, client, {
|
79
79
|
address: universalResolverAddress,
|
80
80
|
abi: [
|
81
81
|
{
|
@@ -94,8 +94,8 @@ async function getEnsAddress(client, {
|
|
94
94
|
],
|
95
95
|
functionName: "resolve",
|
96
96
|
args: [
|
97
|
-
|
98
|
-
|
97
|
+
_chunkL5P7BYGTjs.toHex.call(void 0, packetToBytes(name)),
|
98
|
+
_chunkL5P7BYGTjs.encodeFunctionData.call(void 0, {
|
99
99
|
abi: [
|
100
100
|
{
|
101
101
|
name: "addr",
|
@@ -112,7 +112,7 @@ async function getEnsAddress(client, {
|
|
112
112
|
blockNumber,
|
113
113
|
blockTag
|
114
114
|
});
|
115
|
-
return
|
115
|
+
return _chunkL5P7BYGTjs.decodeFunctionResult.call(void 0, {
|
116
116
|
abi: [
|
117
117
|
{
|
118
118
|
name: "addr",
|
@@ -140,7 +140,7 @@ async function getEnsName(client, {
|
|
140
140
|
throw new Error(
|
141
141
|
"client chain not configured. universalResolverAddress is required."
|
142
142
|
);
|
143
|
-
universalResolverAddress =
|
143
|
+
universalResolverAddress = _chunkL5P7BYGTjs.getChainContractAddress.call(void 0, {
|
144
144
|
blockNumber,
|
145
145
|
chain: client.chain,
|
146
146
|
contract: "ensUniversalResolver"
|
@@ -148,7 +148,7 @@ async function getEnsName(client, {
|
|
148
148
|
}
|
149
149
|
const reverseNode = `${address.toLowerCase().substring(2)}.addr.reverse`;
|
150
150
|
try {
|
151
|
-
const res = await
|
151
|
+
const res = await _chunkL5P7BYGTjs.readContract.call(void 0, client, {
|
152
152
|
address: universalResolverAddress,
|
153
153
|
abi: [
|
154
154
|
{
|
@@ -165,13 +165,13 @@ async function getEnsName(client, {
|
|
165
165
|
}
|
166
166
|
],
|
167
167
|
functionName: "reverse",
|
168
|
-
args: [
|
168
|
+
args: [_chunkL5P7BYGTjs.toHex.call(void 0, packetToBytes(reverseNode))],
|
169
169
|
blockNumber,
|
170
170
|
blockTag
|
171
171
|
});
|
172
172
|
return res[0];
|
173
173
|
} catch (error) {
|
174
|
-
if (error instanceof
|
174
|
+
if (error instanceof _chunkL5P7BYGTjs.ContractFunctionExecutionError && error.cause.reason === _chunkL5P7BYGTjs.panicReasons[50])
|
175
175
|
return null;
|
176
176
|
throw error;
|
177
177
|
}
|
@@ -183,4 +183,4 @@ async function getEnsName(client, {
|
|
183
183
|
|
184
184
|
|
185
185
|
exports.labelhash = labelhash; exports.namehash = namehash; exports.getEnsAddress = getEnsAddress; exports.getEnsName = getEnsName;
|
186
|
-
//# sourceMappingURL=chunk-
|
186
|
+
//# sourceMappingURL=chunk-5FH7E6C5.js.map
|
@@ -11,7 +11,7 @@ import {
|
|
11
11
|
stringToBytes,
|
12
12
|
toBytes,
|
13
13
|
toHex
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-UI4RZ2SR.mjs";
|
15
15
|
|
16
16
|
// src/utils/ens/labelhash.ts
|
17
17
|
function labelhash(label) {
|
@@ -183,4 +183,4 @@ export {
|
|
183
183
|
getEnsAddress,
|
184
184
|
getEnsName
|
185
185
|
};
|
186
|
-
//# sourceMappingURL=chunk-
|
186
|
+
//# sourceMappingURL=chunk-6YZF7223.mjs.map
|
@@ -17,7 +17,7 @@ var _abitype = require('abitype');
|
|
17
17
|
var package_default = {
|
18
18
|
name: "viem",
|
19
19
|
description: "TypeScript Interface for Ethereum",
|
20
|
-
version: "0.1.
|
20
|
+
version: "0.1.10",
|
21
21
|
scripts: {
|
22
22
|
anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
|
23
23
|
bench: "vitest bench --no-threads",
|
@@ -131,7 +131,7 @@ var package_default = {
|
|
131
131
|
dependencies: {
|
132
132
|
"@noble/hashes": "^1.1.2",
|
133
133
|
"@wagmi/chains": "~0.2.11",
|
134
|
-
abitype: "~0.
|
134
|
+
abitype: "~0.7.1",
|
135
135
|
"idna-uts46-hx": "^4.1.2",
|
136
136
|
"isomorphic-ws": "^5.0.0",
|
137
137
|
ws: "^8.12.0"
|
@@ -5381,4 +5381,4 @@ function parseEther(ether, unit = "wei") {
|
|
5381
5381
|
|
5382
5382
|
|
5383
5383
|
exports.BaseError = BaseError; exports.AbiConstructorNotFoundError = AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = AbiErrorSignatureNotFoundError; exports.AbiEventSignatureNotFoundError = AbiEventSignatureNotFoundError; exports.AbiEventNotFoundError = AbiEventNotFoundError; exports.AbiFunctionNotFoundError = AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = AbiFunctionSignatureNotFoundError; exports.InvalidAbiEncodingTypeError = InvalidAbiEncodingTypeError; exports.InvalidAbiDecodingTypeError = InvalidAbiDecodingTypeError; exports.InvalidArrayError = InvalidArrayError; exports.InvalidDefinitionTypeError = InvalidDefinitionTypeError; exports.InvalidAddressError = InvalidAddressError; exports.BlockNotFoundError = BlockNotFoundError; exports.ChainDoesNotSupportContract = ChainDoesNotSupportContract; exports.multicall3Abi = multicall3Abi; exports.panicReasons = panicReasons; exports.etherUnits = etherUnits; exports.gweiUnits = gweiUnits; exports.weiUnits = weiUnits; exports.TransactionExecutionError = TransactionExecutionError; exports.TransactionNotFoundError = TransactionNotFoundError; exports.TransactionReceiptNotFoundError = TransactionReceiptNotFoundError; exports.WaitForTransactionReceiptTimeoutError = WaitForTransactionReceiptTimeoutError; exports.CallExecutionError = CallExecutionError; exports.ContractFunctionExecutionError = ContractFunctionExecutionError; exports.ContractFunctionRevertedError = ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = ContractFunctionZeroDataError; exports.RawContractError = RawContractError; exports.SizeExceedsPaddingSizeError = SizeExceedsPaddingSizeError; exports.DataLengthTooLongError = DataLengthTooLongError; exports.DataLengthTooShortError = DataLengthTooShortError; exports.InvalidBytesBooleanError = InvalidBytesBooleanError; exports.InvalidHexBooleanError = InvalidHexBooleanError; exports.InvalidHexValueError = InvalidHexValueError; exports.OffsetOutOfBoundsError = OffsetOutOfBoundsError; exports.EstimateGasExecutionError = EstimateGasExecutionError; exports.FilterTypeNotSupportedError = FilterTypeNotSupportedError; exports.ExecutionRevertedError = ExecutionRevertedError; exports.FeeCapTooHighError = FeeCapTooHighError; exports.FeeCapTooLowError = FeeCapTooLowError; exports.NonceTooHighError = NonceTooHighError; exports.NonceTooLowError = NonceTooLowError; exports.NonceMaxValueError = NonceMaxValueError; exports.InsufficientFundsError = InsufficientFundsError; exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError; exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError; exports.TipAboveFeeCapError = TipAboveFeeCapError; exports.UnknownNodeError = UnknownNodeError; exports.RequestError = RequestError; exports.RpcRequestError = RpcRequestError; exports.ParseRpcError = ParseRpcError; exports.InvalidRequestRpcError = InvalidRequestRpcError; exports.MethodNotFoundRpcError = MethodNotFoundRpcError; exports.InvalidParamsRpcError = InvalidParamsRpcError; exports.InternalRpcError = InternalRpcError; exports.InvalidInputRpcError = InvalidInputRpcError; exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError; exports.TransactionRejectedRpcError = TransactionRejectedRpcError; exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError; exports.LimitExceededRpcError = LimitExceededRpcError; exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError; exports.UserRejectedRequestError = UserRejectedRequestError; exports.SwitchChainError = SwitchChainError; exports.UnknownRpcError = UnknownRpcError; exports.HttpRequestError = HttpRequestError; exports.WebSocketRequestError = WebSocketRequestError; exports.RpcError = RpcError; exports.TimeoutError = TimeoutError; exports.UrlRequiredError = UrlRequiredError; exports.concat = concat; exports.isBytes = isBytes; exports.isHex = isHex; exports.pad = pad; exports.padHex = padHex; exports.padBytes = padBytes; exports.trim = trim; exports.size = size; exports.slice = slice; exports.sliceBytes = sliceBytes; exports.sliceHex = sliceHex; exports.boolToHex = boolToHex; exports.bytesToHex = bytesToHex; exports.toHex = toHex; exports.numberToHex = numberToHex; exports.stringToHex = stringToHex; exports.toBytes = toBytes; exports.boolToBytes = boolToBytes; exports.hexToBytes = hexToBytes; exports.numberToBytes = numberToBytes; exports.stringToBytes = stringToBytes; exports.toRlp = toRlp; exports.fromHex = fromHex; exports.hexToBigInt = hexToBigInt; exports.hexToBool = hexToBool; exports.hexToNumber = hexToNumber; exports.hexToString = hexToString; exports.fromBytes = fromBytes; exports.bytesToBigint = bytesToBigint; exports.bytesToBool = bytesToBool; exports.bytesToNumber = bytesToNumber; exports.bytesToString = bytesToString; exports.fromRlp = fromRlp; exports.extractFunctionParts = extractFunctionParts; exports.extractFunctionName = extractFunctionName; exports.extractFunctionParams = extractFunctionParams; exports.extractFunctionType = extractFunctionType; exports.keccak256 = keccak256; exports.getEventSelector = getEventSelector; exports.getFunctionSelector = getFunctionSelector; exports.isAddress = isAddress; exports.getAddress = getAddress; exports.getContractAddress = getContractAddress2; exports.getCreateAddress = getCreateAddress; exports.getCreate2Address = getCreate2Address; exports.isAddressEqual = isAddressEqual; exports.encodeAbiParameters = encodeAbiParameters; exports.decodeAbiParameters = decodeAbiParameters; exports.formatAbiItem = formatAbiItem; exports.decodeErrorResult = decodeErrorResult; exports.decodeEventLog = decodeEventLog; exports.decodeFunctionData = decodeFunctionData; exports.getAbiItem = getAbiItem; exports.decodeFunctionResult = decodeFunctionResult; exports.encodeDeployData = encodeDeployData; exports.encodeErrorResult = encodeErrorResult; exports.encodeEventTopics = encodeEventTopics; exports.encodeFunctionData = encodeFunctionData; exports.encodeFunctionResult = encodeFunctionResult; exports.arrayRegex = arrayRegex; exports.bytesRegex = bytesRegex; exports.integerRegex = integerRegex; exports.encodePacked = encodePacked; exports.formatAbiItemWithArgs = formatAbiItemWithArgs; exports.parseAbi = _abitype.parseAbi; exports.parseAbiItem = _abitype.parseAbiItem; exports.parseAbiParameter = _abitype.parseAbiParameter; exports.parseAbiParameters = _abitype.parseAbiParameters; exports.getAccount = getAccount; exports.isDeterministicError = isDeterministicError; exports.buildRequest = buildRequest; exports.defineChain = defineChain; exports.getChainContractAddress = getChainContractAddress; exports.format = format3; exports.defineFormatter = defineFormatter; exports.transactionType = transactionType; exports.formatTransaction = formatTransaction; exports.defineTransaction = defineTransaction; exports.formatBlock = formatBlock; exports.defineBlock = defineBlock; exports.extract = extract; exports.defineTransactionReceipt = defineTransactionReceipt; exports.formatTransactionRequest = formatTransactionRequest; exports.defineTransactionRequest = defineTransactionRequest; exports.containsNodeError = containsNodeError; exports.getNodeError = getNodeError; exports.getCallError = getCallError; exports.getContractError = getContractError; exports.getEstimateGasError = getEstimateGasError; exports.getTransactionError = getTransactionError; exports.stringify = stringify; exports.getSocket = getSocket; exports.rpc = rpc; exports.assertRequest = assertRequest; exports.call = call; exports.simulateContract = simulateContract; exports.createPendingTransactionFilter = createPendingTransactionFilter; exports.createBlockFilter = createBlockFilter; exports.createEventFilter = createEventFilter; exports.createContractEventFilter = createContractEventFilter; exports.estimateGas = estimateGas; exports.estimateContractGas = estimateContractGas; exports.getBalance = getBalance; exports.getBlock = getBlock; exports.getBlockNumberCache = getBlockNumberCache; exports.getBlockNumber = getBlockNumber; exports.getBlockTransactionCount = getBlockTransactionCount; exports.getBytecode = getBytecode; exports.getChainId = getChainId; exports.getFeeHistory = getFeeHistory; exports.getFilterChanges = getFilterChanges; exports.getFilterLogs = getFilterLogs; exports.getGasPrice = getGasPrice; exports.getLogs = getLogs; exports.getStorageAt = getStorageAt; exports.getTransaction = getTransaction; exports.getTransactionConfirmations = getTransactionConfirmations; exports.getTransactionCount = getTransactionCount; exports.getTransactionReceipt = getTransactionReceipt; exports.readContract = readContract; exports.multicall = multicall; exports.uninstallFilter = uninstallFilter; exports.waitForTransactionReceipt = waitForTransactionReceipt; exports.watchBlockNumber = watchBlockNumber; exports.watchBlocks = watchBlocks; exports.watchContractEvent = watchContractEvent; exports.watchEvent = watchEvent; exports.watchPendingTransactions = watchPendingTransactions; exports.dropTransaction = dropTransaction; exports.getAutomine = getAutomine; exports.getTxpoolContent = getTxpoolContent; exports.getTxpoolStatus = getTxpoolStatus; exports.impersonateAccount = impersonateAccount; exports.increaseTime = increaseTime; exports.inspectTxpool = inspectTxpool; exports.mine = mine; exports.removeBlockTimestampInterval = removeBlockTimestampInterval; exports.reset = reset; exports.revert = revert; exports.sendUnsignedTransaction = sendUnsignedTransaction; exports.setAutomine = setAutomine; exports.setBalance = setBalance; exports.setBlockGasLimit = setBlockGasLimit; exports.setBlockTimestampInterval = setBlockTimestampInterval; exports.setCode = setCode; exports.setCoinbase = setCoinbase; exports.setIntervalMining = setIntervalMining; exports.setLoggingEnabled = setLoggingEnabled; exports.setMinGasPrice = setMinGasPrice; exports.setNextBlockBaseFeePerGas = setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = setNextBlockTimestamp; exports.setNonce = setNonce; exports.setRpcUrl = setRpcUrl; exports.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount; exports.addChain = addChain; exports.deployContract = deployContract; exports.getAddresses = getAddresses; exports.getPermissions = getPermissions; exports.requestAddresses = requestAddresses; exports.requestPermissions = requestPermissions; exports.sendTransaction = sendTransaction; exports.signMessage = signMessage; exports.switchChain = switchChain; exports.watchAsset = watchAsset; exports.writeContract = writeContract; exports.parseUnits = parseUnits; exports.parseGwei = parseGwei; exports.prepareRequest = prepareRequest; exports.formatUnits = formatUnits; exports.formatEther = formatEther; exports.formatGwei = formatGwei; exports.parseEther = parseEther;
|
5384
|
-
//# sourceMappingURL=chunk-
|
5384
|
+
//# sourceMappingURL=chunk-L5P7BYGT.js.map
|