diff --git a/sdk/README.md b/sdk/README.md index 03894751..db9b4507 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -207,9 +207,9 @@ pnpm portal simulateRegister '{\"id\":\"0xD39c439cD3Ae5E1F3c7d13985aDAC908462849 pnpm portal register '{\"id\":\"0xD39c439cD3Ae5E1F3c7d13985aDAC90846284904\",\"name\":\"test\",\"description\":\"example\",\"isRevocable\":true,\"ownerName\":\"test\"}' -pnpm portal simulateClone '{\"modules\":[],\"name\":\"test\",\"description\":\"example\",\"isRevocable\":true,\"ownerName\":\"test\"}' +pnpm portal simulateDeployDefaultPortal '{\"modules\":[],\"name\":\"test\",\"description\":\"example\",\"isRevocable\":true,\"ownerName\":\"test\"}' -pnpm portal clone '{\"modules\":[],\"name\":\"test\",\"description\":\"example\",\"isRevocable\":true,\"ownerName\":\"test\"}' +pnpm portal deployDefaultPortal '{\"modules\":[],\"name\":\"test\",\"description\":\"example\",\"isRevocable\":true,\"ownerName\":\"test\"}' pnpm portal getPortalByAddress '{\"portalAddress\":\"0x8b833796869b5debb9b06370d6d47016f0d7973b\"}' diff --git a/sdk/examples/portal/portalExamples.ts b/sdk/examples/portal/portalExamples.ts index fed877af..f242a7df 100644 --- a/sdk/examples/portal/portalExamples.ts +++ b/sdk/examples/portal/portalExamples.ts @@ -152,9 +152,6 @@ export default class PortalExamples { console.log(await this.veraxSdk.portal.bulkRevoke(portalAddress, attestationIds)); } - if (methodName.toLowerCase() == "massImport".toLowerCase() || methodName == "") - console.log(await this.veraxSdk.portal.massImport()); - if (methodName.toLowerCase() == "simulateRegister".toLowerCase() || methodName == "") { let params; if (argv !== "") params = JSON.parse(argv); @@ -181,7 +178,7 @@ export default class PortalExamples { console.log(await this.veraxSdk.portal.register(id, name, description, isRevocable, ownerName)); } - if (methodName.toLowerCase() == "simulateClone".toLowerCase() || methodName == "") { + if (methodName.toLowerCase() == "simulateDeployDefaultPortal".toLowerCase() || methodName == "") { let params; if (argv !== "") params = JSON.parse(argv); const { modules, name, description, isRevocable, ownerName } = params ?? { @@ -191,10 +188,12 @@ export default class PortalExamples { isRevocable: true, ownerName: "test", }; - console.log(await this.veraxSdk.portal.simulateClone(modules, name, description, isRevocable, ownerName)); + console.log( + await this.veraxSdk.portal.simulateDeployDefaultPortal(modules, name, description, isRevocable, ownerName), + ); } - if (methodName.toLowerCase() == "clone".toLowerCase() || methodName == "") { + if (methodName.toLowerCase() == "deployDefaultPortal".toLowerCase() || methodName == "") { let params; if (argv !== "") params = JSON.parse(argv); const { modules, name, description, isRevocable, ownerName } = params ?? { @@ -204,7 +203,7 @@ export default class PortalExamples { isRevocable: true, ownerName: "test", }; - console.log(await this.veraxSdk.portal.clone(modules, name, description, isRevocable, ownerName)); + console.log(await this.veraxSdk.portal.deployDefaultPortal(modules, name, description, isRevocable, ownerName)); } if (methodName.toLowerCase() == "getPortalByAddress".toLowerCase() || methodName == "") { @@ -224,9 +223,5 @@ export default class PortalExamples { : "0x8b833796869b5debb9b06370d6d47016f0d7973b"; console.log(await this.veraxSdk.portal.isPortalRegistered(portalAddress)); } - - if (methodName.toLowerCase() == "getPortalsCount".toLocaleLowerCase() || methodName == "") { - console.log(await this.veraxSdk.portal.getPortalsCount()); - } } } diff --git a/sdk/src/dataMapper/PortalDataMapper.ts b/sdk/src/dataMapper/PortalDataMapper.ts index 90bc2d98..957994eb 100644 --- a/sdk/src/dataMapper/PortalDataMapper.ts +++ b/sdk/src/dataMapper/PortalDataMapper.ts @@ -42,11 +42,7 @@ export default class PortalDataMapper extends BaseDataMapper