viem
Version:
433 lines • 20.4 kB
TypeScript
import { SignatureEnvelope, type TokenId } from 'ox/tempo';
import type { SerializeTransactionFn } from '../utils/transaction/serializeTransaction.js';
import * as Transaction from './Transaction.js';
export declare const chainConfig: {
readonly blockTime: 1000;
readonly extendSchema: {
feeToken?: TokenId.TokenIdOrAddress | undefined;
};
readonly formatters: {
readonly transaction: {
exclude: never[] | undefined;
format: (args: Transaction.TransactionRpc, action?: string | undefined) => ({
r: import("../index.js").Hex;
s: import("../index.js").Hex;
v: bigint;
to: import("abitype").Address | null;
from: import("abitype").Address;
gas: bigint;
nonce: number;
value: bigint;
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
hash: import("../index.js").Hash;
input: import("../index.js").Hex;
transactionIndex: number | null;
typeHex: import("../index.js").Hex | null;
accessList?: undefined | undefined;
authorizationList?: undefined | undefined;
blobVersionedHashes?: undefined | undefined;
chainId?: number | undefined;
yParity?: undefined | undefined;
type: "legacy";
gasPrice: bigint;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: undefined | undefined;
maxPriorityFeePerGas?: undefined | undefined;
signature?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
feePayerSignature?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: import("abitype").Address;
gas: bigint;
hash: import("../index.js").Hash;
input: import("../index.js").Hex;
nonce: number;
r: import("../index.js").Hex;
s: import("../index.js").Hex;
to: import("abitype").Address | null;
transactionIndex: number | null;
typeHex: import("../index.js").Hex | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
authorizationList?: undefined | undefined;
blobVersionedHashes?: undefined | undefined;
chainId: number;
type: "eip2930";
gasPrice: bigint;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: undefined | undefined;
maxPriorityFeePerGas?: undefined | undefined;
signature?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
feePayerSignature?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: import("abitype").Address;
gas: bigint;
hash: import("../index.js").Hash;
input: import("../index.js").Hex;
nonce: number;
r: import("../index.js").Hex;
s: import("../index.js").Hex;
to: import("abitype").Address | null;
transactionIndex: number | null;
typeHex: import("../index.js").Hex | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
authorizationList?: undefined | undefined;
blobVersionedHashes?: undefined | undefined;
chainId: number;
type: "eip1559";
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
signature?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
feePayerSignature?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: import("abitype").Address;
gas: bigint;
hash: import("../index.js").Hash;
input: import("../index.js").Hex;
nonce: number;
r: import("../index.js").Hex;
s: import("../index.js").Hex;
to: import("abitype").Address | null;
transactionIndex: number | null;
typeHex: import("../index.js").Hex | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
authorizationList?: undefined | undefined;
blobVersionedHashes: readonly import("../index.js").Hex[];
chainId: number;
type: "eip4844";
gasPrice?: undefined | undefined;
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
signature?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
feePayerSignature?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
} | {
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
from: import("abitype").Address;
gas: bigint;
hash: import("../index.js").Hash;
input: import("../index.js").Hex;
nonce: number;
r: import("../index.js").Hex;
s: import("../index.js").Hex;
to: import("abitype").Address | null;
transactionIndex: number | null;
typeHex: import("../index.js").Hex | null;
v: bigint;
value: bigint;
yParity: number;
accessList: import("../index.js").AccessList;
authorizationList: import("../index.js").SignedAuthorizationList;
blobVersionedHashes?: undefined | undefined;
chainId: number;
type: "eip7702";
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
signature?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
feePayerSignature?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
} | {
from: import("abitype").Address;
gas: bigint;
nonce: number;
blockHash: `0x${string}` | null;
blockNumber: bigint | null;
hash: import("../index.js").Hash;
transactionIndex: number | null;
typeHex: import("../index.js").Hex | null;
r?: `0x${string}` | undefined;
s?: `0x${string}` | undefined;
v?: bigint | undefined;
yParity?: number | undefined;
accessList: import("../index.js").AccessList;
authorizationList?: readonly {
address: import("ox/Address").Address;
chainId: number;
nonce: bigint;
signature: SignatureEnvelope.SignatureEnvelope<bigint, number>;
}[] | undefined;
calls: readonly Transaction.z_TxEnvelopeTempo.Call<bigint>[];
chainId: number;
feeToken?: `0x${string}` | undefined;
feePayerSignature?: import("../index.js").Signature | undefined;
keyAuthorization?: Transaction.z_KeyAuthorization.Signed<bigint, number> | null | undefined;
nonceKey?: bigint | undefined;
signature: SignatureEnvelope.SignatureEnvelope;
type: "tempo";
validBefore?: number | undefined;
validAfter?: number | undefined;
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
to?: undefined;
value?: undefined;
blobVersionedHashes?: undefined;
input?: undefined;
}) & {};
type: "transaction";
};
readonly transactionReceipt: {
exclude: [] | undefined;
format: (args: Transaction.TransactionReceiptRpc, action?: string | undefined) => {
blobGasPrice?: bigint | undefined;
blobGasUsed?: bigint | undefined;
blockHash: import("../index.js").Hash;
blockNumber: bigint;
contractAddress: import("abitype").Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: import("abitype").Address;
gasUsed: bigint;
logs: import("../index.js").Log<bigint, number, false>[];
logsBloom: import("../index.js").Hex;
root?: `0x${string}` | undefined;
status: "success" | "reverted";
to: import("abitype").Address | null;
transactionHash: import("../index.js").Hash;
transactionIndex: number;
type: Transaction.TransactionType;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
} & {};
type: "transactionReceipt";
};
readonly transactionRequest: {
exclude: [] | undefined;
format: (args: Transaction.TransactionRequest, action?: string | undefined) => ({
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
type?: "0x0" | undefined;
value?: `0x${string}` | undefined;
gasPrice?: `0x${string}` | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: undefined | undefined;
maxPriorityFeePerGas?: undefined | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
accessList?: undefined;
sidecars?: undefined;
authorizationList?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
feePayer?: undefined;
} | {
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
type?: "0x1" | undefined;
value?: `0x${string}` | undefined;
gasPrice?: `0x${string}` | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: undefined | undefined;
maxPriorityFeePerGas?: undefined | undefined;
accessList?: import("../index.js").AccessList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
authorizationList?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
feePayer?: undefined;
} | {
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
type?: "0x2" | undefined;
value?: `0x${string}` | undefined;
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
accessList?: import("../index.js").AccessList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
authorizationList?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
feePayer?: undefined;
} | {
type?: "0x3" | undefined;
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
to: `0x${string}` | null;
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: `0x${string}` | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
accessList?: import("../index.js").AccessList | undefined;
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
blobs?: readonly `0x${string}`[] | readonly import("../index.js").ByteArray[] | undefined;
blobVersionedHashes: readonly import("../index.js").Hex[];
kzg?: undefined;
authorizationList?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
feePayer?: undefined;
} | {
type?: "0x3" | undefined;
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
to: `0x${string}` | null;
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: `0x${string}` | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
accessList?: import("../index.js").AccessList | undefined;
sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
blobs: readonly import("../index.js").Hex[] | readonly import("../index.js").ByteArray[];
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
kzg?: import("../index.js").Kzg | undefined;
authorizationList?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
feePayer?: undefined;
} | {
type?: "0x4" | undefined;
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
accessList?: import("../index.js").AccessList | undefined;
authorizationList?: import("../index.js").RpcAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
calls?: undefined;
nonceKey?: undefined;
validAfter?: undefined;
feeToken?: undefined;
keyAuthorization?: undefined;
validBefore?: undefined;
feePayer?: undefined;
} | {
data?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
to?: `0x${string}` | null | undefined;
type?: "0x76" | undefined;
value?: `0x${string}` | undefined;
gasPrice?: undefined | undefined;
maxFeePerBlobGas?: undefined | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
accessList?: import("../index.js").AccessList | undefined;
keyAuthorization?: Transaction.z_KeyAuthorization.Signed<`0x${string}`, `0x${string}`> | undefined;
calls?: readonly Transaction.z_TxEnvelopeTempo.Call<`0x${string}`>[] | undefined;
feePayer?: true | import("../index.js").Account | undefined;
feeToken?: bigint | `0x${string}` | undefined;
nonceKey?: `0x${string}` | "random" | undefined;
validBefore?: `0x${string}` | undefined;
validAfter?: `0x${string}` | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
kzg?: undefined;
sidecars?: undefined;
authorizationList?: undefined;
}) & {};
type: "transactionRequest";
};
};
readonly prepareTransactionRequest: [(r: import("../index.js").PrepareTransactionRequestParameters) => Promise<import("../index.js").PrepareTransactionRequestParameters>, {
readonly runAt: readonly ["beforeFillTransaction", "afterFillParameters"];
}];
readonly serializers: {
readonly transaction: SerializeTransactionFn;
};
readonly verifyHash: (client: import("../index.js").Client, parameters: import("../actions/public/verifyHash.js").VerifyHashParameters) => Promise<boolean>;
};
export type ChainConfig = typeof chainConfig;
//# sourceMappingURL=chainConfig.d.ts.map