Skip to content

Latest commit

 

History

History
257 lines (140 loc) · 4.57 KB

Mock.md

File metadata and controls

257 lines (140 loc) · 4.57 KB

@ledgerhq/live-app-sdk / Exports / Mock

Class: Mock

Implements

  • MockOf<LedgerLivePlatformSDK, "bridgeApp" | "bridgeDashboard" | "completeExchange" | "startExchange" | "listApps" | "synchronizeAccount" | "getLastConnectedDeviceInfo">

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Mock()

Properties

connected

connected: boolean = false

Defined in

mock/index.ts:34

Methods

broadcastSignedTransaction

broadcastSignedTransaction(_accountId, _signedTransaction): Promise<string>

Parameters

Name Type
_accountId string
_signedTransaction RawSignedTransaction

Returns

Promise<string>

Implementation of

MockOf.broadcastSignedTransaction

Defined in

mock/index.ts:113


connect

connect(): void

Returns

void

Implementation of

MockOf.connect

Defined in

mock/index.ts:36


disconnect

disconnect(): void

Returns

void

Implementation of

MockOf.disconnect

Defined in

mock/index.ts:40


getAccount

getAccount(accountId): Promise<Account>

Parameters

Name Type
accountId string

Returns

Promise<Account>

Defined in

mock/index.ts:65


listAccounts

listAccounts(): Promise<Account[]>

Returns

Promise<Account[]>

Implementation of

MockOf.listAccounts

Defined in

mock/index.ts:58


listCurrencies

listCurrencies(): Promise<Currency[]>

Returns

Promise<Currency[]>

Implementation of

MockOf.listCurrencies

Defined in

mock/index.ts:50


receive

receive(accountId): Promise<string>

Parameters

Name Type
accountId string

Returns

Promise<string>

Implementation of

MockOf.receive

Defined in

mock/index.ts:79


requestAccount

requestAccount(): Promise<Account>

Legder Live Methods

Returns

Promise<Account>

Implementation of

MockOf.requestAccount

Defined in

mock/index.ts:46


signMessage

signMessage(_accountId, _message): Promise<string>

Parameters

Name Type
_accountId string
_message Buffer

Returns

Promise<string>

Implementation of

MockOf.signMessage

Defined in

mock/index.ts:109


signTransaction

signTransaction(_accountId, _transaction): Promise<RawSignedTransaction>

Parameters

Name Type
_accountId string
_transaction unknown

Returns

Promise<RawSignedTransaction>

Implementation of

MockOf.signTransaction

Defined in

mock/index.ts:94