Skip to content

Commit

Permalink
fix: try different url for thegraph
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Jun 21, 2024
1 parent f71aa59 commit 90d1c01
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 46 deletions.
11 changes: 0 additions & 11 deletions docs/api-reference/enums/NVMAppEnvironments.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
- [Live](NVMAppEnvironments.md#live)
- [Local](NVMAppEnvironments.md#local)
- [Matic](NVMAppEnvironments.md#matic)
- [Mumbai](NVMAppEnvironments.md#mumbai)
- [Optimism](NVMAppEnvironments.md#optimism)
- [Staging](NVMAppEnvironments.md#staging)
- [Testing](NVMAppEnvironments.md#testing)
Expand Down Expand Up @@ -90,16 +89,6 @@

---

### Mumbai

**Mumbai** = `"mumbai"`

#### Defined in

[src/nevermined/NvmApp.ts:39](https://github.com/nevermined-io/sdk-js/blob/0d598e72febf7cfaf48859e35dd566c39e7d5682/src/nevermined/NvmApp.ts#L39)

---

### Optimism

**Optimism** = `"optimism"`
Expand Down
11 changes: 0 additions & 11 deletions integration/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@ if (process.env.NETWORK_NAME === 'testing') {
} as NeverminedOptions)
}

if (process.env.NETWORK_NAME === 'mumbai') {
Object.assign(configBase, {
chainId: 80001,
marketplaceUri: 'https://marketplace-api.mumbai.nevermined.app',
neverminedNodeUri: 'https://node.mumbai.nevermined.app',
web3ProviderUri: `https://polygon-mumbai.infura.io/v3/${infuraToken}`,
neverminedNodeAddress: '0x5838B5512cF9f12FE9f2beccB20eb47211F9B0bc',
graphHttpUri: 'https://api.thegraph.com/subgraphs/name/nevermined-io/public',
} as NeverminedOptions)
}

if (process.env.NETWORK_NAME === 'matic') {
Object.assign(configBase, {
chainId: 137,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "3.0.13",
"version": "3.0.14-rc0",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions src/events/SubgraphEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export class SubgraphEvent extends NeverminedEvent {
* It gets a new instance of SubgraphEvent
* @param contract contract instance
* @param eventEmitter events emitter implementation
* @param graphHttpUri url of the subgraph
* @param networkName the name of the blockchain network
* @returns the SubgraphEvent instance
*/
public static getInstance(
Expand All @@ -41,7 +39,7 @@ export class SubgraphEvent extends NeverminedEvent {

instance.subgraph = new ApolloClient({
link: new HttpLink({
uri: `${graphHttpUri}${networkNameLower}${majorVersion}${contractName}`,
uri: `${graphHttpUri}${networkNameLower}${majorVersion}${contractName}/version/latest`,
fetch,
}),
cache: new InMemoryCache(),
Expand Down
4 changes: 0 additions & 4 deletions src/nevermined/NvmApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
AppDeploymentGnosis,
AppDeploymentLocal,
AppDeploymentMatic,
AppDeploymentMumbai,
AppDeploymentOptimism,
AppDeploymentStaging,
AppDeploymentTesting,
Expand All @@ -36,7 +35,6 @@ export enum NVMAppEnvironments {
Testing = 'testing',
Live = 'live',
Matic = 'matic',
Mumbai = 'mumbai',
Gnosis = 'gnosis',
Base = 'base',
Celo = 'celo',
Expand Down Expand Up @@ -904,8 +902,6 @@ export class NvmApp {
return new AppDeploymentArbitrum()
case NVMAppEnvironments.Matic:
return new AppDeploymentMatic()
case NVMAppEnvironments.Mumbai:
return new AppDeploymentMumbai()
case NVMAppEnvironments.Gnosis:
return new AppDeploymentGnosis()
case NVMAppEnvironments.Base:
Expand Down
16 changes: 0 additions & 16 deletions src/nevermined/resources/AppNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,6 @@ export class AppDeploymentGnosis extends NeverminedAppOptions {
tokenAddress = '0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83'
}

export class AppDeploymentMumbai extends NeverminedAppOptions {
instanceName = 'appMumbai'
appUrl = 'https://mumbai.nevermined.app'
chainId = 80001
web3ProviderUri = 'https://matic-mumbai.chainstacklabs.com'
marketplaceUri = 'https://marketplace-api.mumbai.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.mumbai.nevermined.app'
neverminedNodeAddress = '0x5838B5512cF9f12FE9f2beccB20eb47211F9B0bc'
verbose = true
gasMultiplier = 0
gasPriceMultiplier = 0
nftContractAddress = undefined
tokenAddress = '0x2058a9d7613eee744279e3856ef0eada5fcbaa7e'
}

export class AppDeploymentMatic extends NeverminedAppOptions {
instanceName = 'appMatic'
appUrl = 'https://matic.nevermined.app'
Expand Down

0 comments on commit 90d1c01

Please sign in to comment.