chore: Review fixes at #378 (#383)

* Review fixes

* remove logs

* Fixes

* Todo to remove prefix later

* Refactor service signatures

* Fixes

* Update lock file

* Fix lockfile

* Update deps

* More fixes and renames

* Fix compiler

* Peer refactoring and cutting onConnectionChange API

* Revert deleted API
This commit is contained in:
Akim
2023-11-23 04:18:10 +07:00
committed by GitHub
parent f4a550dd22
commit 98462bfdf6
34 changed files with 2413 additions and 585 deletions

View File

@ -20,11 +20,11 @@
"base64-js": "1.5.1"
},
"devDependencies": {
"@fluencelabs/aqua-api": "0.12.4-main-cee4448-2196-1",
"@fluencelabs/aqua-api": "0.13.0",
"@fluencelabs/aqua-lib": "0.6.0",
"@fluencelabs/aqua-to-js": "workspace:*",
"@fluencelabs/js-client": "workspace:*",
"@fluencelabs/registry": "0.8.8-1",
"@fluencelabs/registry": "0.9.0",
"@fluencelabs/trust-graph": "3.1.2",
"ts-node": "10.9.1"
}

View File

@ -15,7 +15,6 @@
*/
import { Fluence, type ClientConfig } from "@fluencelabs/js-client";
import { fromByteArray } from "base64-js";
import { test as particleTest } from "./_aqua/finalize_particle.js";
import {
@ -56,10 +55,6 @@ export type TestResult =
export const runTest = async (): Promise<TestResult> => {
try {
Fluence.onConnectionStateChange((state) => {
console.info("connection state changed: ", state);
});
console.log("connecting to Fluence Network...");
console.log("multiaddr: ", relay.multiaddr);
@ -82,7 +77,6 @@ export const runTest = async (): Promise<TestResult> => {
const client = Fluence.getClient();
console.log("my peer id: ", client.getPeerId());
console.log("my sk id: ", fromByteArray(client.getPeerSecretKey()));
console.log("running hello test...");
const hello = await helloTest();