Skip to main content

Reference / Modules / client / ComponentFactory

Interface: ComponentFactory

client.ComponentFactory

Hierarchy

Table of contents

Properties

Methods

Properties

buildAuthenticationClient

buildAuthenticationClient: (api: LogionNodeApiClass, directoryEndpoint: string, legalOfficers: LegalOfficerClass[], axiosFactory: AxiosFactory) => AuthenticationClient

Type declaration

▸ (api, directoryEndpoint, legalOfficers, axiosFactory): AuthenticationClient

Parameters
NameType
apiLogionNodeApiClass
directoryEndpointstring
legalOfficersLegalOfficerClass[]
axiosFactoryAxiosFactory
Returns

AuthenticationClient

Inherited from

CoreComponentFactory.buildAuthenticationClient

Defined in

packages/client/src/ComponentFactory.ts:87


buildAxiosFactory

buildAxiosFactory: () => AxiosFactory

Type declaration

▸ (): AxiosFactory

Returns

AxiosFactory

Inherited from

CoreComponentFactory.buildAxiosFactory

Defined in

packages/client/src/ComponentFactory.ts:85


buildDirectoryClient

buildDirectoryClient: (api: LogionNodeApiClass, directoryEndpoint: string, axiosFactory: AxiosFactory, token?: string) => DirectoryClient

Type declaration

▸ (api, directoryEndpoint, axiosFactory, token?): DirectoryClient

Parameters
NameType
apiLogionNodeApiClass
directoryEndpointstring
axiosFactoryAxiosFactory
token?string
Returns

DirectoryClient

Inherited from

CoreComponentFactory.buildDirectoryClient

Defined in

packages/client/src/ComponentFactory.ts:86


buildFileUploader

buildFileUploader: () => FileUploader

Type declaration

▸ (): FileUploader

Returns

FileUploader

Defined in

packages/client/src/ComponentFactory.ts:101

Methods

buildNetworkState

buildNetworkState(nodesUp, nodesDown): NetworkState<LegalOfficerEndpoint>

Parameters

NameType
nodesUpLegalOfficerEndpoint[]
nodesDownLegalOfficerEndpoint[]

Returns

NetworkState<LegalOfficerEndpoint>

Inherited from

CoreComponentFactory.buildNetworkState

Defined in

packages/client/src/ComponentFactory.ts:88


buildNodeApi

buildNodeApi(rpcEndpoints): Promise<LogionNodeApiClass>

Parameters

NameType
rpcEndpointsstring[]

Returns

Promise<LogionNodeApiClass>

Inherited from

CoreComponentFactory.buildNodeApi

Defined in

packages/client/src/ComponentFactory.ts:89