Skip to main content

Reference / Modules / client / CoreComponentFactory

Interface: CoreComponentFactory

client.CoreComponentFactory

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

Defined in

packages/client/src/ComponentFactory.ts:87


buildAxiosFactory

buildAxiosFactory: () => AxiosFactory

Type declaration

▸ (): AxiosFactory

Returns

AxiosFactory

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

Defined in

packages/client/src/ComponentFactory.ts:86

Methods

buildNetworkState

buildNetworkState(nodesUp, nodesDown): NetworkState<LegalOfficerEndpoint>

Parameters

NameType
nodesUpLegalOfficerEndpoint[]
nodesDownLegalOfficerEndpoint[]

Returns

NetworkState<LegalOfficerEndpoint>

Defined in

packages/client/src/ComponentFactory.ts:88


buildNodeApi

buildNodeApi(rpcEndpoints): Promise<LogionNodeApiClass>

Parameters

NameType
rpcEndpointsstring[]

Returns

Promise<LogionNodeApiClass>

Defined in

packages/client/src/ComponentFactory.ts:89