// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** * One thing that happened to an account. * * Deliberately not a closed set of kinds. The runtime names its own events and * the decoder keeps those names, so a pallet added next year appears here as * itself rather than as "unknown" — which is the whole reason the index is one * table rather than one per thing the site happens to show today. */ export type AccountEvent = { /** * Block it fired in. */ height: number, /** * Position within that block's events, which with the height is its * identity and what pages the list. */ event_index: number, /** * Emitting pallet, as the runtime names it. */ pallet: string, /** * Event variant, as the runtime names it. */ variant: string, /** * The fields, as the runtime names them. Accounts are `0x` hex and any * integer past 2^53 is a string. */ fields: Record, /** * The block's own timestamp, when the node answered for it. */ at: string | null, /** * Every account the event mentions, as `0x hex → SS58 address`. * * A companion to [`Self::fields`] rather than a substitution inside it: * the fields stay exactly what the runtime said, and this is the same * values in the spelling a person recognises. Doing it here rather than in * the browser is also the only place it can be done — SS58 is a blake2b * checksum over a base58 encoding, and shipping that to the frontend to * render a counterparty would be a second implementation to keep in step * with the first. */ addresses: Record, };