Skip to content

Commit 0ecc993

Browse files
authored
Merge pull request #147 from oceanprotocol/feature/next-ocean-js
use latest ocean.js
2 parents 1d61001 + c6184fe commit 0ecc993

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@oasisprotocol/sapphire-paratime": "^1.3.2",
4848
"@oceanprotocol/contracts": "^2.5.0",
4949
"@oceanprotocol/ddo-js": "^0.1.4",
50-
"@oceanprotocol/lib": "^6.0.0",
50+
"@oceanprotocol/lib": "^6.1.0",
5151
"commander": "^13.1.0",
5252
"cross-fetch": "^3.1.5",
5353
"crypto-js": "^4.1.1",

src/commands.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
updateAssetMetadata,
77
downloadFile,
88
isOrderable,
9-
getMetadataURI,
109
getIndexingWaitSettings,
1110
IndexerWaitParams,
1211
fixAndParseProviderFees,
@@ -16,7 +15,6 @@ import {
1615
Aquarius,
1716
ComputeAlgorithm,
1817
ComputeJob,
19-
ComputeOutput,
2018
Config,
2119
ConfigHelper,
2220
Datatoken,
@@ -31,7 +29,6 @@ import {
3129
AccesslistFactory,
3230
AccessListContract,
3331
} from "@oceanprotocol/lib";
34-
import { Asset } from "@oceanprotocol/ddo-js";
3532
import { Signer, ethers, getAddress } from "ethers";
3633
import { interactiveFlow } from "./interactiveFlow.js";
3734
import { publishAsset } from "./publishAsset.js";
@@ -86,7 +83,7 @@ export class Commands {
8683
asset.indexedMetadata.nft.name,
8784
asset.indexedMetadata.nft.symbol,
8885
this.signer,
89-
asset.services[0].files,
86+
asset.services[0].files.files,
9087
asset,
9188
this.oceanNodeUrl,
9289
this.config,
@@ -102,7 +99,7 @@ export class Commands {
10299
}
103100

104101
public async publishAlgo(args: string[]) {
105-
let algoAsset: Asset;
102+
let algoAsset;
106103
try {
107104
algoAsset = JSON.parse(fs.readFileSync(args[1], "utf8"));
108105
} catch (e) {
@@ -117,7 +114,7 @@ export class Commands {
117114
algoAsset.indexedMetadata.nft.name,
118115
algoAsset.indexedMetadata.nft.symbol,
119116
this.signer,
120-
algoAsset.services[0].files,
117+
algoAsset.services[0].files.files,
121118
algoAsset,
122119
this.oceanNodeUrl,
123120
this.config,

test/consumeFlow.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ describe("Ocean CLI Publishing", function() {
5353
process.env.ADDRESS_FILE = path.join(process.env.HOME || "", ".ocean/ocean-contracts/artifacts/address.json");
5454

5555
const output = await runCommand(`npm run cli publish ${metadataFile}`);
56-
57-
const jsonMatch = output.match(/did:op:[a-f0-9]{64}/);
56+
const jsonMatch = output.match(/did:op:[a-f0-9]{64}/);
5857
if (!jsonMatch) {
5958
console.error("Raw output:", output);
6059
throw new Error("Could not find did in the output");

0 commit comments

Comments
 (0)