viem 0.2.0-jxom-local-accounts.20230321T212822 → 0.2.0-main.20230323T084936

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.
Files changed (70) hide show
  1. package/dist/abi.d.ts +3 -3
  2. package/dist/abi.js +2 -2
  3. package/dist/abi.mjs +1 -1
  4. package/dist/{chain-75b0942e.d.ts → chain-1b53ef88.d.ts} +48 -53
  5. package/dist/{chain-f8db473f.d.ts → chain-ec8c485d.d.ts} +1 -1
  6. package/dist/chains.d.ts +3 -3
  7. package/dist/chains.js +63 -63
  8. package/dist/chains.mjs +1 -1
  9. package/dist/{chunk-NJSAEA2H.js → chunk-BHAAXXGO.js} +154 -461
  10. package/dist/chunk-BHAAXXGO.js.map +1 -0
  11. package/dist/{chunk-IVRML3IK.mjs → chunk-FOJL5WVL.mjs} +85 -392
  12. package/dist/chunk-FOJL5WVL.mjs.map +1 -0
  13. package/dist/{chunk-6UKHPIXX.mjs → chunk-R7WEI5MQ.mjs} +2 -2
  14. package/dist/chunk-R7WEI5MQ.mjs.map +1 -0
  15. package/dist/{chunk-LYQKHD7R.js → chunk-ZIT7BMZO.js} +19 -19
  16. package/dist/{chunk-LYQKHD7R.js.map → chunk-ZIT7BMZO.js.map} +1 -1
  17. package/dist/contract.d.ts +7 -9
  18. package/dist/contract.js +2 -2
  19. package/dist/contract.mjs +1 -1
  20. package/dist/{createClient-f87255c1.d.ts → createClient-a28317a9.d.ts} +6 -6
  21. package/dist/{createPublicClient-d2c37c92.d.ts → createPublicClient-75540130.d.ts} +206 -160
  22. package/dist/{eip1193-ae706fd8.d.ts → eip1193-4f4e240c.d.ts} +1 -1
  23. package/dist/{encodeFunctionResult-4792a6a3.d.ts → encodeFunctionResult-1f324375.d.ts} +1 -1
  24. package/dist/{encodePacked-3fcdd54b.d.ts → encodePacked-d5d5264a.d.ts} +1 -1
  25. package/dist/ens.d.ts +4 -6
  26. package/dist/ens.js +3 -3
  27. package/dist/ens.mjs +2 -2
  28. package/dist/ethers.d.ts +6 -5
  29. package/dist/ethers.js +5 -7
  30. package/dist/ethers.js.map +1 -1
  31. package/dist/ethers.mjs +5 -7
  32. package/dist/ethers.mjs.map +1 -1
  33. package/dist/{formatAbiItem-765ebc53.d.ts → formatAbiItem-15e8817d.d.ts} +1 -1
  34. package/dist/{getAbiItem-693e6e1b.d.ts → getAbiItem-3e809ff9.d.ts} +1 -1
  35. package/dist/index.d.ts +13 -15
  36. package/dist/index.js +91 -99
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +5 -13
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/{parseGwei-377678bc.d.ts → parseGwei-6fff7cbe.d.ts} +13 -49
  41. package/dist/public.d.ts +4 -6
  42. package/dist/public.js +2 -2
  43. package/dist/public.mjs +1 -1
  44. package/dist/{test-98c0b642.d.ts → test-2bd23d7e.d.ts} +32 -33
  45. package/dist/test.d.ts +10 -10
  46. package/dist/test.js +2 -2
  47. package/dist/test.mjs +1 -1
  48. package/dist/utils/index.d.ts +18 -30
  49. package/dist/utils/index.js +2 -10
  50. package/dist/utils/index.mjs +5 -13
  51. package/dist/wallet.d.ts +4 -6
  52. package/dist/wallet.js +2 -2
  53. package/dist/wallet.mjs +1 -1
  54. package/dist/window.d.ts +2 -2
  55. package/package.json +1 -9
  56. package/accounts/package.json +0 -4
  57. package/dist/accounts/index.d.ts +0 -33
  58. package/dist/accounts/index.js +0 -89
  59. package/dist/accounts/index.js.map +0 -1
  60. package/dist/accounts/index.mjs +0 -89
  61. package/dist/accounts/index.mjs.map +0 -1
  62. package/dist/chunk-6UKHPIXX.mjs.map +0 -1
  63. package/dist/chunk-FNVFGFWN.mjs +0 -31
  64. package/dist/chunk-FNVFGFWN.mjs.map +0 -1
  65. package/dist/chunk-FQM5MF6U.js +0 -31
  66. package/dist/chunk-FQM5MF6U.js.map +0 -1
  67. package/dist/chunk-IVRML3IK.mjs.map +0 -1
  68. package/dist/chunk-NJSAEA2H.js.map +0 -1
  69. package/dist/parseAccount-2d7ea01d.d.ts +0 -6
  70. package/dist/typedData-ade018d6.d.ts +0 -93
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-693e6e1b.js';
3
- export { e as encodePacked } from './encodePacked-3fcdd54b.js';
4
- import './chain-75b0942e.js';
2
+ export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-3e809ff9.js';
3
+ export { e as encodePacked } from './encodePacked-d5d5264a.js';
4
+ import './chain-1b53ef88.js';
5
5
  import '@wagmi/chains';
