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