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.

4 changes: 2 additions & 2 deletions 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": "^5.0.5",
"@oceanprotocol/lib": "^5.1.0",
"commander": "^13.1.0",
"cross-fetch": "^3.1.5",
"crypto-js": "^4.1.1",
Expand All @@ -59,4 +59,4 @@
"ts-node": "^10.9.1",
"tsx": "^4.19.3"
}
}
}
3 changes: 2 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
} from "@oceanprotocol/lib";
import { homedir } from "os";

const ERC20Template = readFileSync('./node_modules/@oceanprotocol/contracts/artifacts/contracts/templates/ERC20Template.sol/ERC20Template.json', 'utf8') as any;

Check warning on line 28 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

export async function downloadFile(
url: string,
Expand Down Expand Up @@ -107,7 +107,7 @@
name: string,
symbol: string,
owner: Signer,
assetUrl: any,

Check warning on line 110 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
ddo: DDO,
oceanNodeUrl: string,
config: Config,
Expand Down Expand Up @@ -154,7 +154,7 @@
oceanNodeUrl: string,
aquariusInstance: Aquarius,
encryptDDO: boolean = true
): Promise<any> {

Check warning on line 157 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
const nft = new Nft(owner, Number((await owner.provider.getNetwork()).chainId));
let flags;
let metadata;
Expand All @@ -163,7 +163,8 @@
const providerResponse = await ProviderInstance.encrypt(
updatedDdo,
updatedDdo.chainId,
oceanNodeUrl
oceanNodeUrl,
owner
);
metadata = await providerResponse;
flags = 2
Expand Down Expand Up @@ -410,7 +411,7 @@
const addressFile = await fs.readFile(addressFilePath, 'utf8');

const data = JSON.parse(addressFile);
const chainConfig = Object.values(data).find((network: any) => network.chainId === chainId) as any;

Check warning on line 414 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 414 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

if (!chainConfig) {
throw new Error(`Chain ${chainId} not found in address file`);
Expand Down
Loading