opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
358 lines • 14.9 kB
TypeScript
export declare const zkSyncInMemoryNode: {
blockExplorers?: {
[key: string]: {
name: string;
url: string;
apiUrl?: string | undefined;
};
default: {
name: string;
url: string;
apiUrl?: string | undefined;
};
} | undefined;
contracts?: {
[x: string]: import("../../index.js").ChainContract | {
[sourceId: number]: import("../../index.js").ChainContract | undefined;
} | undefined;
ensRegistry?: import("../../index.js").ChainContract | undefined;
ensUniversalResolver?: import("../../index.js").ChainContract | undefined;
multicall3?: import("../../index.js").ChainContract | undefined;
} | undefined;
id: 260;
name: "zkSync InMemory Node";
nativeCurrency: {
readonly name: "Ether";
readonly symbol: "ETH";
readonly decimals: 18;
};
rpcUrls: {
readonly default: {
readonly http: readonly ["http://localhost:8011"];
};
};
sourceId?: number | undefined;
testnet: true;
custom: {
readonly getEip712Domain: import("../../zksync/index.js").EIP712DomainFn<import("../index.js").ZkSyncTransactionSerializable, import("../index.js").ZkSyncEIP712TransactionSignable>;
};
fees?: import("../../index.js").ChainFees<undefined> | undefined;
formatters: {
readonly block: {
exclude: [] | undefined;
format: (args: import("../index.js").ZkSyncRpcBlock) => {
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}`[] | import("../index.js").ZkSyncTransaction<boolean>[];
transactionsRoot: `0x${string}`;
uncles: `0x${string}`[];
withdrawals?: import("../../index.js").Withdrawal[] | undefined;
withdrawalsRoot?: `0x${string}` | undefined;
l1BatchNumber: bigint | null;
l1BatchTimestamp: bigint | null;
} & {};
type: "block";
};
readonly transaction: {
exclude: [] | undefined;
format: (args: import("../index.js").ZkSyncRpcTransaction) => ({
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;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
} | {
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;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
} | {
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;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
} | {
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;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
} | {
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;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
type: "priority";
} | {
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;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
type: "priority" | "eip712";
}) & {};
type: "transaction";
};
readonly transactionReceipt: {
exclude: [] | undefined;
format: (args: import("../index.js").ZkSyncRpcTransactionReceipt) => {
type: import("../index.js").ZkSyncTransactionType;
to: `0x${string}` | null;
from: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: bigint;
transactionIndex: number;
status: "success" | "reverted";
logsBloom: `0x${string}`;
blobGasUsed?: bigint | undefined;
gasUsed: bigint;
contractAddress: `0x${string}` | null | undefined;
transactionHash: `0x${string}`;
blobGasPrice?: bigint | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
root?: `0x${string}` | undefined;
l1BatchNumber: bigint | null;
l1BatchTxIndex: bigint | null;
logs: import("../index.js").ZkSyncLog[];
l2ToL1Logs: import("../index.js").ZkSyncL2ToL1Log[];
} & {};
type: "transactionReceipt";
};
readonly transactionRequest: {
exclude: ("gasPerPubdata" | "paymaster" | "factoryDeps" | "paymasterInput" | "customSignature")[] | undefined;
format: (args: import("../index.js").ZkSyncTransactionRequest) => ({
data?: `0x${string}` | undefined;
from: `0x${string}`;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
value?: `0x${string}` | undefined;
accessList?: undefined;
blobs?: undefined;
type?: "0x0" | undefined;
gasPrice?: `0x${string}` | undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
eip712Meta?: undefined;
} | {
data?: `0x${string}` | undefined;
from: `0x${string}`;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
value?: `0x${string}` | undefined;
accessList?: import("../../index.js").AccessList | undefined;
blobs?: undefined;
type?: "0x1" | undefined;
gasPrice?: `0x${string}` | undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
eip712Meta?: undefined;
} | {
data?: `0x${string}` | undefined;
from: `0x${string}`;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
value?: `0x${string}` | undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
accessList?: import("../../index.js").AccessList | undefined;
blobs?: undefined;
type?: "0x2" | undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
eip712Meta?: undefined;
} | {
data?: `0x${string}` | undefined;
from: `0x${string}`;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
to: `0x${string}` | null;
accessList?: import("../../index.js").AccessList | undefined;
blobs: readonly `0x${string}`[] | readonly Uint8Array[];
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
kzg?: import("../../index.js").Kzg | undefined;
sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
type?: "0x3" | undefined;
gasPrice?: undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
maxFeePerBlobGas: `0x${string}`;
eip712Meta?: undefined;
} | {
data?: `0x${string}` | undefined;
from: `0x${string}`;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
value?: `0x${string}` | undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
eip712Meta: import("../index.js").ZkSyncEip712Meta;
type: "0xff" | "0x71";
}) & {
gasPerPubdata: never;
paymaster: never;
factoryDeps: never;
paymasterInput: never;
customSignature: never;
};
type: "transactionRequest";
};
};
serializers: {
readonly transaction: typeof import("../../zksync/serializers.js").serializeTransaction;
};
readonly network: "zksync-in-memory-node";
};
//# sourceMappingURL=zkSyncInMemoryNode.d.ts.map