UNPKG

@gear-js/api

Version:

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

14 lines (13 loc) 314 B
import { Enum } from '@polkadot/types'; import { 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; }; }