Class: ServiceBuilder<ServiceType, FileType>
Nautilus.ServiceBuilder
Type parameters
Name | Type |
---|---|
ServiceType | extends ServiceTypes |
FileType | extends FileTypes |
Implements
IServiceBuilder
<ServiceType
,FileType
>
Constructors
constructor
• new ServiceBuilder<ServiceType
, FileType
>(config
)
Type parameters
Name | Type |
---|---|
ServiceType | extends ServiceTypes |
FileType | extends FileTypes |
Parameters
Name | Type |
---|---|
config | ServiceBuilderConfig |
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:24
Properties
service
• Private
service: NautilusService
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:22
Methods
addAdditionalInformation
▸ addAdditionalInformation(additionalInformation
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
additionalInformation | Object |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:122
addConsumerParameter
▸ addConsumerParameter(parameter
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
parameter | ConsumerParameter |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.addConsumerParameter
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:116
addFile
▸ addFile(file
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
file | ServiceFileType <FileType > |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:84
addTrustedAlgorithmPublisher
▸ addTrustedAlgorithmPublisher(publisherAddress
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
publisherAddress | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.addTrustedAlgorithmPublisher
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:208
addTrustedAlgorithms
▸ addTrustedAlgorithms(trustedAlgorithmAssets
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
trustedAlgorithmAssets | TrustedAlgorithmAsset [] |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.addTrustedAlgorithms
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:150
allowAlgorithmNetworkAccess
▸ allowAlgorithmNetworkAccess(allow?
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type | Default value |
---|---|---|
allow | boolean | true |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.allowAlgorithmNetworkAccess
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:141
allowRawAlgorithms
▸ allowRawAlgorithms(allow?
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type | Default value |
---|---|---|
allow | boolean | true |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.allowRawAlgorithms
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:132
build
▸ build(): NautilusService
<ServiceType
, FileType
>
Returns
NautilusService
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:291
removeTrustedAlgorithm
▸ removeTrustedAlgorithm(did
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
did | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:184
removeTrustedAlgorithmPublisher
▸ removeTrustedAlgorithmPublisher(publisherAddress
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
publisherAddress | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:233
reset
▸ reset(): void
Returns
void
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:287
setAllAlgorithmPublishersTrusted
▸ setAllAlgorithmPublishersTrusted(): ServiceBuilder
<ServiceType
, FileType
>
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:248
setAllAlgorithmPublishersUntrusted
▸ setAllAlgorithmPublishersUntrusted(): ServiceBuilder
<ServiceType
, FileType
>
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:254
setAllAlgorithmsTrusted
▸ setAllAlgorithmsTrusted(): ServiceBuilder
<ServiceType
, FileType
>
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:196
setAllAlgorithmsUntrusted
▸ setAllAlgorithmsUntrusted(): ServiceBuilder
<ServiceType
, FileType
>
Returns
ServiceBuilder
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:202
setDatatokenData
▸ setDatatokenData(tokenData
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
tokenData | DatatokenCreateParamsWithoutOwner |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setDatatokenData
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:260
setDatatokenNameAndSymbol
▸ setDatatokenNameAndSymbol(dtName
, dtSymbol
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
dtName | string |
dtSymbol | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setDatatokenNameAndSymbol
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:266
setDescription
▸ setDescription(description
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
description | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setDescription
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:110
setName
▸ setName(name
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
name | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:104
setPricing
▸ setPricing(pricing
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
pricing | PricingConfigWithoutOwner |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:276
setServiceEndpoint
▸ setServiceEndpoint(endpoint
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
endpoint | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setServiceEndpoint
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:97
setTimeout
▸ setTimeout(timeout
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
timeout | number |
Returns
ServiceBuilder
<ServiceType
, FileType
>