Skip to content

Commit

Permalink
Merge pull request #92 from nevermined-io/feature/sdk_stable
Browse files Browse the repository at this point in the history
feat: adapting to latest sdk and sdk-dtp
  • Loading branch information
aaitor authored Feb 15, 2023
2 parents c38bebe + ab69740 commit 2cfcdcc
Show file tree
Hide file tree
Showing 47 changed files with 56 additions and 57 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/cli",
"version": "1.0.0-rc0",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:nevermined-io/cli.git",
"author": "Nevermined",
Expand All @@ -22,8 +22,8 @@
"ncli": "./dist/src/index.js"
},
"dependencies": {
"@nevermined-io/nevermined-sdk-js": "1.0.0-rc18",
"@nevermined-io/nevermined-sdk-dtp": "0.3.0-rc15",
"@nevermined-io/sdk": "1.0.0",
"@nevermined-io/sdk-dtp": "0.3.0",
"@truffle/hdwallet-provider": "^2.0.9",
"chalk": "^4.1.2",
"cross-fetch": "~3.1.5",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ExecutionOutput } from './models/ExecutionOutput'
import fs from 'fs'
import * as CliCommands from './commands'
import { CLICommandsDefinition } from './models/CLICommandsDefinition'
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ConfigEntry } from './models/ConfigDefinition'
type CliCommands = typeof CliCommands

Expand Down
2 changes: 1 addition & 1 deletion src/commands/accounts/fund.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { Logger } from 'log4js'
import chalk from 'chalk'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/accounts/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Account,
NFT721Api,
BigNumber
} from '@nevermined-io/nevermined-sdk-js'
} from '@nevermined-io/sdk'
import chalk from 'chalk'
import { Logger } from 'log4js'
import {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/accounts/new.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import chalk from 'chalk'
import { Logger } from 'log4js'
Expand Down
3 changes: 1 addition & 2 deletions src/commands/agreements/listAgreements.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, ConditionState, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ConditionState } from '@nevermined-io/nevermined-sdk-js'
import chalk from 'chalk'
import { Logger } from 'log4js'
import { ExecutionOutput } from '../../models/ExecutionOutput'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/agreements/showAgreement.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes, getContractNameFromAddress } from '../../utils'
import chalk from 'chalk'
import { Logger } from 'log4js'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/assets/downloadAsset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import chalk from 'chalk'
import readline from 'readline'
Expand Down
4 changes: 2 additions & 2 deletions src/commands/assets/getAsset.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Account, generateIntantiableConfigFromConfig, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, generateIntantiableConfigFromConfig, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import chalk from 'chalk'
import readline from 'readline'
import { Logger } from 'log4js'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { ConfigEntry } from '../../models/ConfigDefinition'
import { CryptoConfig, Dtp } from '@nevermined-io/nevermined-sdk-dtp'
import { CryptoConfig, Dtp } from '@nevermined-io/sdk-dtp'

