import { HexString } from '../utils/types'; import { AccountKeyType, BytesEncodingStatus } from './enums'; export interface AccountId { identifier: string; key_type: AccountKeyType | string; } export interface Account { id?: AccountId; balance: string; nonce: number; } export interface ChainInfo { chain_id: string; height: string; hash: string; } export interface ChainInfoOpts { disableWarning?: boolean; } export type DatasetInfo = DatasetInfoBase; export type DatasetInfoServer = DatasetInfoBase; export interface DatasetInfoBase { name: string; owner: T extends BytesEncodingStatus.HEX_ENCODED ? HexString : Uint8Array; dbid: string; }