16.1.1 Interfaces

export interface GalaItemProperties {
  game: string;
  rarity: GalaItemRarity;
}

export interface GalaItemRarity {
  icon: string;
  label: string;
  hexcode: string;
  supplyLimit: number;
}

export interface GalaBaseItem {
  baseId: string;
  game: string;
  description: string;
  image: string;
  name: string;
}

export interface GalaItem extends GalaBaseItem {
  decimals: number;
  properties: GalaItemProperties;
  balance: { pending: number, confirmed: number }
}

export interface GalaRecipeIngredient extends GalaBaseItem {
  rarity: GalaItemRarity;
  quantityNeeded: number;
}

export interface GalaCraftedItem extends GalaBaseItem {
  rarity: GalaItemRarity;
  requiredPieces: GalaRecipeIngredient[];
}