viem 0.0.1-alpha.1 → 0.0.1-alpha.11
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/actions/package.json +1 -1
- package/chains/package.json +1 -1
- package/clients/package.json +1 -1
- package/dist/actions/index.d.ts +6 -6
- package/dist/actions/index.js +125 -123
- package/dist/actions/index.mjs +125 -0
- package/dist/chains.d.ts +651 -21
- package/dist/chains.js +76 -75
- package/dist/chains.mjs +134 -0
- package/dist/chunk-35OJIFIW.js +2619 -0
- package/dist/{chunk-Z6LRV6XI.js → chunk-DY4MSK2M.mjs} +1052 -411
- package/dist/chunk-GXCYE2PD.js +258 -0
- package/dist/{chunk-LLYFXUSV.js → chunk-JXGK2LUM.mjs} +184 -198
- package/dist/chunk-PEAG3TIC.js +1084 -0
- package/dist/{chunk-OQTFTQTO.js → chunk-TP542F7H.mjs} +44 -63
- package/dist/clients/index.d.ts +5 -6
- package/dist/clients/index.js +23 -25
- package/dist/clients/index.mjs +23 -0
- package/dist/{createWalletClient-915223f3.d.ts → createWalletClient-3f9fa8b6.d.ts} +1 -1
- package/dist/{eip1193-8f7c22ce.d.ts → eip1193-c001fcd5.d.ts} +3 -3
- package/dist/index.d.ts +341 -10
- package/dist/index.js +374 -290
- package/dist/index.mjs +374 -0
- package/dist/{parseGwei-bbc055e4.d.ts → parseGwei-7c87ff41.d.ts} +70 -118
- package/dist/{rpc-3c0e3985.d.ts → rpc-26932bae.d.ts} +1 -38
- package/dist/{rpc-655c0ba4.d.ts → rpc-b77c5aee.d.ts} +1 -1
- package/dist/transactionRequest-08d30731.d.ts +132 -0
- package/dist/utils/index.d.ts +41 -7
- package/dist/utils/index.js +148 -154
- package/dist/utils/index.mjs +148 -0
- package/dist/{watchAsset-04ab8db5.d.ts → watchAsset-43255bfd.d.ts} +17 -16
- package/dist/{webSocket-c6e0d26f.d.ts → webSocket-3385e295.d.ts} +4 -9
- package/dist/window.d.ts +2 -2
- package/dist/window.js +1 -0
- package/dist/window.mjs +0 -0
- package/package.json +9 -62
- package/utils/package.json +1 -1
- package/window/package.json +1 -1
- package/dist/BaseError-7688f84e.d.ts +0 -18
- package/dist/transactionRequest-ade896ac.d.ts +0 -44
@@ -1,9 +1,9 @@
|
|
1
|
+
import { Abi } from 'abitype';
|
1
2
|
import { Chain, Formatter } from './chains.js';
|
2
|
-
import { H as Hex,
|
3
|
-
import { T as TransactionRequestFormatter, e as Formatted, F as FormattedBlock, B as BlockFormatter, a as FormattedTransaction,
|
4
|
-
import { P as PublicClient, T as TestClient, W as WalletClient } from './createWalletClient-
|
5
|
-
import {
|
6
|
-
import { W as WalletPermission, a as WatchAssetParams } from './eip1193-8f7c22ce.js';
|
3
|
+
import { H as Hex, A as Address, b as BlockTag, M as MergeIntersectionProperties, v as TransactionRequest, K as EstimateGasParameters, a as Hash, F as FeeHistory, L as Log, r as RpcTransactionReceipt, T as TransactionReceipt, N as TransactionType, D as Transaction, q as RpcTransaction, Q as Quantity, B as ByteArray } from './rpc-b77c5aee.js';
|
4
|
+
import { T as TransactionRequestFormatter, e as Formatted, E as ExtractFunctionNameFromAbi, G as GetValue, g as ExtractArgsFromAbi, h as ExtractResultFromAbi, F as FormattedBlock, B as BlockFormatter, a as FormattedTransaction, i as TransactionFormatter, j as FormattedTransactionReceipt, k as TransactionReceiptFormatter, l as ExtractFormatter } from './transactionRequest-08d30731.js';
|
5
|
+
import { P as PublicClient, T as TestClient, W as WalletClient } from './createWalletClient-3f9fa8b6.js';
|
6
|
+
import { W as WalletPermission, a as WatchAssetParams } from './eip1193-c001fcd5.js';
|
7
7
|
|
8
8
|
type FilterType = 'transaction' | 'block' | 'event';
|
9
9
|
type Filter<TFilterType extends FilterType = 'event'> = {
|
@@ -14,6 +14,7 @@ type Filter<TFilterType extends FilterType = 'event'> = {
|
|
14
14
|
type FormattedCall<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Formatted<TFormatter, TransactionRequest, true>, TransactionRequest>;
|
15
15
|
type CallArgs<TChain extends Chain = Chain> = FormattedCall<TransactionRequestFormatter<TChain>> & {
|
16
16
|
chain?: TChain;
|
17
|
+
from?: Address;
|
17
18
|
} & ({
|
18
19
|
/** The balance of the account at a block number. */
|
19
20
|
blockNumber?: bigint;
|
@@ -28,6 +29,16 @@ type CallResponse = {
|
|
28
29
|
};
|
29
30
|
declare function call<TChain extends Chain>(client: PublicClient, { blockNumber, blockTag, chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: CallArgs<TChain>): Promise<CallResponse>;
|
30
31
|
|
32
|
+
type CallContractArgs<TChain extends Chain = Chain, TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any> = Omit<CallArgs<TChain>, 'from' | 'to' | 'data' | 'value'> & {
|
33
|
+
address: Address;
|
34
|
+
abi: TAbi;
|
35
|
+
from?: Address;
|
36
|
+
functionName: ExtractFunctionNameFromAbi<TAbi, TFunctionName>;
|
37
|
+
value?: GetValue<TAbi, TFunctionName, CallArgs<TChain>['value']>;
|
38
|
+
} & ExtractArgsFromAbi<TAbi, TFunctionName>;
|
39
|
+
type CallContractResponse<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = ExtractResultFromAbi<TAbi, TFunctionName>;
|
40
|
+
declare function callContract<TChain extends Chain, TAbi extends Abi = Abi, TFunctionName extends string = any>(client: PublicClient, { abi, address, args, functionName, ...callRequest }: CallContractArgs<TChain, TAbi, TFunctionName>): Promise<CallContractResponse<TAbi, TFunctionName>>;
|
41
|
+
|
31
42
|
type CreatePendingTransactionFilterResponse = Filter<'transaction'>;
|
32
43
|
declare function createPendingTransactionFilter(client: PublicClient): Promise<CreatePendingTransactionFilterResponse>;
|
33
44
|
|
@@ -275,12 +286,6 @@ type WaitForTransactionReceiptArgs<TChain extends Chain = Chain> = {
|
|
275
286
|
timeout?: number;
|
276
287
|
};
|
277
288
|
declare function waitForTransactionReceipt<TChain extends Chain>(client: PublicClient<any, TChain>, { confirmations, hash, onReplaced, pollingInterval, timeout, }: WaitForTransactionReceiptArgs<TChain>): Promise<WaitForTransactionReceiptResponse<TChain>>;
|
278
|
-
declare class WaitForTransactionReceiptTimeoutError extends BaseError {
|
279
|
-
name: string;
|
280
|
-
constructor({ hash }: {
|
281
|
-
hash: Hash;
|
282
|
-
});
|
283
|
-
}
|
284
289
|
|
285
290
|
type OnBlockNumberResponse = GetBlockNumberResponse;
|
286
291
|
type OnBlockNumber = (blockNumber: OnBlockNumberResponse, prevBlockNumber: OnBlockNumberResponse | undefined) => void;
|
@@ -509,10 +514,6 @@ type SendTransactionArgs<TChain extends Chain = Chain> = FormattedTransactionReq
|
|
509
514
|
};
|
510
515
|
type SendTransactionResponse = Hash;
|
511
516
|
declare function sendTransaction<TChain extends Chain>(client: WalletClient, { chain, from, accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest }: SendTransactionArgs<TChain>): Promise<SendTransactionResponse>;
|
512
|
-
declare class InvalidGasArgumentsError extends BaseError {
|
513
|
-
name: string;
|
514
|
-
constructor();
|
515
|
-
}
|
516
517
|
|
517
518
|
type SignMessageArgs = {
|
518
519
|
from: Address;
|
@@ -530,4 +531,4 @@ type WatchAssetArgs = WatchAssetParams;
|
|
530
531
|
type WatchAssetResponse = boolean;
|
531
532
|
declare function watchAsset(client: WalletClient, params: WatchAssetParams): Promise<WatchAssetResponse>;
|
532
533
|
|
533
|
-
export {
|
534
|
+
export { SetIntervalMiningArgs as $, GetTransactionResponse as A, GetTransactionReceiptArgs as B, CallArgs as C, DropTransactionArgs as D, EstimateGasArgs as E, GetTransactionReceiptResponse as F, GetBalanceArgs as G, IncreaseTimeArgs as H, ImpersonateAccountArgs as I, OnBlockNumber as J, OnBlockNumberResponse as K, OnBlockResponse as L, MineArgs as M, OnTransactions as N, OnBlock as O, OnTransactionsResponse as P, RequestPermissionsResponse as Q, ResetArgs as R, RevertArgs as S, SendTransactionArgs as T, SendTransactionResponse as U, SendUnsignedTransactionArgs as V, SendUnsignedTransactionResponse as W, SetBalanceArgs as X, SetBlockGasLimitArgs as Y, SetCodeArgs as Z, SetCoinbaseArgs as _, CallContractArgs as a, setMinGasPrice as a$, SetMinGasPriceArgs as a0, SetBlockTimestampIntervalArgs as a1, SetNextBlockTimestampArgs as a2, SetNextBlockBaseFeePerGasArgs as a3, SetNonceArgs as a4, SetStorageAtArgs as a5, SignMessageArgs as a6, SignMessageResponse as a7, StopImpersonatingAccountArgs as a8, SwitchChainArgs as a9, getGasPrice as aA, getPermissions as aB, getTransaction as aC, getTransactionConfirmations as aD, getTransactionCount as aE, getTransactionReceipt as aF, getTxpoolContent as aG, getTxpoolStatus as aH, impersonateAccount as aI, increaseTime as aJ, inspectTxpool as aK, mine as aL, removeBlockTimestampInterval as aM, reset as aN, requestAccounts as aO, requestPermissions as aP, revert as aQ, sendTransaction as aR, sendUnsignedTransaction as aS, setAutomine as aT, setBalance as aU, setBlockGasLimit as aV, setBlockTimestampInterval as aW, setCode as aX, setCoinbase as aY, setIntervalMining as aZ, setLoggingEnabled as a_, UninstallFilterArgs as aa, UninstallFilterResponse as ab, WaitForTransactionReceiptArgs as ac, WaitForTransactionReceiptResponse as ad, WatchAssetArgs as ae, WatchAssetResponse as af, WatchBlockNumberArgs as ag, WatchBlocksArgs as ah, WatchPendingTransactionsArgs as ai, addChain as aj, call as ak, callContract as al, createBlockFilter as am, createPendingTransactionFilter as an, estimateGas as ao, dropTransaction as ap, getAccounts as aq, getAutomine as ar, getBalance as as, getBlock as at, getBlockNumber as au, getBlockTransactionCount as av, getChainId as aw, getFeeHistory as ax, getFilterChanges as ay, getFilterLogs as az, CallContractResponse as b, setNextBlockBaseFeePerGas as b0, setNextBlockTimestamp as b1, setNonce as b2, setStorageAt as b3, signMessage as b4, snapshot as b5, stopImpersonatingAccount as b6, switchChain as b7, uninstallFilter as b8, waitForTransactionReceipt as b9, watchAsset as ba, watchBlockNumber as bb, watchBlocks as bc, watchPendingTransactions as bd, getBlockNumberCache as be, ReplacementReason as bf, ReplacementResponse as bg, FormattedTransactionRequest as bh, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, GetBalanceResponse as g, GetBlockArgs as h, GetBlockNumberArgs as i, GetBlockNumberResponse as j, GetBlockResponse as k, GetBlockTransactionCountArgs as l, GetBlockTransactionCountResponse as m, GetFeeHistoryArgs as n, GetFeeHistoryResponse as o, GetFilterChangesArgs as p, GetFilterChangesResponse as q, GetFilterLogsArgs as r, GetFilterLogsResponse as s, GetGasPriceResponse as t, GetPermissionsResponse as u, GetTransactionArgs as v, GetTransactionConfirmationsArgs as w, GetTransactionConfirmationsResponse as x, GetTransactionCountArgs as y, GetTransactionCountResponse as z };
|
@@ -1,11 +1,6 @@
|
|
1
|
-
import { B as
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { a as RpcResponse } from './rpc-3c0e3985.js';
|
5
|
-
|
6
|
-
declare class UrlRequiredError extends BaseError {
|
7
|
-
constructor();
|
8
|
-
}
|
1
|
+
import { e as TransportConfig, d as Transport, B as BaseRpcRequests } from './createWalletClient-3f9fa8b6.js';
|
2
|
+
import { a as Hash } from './rpc-b77c5aee.js';
|
3
|
+
import { R as RpcResponse } from './rpc-26932bae.js';
|
9
4
|
|
10
5
|
type EthereumProvider = {
|
11
6
|
request: BaseRpcRequests['request'];
|
@@ -85,4 +80,4 @@ declare function webSocket(
|
|
85
80
|
/** URL of the JSON-RPC API. Defaults to the chain's public RPC URL. */
|
86
81
|
url?: string, { key, name, }?: WebSocketTransportConfig): WebSocketTransport;
|
87
82
|
|
88
|
-
export { CustomTransport as C, FallbackTransport as F, HttpTransport as H,
|
83
|
+
export { CustomTransport as C, FallbackTransport as F, HttpTransport as H, WebSocketTransport as W, CustomTransportConfig as a, FallbackTransportConfig as b, HttpTransportConfig as c, WebSocketTransportConfig as d, custom as e, fallback as f, http as h, webSocket as w };
|
package/dist/window.d.ts
CHANGED
package/dist/window.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
package/dist/window.mjs
ADDED
File without changes
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "viem",
|
3
|
-
"description": "TypeScript
|
4
|
-
"version": "0.0.1-alpha.
|
3
|
+
"description": "TypeScript Interface for Ethereum",
|
4
|
+
"version": "0.0.1-alpha.11",
|
5
5
|
"files": [
|
6
6
|
"/actions",
|
7
7
|
"/chains",
|
@@ -14,67 +14,39 @@
|
|
14
14
|
"exports": {
|
15
15
|
".": {
|
16
16
|
"types": "./dist/index.d.ts",
|
17
|
+
"module": "./dist/index.mjs",
|
17
18
|
"default": "./dist/index.js"
|
18
19
|
},
|
19
20
|
"./actions": {
|
20
21
|
"types": "./dist/actions/index.d.ts",
|
22
|
+
"module": "./dist/actions/index.mjs",
|
21
23
|
"default": "./dist/actions/index.js"
|
22
24
|
},
|
23
25
|
"./chains": {
|
24
26
|
"types": "./dist/chains.d.ts",
|
27
|
+
"module": "./dist/chains.mjs",
|
25
28
|
"default": "./dist/chains.js"
|
26
29
|
},
|
27
30
|
"./clients": {
|
28
31
|
"types": "./dist/clients/index.d.ts",
|
32
|
+
"module": "./dist/clients/index.mjs",
|
29
33
|
"default": "./dist/clients/index.js"
|
30
34
|
},
|
31
35
|
"./utils": {
|
32
36
|
"types": "./dist/utils/index.d.ts",
|
37
|
+
"module": "./dist/utils/index.mjs",
|
33
38
|
"default": "./dist/utils/index.js"
|
34
39
|
},
|
35
40
|
"./window": {
|
36
41
|
"types": "./dist/window.d.ts",
|
42
|
+
"module": "./dist/window.mjs",
|
37
43
|
"default": "./dist/window.js"
|
38
44
|
},
|
39
45
|
"./package.json": "./package.json"
|
40
46
|
},
|
41
|
-
"type": "module",
|
42
47
|
"main": "dist/index.js",
|
43
48
|
"types": "dist/index.d.ts",
|
44
49
|
"sideEffects": false,
|
45
|
-
"dependencies": {
|
46
|
-
"@noble/hashes": "^1.1.2",
|
47
|
-
"@wagmi/chains": "^0.1.0",
|
48
|
-
"abitype": "^0.2.5"
|
49
|
-
},
|
50
|
-
"devDependencies": {
|
51
|
-
"@actions/core": "^1.10.0",
|
52
|
-
"@actions/github": "^5.1.1",
|
53
|
-
"@changesets/changelog-github": "^0.4.5",
|
54
|
-
"@changesets/cli": "^2.23.2",
|
55
|
-
"@testing-library/jest-dom": "^5.16.5",
|
56
|
-
"@types/dedent": "^0.7.0",
|
57
|
-
"@types/fs-extra": "^9.0.13",
|
58
|
-
"@types/node": "^17.0.45",
|
59
|
-
"@vitest/coverage-c8": "^0.24.3",
|
60
|
-
"@vitest/ui": "^0.19.1",
|
61
|
-
"bundlewatch": "^0.3.3",
|
62
|
-
"dedent": "^0.7.0",
|
63
|
-
"esbuild": "^0.16.12",
|
64
|
-
"esbuild-register": "^3.4.2",
|
65
|
-
"essential-eth": "^0.6.2",
|
66
|
-
"ethers": "^5.7.2",
|
67
|
-
"execa": "^6.1.0",
|
68
|
-
"fs-extra": "^10.1.0",
|
69
|
-
"jsdom": "^20.0.0",
|
70
|
-
"rome": "^11.0.0",
|
71
|
-
"simple-git-hooks": "^2.8.1",
|
72
|
-
"tsup": "^6.5.0",
|
73
|
-
"typescript": "^4.9.3",
|
74
|
-
"vite": "^3.0.4",
|
75
|
-
"vitest": "^0.25.2",
|
76
|
-
"web3": "^1.8.1"
|
77
|
-
},
|
78
50
|
"license": "MIT",
|
79
51
|
"repository": "wagmi-dev/viem",
|
80
52
|
"authors": [
|
@@ -87,30 +59,5 @@
|
|
87
59
|
"dapps",
|
88
60
|
"wallet",
|
89
61
|
"web3"
|
90
|
-
]
|
91
|
-
"simple-git-hooks": {
|
92
|
-
"pre-commit": "pnpm format & pnpm lint:fix"
|
93
|
-
},
|
94
|
-
"scripts": {
|
95
|
-
"anvil": "source .env && anvil --fork-url $ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
|
96
|
-
"bench": "vitest bench --no-threads",
|
97
|
-
"bench:ci": "CI=true vitest bench --no-threads",
|
98
|
-
"build": "tsup",
|
99
|
-
"changeset": "changeset",
|
100
|
-
"changeset:release": "pnpm build && changeset publish",
|
101
|
-
"changeset:version": "changeset version && pnpm install --lockfile-only",
|
102
|
-
"dev": "DEV=true tsup",
|
103
|
-
"dev:docs": "pnpm -r --filter site dev",
|
104
|
-
"format": "rome format src/ test/ --write",
|
105
|
-
"lint": "rome check .",
|
106
|
-
"lint:fix": "pnpm lint --apply-suggested",
|
107
|
-
"playground": "pnpm --filter playground-dev dev",
|
108
|
-
"playground:benchmark": "pnpm --filter playground-benchmark dev",
|
109
|
-
"postinstall": "pnpm dev",
|
110
|
-
"preinstall": "npx only-allow pnpm",
|
111
|
-
"test": "vitest dev --coverage --no-threads",
|
112
|
-
"test:ci": "CI=true vitest --coverage --no-threads",
|
113
|
-
"test:ui": "vitest dev --ui --no-threads",
|
114
|
-
"typecheck": "tsc --noEmit"
|
115
|
-
}
|
62
|
+
]
|
116
63
|
}
|
package/utils/package.json
CHANGED
package/window/package.json
CHANGED
@@ -1,18 +0,0 @@
|
|
1
|
-
type BaseErrorArgs = {
|
2
|
-
docsPath?: string;
|
3
|
-
} & ({
|
4
|
-
cause?: never;
|
5
|
-
details?: string;
|
6
|
-
} | {
|
7
|
-
cause: BaseError | Error;
|
8
|
-
details?: never;
|
9
|
-
});
|
10
|
-
declare class BaseError extends Error {
|
11
|
-
humanMessage: string;
|
12
|
-
details: string;
|
13
|
-
docsPath?: string;
|
14
|
-
name: string;
|
15
|
-
constructor(humanMessage: string, args?: BaseErrorArgs);
|
16
|
-
}
|
17
|
-
|
18
|
-
export { BaseError as B };
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { O as OptionalNullable, B as Block, R as RpcBlock, D as Transaction, q as RpcTransaction, T as TransactionReceipt, s as RpcTransactionRequest, v as TransactionRequest } from './rpc-655c0ba4.js';
|
2
|
-
import { Chain, Formatter, Formatters } from './chains.js';
|
3
|
-
|
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;
|
5
|
-
type FormatOptions<TSource, TTarget> = {
|
6
|
-
formatter: Formatter<TSource, TTarget>;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Creates a type that is the result of applying `TFormatter` to `TSource`.
|
10
|
-
*
|
11
|
-
* @example
|
12
|
-
* Formatted<() => { a: undefined, b: bigint }, { a: bigint }>
|
13
|
-
* => { a: undefined, b: bigint }
|
14
|
-
*
|
15
|
-
* @example
|
16
|
-
* Formatted<() => {}, { a: bigint }>
|
17
|
-
* => { a: bigint }
|
18
|
-
*
|
19
|
-
* @example
|
20
|
-
* Formatted<() => { a: bigint | undefined, b: bigint }, { a: bigint, b: bigint }, true>
|
21
|
-
* => { a?: bigint | undefined, b: bigint }
|
22
|
-
*/
|
23
|
-
type Formatted<TFormatter, TFallback, TAllowOptional = false> = TFormatter extends Formatter ? ReturnType<TFormatter> extends Record<string, never> ? TFallback : TAllowOptional extends true ? OptionalNullable<ReturnType<TFormatter>> : ReturnType<TFormatter> : never;
|
24
|
-
/**
|
25
|
-
* @description Formats a data object using the given replacer and an optional formatter.
|
26
|
-
*/
|
27
|
-
declare function format<TFormatter, TSource extends Record<string, any>, TTarget>(data: TSource, { formatter }: FormatOptions<TSource, TTarget>): Formatted<TFormatter, TTarget, false>;
|
28
|
-
|
29
|
-
type BlockFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'block', NonNullable<Formatters['block']>>;
|
30
|
-
type FormattedBlock<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Block>;
|
31
|
-
declare function formatBlock(block: Partial<RpcBlock>): Block<bigint, Transaction<bigint, number>>;
|
32
|
-
|
33
|
-
type TransactionFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transaction', NonNullable<Formatters['transaction']>>;
|
34
|
-
type FormattedTransaction<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Transaction>;
|
35
|
-
declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction<bigint, number>;
|
36
|
-
|
37
|
-
type TransactionReceiptFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transactionReceipt', NonNullable<Formatters['transactionReceipt']>>;
|
38
|
-
type FormattedTransactionReceipt<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, TransactionReceipt>;
|
39
|
-
|
40
|
-
type TransactionRequestFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transactionRequest', NonNullable<Formatters['transactionRequest']>>;
|
41
|
-
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, RpcTransactionRequest>;
|
42
|
-
declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
43
|
-
|
44
|
-
export { BlockFormatter as B, ExtractFormatter as E, FormattedBlock as F, TransactionRequestFormatter as T, FormattedTransaction as a, FormattedTransactionRequest as b, formatTransaction as c, formatTransactionRequest as d, Formatted as e, formatBlock as f, TransactionFormatter as g, FormattedTransactionReceipt as h, TransactionReceiptFormatter as i, format as j };
|