profile constructor being updated

This commit is contained in:
Luis Fernando Molina committed 2021-11-23 20:17:34 +01:00
1 parent 81b93abb6f
commit 04f3299873
2 files changed
+15 -34

No files matched your search

@@ -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": []
}
@@ -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',