Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DatabaseContext

Interface representing global database context. There should be exactly one instance implementing this interface in the whole application.

Hierarchy

  • DatabaseContext

Implemented by

Properties

Readonly actions

actions: Table<ActionInfo, string>

Dexie table containing up to one pending action for every user logged so far

Readonly blocks

blocks: Table<BlockInfo, number>

Dexie table containing all cached block data received from blockchain so far

Readonly clear

clear: function

This function will delete all user data stored locally in browser

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Readonly equipment

equipment: Table<EquipmentInfo, string>

Dexie table containing equipment information for every user logged so far

Readonly get

get: function

Gets current instance of single-occurence data of given type

Type declaration

Readonly items

items: Table<ItemInfo, string>

Dexie table containing all known items data

Readonly mined

mined: Table<MinedInfo, [number, number]>

Dexie table containing info about already mined tiles

Readonly players

players: Table<PlayerInfo, string>

Dexie table containing all cached players (including logged user)

Readonly set

set: function

Sets current instance of single-occurence data of given type

Type declaration

Readonly subscribe

subscribe: function

Subscribe to all changes of any data of given type

Type declaration

Readonly unsubscribe

unsubscribe: function

Unsubscribe from all changes of any data of given type

Type declaration

Generated using TypeDoc