viem 0.2.0-0-2-0.20230320T235312 → 0.2.0-0-2-0.20230328T063845
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/accounts/package.json +4 -0
- 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 +90 -0
- package/dist/accounts/index.js +152 -0
- package/dist/accounts/index.js.map +1 -0
- package/dist/accounts/index.mjs +152 -0
- package/dist/accounts/index.mjs.map +1 -0
- package/dist/{chain-b2e88e30.d.ts → chain-5b28fc53.d.ts} +121 -85
- package/dist/{chain-c4f924cf.d.ts → chain-e9b996ff.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-T4AH4Y6Y.js → chunk-564BCC7H.js} +813 -206
- package/dist/chunk-564BCC7H.js.map +1 -0
- package/dist/chunk-7QEOFHC7.mjs +31 -0
- package/dist/chunk-7QEOFHC7.mjs.map +1 -0
- package/dist/{chunk-4DIN6KDM.mjs → chunk-BJ5KRDTG.mjs} +2 -2
- package/dist/chunk-BJ5KRDTG.mjs.map +1 -0
- package/dist/{chunk-BLB7NERO.js → chunk-CXE4XSMF.js} +19 -19
- package/dist/chunk-CXE4XSMF.js.map +1 -0
- package/dist/chunk-D3ALNUWN.js +31 -0
- package/dist/chunk-D3ALNUWN.js.map +1 -0
- package/dist/{chunk-KOAJUBTN.mjs → chunk-UCZWRYV5.mjs} +803 -196
- package/dist/chunk-UCZWRYV5.mjs.map +1 -0
- package/dist/contract.d.ts +9 -8
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/{createClient-d4f1dea1.d.ts → createClient-e52de308.d.ts} +23 -9
- package/dist/{eip1193-cd3e872a.d.ts → eip1193-9080db42.d.ts} +1 -1
- package/dist/{encodeFunctionResult-750c9055.d.ts → encodeFunctionResult-47ad60ed.d.ts} +1 -1
- package/dist/{encodePacked-de74201f.d.ts → encodePacked-35c796fb.d.ts} +1 -1
- package/dist/ens.d.ts +6 -5
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/ethers.d.ts +5 -4
- package/dist/ethers.js +7 -5
- package/dist/ethers.js.map +1 -1
- package/dist/ethers.mjs +7 -5
- package/dist/ethers.mjs.map +1 -1
- package/dist/{formatAbiItem-fdbdda39.d.ts → formatAbiItem-d9e801dd.d.ts} +1 -1
- package/dist/{getAbiItem-9d709e3b.d.ts → getAbiItem-1d94ae0e.d.ts} +1 -1
- package/dist/index.d.ts +23 -16
- package/dist/index.js +130 -103
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +72 -45
- package/dist/index.mjs.map +1 -1
- package/dist/parseAccount-4209fa24.d.ts +6 -0
- package/dist/{parseGwei-f930d155.d.ts → parseGwei-85b2bbc3.d.ts} +61 -18
- package/dist/public.d.ts +6 -5
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test-f3d06763.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/{account-07d04222.d.ts → typedData-42b43450.d.ts} +46 -27
- package/dist/utils/index.d.ts +17 -35
- package/dist/utils/index.js +18 -2
- package/dist/utils/index.mjs +19 -3
- package/dist/wallet.d.ts +6 -5
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/dist/{createPublicClient-3a714a8d.d.ts → watchPendingTransactions-ad90553c.d.ts} +336 -301
- package/dist/window.d.ts +2 -2
- package/package.json +9 -1
- package/dist/chunk-4DIN6KDM.mjs.map +0 -1
- package/dist/chunk-BLB7NERO.js.map +0 -1
- package/dist/chunk-KOAJUBTN.mjs.map +0 -1
- package/dist/chunk-T4AH4Y6Y.js.map +0 -1
- package/dist/test-c70126a6.d.ts +0 -206
@@ -1,10 +1,5 @@
|
|
1
1
|
import { Chain as Chain$1 } from '@wagmi/chains';
|
2
|
-
import {
|
3
|
-
|
4
|
-
type ByteArray = Uint8Array;
|
5
|
-
type Hex = `0x${string}`;
|
6
|
-
type Hash = `0x${string}`;
|
7
|
-
type LogTopic = Hex | Hex[] | null;
|
2
|
+
import { Abi, AbiFunction, ExtractAbiFunction, AbiParametersToPrimitiveTypes, AbiConstructor, AbiError, ExtractAbiError, AbiEvent, ExtractAbiEvent, ExtractAbiErrorNames, ExtractAbiEventNames, AbiStateMutability, ExtractAbiFunctionNames, Narrow, Address, AbiParameter, AbiParameterToPrimitiveType } from 'abitype';
|
8
3
|
|
9
4
|
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;
|
10
5
|
type FormatOptions<TSource, TTarget> = {
|
@@ -51,71 +46,22 @@ declare const transactionType: {
|
|
51
46
|
declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction<bigint, number>;
|
52
47
|
declare const defineTransaction: <TFormat extends Formatter<Partial<RpcTransaction>, Partial<Transaction<bigint, number>> & {
|
53
48
|
[key: string]: unknown;
|
54
|
-
}>, TExclude extends ("type" | "value" | "blockHash" | "blockNumber" | "
|
49
|
+
}>, TExclude extends ("type" | "value" | "blockHash" | "blockNumber" | "chainId" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "from" | "accessList" | "to" | "gas" | "nonce" | "r" | "s" | "v" | "hash" | "input" | "transactionIndex")[] = []>({ exclude, format: formatOverride, }: {
|
55
50
|
exclude?: TExclude | undefined;
|
56
51
|
format?: TFormat | undefined;
|
57
52
|
}) => (data: Partial<RpcTransaction> & {
|
58
53
|
[key: string]: unknown;
|
59
54
|
}) => Transaction<bigint, number> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
|
60
55
|
|
61
|
-
type
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
gasLimit: TQuantity;
|
70
|
-
/** Total used gas by all transactions in this block */
|
71
|
-
gasUsed: TQuantity;
|
72
|
-
/** Block hash or `null` if pending */
|
73
|
-
hash: Hash | null;
|
74
|
-
/** Logs bloom filter or `null` if pending */
|
75
|
-
logsBloom: Hex | null;
|
76
|
-
/** Address that received this block’s mining rewards */
|
77
|
-
miner: Address;
|
78
|
-
/** Unique identifier for the block. */
|
79
|
-
mixHash: Hash;
|
80
|
-
/** Proof-of-work hash or `null` if pending */
|
81
|
-
nonce: Hex | null;
|
82
|
-
/** Block number or `null` if pending */
|
83
|
-
number: TQuantity | null;
|
84
|
-
/** Parent block hash */
|
85
|
-
parentHash: Hash;
|
86
|
-
/** Root of the this block’s receipts trie */
|
87
|
-
receiptsRoot: Hex;
|
88
|
-
sealFields: Hex[];
|
89
|
-
/** SHA3 of the uncles data in this block */
|
90
|
-
sha3Uncles: Hash;
|
91
|
-
/** Size of this block in bytes */
|
92
|
-
size: TQuantity;
|
93
|
-
/** Root of this block’s final state trie */
|
94
|
-
stateRoot: Hash;
|
95
|
-
/** Unix timestamp of when this block was collated */
|
96
|
-
timestamp: TQuantity;
|
97
|
-
/** Total difficulty of the chain until this block */
|
98
|
-
totalDifficulty: TQuantity | null;
|
99
|
-
/** List of transaction objects or hashes */
|
100
|
-
transactions: Hash[] | TTransaction[];
|
101
|
-
/** Root of this block’s transaction trie */
|
102
|
-
transactionsRoot: Hash;
|
103
|
-
/** List of uncle hashes */
|
104
|
-
uncles: Hash[];
|
56
|
+
type ByteArray = Uint8Array;
|
57
|
+
type Hex = `0x${string}`;
|
58
|
+
type Hash = `0x${string}`;
|
59
|
+
type LogTopic = Hex | Hex[] | null;
|
60
|
+
type Signature = {
|
61
|
+
r: Hex;
|
62
|
+
s: Hex;
|
63
|
+
v: bigint;
|
105
64
|
};
|
106
|
-
type BlockIdentifier<TQuantity = bigint> = {
|
107
|
-
/** Whether or not to throw an error if the block is not in the canonical chain as described below. Only allowed in conjunction with the blockHash tag. Defaults to false. */
|
108
|
-
requireCanonical?: boolean;
|
109
|
-
} & ({
|
110
|
-
/** The block in the canonical chain with this number */
|
111
|
-
blockNumber: BlockNumber<TQuantity>;
|
112
|
-
} | {
|
113
|
-
/** The block uniquely identified by this hash. The `blockNumber` and `blockHash` properties are mutually exclusive; exactly one of them must be set. */
|
114
|
-
blockHash: Hash;
|
115
|
-
});
|
116
|
-
type BlockNumber<TQuantity = bigint> = TQuantity;
|
117
|
-
type BlockTag = 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized';
|
118
|
-
type Uncle<TQuantity = bigint, TTransaction = Transaction> = Block<TQuantity, TTransaction>;
|
119
65
|
|
120
66
|
type FeeHistory<TQuantity = bigint> = {
|
121
67
|
/**
|
@@ -145,6 +91,14 @@ type FeeValuesEIP1559<TQuantity = bigint> = {
|
|
145
91
|
};
|
146
92
|
type FeeValues<TQuantity = bigint> = FeeValuesLegacy<TQuantity> | FeeValuesEIP1559<TQuantity>;
|
147
93
|
|
94
|
+
/**
|
95
|
+
* @description Checks if {@link T} is `undefined`
|
96
|
+
* @param T - Type to check
|
97
|
+
* @example
|
98
|
+
* type Result = IsUndefined<undefined>
|
99
|
+
* // ^? true
|
100
|
+
*/
|
101
|
+
type IsUndefined<T> = [undefined] extends [T] ? true : false;
|
148
102
|
/**
|
149
103
|
* @description Excludes empty attributes from T if TMaybeExclude is true.
|
150
104
|
*
|
@@ -394,27 +348,12 @@ type Log<TQuantity = bigint, TIndex = number, TAbiEvent extends AbiEvent | undef
|
|
394
348
|
removed: boolean;
|
395
349
|
} & DecodedAbiEvent<TAbiEvent, TAbi, TEventName>;
|
396
350
|
|
397
|
-
type Index = `0x${string}`;
|
398
|
-
type Quantity = `0x${string}`;
|
399
|
-
type Status = '0x0' | '0x1';
|
400
|
-
type TransactionType$1 = '0x0' | '0x1' | '0x2';
|
401
|
-
type RpcBlock = Block<Quantity, RpcTransaction>;
|
402
|
-
type RpcBlockNumber = BlockNumber<Quantity>;
|
403
|
-
type RpcBlockIdentifier = BlockIdentifier<Quantity>;
|
404
|
-
type RpcUncle = Uncle<Quantity>;
|
405
|
-
type RpcFeeHistory = FeeHistory<Quantity>;
|
406
|
-
type RpcFeeValues = FeeValues<Quantity>;
|
407
|
-
type RpcLog = Log<Quantity, Index>;
|
408
|
-
type RpcTransactionReceipt = TransactionReceipt<Quantity, Index, Status, TransactionType$1>;
|
409
|
-
type RpcTransactionRequest = TransactionRequest<Quantity, Index>;
|
410
|
-
type RpcTransaction = TransactionLegacy<Quantity, Index, '0x0'> | TransactionEIP2930<Quantity, Index, '0x1'> | TransactionEIP1559<Quantity, Index, '0x2'>;
|
411
|
-
|
412
351
|
type AccessList = {
|
413
352
|
address: Address;
|
414
353
|
storageKeys: Hex[];
|
415
354
|
}[];
|
416
|
-
type TransactionType = ValueOf<typeof transactionType>;
|
417
|
-
type TransactionReceipt<TQuantity = bigint, TIndex = number, TStatus = 'success' | 'reverted', TType = TransactionType> = {
|
355
|
+
type TransactionType$1 = ValueOf<typeof transactionType>;
|
356
|
+
type TransactionReceipt<TQuantity = bigint, TIndex = number, TStatus = 'success' | 'reverted', TType = TransactionType$1> = {
|
418
357
|
/** Hash of block containing this transaction */
|
419
358
|
blockHash: Hash;
|
420
359
|
/** Number of block containing this transaction */
|
@@ -511,6 +450,103 @@ type TransactionRequestEIP1559<TQuantity = bigint, TIndex = number> = Transactio
|
|
511
450
|
accessList?: AccessList;
|
512
451
|
};
|
513
452
|
type TransactionRequest<TQuantity = bigint, TIndex = number> = TransactionRequestLegacy<TQuantity, TIndex> | TransactionRequestEIP2930<TQuantity, TIndex> | TransactionRequestEIP1559<TQuantity, TIndex>;
|
453
|
+
type TransactionSerializedEIP1559 = `0x02${string}`;
|
454
|
+
type TransactionSerializedEIP2930 = `0x01${string}`;
|
455
|
+
type TransactionSerializedLegacy = Hex;
|
456
|
+
type TransactionSerialized<TType extends TransactionType$1 = 'legacy'> = (TType extends 'eip1559' ? TransactionSerializedEIP1559 : never) | (TType extends 'eip2930' ? TransactionSerializedEIP2930 : never) | (TType extends 'legacy' ? TransactionSerializedLegacy : never);
|
457
|
+
type TransactionSerializableBase<TQuantity = bigint, TIndex = number> = Omit<TransactionRequestBase<TQuantity, TIndex>, 'from'> & Partial<Signature>;
|
458
|
+
type TransactionSerializableLegacy<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesLegacy<TQuantity>> & {
|
459
|
+
accessList?: never;
|
460
|
+
chainId?: number;
|
461
|
+
type?: 'legacy';
|
462
|
+
};
|
463
|
+
type TransactionSerializableEIP2930<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesLegacy<TQuantity>> & {
|
464
|
+
accessList?: AccessList;
|
465
|
+
chainId: number;
|
466
|
+
type?: 'eip2930';
|
467
|
+
yParity?: number;
|
468
|
+
};
|
469
|
+
type TransactionSerializableEIP1559<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesEIP1559<TQuantity>> & {
|
470
|
+
accessList?: AccessList;
|
471
|
+
chainId: number;
|
472
|
+
type?: 'eip1559';
|
473
|
+
yParity?: number;
|
474
|
+
};
|
475
|
+
type TransactionSerializable<TQuantity = bigint, TIndex = number> = TransactionSerializableLegacy<TQuantity, TIndex> | TransactionSerializableEIP2930<TQuantity, TIndex> | TransactionSerializableEIP1559<TQuantity, TIndex>;
|
476
|
+
|
477
|
+
type Block<TQuantity = bigint, TTransaction = Transaction> = {
|
478
|
+
/** Base fee per gas */
|
479
|
+
baseFeePerGas: TQuantity | null;
|
480
|
+
/** Difficulty for this block */
|
481
|
+
difficulty: TQuantity;
|
482
|
+
/** "Extra data" field of this block */
|
483
|
+
extraData: Hex;
|
484
|
+
/** Maximum gas allowed in this block */
|
485
|
+
gasLimit: TQuantity;
|
486
|
+
/** Total used gas by all transactions in this block */
|
487
|
+
gasUsed: TQuantity;
|
488
|
+
/** Block hash or `null` if pending */
|
489
|
+
hash: Hash | null;
|
490
|
+
/** Logs bloom filter or `null` if pending */
|
491
|
+
logsBloom: Hex | null;
|
492
|
+
/** Address that received this block’s mining rewards */
|
493
|
+
miner: Address;
|
494
|
+
/** Unique identifier for the block. */
|
495
|
+
mixHash: Hash;
|
496
|
+
/** Proof-of-work hash or `null` if pending */
|
497
|
+
nonce: Hex | null;
|
498
|
+
/** Block number or `null` if pending */
|
499
|
+
number: TQuantity | null;
|
500
|
+
/** Parent block hash */
|
501
|
+
parentHash: Hash;
|
502
|
+
/** Root of the this block’s receipts trie */
|
503
|
+
receiptsRoot: Hex;
|
504
|
+
sealFields: Hex[];
|
505
|
+
/** SHA3 of the uncles data in this block */
|
506
|
+
sha3Uncles: Hash;
|
507
|
+
/** Size of this block in bytes */
|
508
|
+
size: TQuantity;
|
509
|
+
/** Root of this block’s final state trie */
|
510
|
+
stateRoot: Hash;
|
511
|
+
/** Unix timestamp of when this block was collated */
|
512
|
+
timestamp: TQuantity;
|
513
|
+
/** Total difficulty of the chain until this block */
|
514
|
+
totalDifficulty: TQuantity | null;
|
515
|
+
/** List of transaction objects or hashes */
|
516
|
+
transactions: Hash[] | TTransaction[];
|
517
|
+
/** Root of this block’s transaction trie */
|
518
|
+
transactionsRoot: Hash;
|
519
|
+
/** List of uncle hashes */
|
520
|
+
uncles: Hash[];
|
521
|
+
};
|
522
|
+
type BlockIdentifier<TQuantity = bigint> = {
|
523
|
+
/** Whether or not to throw an error if the block is not in the canonical chain as described below. Only allowed in conjunction with the blockHash tag. Defaults to false. */
|
524
|
+
requireCanonical?: boolean;
|
525
|
+
} & ({
|
526
|
+
/** The block in the canonical chain with this number */
|
527
|
+
blockNumber: BlockNumber<TQuantity>;
|
528
|
+
} | {
|
529
|
+
/** The block uniquely identified by this hash. The `blockNumber` and `blockHash` properties are mutually exclusive; exactly one of them must be set. */
|
530
|
+
blockHash: Hash;
|
531
|
+
});
|
532
|
+
type BlockNumber<TQuantity = bigint> = TQuantity;
|
533
|
+
type BlockTag = 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized';
|
534
|
+
type Uncle<TQuantity = bigint, TTransaction = Transaction> = Block<TQuantity, TTransaction>;
|
535
|
+
|
536
|
+
type Index = `0x${string}`;
|
537
|
+
type Quantity = `0x${string}`;
|
538
|
+
type Status = '0x0' | '0x1';
|
539
|
+
type TransactionType = '0x0' | '0x1' | '0x2';
|
540
|
+
type RpcBlock = Block<Quantity, RpcTransaction>;
|
541
|
+
type RpcBlockNumber = BlockNumber<Quantity>;
|
542
|
+
type RpcBlockIdentifier = BlockIdentifier<Quantity>;
|
543
|
+
type RpcUncle = Uncle<Quantity>;
|
544
|
+
type RpcFeeHistory = FeeHistory<Quantity>;
|
545
|
+
type RpcFeeValues = FeeValues<Quantity>;
|
546
|
+
type RpcLog = Log<Quantity, Index>;
|
547
|
+
type RpcTransactionReceipt = TransactionReceipt<Quantity, Index, Status, TransactionType>;
|
548
|
+
type RpcTransactionRequest = TransactionRequest<Quantity, Index>;
|
549
|
+
type RpcTransaction = TransactionLegacy<Quantity, Index, '0x0'> | TransactionEIP2930<Quantity, Index, '0x1'> | TransactionEIP1559<Quantity, Index, '0x2'>;
|
514
550
|
|
515
551
|
type Formatter<TSource = any, TTarget = any> = (value: TSource & {
|
516
552
|
[key: string]: unknown;
|
@@ -525,10 +561,10 @@ type Formatters = {
|
|
525
561
|
type Chain<TFormatters extends Formatters = Formatters> = Chain$1 & {
|
526
562
|
formatters?: TFormatters;
|
527
563
|
};
|
528
|
-
type GetChain<TChain extends Chain | undefined, TChainOverride extends Chain | undefined =
|
529
|
-
chain?: TChainOverride | null;
|
530
|
-
} : {
|
564
|
+
type GetChain<TChain extends Chain | undefined, TChainOverride extends Chain | undefined = undefined> = IsUndefined<TChain> extends true ? {
|
531
565
|
chain: TChainOverride | null;
|
566
|
+
} : {
|
567
|
+
chain?: TChainOverride | null;
|
532
568
|
};
|
533
569
|
|
534
|
-
export {
|
570
|
+
export { TransactionSerialized 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, TransactionType$1 as I, TransactionBase as J, TransactionEIP1559 as K, Log as L, TransactionEIP2930 as M, TransactionLegacy as N, TransactionReceipt as O, TransactionRequest as P, TransactionRequestBase as Q, RpcBlock as R, TransactionRequestEIP1559 as S, Transaction as T, TransactionRequestEIP2930 as U, TransactionRequestLegacy as V, TransactionSerializable as W, TransactionSerializableBase as X, TransactionSerializableEIP1559 as Y, TransactionSerializableEIP2930 as Z, TransactionSerializableLegacy as _, Hash as a, TransactionSerializedEIP1559 as a0, TransactionSerializedEIP2930 as a1, TransactionSerializedLegacy as a2, Uncle as a3, ExtractFormatter as a4, Formatted as a5, FormattedTransaction as a6, TransactionFormatter as a7, defineTransaction as a8, formatTransaction as a9, transactionType as aa, Formatters as ab, Formatter as ac, GetChain as ad, MergeIntersectionProperties as ae, GetValue as af, IsUndefined as ag, MaybeExtractEventArgsFromAbi as ah, Prettify as ai, MaybeAbiEventName as aj, Quantity as ak, EventDefinition as al, Signature as am, LogTopic as an, defineFormatter as ao, format as ap, 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 {
|
1
|
+
import { ab as Formatters, C as Chain } from './chain-5b28fc53.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
|
-
|
2
|
-
|
1
|
+
export { d as defineChain } from './chain-e9b996ff.js';
|
2
|
+
import { R as RpcBlock, c as Block, T as Transaction, H as Hex, y as RpcTransaction, z as RpcTransactionReceipt, O as TransactionReceipt, I as TransactionType, P as TransactionRequest, D as RpcTransactionRequest } from './chain-5b28fc53.js';
|
3
|
+
export { C as Chain } from './chain-5b28fc53.js';
|
3
4
|
import * as chains from '@wagmi/chains';
|
4
|
-
export { d as defineChain } from './chain-c4f924cf.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 _chunk564BCC7Hjs = require('./chunk-564BCC7H.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: _chunk564BCC7Hjs.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: _chunk564BCC7Hjs.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: _chunk564BCC7Hjs.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: _chunk564BCC7Hjs.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 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.arbitrum);
|
41
|
+
var arbitrumGoerli2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.arbitrumGoerli);
|
42
|
+
var aurora2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.aurora);
|
43
|
+
var auroraGoerli = _chunk564BCC7Hjs.defineChain.call(void 0, chains.auroraTestnet);
|
44
|
+
var avalanche2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.avalanche);
|
45
|
+
var avalancheFuji2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.avalancheFuji);
|
46
|
+
var baseGoerli2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.baseGoerli);
|
47
|
+
var boba2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.boba);
|
48
|
+
var bronos2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.bronos);
|
49
|
+
var bronosTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.bronosTestnet);
|
50
|
+
var bsc2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.bsc);
|
51
|
+
var bscTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.bscTestnet);
|
52
|
+
var canto2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.canto);
|
53
|
+
var celo2 = _chunk564BCC7Hjs.defineChain.call(void 0, {
|
54
54
|
...chains.celo,
|
55
55
|
formatters: celoFormatters
|
56
56
|
});
|
57
|
-
var celoAlfajores2 =
|
57
|
+
var celoAlfajores2 = _chunk564BCC7Hjs.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 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.crossbell);
|
62
|
+
var evmos2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.evmos);
|
63
|
+
var evmosTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.evmosTestnet);
|
64
|
+
var fantom2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.fantom);
|
65
|
+
var fantomTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.fantomTestnet);
|
66
|
+
var filecoin2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.filecoin);
|
67
|
+
var filecoinCalibration2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.filecoinCalibration);
|
68
|
+
var filecoinHyperspace2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.filecoinHyperspace);
|
69
|
+
var flare2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.flare);
|
70
|
+
var flareTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.flareTestnet);
|
71
|
+
var foundry2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.foundry);
|
72
|
+
var goerli2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.goerli);
|
73
|
+
var gnosis2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.gnosis);
|
74
|
+
var gnosisChiado2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.gnosisChiado);
|
75
|
+
var hardhat2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.hardhat);
|
76
|
+
var harmonyOne2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.harmonyOne);
|
77
|
+
var iotex2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.iotex);
|
78
|
+
var iotexTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.iotexTestnet);
|
79
|
+
var localhost2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.localhost);
|
80
|
+
var mainnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.mainnet);
|
81
|
+
var metis2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.metis);
|
82
|
+
var metisGoerli2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.metisGoerli);
|
83
|
+
var moonbaseAlpha2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.moonbaseAlpha);
|
84
|
+
var moonbeam2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.moonbeam);
|
85
|
+
var moonriver2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.moonriver);
|
86
|
+
var okc2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.okc);
|
87
|
+
var optimism2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.optimism);
|
88
|
+
var optimismGoerli2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.optimismGoerli);
|
89
|
+
var polygon2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.polygon);
|
90
|
+
var polygonMumbai2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.polygonMumbai);
|
91
|
+
var polygonZkEvmTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.polygonZkEvmTestnet);
|
92
|
+
var sepolia2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.sepolia);
|
93
|
+
var shardeumSphinx2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.shardeumSphinx);
|
94
|
+
var songbird2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.songbird);
|
95
|
+
var songbirdTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.songbirdTestnet);
|
96
|
+
var taraxa2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.taraxa);
|
97
|
+
var taraxaTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.taraxaTestnet);
|
98
|
+
var telos2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.telos);
|
99
|
+
var telosTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.telosTestnet);
|
100
|
+
var zhejiang2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.zhejiang);
|
101
|
+
var zkSync2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.zkSync);
|
102
|
+
var zkSyncTestnet2 = _chunk564BCC7Hjs.defineChain.call(void 0, chains.zkSyncTestnet);
|
103
103
|
|
104
104
|
|
105
105
|
|
@@ -159,5 +159,5 @@ var zkSyncTestnet2 = _chunkT4AH4Y6Yjs.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 = _chunk564BCC7Hjs.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
|