Class: Nautilus
Nautilus.Nautilus
Constructors
constructor
• Private
new Nautilus(signer
)
Parameters
Name | Type |
---|---|
signer | Signer |
Defined in
Properties
config
• Private
config: Config
Defined in
signer
• Private
signer: Signer
Defined in
Methods
access
▸ access(accessConfig
): Promise
<string
>
Parameters
Name | Type | Description |
---|---|---|
accessConfig | Omit <AccessConfig , "signer" | "chainConfig" > | configuration object |
Returns
Promise
<string
>
Defined in
compute
▸ compute(computeConfig
): Promise
<ComputeJob
| ComputeJob
[]>
Parameters
Name | Type |
---|---|
computeConfig | Omit <ComputeConfig , "signer" | "chainConfig" > |
Returns
Promise
<ComputeJob
| ComputeJob
[]>
Defined in
edit
▸ edit(asset
): Promise
<PublishResponse
>
Parameters
Name | Type |
---|---|
asset | NautilusAsset |
Returns
Promise
<PublishResponse
>
Defined in
getAquariusAsset
▸ getAquariusAsset(did
): Promise
<Asset
>
Parameters
Name | Type |
---|---|
did | string |
Returns
Promise
<Asset
>
Defined in
getAquariusAssets
▸ getAquariusAssets(dids
): Promise
<{ [did: string]
: Asset
; }>
Parameters
Name | Type |
---|---|
dids | string [] |
Returns
Promise
<{ [did: string]
: Asset
; }>
Defined in
getChainConfig
▸ Private
getChainConfig(): Pick
<CreateAssetConfig
, "signer"
| "chainConfig"
>
Returns
Pick
<CreateAssetConfig
, "signer"
| "chainConfig"
>
Defined in
getComputeResult
▸ getComputeResult(computeResultConfig
): Promise
<string
>
Parameters
Name | Type |
---|---|
computeResultConfig | Omit <ComputeResultConfig , "signer" > |
Returns
Promise
<string
>
Defined in
getComputeStatus
▸ getComputeStatus(computeStatusConfig
): Promise
<ComputeJob
>
Parameters
Name | Type |
---|---|
computeStatusConfig | Omit <ComputeStatusConfig , "signer" > |
Returns
Promise
<ComputeJob
>
Defined in
getOceanConfig
▸ getOceanConfig(): Config
Returns
Config
Defined in
hasValidConfig
▸ Private
hasValidConfig(): boolean
Returns
boolean
Defined in
init
▸ Private
init(config?
): Promise
<void
>
Parameters
Name | Type |
---|---|
config? | Partial <Config > |
Returns
Promise
<void
>
Defined in
loadOceanConfig
▸ Private
loadOceanConfig(config?
): Promise
<void
>
Parameters
Name | Type |
---|---|
config? | Partial <Config > |
Returns
Promise
<void
>
Defined in
publish
▸ publish(asset
): Promise
<PublishResponse
>
Parameters
Name | Type |
---|---|
asset | NautilusAsset |
Returns
Promise
<PublishResponse
>
Defined in
setAssetLifecycleState
▸ setAssetLifecycleState(aquariusAsset
, state
): Promise
<TransactionReceipt
>
Parameters
Name | Type |
---|---|
aquariusAsset | Asset |
state | LifecycleStates |
Returns
Promise
<TransactionReceipt
>
Defined in
setServicePrice
▸ setServicePrice(aquaAsset
, serviceId
, newPrice
): Promise
<TransactionReceipt
>
Parameters
Name | Type |
---|---|
aquaAsset | Asset |
serviceId | string |
newPrice | string |
Returns
Promise
<TransactionReceipt
>
Defined in
create
▸ Static
create(signer
, config?
): Promise
<Nautilus
>
Creates a new Nautilus instance
Parameters
Name | Type |
---|---|
signer | Signer |
config? | Partial <Config > |
Returns
Promise
<Nautilus
>
Defined in
setLogLevel
▸ Static
setLogLevel(level
): void
Set the log level for Nautilus ocean.js LoggerInstance is used for logging
Parameters
Name | Type |
---|---|
level | LogLevel |
Returns
void