// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AccountEvent } from "./AccountEvent"; import type { BigUintDec } from "./BigUintDec"; import type { ChainId } from "./ChainId"; import type { MinerId } from "./MinerId"; import type { RewardSummary } from "./RewardSummary"; /** * Everything the observer holds about one account. */ export type AccountDetail = { /** * Which chain. */ chain: ChainId, /** * The address as asked for, re-encoded canonically. */ address: string, /** * The raw account id, `0x` hex — what the events are keyed on. */ account: string, /** * The reward preimage this address derives from, when a block the observer * recorded was authored by it. * * The derivation runs one way only: a preimage gives an address, and no * amount of arithmetic gives the preimage back. So this is a *lookup* * among preimages already seen, and its absence means only that this * observer has not watched this account win a block — not that it never * has. */ miner: MinerId | null, /** * The telemetry name held for that miner, if one is. */ display: string | null, /** * The account's free balance right now, read from chain state rather than * inferred from the flows below. * * `null` when the node would not answer, and — importantly — also when the * account does not exist. On Substrate an account with nothing in it is * not an account with zero, it is absent, and those read differently: the * treasury address this chain has configured has never been funded, and * showing it a zero would imply it had been and spent. */ balance: BigUintDec | null, /** * The whole `System::Account` entry as the runtime describes it — nonce, * consumers, providers, and the balance breakdown. Carried alongside the * single number above because the number is what a reader came for and the * rest is what makes it checkable. */ state: Record | null, /** * Mining rewards, over the whole indexed record. */ rewards: RewardSummary, /** * Everything involving this account, newest first. */ activity: Array, /** * The lowest and highest block whose events have been read for this chain. * * Reported because it is the honest scope of every number above: an * account page is a claim about a range of history, and a backfill still * working its way toward genesis has not made that claim yet. */ indexed_from: number, /** * The highest block whose events have been read. */ indexed_to: number, };