Skip to main content

@atala/prism-wallet-sdk / Exports / PublicMediatorStore

Class: PublicMediatorStore

PlutoMediationStore is used just to interface between the mediators and storage. It is mainly used to store + fetch mediator from current storage instance (pluto)

Export

PublicMediatorStore

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PublicMediatorStore(pluto): PublicMediatorStore

Creates an instance of PublicMediatorStore.

Parameters

NameType
plutoPluto

Returns

PublicMediatorStore

Defined in

src/edge-agent/mediator/PlutoMediatorStore.ts:20

Properties

pluto

Private pluto: Pluto

Defined in

src/edge-agent/mediator/PlutoMediatorStore.ts:20

Methods

getAllMediators

getAllMediators(): Promise<Mediator[]>

Asyncronously fetch all the mediators from storage

Returns

Promise<Mediator[]>

Async

Implementation of

MediatorStore.getAllMediators

Defined in

src/edge-agent/mediator/PlutoMediatorStore.ts:40


storeMediator

storeMediator(mediator): Promise<void>

Stores a mediator asyncronously in pluto

Parameters

NameType
mediatorMediator

Returns

Promise<void>

Async

Implementation of

MediatorStore.storeMediator

Defined in

src/edge-agent/mediator/PlutoMediatorStore.ts:29