readline.createInterface({
input: process.stdin,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/assets/orderAsset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import chalk from 'chalk'
import readline from 'readline'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/assets/queryAsset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined, ServiceMetadata } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, ServiceMetadata } from '@nevermined-io/sdk'
import { StatusCodes, printSearchResult } from '../../utils'
import chalk from 'chalk'
import { Logger } from 'log4js'
Expand Down
6 changes: 3 additions & 3 deletions src/commands/assets/registerAsset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, AssetPrice, AssetAttributes, MetaDataFile, Nevermined, MetaData, MetaDataMain, zeroX, generateIntantiableConfigFromConfig, BigNumber, PublishMetadata } from '@nevermined-io/nevermined-sdk-js'
import { Account, AssetPrice, AssetAttributes, Nevermined, MetaData, MetaDataMain, zeroX, generateIntantiableConfigFromConfig, BigNumber, PublishMetadata, MetaDataExternalResource } from '@nevermined-io/sdk'
import {
StatusCodes,
printTokenBanner,
Expand All @@ -11,7 +11,7 @@ import { ExecutionOutput } from '../../models/ExecutionOutput'
import fs from 'fs'
import { Logger } from 'log4js'
import { ConfigEntry } from '../../models/ConfigDefinition'
import { Dtp } from '@nevermined-io/nevermined-sdk-dtp'
import { Dtp } from '@nevermined-io/sdk-dtp'

export const registerAsset = async (
nvm: Nevermined,
Expand Down Expand Up @@ -49,7 +49,7 @@ export const registerAsset = async (

if (!metadata) {

const _files: MetaDataFile[] = []
const _files: MetaDataExternalResource[] = []
let _fileIndex = 0
if (isDTP) {
_files.push({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/assets/resolveDID.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { StatusCodes } from '../../utils'
import chalk from 'chalk'
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { Logger } from 'log4js'
import { ConfigEntry } from '../../models/ConfigDefinition'

Expand Down
2 changes: 1 addition & 1 deletion src/commands/assets/retireDID.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StatusCodes } from '../../utils'
import chalk from 'chalk'
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { Logger } from 'log4js'
import { ConfigEntry } from '../../models/ConfigDefinition'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/assets/searchAsset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined, ServiceMetadata } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, ServiceMetadata } from '@nevermined-io/sdk'
import { StatusCodes, printSearchResult } from '../../utils'
import chalk from 'chalk'
import { Logger } from 'log4js'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/network/networkGetConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
StatusCodes
} from '../../utils'
import { Logger } from 'log4js'
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
import { ConfigEntry } from '../../models/ConfigDefinition'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/network/networkList.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes, getNetworksConfig } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/network/networkSetConfig.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StatusCodes } from '../../utils'
import { Logger } from 'log4js'
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
import { ConfigEntry } from '../../models/ConfigDefinition'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/network/networkStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
StatusCodes
} from '../../utils'
import { Logger } from 'log4js'
import { Account, Nevermined, PlatformTechStatus } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, PlatformTechStatus } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
import { ConfigEntry } from '../../models/ConfigDefinition'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/accessNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, Nevermined, NFTsBaseApi } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, Nevermined, NFTsBaseApi } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/burnNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, Nevermined } from '@nevermined-io/sdk'
import {
StatusCodes,
printNftTokenBanner,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/cloneNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, Nevermined } from '@nevermined-io/sdk'
import {
StatusCodes
} from '../../utils'
Expand Down
6 changes: 3 additions & 3 deletions src/commands/nfts/createNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, AssetPrice, getRoyaltyAttributes, Nevermined, NeverminedNFT1155Type, NeverminedNFT721Type, NFTAttributes, RoyaltyKind, ServiceType, BigNumber, zeroX, PublishMetadata, AssetAttributes } from '@nevermined-io/nevermined-sdk-js'
import { Account, AssetPrice, getRoyaltyAttributes, Nevermined, NeverminedNFT1155Type, NeverminedNFT721Type, NFTAttributes, RoyaltyKind, ServiceType, BigNumber, zeroX, PublishMetadata, AssetAttributes, MetaDataExternalResource } from '@nevermined-io/sdk'
import {
StatusCodes,
printNftTokenBanner,
Expand All @@ -7,7 +7,7 @@ import {
getFeesFromBigNumber
} from '../../utils'
import chalk from 'chalk'
import { MetaDataFile, MetaDataMain } from '@nevermined-io/nevermined-sdk-js'
import { MetaDataMain } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import fs from 'fs'
import { Logger } from 'log4js'
Expand Down Expand Up @@ -61,7 +61,7 @@ export const createNft = async (
logger.trace(`DDO Price: ${ddoPrice}`)
logger.trace(`to Fixed: ${ddoPrice.toString()}`)

const _files: MetaDataFile[] = []
const _files: MetaDataExternalResource[] = []
let _fileIndex = 0
argv.urls.forEach((_url: string) => {
_files.push({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/deployNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined, Nft1155Contract, Nft721Contract, Web3Provider } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, Nft1155Contract, Nft721Contract, Web3Provider } from '@nevermined-io/sdk'
import { ContractReceipt, ethers } from 'ethers'
import { TransactionResponse } from '@ethersproject/abstract-provider'
import {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/downloadNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined, NFTsBaseApi } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, NFTsBaseApi } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/holdNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined, NFT1155Api, NFT721Api, zeroX } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, NFT1155Api, NFT721Api, zeroX } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/mintNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, Nevermined, zeroX } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, Nevermined, zeroX } from '@nevermined-io/sdk'
import {
StatusCodes,
printNftTokenBanner,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/orderNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, getAssetPriceFromDDOByService, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, getAssetPriceFromDDOByService, Nevermined } from '@nevermined-io/sdk'
import { Constants, StatusCodes, loadToken, getNFTAddressFromInput } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import chalk from 'chalk'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/showNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, DDO, getAssetPriceFromDDOByService, Nevermined, zeroX } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, DDO, getAssetPriceFromDDOByService, Nevermined, zeroX } from '@nevermined-io/sdk'
import {
Constants,
StatusCodes,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/nfts/transferNft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, BigNumber, getAssetPriceFromDDOByService, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, BigNumber, getAssetPriceFromDDOByService, Nevermined } from '@nevermined-io/sdk'
import { Constants, StatusCodes, loadToken, getNFTAddressFromInput } from '../../utils'
import chalk from 'chalk'
import { Logger } from 'log4js'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/provenance/provenanceHistory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { printProvenanceEvents } from '../../utils/utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/provenance/provenanceInspect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { printProvenanceEntry } from '../../utils/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/provenance/registerProvenance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, generateId, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, generateId, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { Logger } from 'log4js'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utils/cleanArtifacts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ARTIFACTS_PATH } from '../../utils/config'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { Logger } from 'log4js'
Expand Down
4 changes: 2 additions & 2 deletions src/commands/utils/decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import fs from 'fs'
import { Logger } from 'log4js'
import { StatusCodes } from '../../utils'
import { ConfigEntry } from '../../models/ConfigDefinition'
import { aes_decryption_256 } from '@nevermined-io/nevermined-sdk-dtp/dist/utils'
import { aes_decryption_256 } from '@nevermined-io/sdk-dtp'
import chalk from 'chalk'

