Reference / Modules / client / CoreComponentFactory
Interface: CoreComponentFactory
client.CoreComponentFactory
Hierarchy
-
CoreComponentFactory
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
Name | Type |
---|---|
api | LogionNodeApiClass |
directoryEndpoint | string |
legalOfficers | LegalOfficerClass [] |
axiosFactory | AxiosFactory |
Returns
Defined in
packages/client/src/ComponentFactory.ts:87
buildAxiosFactory
• buildAxiosFactory: () => AxiosFactory
Type declaration
▸ (): AxiosFactory
Returns
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
Name | Type |
---|---|
api | LogionNodeApiClass |
directoryEndpoint | string |
axiosFactory | AxiosFactory |
token? | string |
Returns
Defined in
packages/client/src/ComponentFactory.ts:86
Methods
buildNetworkState
▸ buildNetworkState(nodesUp
, nodesDown
): NetworkState
<LegalOfficerEndpoint
>
Parameters
Name | Type |
---|---|
nodesUp | LegalOfficerEndpoint [] |
nodesDown | LegalOfficerEndpoint [] |
Returns
NetworkState
<LegalOfficerEndpoint
>
Defined in
packages/client/src/ComponentFactory.ts:88
buildNodeApi
▸ buildNodeApi(rpcEndpoints
): Promise
<LogionNodeApiClass
>
Parameters
Name | Type |
---|---|
rpcEndpoints | string [] |
Returns
Promise
<LogionNodeApiClass
>