From 7b3e60a35279d11f30af082870cae4b1769fbd55 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:38:08 +0100 Subject: [PATCH] test: adding gnosis --- CHANGELOG.md | 8 ++++---- integration/external/Olas.e2e.test.ts | 4 ++-- test/config.ts | 12 ++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a56144892..9c4c7e00c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2410,7 +2410,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). > 2 May 2022 -- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248) +- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248) - Adding v0.19.21 Changelog updates [`c93cdc5`](https://github.com/nevermined-io/sdk-js/commit/c93cdc55f139a43db4130ccb0f80924d2645a931) #### [v0.19.21](https://github.com/nevermined-io/sdk-js/compare/v0.19.20...v0.19.21) @@ -2673,7 +2673,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). > 18 January 2022 -- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186) +- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186) - [wip] Create agreement+pay in one transaction [`#183`](https://github.com/nevermined-io/sdk-js/pull/183) - Adapting to contracts `v1.3.3` [`#177`](https://github.com/nevermined-io/sdk-js/pull/177) - Adding v0.17.2 Changelog updates [`5eddda4`](https://github.com/nevermined-io/sdk-js/commit/5eddda43954e013e6e6f7344c9a877d801aacb5c) @@ -3179,7 +3179,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Feature/sync develop [`#268`](https://github.com/nevermined-io/sdk-js/pull/268) - Quick fix for non-eip1559 networks [`#266`](https://github.com/nevermined-io/sdk-js/pull/266) - integrate Permissions and refactor search query [`#264`](https://github.com/nevermined-io/sdk-js/pull/264) -- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248) +- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248) - Get the keeper version from the artifacts instead of package version [`#244`](https://github.com/nevermined-io/sdk-js/pull/244) - replace `metadata-api` url by `marketplace-api` and sort type [`#243`](https://github.com/nevermined-io/sdk-js/pull/243) - fixing issues with BigNumbers [`#246`](https://github.com/nevermined-io/sdk-js/pull/246) @@ -3218,7 +3218,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Feature/190 add did to sec markets [`#191`](https://github.com/nevermined-io/sdk-js/pull/191) - Adding utility methods for getting nft token uri [`#189`](https://github.com/nevermined-io/sdk-js/pull/189) - Lint ... [`#187`](https://github.com/nevermined-io/sdk-js/pull/187) -- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186) +- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186) - [wip] Create agreement+pay in one transaction [`#183`](https://github.com/nevermined-io/sdk-js/pull/183) - Adapting to contracts `v1.3.3` [`#177`](https://github.com/nevermined-io/sdk-js/pull/177) - Correct typo in route [`#184`](https://github.com/nevermined-io/sdk-js/pull/184) diff --git a/integration/external/Olas.e2e.test.ts b/integration/external/Olas.e2e.test.ts index 0b875fb87..2e219fc7c 100644 --- a/integration/external/Olas.e2e.test.ts +++ b/integration/external/Olas.e2e.test.ts @@ -34,7 +34,7 @@ describe('OLAS e2e tests', () => { let RECEIVER_NVM_FEE: string const RECEIVER_OLAS_FEE = OLAS_MARKETPLACE_ADDRESS - const RECEIVER_PLAN_PRICE = process.env.RECEIVER_PLAN_PRICE || ZeroAddress + const RECEIVER_PLAN = process.env.RECEIVER_PLAN || ZeroAddress // This is the number of credits that the subscriber will get when purchase the subscription // In the DDO this will be added in the `_numberNFTs` value of the `nft-sales` service of the subscription @@ -101,7 +101,7 @@ describe('OLAS e2e tests', () => { RECEIVER_NVM_FEE = await nevermined.keeper.nvmConfig.getFeeReceiver() AMOUNT_NVM_FEE = await nevermined.keeper.nvmConfig.getNetworkFee() - receivers = [RECEIVER_OLAS_FEE, RECEIVER_PLAN_PRICE] + receivers = [RECEIVER_OLAS_FEE, RECEIVER_PLAN] amounts = [AMOUNT_OLAS_FEE, AMOUNT_PLAN_PRICE] planPrice = new AssetPrice( diff --git a/test/config.ts b/test/config.ts index 3d497003d..41e0d33f9 100644 --- a/test/config.ts +++ b/test/config.ts @@ -43,6 +43,18 @@ if (process.env.NETWORK_NAME === 'geth-localnet') { artifactsFolder: './artifacts', circuitsFolder: './circuits', } as NeverminedOptions +} else if (process.env.NETWORK_NAME === 'gnosis') { + config = { + chainId: 100, + marketplaceUri: 'https://marketplace-api.gnosis.nevermined.app', + neverminedNodeUri: 'https://node.gnosis.nevermined.app', + neverminedNodeAddress: '0x824dbcE5E9C96C5b8ce2A35a25a5ab87eD1D00b1', + web3ProviderUri: `https://rpc.gnosischain.com/`, + graphHttpUri: undefined, + // verbose: LogLevel.Verbose, + artifactsFolder: './artifacts', + circuitsFolder: './circuits', + } as NeverminedOptions } else { // default unit tests config = {