Class: Nautilus
Nautilus.Nautilus
Constructors
constructor
• Private
new Nautilus(web3
)
Parameters
Name | Type |
---|---|
web3 | default |
Defined in
Properties
config
• Private
config: Config
Defined in
web3
• Private
web3: default
Defined in
Methods
access
▸ access(accessConfig
): Promise
<string
>
Parameters
Name | Type | Description |
---|---|---|
accessConfig | Omit <AccessConfig , "web3" | "chainConfig" > | configuration object |
Returns
Promise
<string
>
Defined in
compute
▸ compute(computeConfig
): Promise
<ComputeJob
| ComputeJob
[]>
Parameters
Name | Type |
---|---|
computeConfig | Omit <ComputeConfig , "web3" | "chainConfig" > |
Returns
Promise
<ComputeJob
| ComputeJob
[]>
Defined in
getChainConfig
▸ Private
getChainConfig(): Pick
<AssetConfig
, "web3"
| "chainConfig"
>
Returns
Pick
<AssetConfig
, "web3"
| "chainConfig"
>
Defined in
getComputeResult
▸ getComputeResult(computeResultConfig
): Promise
<string
>
Parameters
Name | Type |
---|---|
computeResultConfig | Omit <ComputeResultConfig , "web3" > |
Returns
Promise
<string
>
Defined in
getComputeStatus
▸ getComputeStatus(computeStatusConfig
): Promise
<ComputeJob
>
Parameters
Name | Type |
---|---|
computeStatusConfig | Omit <ComputeStatusConfig , "web3" > |
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
<{ DID
: string
= ddo.id; datatokenAddress
: any
; erc721Address
: any
; txHash
: any
}>
Parameters
Name | Type |
---|---|
asset | NautilusAsset |
Returns
Promise
<{ DID
: string
= ddo.id; datatokenAddress
: any
; erc721Address
: any
; txHash
: any
}>
Defined in
create
▸ Static
create(web3
, config?
): Promise
<Nautilus
>
Creates a new Nautilus instance
Parameters
Name | Type |
---|---|
web3 | default |
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