Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@oasisprotocol/sapphire-paratime": "^1.3.2",
"@oceanprotocol/contracts": "^2.5.0",
"@oceanprotocol/ddo-js": "^0.1.4",
"@oceanprotocol/lib": "^6.0.0",
"@oceanprotocol/lib": "^6.1.0",
"commander": "^13.1.0",
"cross-fetch": "^3.1.5",
"crypto-js": "^4.1.1",
Expand Down
9 changes: 3 additions & 6 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
updateAssetMetadata,
downloadFile,
isOrderable,
getMetadataURI,
getIndexingWaitSettings,
IndexerWaitParams,
fixAndParseProviderFees,
Expand All @@ -16,7 +15,6 @@
Aquarius,
ComputeAlgorithm,
ComputeJob,
ComputeOutput,
Config,
ConfigHelper,
Datatoken,
Expand All @@ -31,7 +29,6 @@
AccesslistFactory,
AccessListContract,
} from "@oceanprotocol/lib";
import { Asset } from "@oceanprotocol/ddo-js";
import { Signer, ethers, getAddress } from "ethers";
import { interactiveFlow } from "./interactiveFlow.js";
import { publishAsset } from "./publishAsset.js";
Expand Down Expand Up @@ -86,7 +83,7 @@
asset.indexedMetadata.nft.name,
asset.indexedMetadata.nft.symbol,
this.signer,
asset.services[0].files,
asset.services[0].files.files,
asset,
this.oceanNodeUrl,
this.config,
Expand All @@ -102,7 +99,7 @@
}

public async publishAlgo(args: string[]) {
let algoAsset: Asset;
let algoAsset;
try {
algoAsset = JSON.parse(fs.readFileSync(args[1], "utf8"));
} catch (e) {
Expand All @@ -117,7 +114,7 @@
algoAsset.indexedMetadata.nft.name,
algoAsset.indexedMetadata.nft.symbol,
this.signer,
algoAsset.services[0].files,
algoAsset.services[0].files.files,
algoAsset,
this.oceanNodeUrl,
this.config,
Expand Down Expand Up @@ -1685,7 +1682,7 @@
)
);
removedCount++;
} catch (e: any) {

Check warning on line 1685 in src/commands.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
console.log(
chalk.yellow(
`⚠ Could not remove token at index ${index} for user ${user}: ${e.message}`
Expand Down
3 changes: 1 addition & 2 deletions test/consumeFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ describe("Ocean CLI Publishing", function() {
process.env.ADDRESS_FILE = path.join(process.env.HOME || "", ".ocean/ocean-contracts/artifacts/address.json");

const output = await runCommand(`npm run cli publish ${metadataFile}`);

const jsonMatch = output.match(/did:op:[a-f0-9]{64}/);
const jsonMatch = output.match(/did:op:[a-f0-9]{64}/);
if (!jsonMatch) {
console.error("Raw output:", output);
throw new Error("Could not find did in the output");
Expand Down
Loading