From 3878d1077f5bfc9bd5a3254a47d30a5cb1490fbd Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Wed, 5 Mar 2025 17:27:48 +0100 Subject: [PATCH 1/2] feat: base deployment --- package.json | 4 ++-- resources/networks.json | 28 +++++++++++++++++++++++++++- src/commands/app/createApiKey.ts | 3 ++- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e57ccf7..4cb7679 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nevermined-io/cli", - "version": "2.2.4", + "version": "2.2.5", "main": "index.js", "repository": "git@github.com:nevermined-io/cli.git", "author": "Nevermined", @@ -25,7 +25,7 @@ "ncli": "./dist/src/index.js" }, "dependencies": { - "@nevermined-io/sdk": "3.0.33", + "@nevermined-io/sdk": "3.1.2-rc2", "log4js": "^6.9.1", "chalk": "^4.1.2", "cross-fetch": "~3.1.5", diff --git a/resources/networks.json b/resources/networks.json index 00eb277..30ab831 100644 --- a/resources/networks.json +++ b/resources/networks.json @@ -99,7 +99,33 @@ "gasMultiplier": 0, "gasPriceMultiplier": 0, "externalNetwork": true - }, + }, + "appBaseSepolia": { + "envDescription": "Nevermined App (Base Sepolia) testnet environment where users can interact with Nevermined protocol.", + "envUrl": "https://base-sepolia.nevermined.app/", + "envName": "BaseSepolia", + "isProduction": false, + "nvm": { + "chainId": 84532, + "appUrl": "https://base-testing.nevermined.app", + "web3ProviderUri": "https://sepolia.base.org", + "marketplaceUri": "https://marketplace-api.base-sepolia.nevermined.app", + "graphHttpUri": "", + "neverminedNodeUri": "https://node.base-sepolia.nevermined.app", + "neverminedNodeAddress": "0x5838B5512cF9f12FE9f2beccB20eb47211F9B0bc", + "neverminedBackendUri": "https://one-backend.base-sepolia.nevermined.app", + "verbose": true + }, + "nativeToken": "ETH", + "networkName": "base-sepolia", + "contractsVersion": "3.5.9", + "tagName": "public", + "etherscanUrl": "https://sepolia.basescan.org", + "erc20TokenAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", + "gasMultiplier": 0, + "gasPriceMultiplier": 0, + "externalNetwork": true + }, "appArbitrum": { "envDescription": "The Arbitrum One production environment where users can interact with Nevermined protocol.", "envUrl": "https://nevermined.app/", diff --git a/src/commands/app/createApiKey.ts b/src/commands/app/createApiKey.ts index 4ee3242..f2dd2af 100644 --- a/src/commands/app/createApiKey.ts +++ b/src/commands/app/createApiKey.ts @@ -72,7 +72,8 @@ export const createApiKey = async ( logger.debug(`Creating a new ZeroDev kernel client ...`) logger.debug(`Chain ID: ${nvmApp.sdk.client.chain?.id}`) - const privateKey = toHex(publisherAccount.getAccountSigner().getHdKey().privateKey) + const privateKey = toHex((publisherAccount.getAccountSigner() as any).getHdKey().privateKey) + // const privateKey = toHex(publisherAccount.getAccountSigner()?.getHdKey().privateKey) const account = privateKeyToAccount(privateKey) logger.debug(`Private key Account: ${account.address}`) From 97ab8da945fb41755c71f770799e5242079e8bcc Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Wed, 5 Mar 2025 18:24:07 +0100 Subject: [PATCH 2/2] ci: fixing deprecated actions/upload-artifact --- .github/workflows/testing-nigthly.yml | 2 +- .github/workflows/testing.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing-nigthly.yml b/.github/workflows/testing-nigthly.yml index 91e898a..f501567 100644 --- a/.github/workflows/testing-nigthly.yml +++ b/.github/workflows/testing-nigthly.yml @@ -36,7 +36,7 @@ jobs: yarn build yarn test test/integration/NFTs1155.test.ts - name: Upload logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: nevermined-tools-output diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 30e76eb..321a8f0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -53,7 +53,7 @@ jobs: run: | yarn test:integration - name: Upload logs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: nevermined-tools-output