eosplayer
Version:
eosplayer is the glue layer of eosjs, which is packaged based on eosjs and provides better usability for the application layer. It can be used on browsers already installed scatter or in Dapp wallets.
24 lines (23 loc) • 520 B
TypeScript
/**
* Storage
*/
export default class DB {
defaultConfigs: any;
/**
* the storage lib interact with localStorage now
* @param defaultConfigs - define what will you get when you require an key not exist
*/
constructor(defaultConfigs: any);
/**
* get val by key
* @param key - will be assembled to eosplayer::${key}
* @return {*}
*/
get(key: string): any;
/**
* set value
* @param key
* @param val
*/
set(key: string, val: any): void;
}