export const decryptFile = async (
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utils/downloadArtifacts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ARTIFACTS_PATH, ARTIFACTS_REPOSITORY } from '../../utils/config'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { Logger } from 'log4js'
Expand Down
4 changes: 2 additions & 2 deletions src/commands/utils/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import fs from 'fs'
import { Logger } from 'log4js'
import { StatusCodes } from '../../utils'
import { ConfigEntry } from '../../models/ConfigDefinition'
import { aes_encryption_256 } from '@nevermined-io/nevermined-sdk-dtp/dist/utils'
import { aes_encryption_256 } from '@nevermined-io/sdk-dtp'
import chalk from 'chalk'
import crypto from 'crypto'

Expand Down
2 changes: 1 addition & 1 deletion src/commands/utils/getNftMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, didZeroX, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, didZeroX, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes, getNFTAddressFromInput } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import IpfsHelper from '../../utils/IpfsHelper'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utils/publishNftMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined } from '@nevermined-io/sdk'
import { StatusCodes } from '../../utils'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { NFTMetadata } from '../../models/NFTMetadata'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utils/upload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Account, Nevermined, NodeUploadBackends } from '@nevermined-io/nevermined-sdk-js'
import { Account, Nevermined, NodeUploadBackends } from '@nevermined-io/sdk'
import fs from 'fs'
import { ExecutionOutput } from '../../models/ExecutionOutput'
import { StatusCodes } from '../../utils'
Expand Down
2 changes: 1 addition & 1 deletion src/models/ConfigDefinition.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NeverminedOptions } from '@nevermined-io/nevermined-sdk-js'
import { NeverminedOptions } from '@nevermined-io/sdk'
import { Signer } from 'ethers'

export interface CliConfig {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getLogger } from 'log4js'
import { ConfigEntry, CliConfig } from '../models/ConfigDefinition'
import path from 'path'
import { Wallet, Signer } from 'ethers'
import { Web3Provider } from '@nevermined-io/nevermined-sdk-js'
import { Web3Provider } from '@nevermined-io/sdk'

dotenv.config()

Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ServiceType,
Token,
ConditionType
} from '@nevermined-io/nevermined-sdk-js'
} from '@nevermined-io/sdk'
import chalk from 'chalk'
import { Constants } from './enums'
import { ARTIFACTS_PATH, logger } from './config'
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/Config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateId } from '@nevermined-io/nevermined-sdk-js'
import { generateId } from '@nevermined-io/sdk'
import { ethers } from 'ethers'

const NETWORK = process.env.NETWORK || 'geth-localnet'
Expand Down
2 changes: 1 addition & 1 deletion test/integration-tests/Assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import * as fs from 'fs'
import { mkdtempSync } from 'fs'
import * as Path from 'path'
import { generateId } from '@nevermined-io/nevermined-sdk-js'
import { generateId } from '@nevermined-io/sdk'
import execCommand from '../helpers/ExecCommand'

describe('Assets e2e Testing', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration-tests/NFTs721.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import * as fs from 'fs'
import * as Path from 'path'
import execCommand from '../helpers/ExecCommand'
import { didZeroX } from '@nevermined-io/nevermined-sdk-js'
import { didZeroX } from '@nevermined-io/sdk'

describe('NFTs (ERC-721) e2e Testing', () => {
const abiPath = 'test/resources/nfts/TestNFT721.json'
Expand Down
2 changes: 1 addition & 1 deletion test/integration-tests/Provenance.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateId } from '@nevermined-io/nevermined-sdk-js'
import { generateId } from '@nevermined-io/sdk'
import { execOpts, metadataConfig, baseCommands } from '../helpers/Config'
import {
parseDIDFromNewAsset,
Expand Down

0 comments on commit 2cfcdcc

Please sign in to comment.