opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
201 lines • 7.23 kB
TypeScript
import type { OpStackRpcBlock } from './types/block.js';
import type { OpStackRpcTransaction, OpStackRpcTransactionReceipt, OpStackTransaction } from './types/transaction.js';
export declare const formatters: {
readonly block: {
exclude: [] | undefined;
format: (args: OpStackRpcBlock) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: `0x${string}`;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: `0x${string}`;
mixHash: `0x${string}`;
nonce: `0x${string}` | null;
number: bigint | null;
parentHash: `0x${string}`;
receiptsRoot: `0x${string}`;
sealFields: `0x${string}`[];
sha3Uncles: `0x${string}`;
size: bigint;
stateRoot: `0x${string}`;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${string}`[] | OpStackTransaction<boolean>[];
transactionsRoot: `0x${string}`;
uncles: `0x${string}`[];
withdrawals?: import("../index.js").Withdrawal[] | undefined;
withdrawalsRoot?: `0x${string}` | undefined;
} & {};
type: "block";
};
readonly transaction: {
exclude: [] | undefined;
format: (args: OpStackRpcTransaction) => ({
r: `0x${string}`;
s: `0x${string}`;
v: bigint;
to: `0x${string}` | null;
from: `0x${string}`;
gas: bigint;
nonce: number;
value: bigint;
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
hash: `0x${string}`;
input: `0x${string}`;
transactionIndex: number | null;
typeHex: `0x${string}` | null;
accessList?: undefined;
blobVersionedHashes?: undefined;
chainId?: number | undefined;
yParity?: undefined;
type: "legacy";
gasPrice: bigint;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
isSystemTx?: undefined;
mint?: undefined;
sourceHash?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: `0x${string}`;
gas: bigint;
hash: `0x${string}`;
input: `0x${string}`;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: `0x${string}` | null;
transactionIndex: number | null;
typeHex: `0x${string}` | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
blobVersionedHashes?: undefined;
chainId: number;
type: "eip2930";
gasPrice: bigint;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
isSystemTx?: undefined;
mint?: undefined;
sourceHash?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: `0x${string}`;
gas: bigint;
hash: `0x${string}`;
input: `0x${string}`;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: `0x${string}` | null;
transactionIndex: number | null;
typeHex: `0x${string}` | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
blobVersionedHashes?: undefined;
chainId: number;
type: "eip1559";
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
isSystemTx?: undefined;
mint?: undefined;
sourceHash?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: `0x${string}`;
gas: bigint;
hash: `0x${string}`;
input: `0x${string}`;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: `0x${string}` | null;
transactionIndex: number | null;
typeHex: `0x${string}` | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
blobVersionedHashes: readonly `0x${string}`[];
chainId: number;
type: "eip4844";
gasPrice?: undefined;
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
isSystemTx?: undefined;
mint?: undefined;
sourceHash?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: `0x${string}`;
gas: bigint;
hash: `0x${string}`;
input: `0x${string}`;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: `0x${string}` | null;
transactionIndex: number | null;
typeHex: `0x${string}` | null;
v: bigint;
value: bigint;
yParity: number;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
isSystemTx?: boolean;
mint?: bigint | undefined;
sourceHash: `0x${string}`;
type: "deposit";
}) & {};
type: "transaction";
};
readonly transactionReceipt: {
exclude: [] | undefined;
format: (args: OpStackRpcTransactionReceipt) => {
blobGasPrice?: bigint | undefined;
blobGasUsed?: bigint | undefined;
blockHash: `0x${string}`;
blockNumber: bigint;
contractAddress: `0x${string}` | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: `0x${string}`;
gasUsed: bigint;
logs: import("../index.js").Log<bigint, number, false>[];
logsBloom: `0x${string}`;
root?: `0x${string}` | undefined;
status: "success" | "reverted";
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: number;
type: import("../index.js").TransactionType;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
l1Fee: bigint | null;
l1FeeScalar: number | null;
} & {};
type: "transactionReceipt";
};
};
//# sourceMappingURL=formatters.d.ts.map