viem
Version:
21 lines (17 loc) • 437 B
text/typescript
import type { Address } from 'abitype'
import type { Hash } from './misc.js'
export type AccountProof = Hash
export type StorageProof<TQuantity = bigint> = {
key: Hash
proof: Hash[]
value: TQuantity
}
export type Proof<TQuantity = bigint, TIndex = number> = {
address: Address
balance: TQuantity
codeHash: Hash
nonce: TIndex
storageHash: Hash
accountProof: AccountProof[]
storageProof: StorageProof<TQuantity>[]
}