package/dist/abi.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkNJSAEA2Hjs = require('./chunk-NJSAEA2H.js');
10
+ var _chunkBHAAXXGOjs = require('./chunk-BHAAXXGO.js');
11
11
 
12
12
 
13
13
 
@@ -17,5 +17,5 @@ var _chunkNJSAEA2Hjs = require('./chunk-NJSAEA2H.js');
17
17
 
18
18
 
19
19
 
20
- exports.decodeAbiParameters = _chunkNJSAEA2Hjs.decodeAbiParameters; exports.encodeAbiParameters = _chunkNJSAEA2Hjs.encodeAbiParameters; exports.encodePacked = _chunkNJSAEA2Hjs.encodePacked; exports.getAbiItem = _chunkNJSAEA2Hjs.getAbiItem; exports.parseAbi = _chunkNJSAEA2Hjs.parseAbi; exports.parseAbiItem = _chunkNJSAEA2Hjs.parseAbiItem; exports.parseAbiParameter = _chunkNJSAEA2Hjs.parseAbiParameter; exports.parseAbiParameters = _chunkNJSAEA2Hjs.parseAbiParameters;
20
+ exports.decodeAbiParameters = _chunkBHAAXXGOjs.decodeAbiParameters; exports.encodeAbiParameters = _chunkBHAAXXGOjs.encodeAbiParameters; exports.encodePacked = _chunkBHAAXXGOjs.encodePacked; exports.getAbiItem = _chunkBHAAXXGOjs.getAbiItem; exports.parseAbi = _chunkBHAAXXGOjs.parseAbi; exports.parseAbiItem = _chunkBHAAXXGOjs.parseAbiItem; exports.parseAbiParameter = _chunkBHAAXXGOjs.parseAbiParameter; exports.parseAbiParameters = _chunkBHAAXXGOjs.parseAbiParameters;
21
21
  //# sourceMappingURL=abi.js.map
package/dist/abi.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  parseAbiItem,
8
8
  parseAbiParameter,
9
9
  parseAbiParameters
10
- } from "./chunk-IVRML3IK.mjs";
10
+ } from "./chunk-FOJL5WVL.mjs";
11
11
  export {
12
12
  decodeAbiParameters,
13
13
  encodeAbiParameters,
@@ -41,7 +41,7 @@ declare function defineFormatter<TSource extends Record<string, unknown>, TForma
41
41
  [key: string]: unknown;
42
42
  }) => TFormatted & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
43
43
 
44
- type TransactionFormatter<TChain extends Chain | undefined = Chain> = TChain extends Chain ? ExtractFormatter<TChain, 'transaction', NonNullable<Formatters['transaction']>> : Formatters['transaction'];
44
+ type TransactionFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transaction', NonNullable<Formatters['transaction']>>;
45
45
  type FormattedTransaction<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Transaction>;
