import { Hash } from '@dedot/codecs'; import { HexString } from '@dedot/utils'; import { SerdeEnum } from './serde.js'; /** * RPC Extrinsic or hash * * Allows to refer to extrinsic either by its raw representation or its hash. */ export type ExtrinsicOrHash = SerdeEnum<{ hash: HexString; extrinsic: HexString; }>; export type TransactionStatus = SerdeEnum<{ future: null; ready: null; broadcast: Array; inBlock: HexString; retracted: HexString; finalityTimeout: HexString; finalized: HexString; usurped: Hash; dropped: null; invalid: null; }>;