Files
FrenoCorp/node_modules/ox/core/AccountProof.ts
Michael Freno 7c684a42cc FRE-600: Fix code review blockers
- Consolidated duplicate UndoManagers to single instance
- Fixed connection promise to only resolve on 'connected' status
- Fixed WebSocketProvider import (WebsocketProvider)
- Added proper doc.destroy() cleanup
- Renamed isPresenceInitialized property to avoid conflict

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-25 00:08:01 -04:00

36 lines
1.5 KiB
TypeScript

import type { Address, Hex } from '../index.js'
/** An Account Proof as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/state.yaml). */
export type AccountProof<bigintType = bigint, numberType = number> = {
/** The address of the account. */
address: Address.Address
/** The balance of the account. */
balance: bigintType
/** The code hash of the account. */
codeHash: Hex.Hex
/** The nonce of the account. */
nonce: numberType
/** The storage hash of the account. */
storageHash: Hex.Hex
/** The account proofs. */
accountProof: readonly Hex.Hex[]
/** The storage proofs. */
storageProof: readonly StorageProof<bigintType>[]
}
/** An RPC Account Proof as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/state.yaml). */
export type Rpc = AccountProof<Hex.Hex, Hex.Hex>
/** A Storage Proof as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/state.yaml). */
export type StorageProof<bigintType = bigint> = {
/** The key of the storage. */
key: Hex.Hex
/** The proofs of the storage. */
proof: readonly Hex.Hex[]
/** The value of the storage. */
value: bigintType
}
/** An RPC Storage Proof as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/state.yaml). */
export type StorageProofRpc = StorageProof<Hex.Hex>