From fe775bb2b389b0fc00971371b03efdde2366039e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 17 Oct 2020 16:41:47 +0200 Subject: [PATCH] Ethereum nodes --- Projects/Ethereum/Schemas/AppSchema.json | 142 ++++++++++++++++--- Projects/Superalgos/Schemas/AppSchema.json | 155 +++++++++++---------- 2 files changed, 207 insertions(+), 90 deletions(-) diff --git a/Projects/Ethereum/Schemas/AppSchema.json b/Projects/Ethereum/Schemas/AppSchema.json index f71bce7c7..6b3cbc8fd 100644 --- a/Projects/Ethereum/Schemas/AppSchema.json +++ b/Projects/Ethereum/Schemas/AppSchema.json @@ -1,27 +1,34 @@ [ { - "type": "Ethereum", + "type": "Ethereum Project", "menuItems": [ { "action": "Add UI Object", - "label": "Add Ethereum Network", - "relatedUiObject": "Ethereum Network", + "label": "Add Ethereum Blockchain", + "relatedUiObject": "Ethereum Blockchain", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Decentralized Application", + "relatedUiObject": "Decentralized Application", "actionFunction": "payload.executeAction" } ], - "isHProjectHead": true, - "isTitleAllwaysVisible": true, + "isProjectHead": true, + "isTitleAllwaysVisible": false, "addLeftIcons": true, "isPinned": true, - "positionLocked": true + "positionLocked": true, + "icon": "ethereum" }, { - "type": "Ethereum Network", + "type": "Ethereum Blockchain", "menuItems": [ { "action": "Add UI Object", - "label": "Add Network Node", - "relatedUiObject": "Network Node", + "label": "Add Blockchain Network", + "relatedUiObject": "Blockchain Network", "actionFunction": "payload.executeAction" }, { @@ -39,15 +46,50 @@ "level": 0, "properties": [ { - "name": "networkNodes", + "name": "blockchainNetworks", "type": "array", - "childType": "Network Node" + "childType": "Blockchain Network" } ], "icon": "ethereum" }, { - "type": "Network Node", + "type": "Blockchain Network", + "menuItems": [ + { + "action": "Add UI Object", + "label": "Add Network Client", + "relatedUiObject": "Network Client", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete", + "iconPathOff": "delete", + "actionFunction": "payload.executeAction" + } + ], + + "addLeftIcons": true, + "level": 1, + "chainAttachesTo": { + "compatibleTypes": "->Ethereum Blockchain->" + }, + "propertyNameAtParent": "blockchainNetworks", + "properties": [ + { + "name": "networkClients", + "type": "array", + "childType": "Network Client" + } + ], + "icon": "ethereum" + }, + { + "type": "Network Client", "menuItems": [ { "action": "Configure", @@ -71,18 +113,18 @@ "config": true }, "initialValues": { - "config": "{ \n\"host\": \"localhost\", \n\"webPort\": \"34248\", \n\"webSocketsPort\": \"8081\"\n}" + "config": "{ \n\"host\": \"localhost\", \n\"webSocketsPort\": \"8545\"\n}" }, "addLeftIcons": true, "level": 1, "chainAttachesTo": { - "compatibleTypes": "->Ethereum Network->" + "compatibleTypes": "->Blockchain Network->" }, - "propertyNameAtParent": "networkNodes", + "propertyNameAtParent": "networkClients", "icon": "ethereum" }, { - "type": "Ethereum Project", + "type": "Decentralized Application", "menuItems": [ { "action": "Add UI Object", @@ -105,11 +147,75 @@ "level": 0, "properties": [ { - "name": "networkNodes", + "name": "smartContracts", "type": "array", - "childType": "Network Node" + "childType": "Smart Contract" } ], "icon": "ethereum" + }, + { + "type": "Smart Contract", + "menuItems": [ + { + "action": "Add UI Object", + "disableIfPropertyIsDefined": true, + "propertyToCheckFor": "solidityCode", + "label": "Add Solidity Code", + "relatedUiObject": "Solidity Code", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete", + "iconPathOff": "delete", + "actionFunction": "payload.executeAction" + } + ], + "propertyNameAtParent": "smartContracts", + "addLeftIcons": true, + "level": 1, + "properties": [ + { + "name": "solidityCode", + "type": "node", + "childType": "Solidity Code" + } + ], + "icon": "ethereum" + }, + { + "type": "Solidity Code", + "menuItems": [ + { + "action": "Edit", + "actionFunction": "uiObject.codeEditor.activate", + "label": "Edit", + "iconPathOn": "ethereum", + "iconPathOff": "ethereum" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete", + "iconPathOff": "delete", + "actionFunction": "payload.executeAction" + } + ], + "editors": { + "code": true + }, + "initialValues": { + "code": "// Type your smart contract code here." + }, + "propertyNameAtParent": "solidityCode", + "addLeftIcons": true, + "level": 2, + "icon": "ethereum" } ] \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index 0654ab54a..38bc8b2a2 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -1,4 +1,87 @@ [ + { + "type": "Superalgos Project", + "menuItems": [ + { + "action": "Add UI Object", + "label": "Add Trading System", + "relatedUiObject": "Trading System", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Network", + "relatedUiObject": "Network", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Data Mine", + "relatedUiObject": "Data Mine", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Trading Mine", + "relatedUiObject": "Trading Mine", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Super Scripts", + "relatedUiObject": "Super Scripts", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Trading Engine", + "relatedUiObject": "Trading Engine", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Tutorial", + "relatedUiObject": "Tutorial", + "actionFunction": "payload.executeAction" + } + ], + "isProjectHead": true, + "isTitleAllwaysVisible": false, + "addLeftIcons": true, + "isPinned": true, + "positionLocked": true, + "icon": "bitcoin" + }, + { + "type": "Workspace", + "menuItems": [ + { + "action": "Pin / Unpin", + "currentStatus": true, + "iconPathOn": "unpinned", + "iconPathOff": "pinned", + "actionFunction": "payload.executeAction", + "ring": 1 + }, + { + "iconPathOn": "share", + "iconPathOff": "share", + "actionFunction": "canvas.designSpace.workspace.share", + "ring": 1 + }, + { + "iconPathOn": "backup", + "iconPathOff": "backup", + "actionFunction": "canvas.designSpace.workspace.backup", + "ring": 1 + } + ], + "isTitleAllwaysVisible": true, + "addLeftIcons": false, + "isPinned": true, + "positionLocked": true, + "level": 0 + }, { "type": "Plotter Module", "properties": [ @@ -1380,78 +1463,6 @@ ], "addLeftIcons": true }, - { - "type": "Workspace", - "menuItems": [ - { - "action": "Pin / Unpin", - "currentStatus": true, - "iconPathOn": "unpinned", - "iconPathOff": "pinned", - "actionFunction": "payload.executeAction", - "ring": 1 - }, - { - "iconPathOn": "share", - "iconPathOff": "share", - "actionFunction": "canvas.designSpace.workspace.share", - "ring": 1 - }, - { - "iconPathOn": "backup", - "iconPathOff": "backup", - "actionFunction": "canvas.designSpace.workspace.backup", - "ring": 1 - }, - { - "action": "Add UI Object", - "label": "Add Trading System", - "relatedUiObject": "Trading System", - "actionFunction": "payload.executeAction" - }, - { - "action": "Add UI Object", - "label": "Add Network", - "relatedUiObject": "Network", - "actionFunction": "payload.executeAction" - }, - { - "action": "Add UI Object", - "label": "Add Data Mine", - "relatedUiObject": "Data Mine", - "actionFunction": "payload.executeAction" - }, - { - "action": "Add UI Object", - "label": "Add Trading Mine", - "relatedUiObject": "Trading Mine", - "actionFunction": "payload.executeAction" - }, - { - "action": "Add UI Object", - "label": "Add Super Scripts", - "relatedUiObject": "Super Scripts", - "actionFunction": "payload.executeAction" - }, - { - "action": "Add UI Object", - "label": "Add Trading Engine", - "relatedUiObject": "Trading Engine", - "actionFunction": "payload.executeAction" - }, - { - "action": "Add UI Object", - "label": "Add Tutorial", - "relatedUiObject": "Tutorial", - "actionFunction": "payload.executeAction" - } - ], - "isHProjectHead": true, - "isTitleAllwaysVisible": true, - "addLeftIcons": false, - "isPinned": true, - "positionLocked": true - }, { "type": "Situation", "menuItems": [