46
46
  declare const transactionType: {
47
47
  readonly '0x0': "legacy";
@@ -51,41 +51,13 @@ declare const transactionType: {
51
51
  declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction<bigint, number>;
52
52
  declare const defineTransaction: <TFormat extends Formatter<Partial<RpcTransaction>, Partial<Transaction<bigint, number>> & {
53
53
  [key: string]: unknown;
54
- }>, TExclude extends ("type" | "value" | "blockHash" | "blockNumber" | "from" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "gas" | "nonce" | "to" | "accessList" | "chainId" | "hash" | "transactionIndex" | "input" | "r" | "s" | "v")[] = []>({ exclude, format: formatOverride, }: {
54
+ }>, TExclude extends ("type" | "value" | "blockHash" | "blockNumber" | "from" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "gas" | "nonce" | "to" | "accessList" | "hash" | "chainId" | "input" | "r" | "s" | "transactionIndex" | "v")[] = []>({ exclude, format: formatOverride, }: {
55
55
  exclude?: TExclude | undefined;
56
56
  format?: TFormat | undefined;
57
57
  }) => (data: Partial<RpcTransaction> & {
58
58
  [key: string]: unknown;
59
59
  }) => Transaction<bigint, number> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
60
60
 
61
- type FeeHistory<TQuantity = bigint> = {
62
- /**
63
- * An array of block base fees per gas (in wei). This includes the next block after
64
- * the newest of the returned range, because this value can be derived from the newest block.
65
- * Zeroes are returned for pre-EIP-1559 blocks. */
66
- baseFeePerGas: TQuantity[];
67
- /** An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit. */
68
- gasUsedRatio: number[];
69
- /** Lowest number block of the returned range. */
70
- oldestBlock: TQuantity;
71
- /** An array of effective priority fees (in wei) per gas data points from a single block. All zeroes are returned if the block is empty. */
72
- reward?: TQuantity[][];
73
- };
74
- type FeeValuesLegacy<TQuantity = bigint> = {
75
- /** Base fee per gas. */
76
- gasPrice: TQuantity;
77
- maxFeePerGas?: never;
78
- maxPriorityFeePerGas?: never;
79
- };
80
- type FeeValuesEIP1559<TQuantity = bigint> = {
81
- gasPrice?: never;
82
- /** Total fee per gas in wei (gasPrice/baseFeePerGas + maxPriorityFeePerGas). */
83
- maxFeePerGas: TQuantity;
84
- /** Max priority fee per gas (in wei). */
85
- maxPriorityFeePerGas: TQuantity;
86
- };
87
- type FeeValues<TQuantity = bigint> = FeeValuesLegacy<TQuantity> | FeeValuesEIP1559<TQuantity>;
88
-
89
61
  /**
90
62
  * @description Excludes empty attributes from T if TMaybeExclude is true.
91
63
  *
@@ -297,6 +269,34 @@ type ContractConfig<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName e
297
269
  } & ExtractArgsFromAbi<TAbi, TFunctionName>;
298
270
  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;
299
271
 
272
+ type FeeHistory<TQuantity = bigint> = {
273
+ /**
274
+ * An array of block base fees per gas (in wei). This includes the next block after
275
+ * the newest of the returned range, because this value can be derived from the newest block.
276
+ * Zeroes are returned for pre-EIP-1559 blocks. */
277
+ baseFeePerGas: TQuantity[];
278
+ /** An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit. */
279
+ gasUsedRatio: number[];
280
+ /** Lowest number block of the returned range. */
281
+ oldestBlock: TQuantity;
282
+ /** An array of effective priority fees (in wei) per gas data points from a single block. All zeroes are returned if the block is empty. */
283
+ reward?: TQuantity[][];
284
+ };
285
+ type FeeValuesLegacy<TQuantity = bigint> = {
286
+ /** Base fee per gas. */
287
+ gasPrice: TQuantity;
288
+ maxFeePerGas?: never;
289
+ maxPriorityFeePerGas?: never;
290
+ };
291
+ type FeeValuesEIP1559<TQuantity = bigint> = {
292
+ gasPrice?: never;
293
+ /** Total fee per gas in wei (gasPrice/baseFeePerGas + maxPriorityFeePerGas). */
294
+ maxFeePerGas: TQuantity;
295
+ /** Max priority fee per gas (in wei). */
296
+ maxPriorityFeePerGas: TQuantity;
297
+ };
298
+ type FeeValues<TQuantity = bigint> = FeeValuesLegacy<TQuantity> | FeeValuesEIP1559<TQuantity>;
299
+
300
300
  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 ? {
301
301
  args: ExtractEventArgsFromAbi<TAbi, TEventName, {
302
302
  enableUnion: false;
@@ -335,27 +335,12 @@ type Log<TQuantity = bigint, TIndex = number, TAbiEvent extends AbiEvent | undef
335
335
  removed: boolean;
336
336
  } & DecodedAbiEvent<TAbiEvent, TAbi, TEventName>;
337
337
 
338
- type Index = `0x${string}`;
339
- type Quantity = `0x${string}`;
340
- type Status = '0x0' | '0x1';
341
- type TransactionType$1 = '0x0' | '0x1' | '0x2';
342
- type RpcBlock = Block<Quantity, RpcTransaction>;
343
- type RpcBlockNumber = BlockNumber<Quantity>;
344
- type RpcBlockIdentifier = BlockIdentifier<Quantity>;
345
- type RpcUncle = Uncle<Quantity>;
346
- type RpcFeeHistory = FeeHistory<Quantity>;
347
- type RpcFeeValues = FeeValues<Quantity>;
348
- type RpcLog = Log<Quantity, Index>;
349
- type RpcTransactionReceipt = TransactionReceipt<Quantity, Index, Status, TransactionType$1>;
350
- type RpcTransactionRequest = TransactionRequest<Quantity, Index>;
351
- type RpcTransaction = TransactionLegacy<Quantity, Index, '0x0'> | TransactionEIP2930<Quantity, Index, '0x1'> | TransactionEIP1559<Quantity, Index, '0x2'>;
352
-
353
338
  type AccessList = {
354
339
  address: Address;
355
340
  storageKeys: Hex[];
356
341
  }[];
357
- type TransactionType = ValueOf<typeof transactionType>;
358
- type TransactionReceipt<TQuantity = bigint, TIndex = number, TStatus = 'success' | 'reverted', TType = TransactionType> = {
342
+ type TransactionType$1 = ValueOf<typeof transactionType>;
343
+ type TransactionReceipt<TQuantity = bigint, TIndex = number, TStatus = 'success' | 'reverted', TType = TransactionType$1> = {
359
344
  /** Hash of block containing this transaction */
360
345
  blockHash: Hash;
361
346
  /** Number of block containing this transaction */
@@ -512,6 +497,21 @@ type BlockNumber<TQuantity = bigint> = TQuantity;
512
497
  type BlockTag = 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized';
513
498
  type Uncle<TQuantity = bigint, TTransaction = Transaction> = Block<TQuantity, TTransaction>;
514
499
 
500
+ type Index = `0x${string}`;
501
+ type Quantity = `0x${string}`;
502
+ type Status = '0x0' | '0x1';
503
+ type TransactionType = '0x0' | '0x1' | '0x2';
504
+ type RpcBlock = Block<Quantity, RpcTransaction>;
505
+ type RpcBlockNumber = BlockNumber<Quantity>;
506
+ type RpcBlockIdentifier = BlockIdentifier<Quantity>;
507
+ type RpcUncle = Uncle<Quantity>;
508
+ type RpcFeeHistory = FeeHistory<Quantity>;
509
+ type RpcFeeValues = FeeValues<Quantity>;
510
+ type RpcLog = Log<Quantity, Index>;
511
+ type RpcTransactionReceipt = TransactionReceipt<Quantity, Index, Status, TransactionType>;
512
+ type RpcTransactionRequest = TransactionRequest<Quantity, Index>;
513
+ type RpcTransaction = TransactionLegacy<Quantity, Index, '0x0'> | TransactionEIP2930<Quantity, Index, '0x1'> | TransactionEIP1559<Quantity, Index, '0x2'>;
514
+
515
515
  type Formatter<TSource = any, TTarget = any> = (value: TSource & {
516
516
  [key: string]: unknown;
517
517
  }) => TTarget;
@@ -525,10 +525,5 @@ type Formatters = {
525
525
  type Chain<TFormatters extends Formatters = Formatters> = Chain$1 & {
526
526
  formatters?: TFormatters;
527
527
  };
528
- type GetChain<TChain extends Chain | undefined, TChainOverride extends Chain | undefined = TChain> = TChain extends Chain ? {
529
- chain?: TChainOverride | null;
530
- } : {
531
- chain: TChainOverride | null;
532
- };
533
528
 
534
- export { formatTransaction as $, AbiItem as A, ByteArray as B, Chain as C, RpcTransactionRequest as D, ExtractArgsFromAbi as E, FeeHistory as F, RpcUncle as G, Hex as H, TransactionRequest as I, TransactionRequestBase as J, TransactionRequestEIP1559 as K, Log as L, TransactionRequestEIP2930 as M, TransactionRequestLegacy as N, Transaction as O, TransactionBase as P, TransactionEIP1559 as Q, RpcBlock as R, TransactionEIP2930 as S, TransactionReceipt as T, TransactionLegacy as U, Uncle as V, ExtractFormatter as W, Formatted as X, FormattedTransaction as Y, TransactionFormatter as Z, defineTransaction as _, Hash as a, transactionType as a0, Formatters as a1, Formatter as a2, TransactionType as a3, MergeIntersectionProperties as a4, GetChain as a5, GetValue as a6, MaybeAbiEventName as a7, MaybeExtractEventArgsFromAbi as a8, Prettify as a9, Quantity as aa, EventDefinition as ab, LogTopic as ac, defineFormatter as ad, format as ae, AccessList as b, Block as c, BlockIdentifier as d, BlockNumber as e, BlockTag as f, ContractConfig as g, ExtractConstructorArgsFromAbi as h, ExtractErrorArgsFromAbi as i, ExtractErrorNameFromAbi as j, ExtractEventArgsFromAbi as k, ExtractEventArgsFromTopics as l, ExtractEventNameFromAbi as m, ExtractFunctionNameFromAbi as n, ExtractNameFromAbi as o, ExtractResultFromAbi as p, FeeValues as q, FeeValuesEIP1559 as r, FeeValuesLegacy as s, RpcBlockIdentifier as t, RpcBlockNumber as u, RpcFeeHistory as v, RpcFeeValues as w, RpcLog as x, RpcTransaction as y, RpcTransactionReceipt as z };
529
+ export { formatTransaction as $, AbiItem as A, ByteArray as B, Chain as C, RpcTransactionRequest as D, ExtractArgsFromAbi as E, FeeHistory as F, RpcUncle as G, Hex as H, TransactionRequest as I, TransactionRequestBase as J, TransactionRequestEIP1559 as K, Log as L, TransactionRequestEIP2930 as M, TransactionRequestLegacy as N, Transaction as O, TransactionBase as P, TransactionEIP1559 as Q, RpcBlock as R, TransactionEIP2930 as S, TransactionReceipt as T, TransactionLegacy as U, Uncle as V, ExtractFormatter as W, Formatted as X, FormattedTransaction as Y, TransactionFormatter as Z, defineTransaction as _, Hash as a, transactionType as a0, Formatters as a1, Formatter as a2, TransactionType$1 as a3, MergeIntersectionProperties as a4, GetValue as a5, MaybeAbiEventName as a6, MaybeExtractEventArgsFromAbi as a7, Prettify as a8, Quantity as a9, EventDefinition as aa, LogTopic as ab, defineFormatter as ac, format as ad, AccessList as b, Block as c, BlockIdentifier as d, BlockNumber as e, BlockTag as f, ContractConfig as g, ExtractConstructorArgsFromAbi as h, ExtractErrorArgsFromAbi as i, ExtractErrorNameFromAbi as j, ExtractEventArgsFromAbi as k, ExtractEventArgsFromTopics as l, ExtractEventNameFromAbi as m, ExtractFunctionNameFromAbi as n, ExtractNameFromAbi as o, ExtractResultFromAbi as p, FeeValues as q, FeeValuesEIP1559 as r, FeeValuesLegacy as s, RpcBlockIdentifier as t, RpcBlockNumber as u, RpcFeeHistory as v, RpcFeeValues as w, RpcLog as x, RpcTransaction as y, RpcTransactionReceipt as z };
@@ -1,4 +1,4 @@
1
- import { a1 as Formatters, C as Chain } from './chain-75b0942e.js';
1
+ import { a1 as Formatters, C as Chain } from './chain-1b53ef88.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, O as Transaction, H as Hex, y as RpcTransaction, z as RpcTransactionReceipt, T as TransactionReceipt, a3 as TransactionType, I as TransactionRequest, D as RpcTransactionRequest } from './chain-75b0942e.js';
2
- export { C as Chain } from './chain-75b0942e.js';
1
+ import { R as RpcBlock, c as Block, O as Transaction, H as Hex, y as RpcTransaction, z as RpcTransactionReceipt, T as TransactionReceipt, a3 as TransactionType, I as TransactionRequest, D as RpcTransactionRequest } from './chain-1b53ef88.js';
2
+ export { C as Chain } from './chain-1b53ef88.js';
3
+ export { d as defineChain } from './chain-ec8c485d.js';
3
4
  import * as chains from '@wagmi/chains';
4
- export { d as defineChain } from './chain-f8db473f.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 _chunkNJSAEA2Hjs = require('./chunk-NJSAEA2H.js');
7
+ var _chunkBHAAXXGOjs = require('./chunk-BHAAXXGO.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: _chunkNJSAEA2Hjs.defineBlock.call(void 0, {
12
+ block: _chunkBHAAXXGOjs.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: _chunkNJSAEA2Hjs.defineTransaction.call(void 0, {
18
+ transaction: _chunkBHAAXXGOjs.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: _chunkNJSAEA2Hjs.defineTransactionReceipt.call(void 0, {
25
+ transactionReceipt: _chunkBHAAXXGOjs.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: _chunkNJSAEA2Hjs.defineTransactionRequest.call(void 0, {
32
+ transactionRequest: _chunkBHAAXXGOjs.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 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.arbitrum);
41
- var arbitrumGoerli2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.arbitrumGoerli);
42
- var aurora2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.aurora);
43
- var auroraGoerli = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.auroraTestnet);
44
- var avalanche2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.avalanche);
45
- var avalancheFuji2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.avalancheFuji);
46
- var baseGoerli2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.baseGoerli);
47
- var boba2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.boba);
48
- var bronos2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.bronos);
49
- var bronosTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.bronosTestnet);
50
- var bsc2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.bsc);
51
- var bscTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.bscTestnet);
52
- var canto2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.canto);
53
- var celo2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, {
40
+ var arbitrum2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.arbitrum);
41
+ var arbitrumGoerli2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.arbitrumGoerli);
42
+ var aurora2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.aurora);
43
+ var auroraGoerli = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.auroraTestnet);
44
+ var avalanche2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.avalanche);
45
+ var avalancheFuji2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.avalancheFuji);
46
+ var baseGoerli2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.baseGoerli);
47
+ var boba2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.boba);
48
+ var bronos2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.bronos);
49
+ var bronosTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.bronosTestnet);
50
+ var bsc2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.bsc);
51
+ var bscTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.bscTestnet);
52
+ var canto2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.canto);
53
+ var celo2 = _chunkBHAAXXGOjs.defineChain.call(void 0, {
54
54
  ...chains.celo,
55
55
  formatters: celoFormatters
56
56
  });
