Skip to content

Commit

Permalink
fix: have only web3provideruri in case there is no window
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Jun 26, 2024
1 parent 4da415a commit 8ba8745
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
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.15-rc0",
"version": "3.0.15-rc1",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/nevermined/NvmApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export class NvmApp {
'NFT1155SubscriptionUpgradeable',
this.configNVM.artifactsFolder,
await this.fullSDK.keeper.getNetworkName(),
await this.fullSDK.keeper.getNetworkId(),
)
this.subscriptionNFTContractAddress = contractABI.address
} else {
Expand Down
16 changes: 8 additions & 8 deletions src/nevermined/resources/AppNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class AppDeploymentStaging extends NeverminedAppOptions {
instanceName = 'appStaging'
appUrl = 'https://staging.nevermined.app'
chainId = 421614
web3ProviderUri = 'https://sepolia-rollup.arbitrum.io/rpc'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://sepolia-rollup.arbitrum.io/rpc'
marketplaceUri = 'https://marketplace-api.staging.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.staging.nevermined.app'
Expand All @@ -41,7 +41,7 @@ export class AppDeploymentTesting extends NeverminedAppOptions {
instanceName = 'appTesting'
appUrl = 'https://testing.nevermined.app'
chainId = 421614
web3ProviderUri = 'https://sepolia-rollup.arbitrum.io/rpc'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://sepolia-rollup.arbitrum.io/rpc'
marketplaceUri = 'https://marketplace-api.testing.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.testing.nevermined.app'
Expand All @@ -57,7 +57,7 @@ export class AppDeploymentArbitrum extends NeverminedAppOptions {
instanceName = 'appArbitrum'
appUrl = 'https://nevermined.app'
chainId = 42161
web3ProviderUri = 'https://arb1.arbitrum.io/rpc'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://arb1.arbitrum.io/rpc'
marketplaceUri = 'https://marketplace-api.arbitrum.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.arbitrum.nevermined.app'
Expand All @@ -73,7 +73,7 @@ export class AppDeploymentGnosis extends NeverminedAppOptions {
instanceName = 'appGnosis'
appUrl = 'https://gnosis.nevermined.app'
chainId = 100
web3ProviderUri = 'https://rpc.gnosischain.com/'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://rpc.gnosischain.com/'
marketplaceUri = 'https://marketplace-api.gnosis.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.gnosis.nevermined.app'
Expand All @@ -89,7 +89,7 @@ export class AppDeploymentMatic extends NeverminedAppOptions {
instanceName = 'appMatic'
appUrl = 'https://matic.nevermined.app'
chainId = 137
web3ProviderUri = 'https://polygon-rpc.com'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://polygon-rpc.com'
marketplaceUri = 'https://marketplace-api.matic.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.matic.nevermined.app'
Expand All @@ -105,7 +105,7 @@ export class AppDeploymentBase extends NeverminedAppOptions {
instanceName = 'appBase'
appUrl = 'https://base.nevermined.app'
chainId = 8453
web3ProviderUri = 'https://1rpc.io/base'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://1rpc.io/base'
marketplaceUri = 'https://marketplace-api.base.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.base.nevermined.app'
Expand All @@ -121,7 +121,7 @@ export class AppDeploymentCelo extends NeverminedAppOptions {
instanceName = 'appCelo'
appUrl = 'https://celo.nevermined.app'
chainId = 42220
web3ProviderUri = 'https://forno.celo.org'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://forno.celo.org'
marketplaceUri = 'https://marketplace-api.celo.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.celo.nevermined.app'
Expand All @@ -137,7 +137,7 @@ export class AppDeploymentOptimism extends NeverminedAppOptions {
instanceName = 'appOptimism'
appUrl = 'https://optimism.nevermined.app'
chainId = 10
web3ProviderUri = 'https://optimism.drpc.org'
web3ProviderUri = window.ethereum ? window.ethereum : 'https://optimism.drpc.org'
marketplaceUri = 'https://marketplace-api.optimism.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.optimism.nevermined.app'
Expand Down

0 comments on commit 8ba8745

Please sign in to comment.