Skip to content

Commit

Permalink
feat: adding peaq network as pre-defined environment
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Aug 29, 2024
1 parent 1460215 commit 7fbd6c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
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.29",
"version": "3.0.30",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/nevermined/NvmApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
AppDeploymentLocal,
AppDeploymentMatic,
AppDeploymentOptimism,
AppDeploymentPeaq,
AppDeploymentStaging,
AppDeploymentTesting,
NeverminedAppOptions,
Expand All @@ -39,6 +40,7 @@ export enum NVMAppEnvironments {
Base = 'base',
Celo = 'celo',
Optimism = 'optimism',
Peaq = 'peaq',
Local = 'local',
Custom = 'custom',
}
Expand Down Expand Up @@ -956,6 +958,8 @@ export class NvmApp {
return new AppDeploymentCelo()
case NVMAppEnvironments.Optimism:
return new AppDeploymentOptimism()
case NVMAppEnvironments.Peaq:
return new AppDeploymentPeaq()
case NVMAppEnvironments.Local:
return new AppDeploymentLocal()
default:
Expand Down
17 changes: 17 additions & 0 deletions src/nevermined/resources/AppNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,20 @@ export class AppDeploymentOptimism extends NeverminedAppOptions {
nftContractCreditsAddress = '0xE24f60aE42F7Cc3B3357480C94165afD86B66583'
tokenAddress = '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85'
}

export class AppDeploymentPeaq extends NeverminedAppOptions {
instanceName = 'appPeaq'
appUrl = 'https://peaq.nevermined.app'
chainId = 100
web3ProviderUri = window.ethereum ? undefined : 'https://evm.peaq.network'
marketplaceUri = 'https://marketplace-api.peaq.nevermined.app'
graphHttpUri = 'https://api.thegraph.com/subgraphs/name/nevermined-io/public'
neverminedNodeUri = 'https://node.peaq.nevermined.app'
neverminedNodeAddress = '0x824dbcE5E9C96C5b8ce2A35a25a5ab87eD1D00b1'
verbose = true
gasMultiplier = 0
gasPriceMultiplier = 0
nftContractTimeAddress = '0xE24f60aE42F7Cc3B3357480C94165afD86B66583'
nftContractCreditsAddress = '0xE24f60aE42F7Cc3B3357480C94165afD86B66583'
tokenAddress = '0x0000000000000000000000000000000000000000'
}

0 comments on commit 7fbd6c5

Please sign in to comment.