Orderly SDKs / Modules / @orderly.network/core / LocalStorageStore

Class: LocalStorageStore

@orderly.network/core.LocalStorageStore

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new LocalStorageStore(networkId?)

Parameters

NameTypeDefault value
networkIdstring"testnet"

Inherited from

BaseKeyStore.constructor

Defined in

packages/core/src/keyStore.ts:16

Accessors

keyPrefix

Protected get keyPrefix(): string

Returns

string

Inherited from

BaseKeyStore.keyPrefix

Defined in

packages/core/src/keyStore.ts:29

Methods

cleanAllKey

cleanAllKey(address): void

Parameters

NameType
addressstring

Returns

void

Overrides

BaseKeyStore.cleanAllKey

Defined in

packages/core/src/keyStore.ts:83


cleanKey

cleanKey(address, key): void

Parameters

NameType
addressstring
keystring

Returns

void

Overrides

BaseKeyStore.cleanKey

Defined in

packages/core/src/keyStore.ts:87


generateKey

generateKey(): OrderlyKeyPair

Returns

OrderlyKeyPair

Overrides

BaseKeyStore.generateKey

Defined in

packages/core/src/keyStore.ts:73


getAccountId

getAccountId(address): undefined | null | string

Parameters

NameType
addressstring

Returns

undefined | null | string

Overrides

BaseKeyStore.getAccountId

Defined in

packages/core/src/keyStore.ts:55


getAddress

getAddress(): undefined | null | string

Returns

undefined | null | string

Overrides

BaseKeyStore.getAddress

Defined in

packages/core/src/keyStore.ts:64


getItem

Private getItem(address, name?): any

Parameters

NameType
addressstring
name?string

Returns

any

Defined in

packages/core/src/keyStore.ts:112


getOrderlyKey

getOrderlyKey(address?): null | OrderlyKeyPair

Parameters

NameType
address?string

Returns

null | OrderlyKeyPair

Overrides

BaseKeyStore.getOrderlyKey

Defined in

packages/core/src/keyStore.ts:35


setAccountId

setAccountId(address, accountId): void

Parameters

NameType
addressstring
accountIdstring

Returns

void

Overrides

BaseKeyStore.setAccountId

Defined in

packages/core/src/keyStore.ts:59


setAddress

setAddress(address): void

Parameters

NameType
addressstring

Returns

void

Overrides

BaseKeyStore.setAddress

Defined in

packages/core/src/keyStore.ts:68


setItem

Private setItem(address, value): void

Parameters

NameType
addressstring
valueRecord<string, any>

Returns

void

Defined in

packages/core/src/keyStore.ts:93


setKey

setKey(address, orderlyKey): void

Parameters

NameType
addressstring
orderlyKeyOrderlyKeyPair

Returns

void

Overrides

BaseKeyStore.setKey

Defined in

packages/core/src/keyStore.ts:77