57
- var celoAlfajores2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, {
57
+ var celoAlfajores2 = _chunkBHAAXXGOjs.defineChain.call(void 0, {
58
58
  ...chains.celoAlfajores,
59
59
  formatters: celoFormatters
60
60
  });
61
- var crossbell2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.crossbell);
62
- var evmos2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.evmos);
63
- var evmosTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.evmosTestnet);
64
- var fantom2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.fantom);
65
- var fantomTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.fantomTestnet);
66
- var filecoin2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.filecoin);
67
- var filecoinCalibration2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.filecoinCalibration);
68
- var filecoinHyperspace2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.filecoinHyperspace);
69
- var flare2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.flare);
70
- var flareTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.flareTestnet);
71
- var foundry2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.foundry);
72
- var goerli2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.goerli);
73
- var gnosis2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.gnosis);
74
- var gnosisChiado2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.gnosisChiado);
75
- var hardhat2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.hardhat);
76
- var harmonyOne2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.harmonyOne);
77
- var iotex2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.iotex);
78
- var iotexTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.iotexTestnet);
79
- var localhost2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.localhost);
80
- var mainnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.mainnet);
81
- var metis2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.metis);
82
- var metisGoerli2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.metisGoerli);
83
- var moonbaseAlpha2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.moonbaseAlpha);
84
- var moonbeam2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.moonbeam);
85
- var moonriver2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.moonriver);
86
- var okc2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.okc);
87
- var optimism2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.optimism);
88
- var optimismGoerli2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.optimismGoerli);
89
- var polygon2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.polygon);
90
- var polygonMumbai2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.polygonMumbai);
91
- var polygonZkEvmTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.polygonZkEvmTestnet);
92
- var sepolia2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.sepolia);
93
- var shardeumSphinx2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.shardeumSphinx);
94
- var songbird2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.songbird);
95
- var songbirdTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.songbirdTestnet);
96
- var taraxa2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.taraxa);
97
- var taraxaTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.taraxaTestnet);
98
- var telos2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.telos);
99
- var telosTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.telosTestnet);
100
- var zhejiang2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.zhejiang);
101
- var zkSync2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.zkSync);
102
- var zkSyncTestnet2 = _chunkNJSAEA2Hjs.defineChain.call(void 0, chains.zkSyncTestnet);
61
+ var crossbell2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.crossbell);
62
+ var evmos2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.evmos);
63
+ var evmosTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.evmosTestnet);
64
+ var fantom2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.fantom);
65
+ var fantomTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.fantomTestnet);
66
+ var filecoin2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.filecoin);
67
+ var filecoinCalibration2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.filecoinCalibration);
68
+ var filecoinHyperspace2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.filecoinHyperspace);
69
+ var flare2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.flare);
70
+ var flareTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.flareTestnet);
71
+ var foundry2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.foundry);
72
+ var goerli2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.goerli);
73
+ var gnosis2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.gnosis);
74
+ var gnosisChiado2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.gnosisChiado);
75
+ var hardhat2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.hardhat);
76
+ var harmonyOne2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.harmonyOne);
77
+ var iotex2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.iotex);
78
+ var iotexTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.iotexTestnet);
79
+ var localhost2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.localhost);
80
+ var mainnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.mainnet);
81
+ var metis2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.metis);
82
+ var metisGoerli2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.metisGoerli);
83
+ var moonbaseAlpha2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.moonbaseAlpha);
84
+ var moonbeam2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.moonbeam);
85
+ var moonriver2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.moonriver);
86
+ var okc2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.okc);
87
+ var optimism2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.optimism);
88
+ var optimismGoerli2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.optimismGoerli);
89
+ var polygon2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.polygon);
90
+ var polygonMumbai2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.polygonMumbai);
91
+ var polygonZkEvmTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.polygonZkEvmTestnet);
92
+ var sepolia2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.sepolia);
93
+ var shardeumSphinx2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.shardeumSphinx);
94
+ var songbird2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.songbird);
95
+ var songbirdTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.songbirdTestnet);
96
+ var taraxa2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.taraxa);
97
+ var taraxaTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.taraxaTestnet);
98
+ var telos2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.telos);
99
+ var telosTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.telosTestnet);
100
+ var zhejiang2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.zhejiang);
101
+ var zkSync2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.zkSync);
102
+ var zkSyncTestnet2 = _chunkBHAAXXGOjs.defineChain.call(void 0, chains.zkSyncTestnet);
103
103
 
104
104
 
105
105
 
@@ -159,5 +159,5 @@ var zkSyncTestnet2 = _chunkNJSAEA2Hjs.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 = _chunkNJSAEA2Hjs.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;
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 = _chunkBHAAXXGOjs.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
@@ -4,7 +4,7 @@ import {
4
4
  defineTransaction,
5
5
  defineTransactionReceipt,
6
6
  defineTransactionRequest
7
- } from "./chunk-IVRML3IK.mjs";
7
+ } from "./chunk-FOJL5WVL.mjs";
8
8
 
9
9
  // src/chains.ts
10
10
  import * as chains from "@wagmi/chains";