@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
Name | Type |
---|---|
pluto | Pluto |
Returns
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
Defined in
src/edge-agent/mediator/PlutoMediatorStore.ts:40
storeMediator
▸ storeMediator(mediator
): Promise
<void
>
Stores a mediator asyncronously in pluto
Parameters
Name | Type |
---|---|
mediator | Mediator |
Returns
Promise
<void
>
Async