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

Class: MockKeyStore

@orderly.network/core.MockKeyStore

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MockKeyStore(secretKey)

Parameters

NameType
secretKeystring

Defined in

packages/core/src/keyStore.ts:132

Properties

secretKey

Private Readonly secretKey: string

Defined in

packages/core/src/keyStore.ts:132

Methods

cleanAllKey

cleanAllKey(): void

Returns

void

Implementation of

OrderlyKeyStore.cleanAllKey

Defined in

packages/core/src/keyStore.ts:155


cleanKey

cleanKey(key): void

Parameters

NameType
keystring

Returns

void

Implementation of

OrderlyKeyStore.cleanKey

Defined in

packages/core/src/keyStore.ts:156


generateKey

generateKey(): BaseOrderlyKeyPair

Returns

BaseOrderlyKeyPair

Implementation of

OrderlyKeyStore.generateKey

Defined in

packages/core/src/keyStore.ts:133


getAccountId

getAccountId(): string

Returns

string

Implementation of

OrderlyKeyStore.getAccountId

Defined in

packages/core/src/keyStore.ts:141


getAddress

getAddress(): string

Returns

string

Implementation of

OrderlyKeyStore.getAddress

Defined in

packages/core/src/keyStore.ts:147


getOrderlyKey

getOrderlyKey(): BaseOrderlyKeyPair

Returns

BaseOrderlyKeyPair

Implementation of

OrderlyKeyStore.getOrderlyKey

Defined in

packages/core/src/keyStore.ts:137


setAccountId

setAccountId(accountId): void

Parameters

NameType
accountIdstring

Returns

void

Implementation of

OrderlyKeyStore.setAccountId

Defined in

packages/core/src/keyStore.ts:145


setAddress

setAddress(address): void

Parameters

NameType
addressstring

Returns

void

Implementation of

OrderlyKeyStore.setAddress

Defined in

packages/core/src/keyStore.ts:151


setKey

setKey(orderlyKey, secretKey): void

Parameters

NameType
orderlyKeystring
secretKeyOrderlyKeyPair

Returns

void

Implementation of

OrderlyKeyStore.setKey

Defined in

packages/core/src/keyStore.ts:153