Skip to main content

Reference / Modules / client / VaultClient

Class: VaultClient

client.VaultClient

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new VaultClient(params): VaultClient

Parameters

NameType
paramsObject
params.axiosFactoryAxiosFactory
params.currentAddressstring
params.isLegalOfficerboolean
params.isRecoveryboolean
params.networkStateNetworkState<LegalOfficerEndpoint>
params.tokenstring

Returns

VaultClient

Defined in

packages/client/src/VaultClient.ts:54

Properties

axiosFactory

Private axiosFactory: AxiosFactory

Defined in

packages/client/src/VaultClient.ts:72


currentAddress

Private currentAddress: string

Defined in

packages/client/src/VaultClient.ts:74


isLegalOfficer

Private isLegalOfficer: boolean

Defined in

packages/client/src/VaultClient.ts:76


isRecovery

Private isRecovery: boolean

Defined in

packages/client/src/VaultClient.ts:78


networkState

Private networkState: NetworkState<LegalOfficerEndpoint>

Defined in

packages/client/src/VaultClient.ts:70


token

Private token: string

Defined in

packages/client/src/VaultClient.ts:80

Methods

acceptVaultTransferRequest

acceptVaultTransferRequest(legalOfficer, request): Promise<void>

Parameters

NameType
legalOfficerLegalOfficer
requestVaultTransferRequest

Returns

Promise<void>

Defined in

packages/client/src/VaultClient.ts:185


cancelVaultTransferRequest

cancelVaultTransferRequest(legalOfficer, request): Promise<void>

Parameters

NameType
legalOfficerLegalOfficer
requestVaultTransferRequest

Returns

Promise<void>

Defined in

packages/client/src/VaultClient.ts:173


createVaultTransferRequest

createVaultTransferRequest(legalOfficer, params): Promise<VaultTransferRequest>

Parameters

NameType
legalOfficerLegalOfficer
paramsCreateVaultTransferRequest

Returns

Promise<VaultTransferRequest>

Defined in

packages/client/src/VaultClient.ts:157


fetchAll

fetchAll(legalOfficers?): Promise<FetchAllResult>

Parameters

NameType
legalOfficers?LegalOfficer[]

Returns

Promise<FetchAllResult>

Defined in

packages/client/src/VaultClient.ts:82


filterByStatuses

filterByStatuses(requests, statuses): VaultTransferRequest[]

Parameters

NameType
requestsVaultTransferRequest[]
statusesVaultTransferRequestStatus[]

Returns

VaultTransferRequest[]

Defined in

packages/client/src/VaultClient.ts:153


getVaultTransferRequests

getVaultTransferRequests(axios, legalOfficerAddress, fetch): Promise<VaultTransferRequest[]>

Parameters

NameType
axiosAxiosInstance
legalOfficerAddressstring
fetchFetchVaultTransferRequest

Returns

Promise<VaultTransferRequest[]>

Defined in

packages/client/src/VaultClient.ts:140


rejectVaultTransferRequest

rejectVaultTransferRequest(legalOfficer, request, rejectReason): Promise<void>

Parameters

NameType
legalOfficerLegalOfficer
requestVaultTransferRequest
rejectReasonstring

Returns

Promise<void>

Defined in

packages/client/src/VaultClient.ts:197


resubmitVaultTransferRequest

resubmitVaultTransferRequest(legalOfficer, request): Promise<void>

Parameters

NameType
legalOfficerLegalOfficer
requestVaultTransferRequest

Returns

Promise<void>

Defined in

packages/client/src/VaultClient.ts:210