UNPKG

@gear-js/api

Version:

A JavaScript library that provides functionality to connect GEAR Component APIs.

14 lines (13 loc) 324 B
import type { Enum } from '@polkadot/types'; import type { Hash } from '@polkadot/types/interfaces'; export type ReservationId = Hash; export interface GasNodeId<T, U> extends Enum { isNode: boolean; asNode: { Node: T; }; isReservation: boolean; asReservation: { Reservation: U; }; }