From 04f32998739ba3affffb8ce0b057d4d0b218c001 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 23 Nov 2021 20:17:34 +0100 Subject: [PATCH] profile constructor being updated --- .../Schemas/App-Schema/signing-account.json | 36 +++---------------- .../Function-Libraries/ProfileConstructor.js | 13 +++++-- 2 files changed, 15 insertions(+), 34 deletions(-) diff --git a/Projects/Governance/Schemas/App-Schema/signing-account.json b/Projects/Governance/Schemas/App-Schema/signing-account.json index 60e9db323..aa93c3f6a 100644 --- a/Projects/Governance/Schemas/App-Schema/signing-account.json +++ b/Projects/Governance/Schemas/App-Schema/signing-account.json @@ -25,6 +25,9 @@ "attachingRules": { "compatibleTypes": "->Signing Accounts->" }, + "referencingRules": { + "compatibleTypes": "->P2P Network Node->Algo Traders Platform->Social Trading Mobile App->Social Trading Desktop App->Social Trading Server App->" + }, "editors": { "config": true }, @@ -32,36 +35,5 @@ "config": "{}" }, "propertyNameAtParent": "signingAccounts", - "childrenNodesProperties": [ - { - "name": "signingAccountChild", - "type": "node", - "childType": "P2P Network Node", - "autoAdd": false - }, - { - "name": "signingAccountChild", - "type": "node", - "childType": "Algo Traders Platform", - "autoAdd": false - }, - { - "name": "signingAccountChild", - "type": "node", - "childType": "Social Trading Mobile App", - "autoAdd": false - }, - { - "name": "signingAccountChild", - "type": "node", - "childType": "Social Trading Desktop App", - "autoAdd": false - }, - { - "name": "signingAccountChild", - "type": "node", - "childType": "Social Trading Server App", - "autoAdd": false - } - ] + "childrenNodesProperties": [] } \ No newline at end of file diff --git a/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js b/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js index 285c171e5..327597641 100644 --- a/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js +++ b/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js @@ -1,6 +1,7 @@ function newGovernanceFunctionLibraryProfileConstructor() { let thisObject = { buildProfile: buildProfile, + installSecrets: installSecrets, addSigningAccount: addSigningAccount } @@ -139,6 +140,10 @@ function newGovernanceFunctionLibraryProfileConstructor() { */ userProfile.payload.uiObject.menu.internalClick('Install as Plugin') userProfile.payload.uiObject.menu.internalClick('Install as Plugin') + /* + Delete the mnemonic from the Profile Constructor config. + */ + node.config = "{}" /* Show nice message. */ @@ -157,6 +162,10 @@ function newGovernanceFunctionLibraryProfileConstructor() { } } + function installSecrets() { + + } + function addSigningAccount( node, rootNodes, @@ -251,11 +260,11 @@ function newGovernanceFunctionLibraryProfileConstructor() { } } - signUserProfileData(response.address, response.privateKey) + signSigningAccountData(response.address, response.privateKey) } } - function signUserProfileData(address, privateKey) { + function signSigningAccountData(address, privateKey) { let request = { url: 'WEB3',