Governance: Install Votes Implemented
This commit is contained in:
1 parent
be7ef9fbd9
commit
66b9843466
17 files changed
+626
-270
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1 @@
|
||||
{"type":"Pools","name":"Foundations-Project-Assets","config":"{\n}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Software","config":"{\n \"description\": \"\"\n}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Codebase","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"User Interface","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"a695c354-6821-477e-8350-d28d1a476d65","savedPayload":{"position":{"x":36129.33058239043,"y":30692.557004044884},"targetPosition":{"x":35844.01362750188,"y":30785.262102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Task Server","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"09ff6969-0db8-447d-bb74-f4b8e42ca664","savedPayload":{"position":{"x":36129.33058239043,"y":30877.96720066985},"targetPosition":{"x":35844.01362750188,"y":30785.262102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"App Schemas","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"a8a7340e-bf30-4430-b9fc-a9b8970c8e80","savedPayload":{"position":{"x":36020.349203189624,"y":31027.96720066985},"targetPosition":{"x":35844.01362750188,"y":30785.262102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Custom Code","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"20a49374-7b9f-47bd-a845-a7bf0dc6be97","savedPayload":{"position":{"x":35844.01362750188,"y":31085.262102357367},"targetPosition":{"x":35844.01362750188,"y":30785.262102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"id":"c22cc1e5-fe91-4b54-83e3-2ada4ae61f6a","savedPayload":{"position":{"x":35844.01362750188,"y":30785.262102357367},"targetPosition":{"x":35601.308529189395,"y":30608.926526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"pools":[{"type":"Pool","name":"Education","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"6b5e750c-b58e-4a5c-a420-ec0c78a2186a","savedPayload":{"position":{"x":35694.01362750188,"y":30894.24348155817},"targetPosition":{"x":35601.308529189395,"y":30608.926526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Multi-Media","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"6b209659-a36f-4cc8-bfa3-69eb236b01fb","savedPayload":{"position":{"x":35508.60343087691,"y":30894.24348155817},"targetPosition":{"x":35601.308529189395,"y":30608.926526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Plugins","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"05ebb77a-2d6e-497e-bdab-51bafbad6381","savedPayload":{"position":{"x":35358.60343087691,"y":30785.262102357367},"targetPosition":{"x":35601.308529189395,"y":30608.926526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"referenceParent":{"type":"Assets","name":"Foundations-Project-Plugins","id":"821486a9-5ad1-44a7-bf61-6fc3ef1b72c6"}}}],"id":"365c666c-0deb-47a8-a4df-6470cf1efd5f","savedPayload":{"position":{"x":35601.308529189395,"y":30608.926526669624},"targetPosition":{"x":35601.308529189395,"y":30308.926526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"pools":[],"id":"e8a75234-0edf-4d55-8a01-b35d7820eea1","savedPayload":{"position":{"x":35601.308529189395,"y":30308.926526669624},"targetPosition":{"x":35601.308529189395,"y":30308.926526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"type":"Pools","name":"Foundations-Project","config":"{\n}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Software","config":"{\n \"description\": \"\"\n}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Assets","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Software Assets ","config":"{\n \"description\": \"\", \"relativeWeight\": 0 \n}","project":"Governance","poolClasses":[],"pools":[],"id":"05da7d34-dbc4-486c-8054-891747d17572","savedPayload":{"position":{"x":30801.71872581436,"y":30956.09767804511},"targetPosition":{"x":30559.013627501878,"y":30779.762102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"referenceParent":{"type":"Pools","name":"Foundations-Project-Assets","id":"e8a75234-0edf-4d55-8a01-b35d7820eea1"}}}],"id":"301a35d2-37bc-4cb3-b95e-ad777ab2b13f","savedPayload":{"position":{"x":30559.013627501878,"y":30779.762102357367},"targetPosition":{"x":30316.308529189395,"y":30603.426526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Features","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Features","config":"{\n \"description\": \"\", \"relativeWeight\": 0 \n}","project":"Governance","poolClasses":[],"pools":[],"id":"7a256c07-dfb5-4f89-8cf7-424f9ce257e5","savedPayload":{"position":{"x":30501.71872581436,"y":31174.060436446714},"targetPosition":{"x":30409.013627501878,"y":30888.74348155817},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"referenceParent":{"type":"Features","name":"Foundations-Project","id":"1d2c1985-c762-4ece-b350-15bd893bd1f4"}}}],"id":"41a9403c-2e4d-4432-8169-86579f2e34b6","savedPayload":{"position":{"x":30409.013627501878,"y":30888.74348155817},"targetPosition":{"x":30316.308529189395,"y":30603.426526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Organization","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Positions","config":"{\n \"description\": \"\", \"relativeWeight\": 0 \n}","project":"Governance","poolClasses":[],"pools":[],"id":"f54a5953-de81-4c7b-af6a-f41bce854590","savedPayload":{"position":{"x":30130.89833256443,"y":31174.060436446714},"targetPosition":{"x":30223.603430876912,"y":30888.74348155817},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"referenceParent":{"type":"Positions","name":"Foundations-Project","id":"50c68665-5da2-48a8-b229-7a1563ae82d2"}}}],"id":"34876a2a-9cf0-4d58-8534-56d0d5ca7693","savedPayload":{"position":{"x":30223.603430876912,"y":30888.74348155817},"targetPosition":{"x":30316.308529189395,"y":30603.426526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Mantainance","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Bug Fixes","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"654f41c2-a640-4021-acf8-9b6b924bbc63","savedPayload":{"position":{"x":29951.582437954174,"y":31053.825739650147},"targetPosition":{"x":30073.603430876912,"y":30779.762102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Improvements","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"a9d8e26e-e18a-4014-89e1-8eb5d1fcf703","savedPayload":{"position":{"x":29775.24686226643,"y":30811.120641337664},"targetPosition":{"x":30073.603430876912,"y":30779.762102357367},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"id":"a6a443dd-9b50-4aa7-9cef-21aab3f3eda2","savedPayload":{"position":{"x":30073.603430876912,"y":30779.762102357367},"targetPosition":{"x":30316.308529189395,"y":30603.426526669624},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"pools":[],"id":"54f1b23c-fbf2-48aa-9b65-da90f001d776","savedPayload":{"position":{"x":30316.308529189395,"y":30603.426526669624},"targetPosition":{"x":30316.308529189395,"y":30303.426526669624},"floatingObject":{"isPinned":faLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
{"type":"Pools","name":"Superalgos-Pool","config":"{\n \"tokens\": \"10000000\"\n}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Software","config":"{\n \"description\": \"\"\n}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Foundations Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"2207c69c-ee9d-4453-8bf4-582d79b4b635","savedPayload":{"position":{"x":25440.308529189395,"y":30059.118905534284},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"referenceParent":{"type":"Pools","name":"Foundations-Project","id":"c078377e-55af-48ae-921d-bffda8ba41f4"}}},{"type":"Pool","name":"TensorFlow Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"ea854cf8-47cd-43f0-b58a-13e61ae3106d","savedPayload":{"position":{"x":25550.116150324728,"y":30168.926526669617},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Governance Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"3c80032c-51a8-4fd8-ab65-cf219c03ce95","savedPayload":{"position":{"x":25590.308529189395,"y":30318.926526669617},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Education Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"0a79ec65-6f67-4c18-823f-48a6d0494a81","savedPayload":{"position":{"x":25550.116150324728,"y":30468.926526669617},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Ethereum Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"f51d23aa-742c-40d4-b000-2b90c3ae197c","savedPayload":{"position":{"x":25440.308529189395,"y":30578.73414780495},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"id":"a987f1d3-fc8d-4b7c-99dd-77f15a32f37d","savedPayload":{"position":{"x":25290.308529189395,"y":30318.926526669617},"targetPosition":{"x":24990.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Marketing","config":"{}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Collective Rewards","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"First Exchange Listing The Token","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"6a456247-13b7-41f2-80b3-957c1af55009","savedPayload":{"position":{"x":25400.116150324728,"y":31028.73414780495},"targetPosition":{"x":25140.308529189395,"y":30878.73414780495},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"10K Stars on Github","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"5bbe5a09-fe32-4802-8e14-d06615a24510","savedPayload":{"position":{"x":25140.308529189395,"y":31178.73414780495},"targetPosition":{"x":25140.308529189395,"y":30878.73414780495},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"id":"95431b88-cbff-459c-a707-fd3518e79c73","savedPayload":{"position":{"x":25140.308529189395,"y":30878.73414780495},"targetPosition":{"x":24990.308529189395,"y":30618.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Assets","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Marketing Assets","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"6b4bee15-622d-4df6-9662-4d7b8d44f198","savedPayload":{"position":{"x":24690.308529189395,"y":31138.541768940282},"targetPosition":{"x":24840.308529189395,"y":30878.73414780495},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStylLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"type":"Pools","name":"Superalgos","config":"{\n \"tokens\": \"10000000\"\n}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Software","config":"{\n \"description\": \"\"\n}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Foundations Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"2207c69c-ee9d-4453-8bf4-582d79b4b635","savedPayload":{"position":{"x":25440.308529189395,"y":30059.118905534284},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"referenceParent":{"type":"Pools","name":"Foundations-Project","id":"c078377e-55af-48ae-921d-bffda8ba41f4"}}},{"type":"Pool","name":"TensorFlow Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"ea854cf8-47cd-43f0-b58a-13e61ae3106d","savedPayload":{"position":{"x":25550.116150324728,"y":30168.926526669617},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Governance Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"3c80032c-51a8-4fd8-ab65-cf219c03ce95","savedPayload":{"position":{"x":25590.308529189395,"y":30318.926526669617},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Education Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"0a79ec65-6f67-4c18-823f-48a6d0494a81","savedPayload":{"position":{"x":25550.116150324728,"y":30468.926526669617},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"Ethereum Project","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"f51d23aa-742c-40d4-b000-2b90c3ae197c","savedPayload":{"position":{"x":25440.308529189395,"y":30578.73414780495},"targetPosition":{"x":25290.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"id":"a987f1d3-fc8d-4b7c-99dd-77f15a32f37d","savedPayload":{"position":{"x":25290.308529189395,"y":30318.926526669617},"targetPosition":{"x":24990.308529189395,"y":30318.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Marketing","config":"{}","project":"Governance","poolClasses":[{"type":"Pool Class","name":"Collective Rewards","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"First Exchange Listing The Token","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"6a456247-13b7-41f2-80b3-957c1af55009","savedPayload":{"position":{"x":25400.116150324728,"y":31028.73414780495},"targetPosition":{"x":25140.308529189395,"y":30878.73414780495},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool","name":"10K Stars on Github","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"5bbe5a09-fe32-4802-8e14-d06615a24510","savedPayload":{"position":{"x":25140.308529189395,"y":31178.73414780495},"targetPosition":{"x":25140.308529189395,"y":30878.73414780495},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}],"id":"95431b88-cbff-459c-a707-fd3518e79c73","savedPayload":{"position":{"x":25140.308529189395,"y":30878.73414780495},"targetPosition":{"x":24990.308529189395,"y":30618.926526669617},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Pool Class","name":"Assets","config":"{}","project":"Governance","poolClasses":[],"pools":[{"type":"Pool","name":"Marketing Assets","config":"{}","project":"Governance","poolClasses":[],"pools":[],"id":"6b4bee15-622d-4df6-9662-4d7b8d44f198","savedPayload":{"position":{"x":24690.308529189395,"y":31138.541768940282},"targetPosition":{"x":24840.308529189395,"y":30878.73414780495},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0}Line truncated
|
||||
@@ -1 +1 @@
|
||||
{"type":"Workspace","name":"Governance-Demo","rootNodes":[{"type":"Design Space","name":"My Design Space","project":"Foundations","spaceStyle":{"type":"Space Style","name":"My Space Style","config":"{\n \"backgroundColor\": \"UI_COLOR.BLACK\",\n \"node\": {\n \"fontSize\": 16,\n \"imageSize\": 60,\n \"type\": {\n \"fontColor\": \"UI_COLOR.WHITE\"\n },\n \"name\": {\n \"fontColor\": \"UI_COLOR.WHITE\"\n },\n \"menuItem\": {\n \"backgroundColor\": \"UI_COLOR.BLACK\",\n \"fontColor\": \"UI_COLOR.WHITE\",\n \"fontSize\": 14,\n \"imageSize\": 14\n }\n }\n}","project":"Foundations","id":"fad0e429-f7a7-4b62-a2a5-2ead29b8f695","savedPayload":{"position":{"x":25240.875,"y":10717.347826086958},"targetPosition":{"x":24940.875,"y":10717.347826086958},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"spaceSettings":{"type":"Space Settings","name":"New Space Settings","config":"{\n \"node\": {\n \"distancePercentage\": 60,\n \"radiusPercentage\": 85,\n \"massPercentage\": 100,\n \"animationSteps\": 2,\n \"menuItem\": {\n \"widthPercentage\": 100,\n \"heightPercentage\": 60,\n \"radiusPercentage\": 90\n }\n },\n \"physics\": false\n}","project":"Foundations","id":"05c9d6d5-24c4-4eec-9aca-9668d6486fdd","savedPayload":{"position":{"x":24640.875,"y":10717.347826086958},"targetPosition":{"x":24940.875,"y":10717.347826086958},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"id":"f8485ce5-67f3-4476-b9e2-80994e49c318","savedPayload":{"position":{"x":24940.875,"y":10717.347826086958},"targetPosition":{"x":24940.875,"y":10717.347826086958},"floatingObject":{"isPinned":true,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"frame":{"position":{"x":255,"y":588.3125}}}},{"type":"APIs","name":"New APIs","project":"Foundations","githubAPI":{"type":"Github API","name":"New Github API","config":"{\n \"username\": \"\",\n \"token\": \"\"\n}","project":"Foundations","id":"90d121ab-9f19-4437-a051-1222287085fc","savedPayload":{"position":{"x":30630.458333333332,"y":10730.006707946337},"targetPosition":{"x":30330.458333333332,"y":10730.006707946337},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":true,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"id":"23021bb7-9997-4fe6-8199-71ebf70aef76","savedPayload":{"position":{"x":30330.458333333332,"y":10730.006707946337},"targetPosition":{"x":30330.458333333332,"y":10730.006707946337},"floatingObject":{"isPinned":true,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Governance Project","name":"New Governance Project","project":"Governance","projectDefinition":{"type":"Project Definition","name":"Governance","config":"{ \n \"codeName\": \"Governance\"\n}","project":"Foundations","id":"ba1aa656-d184-493a-b332-e4db109065f0","savedPayload":{"position":{"x":13832,"y":10738.5},"targetPosition":{"x":13532,"y":10738.5},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"id":"db380c52-cf90-475b-87df-c005dd51cdf6","savedPayload":{"position":{"x":13532,"y":10738.5},"targetPosition":{"x":13532,"y":10738.5},"floatingObject":{"isPinned":true,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"User Profile","name":"Luis Fernando Molina","config":"{\n \"codeName\": \"Jun 2021\",\n \"tokens\": 1000000\n}","project":"Governance","contributionClaims":{"type":"Contribution Claims","name":"New Contribution Claims","config":"{\n\"codeName\": \"\"\n}","project":"Governance","assetContributionsFolder":[{"type":"Asset Contributions Folder","name":"Software","config":"{\n \"description\": \"\"\n}","project":"Governance","assetContributionsFolder":[{"type":"Asset Contributions Folder","name":"Plugins","config":"{\n \"description\": \"\"\n}","project":"Governance","assetContributionsFolder":[{"type":"Asset Contributions Folder","name":"Data-Mines","config":"{\n \"description\": \"\"\n}","project":"Governance","assetContributionsFolder":[],"assetContributionClaims":[{"type":"Asset Contribution Claim","name":"Plugins Data-Mines Candles","config":"{\n \"description\": \"\"\n}","project":"Governance","id":"f44b3d0f-cb22-4f0f-a550-ce53224db391","savedPayload":{"position":{"x":29746.912956127882,"y":22479.311870400597},"targetPosition":{"x":30184.228161873478,"y":22373.220349421354},"floatingObject":{"isPinneLine truncated
|
||||
{"type":"Workspace","name":"Governance-Demo","rootNodes":[{"type":"Design Space","name":"My Design Space","project":"Foundations","spaceStyle":{"type":"Space Style","name":"My Space Style","config":"{\n \"backgroundColor\": \"UI_COLOR.BLACK\",\n \"node\": {\n \"fontSize\": 16,\n \"imageSize\": 60,\n \"type\": {\n \"fontColor\": \"UI_COLOR.WHITE\"\n },\n \"name\": {\n \"fontColor\": \"UI_COLOR.WHITE\"\n },\n \"menuItem\": {\n \"backgroundColor\": \"UI_COLOR.BLACK\",\n \"fontColor\": \"UI_COLOR.WHITE\",\n \"fontSize\": 14,\n \"imageSize\": 14\n }\n }\n}","project":"Foundations","id":"fad0e429-f7a7-4b62-a2a5-2ead29b8f695","savedPayload":{"position":{"x":25240.875,"y":10717.347826086958},"targetPosition":{"x":24940.875,"y":10717.347826086958},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"spaceSettings":{"type":"Space Settings","name":"New Space Settings","config":"{\n \"node\": {\n \"distancePercentage\": 60,\n \"radiusPercentage\": 85,\n \"massPercentage\": 100,\n \"animationSteps\": 2,\n \"menuItem\": {\n \"widthPercentage\": 100,\n \"heightPercentage\": 60,\n \"radiusPercentage\": 90\n }\n },\n \"physics\": false\n}","project":"Foundations","id":"05c9d6d5-24c4-4eec-9aca-9668d6486fdd","savedPayload":{"position":{"x":24640.875,"y":10717.347826086958},"targetPosition":{"x":24940.875,"y":10717.347826086958},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"id":"f8485ce5-67f3-4476-b9e2-80994e49c318","savedPayload":{"position":{"x":24940.875,"y":10717.347826086958},"targetPosition":{"x":24940.875,"y":10717.347826086958},"floatingObject":{"isPinned":true,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false},"frame":{"position":{"x":255,"y":588.3125}}}},{"type":"APIs","name":"New APIs","project":"Foundations","githubAPI":{"type":"Github API","name":"New Github API","config":"{\n \"username\": \"\",\n \"token\": \"\"\n}","project":"Foundations","id":"90d121ab-9f19-4437-a051-1222287085fc","savedPayload":{"position":{"x":30630.458333333332,"y":10730.006707946337},"targetPosition":{"x":30330.458333333332,"y":10730.006707946337},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":true,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"id":"23021bb7-9997-4fe6-8199-71ebf70aef76","savedPayload":{"position":{"x":30330.458333333332,"y":10730.006707946337},"targetPosition":{"x":30330.458333333332,"y":10730.006707946337},"floatingObject":{"isPinned":true,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"Governance Project","name":"New Governance Project","project":"Governance","projectDefinition":{"type":"Project Definition","name":"Governance","config":"{ \n \"codeName\": \"Governance\"\n}","project":"Foundations","id":"ba1aa656-d184-493a-b332-e4db109065f0","savedPayload":{"position":{"x":13832,"y":10738.5},"targetPosition":{"x":13532,"y":10738.5},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{}}},"id":"db380c52-cf90-475b-87df-c005dd51cdf6","savedPayload":{"position":{"x":13532,"y":10738.5},"targetPosition":{"x":13532,"y":10738.5},"floatingObject":{"isPinned":true,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},{"type":"User Profile","name":"Luis Fernando Molina","config":"{\n \"codeName\": \"Jun 2021\",\n \"tokens\": 1000000\n}","project":"Governance","contributionClaims":{"type":"Contribution Claims","name":"New Contribution Claims","config":"{\n\"codeName\": \"\"\n}","project":"Governance","assetContributionsFolder":[{"type":"Asset Contributions Folder","name":"Software","config":"{\n \"description\": \"\"\n}","project":"Governance","assetContributionsFolder":[{"type":"Asset Contributions Folder","name":"Plugins","config":"{\n \"description\": \"\"\n}","project":"Governance","assetContributionsFolder":[{"type":"Asset Contributions Folder","name":"Data-Mines","config":"{\n \"description\": \"\"\n}","project":"Governance","assetContributionsFolder":[],"assetContributionClaims":[{"type":"Asset Contribution Claim","name":"Plugins Data-Mines Candles","config":"{\n \"description\": \"\"\n}","project":"Governance","id":"f44b3d0f-cb22-4f0f-a550-ce53224db391","savedPayload":{"position":{"x":29746.912956127882,"y":22479.311870400597},"targetPosition":{"x":30184.228161873478,"y":22373.220349421354},"floatingObject":{"isPinneLine truncated
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"type": "Claim Votes Switch",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Configure",
|
||||
"actionFunction": "uiObject.configEditor.activate",
|
||||
"label": "Configure",
|
||||
"iconPathOn": "configuration",
|
||||
"iconPathOff": "configuration"
|
||||
},
|
||||
{
|
||||
"action": "Install Votes",
|
||||
"actionProject": "Governance",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Install Votes",
|
||||
"relatedUiObject": "Weight Votes Switch",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Install"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Claim Votes Switch",
|
||||
"relatedUiObject": "Claim Votes Switch"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Position Claim Vote",
|
||||
"relatedUiObject": "Position Claim Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Asset Claim Vote",
|
||||
"relatedUiObject": "Asset Claim Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Feature Claim Vote",
|
||||
"relatedUiObject": "Feature Claim Vote"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity",
|
||||
"actionFunction": "payload.executeAction"
|
||||
}
|
||||
],
|
||||
"editors": {
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{}"
|
||||
},
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Pools->Pool Class->Assets->Asset Class->Features->Feature Class->Positions->Position Class->"
|
||||
},
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Claim Votes Switch->Votes Switch->"
|
||||
},
|
||||
"propertyNameAtParent": "claimVsotesSwitch",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "claimVotesSwitch",
|
||||
"type": "array",
|
||||
"childType": "Claim Votes Switch",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "positionClaimVotes",
|
||||
"type": "array",
|
||||
"childType": "Position Claim Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "assetClaimVotes",
|
||||
"type": "array",
|
||||
"childType": "Asset Claim Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "featureClaimVotes",
|
||||
"type": "array",
|
||||
"childType": "Feature Claim Vote",
|
||||
"autoAdd": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "User Vote Transfer",
|
||||
"type": "User Profile Vote",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Configure",
|
||||
@@ -36,5 +36,5 @@
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->User Profile->"
|
||||
},
|
||||
"propertyNameAtParent": "userVoteTransfers"
|
||||
"propertyNameAtParent": "userProfileVote"
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"type": "User Profile Votes Switch",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Configure",
|
||||
"actionFunction": "uiObject.configEditor.activate",
|
||||
"label": "Configure",
|
||||
"iconPathOn": "configuration",
|
||||
"iconPathOff": "configuration"
|
||||
},
|
||||
{
|
||||
"action": "Install Votes",
|
||||
"actionProject": "Governance",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Install Votes",
|
||||
"relatedUiObject": "Weight Votes Switch",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Install"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add User Profile Votes Switch",
|
||||
"relatedUiObject": "User Profile Votes Switch"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add User Profile Vote",
|
||||
"relatedUiObject": "User Profile Vote"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity",
|
||||
"actionFunction": "payload.executeAction"
|
||||
}
|
||||
],
|
||||
"editors": {
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{}"
|
||||
},
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Pools->Pool Class->Assets->Asset Class->Features->Feature Class->Positions->Position Class->"
|
||||
},
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->User Profile Votes Switch->Votes Switch->"
|
||||
},
|
||||
"propertyNameAtParent": "userProfileVotesSwitch",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "userProfileotesSwitch",
|
||||
"type": "array",
|
||||
"childType": "User Profile Votes Switch",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "userProfileVote",
|
||||
"type": "array",
|
||||
"childType": "User Profile Vote",
|
||||
"autoAdd": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -8,6 +8,15 @@
|
||||
"iconPathOn": "configuration",
|
||||
"iconPathOff": "configuration"
|
||||
},
|
||||
{
|
||||
"action": "Install Votes",
|
||||
"actionProject": "Governance",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Install Votes",
|
||||
"relatedUiObject": "Weight Votes Switch",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Install"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
@@ -19,57 +28,22 @@
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Pool Weight Vote",
|
||||
"relatedUiObject": "Pool Weight Vote"
|
||||
"label": "Add Claim Votes Switch",
|
||||
"relatedUiObject": "Claim Votes Switch"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Position Weight Vote",
|
||||
"relatedUiObject": "Position Weight Vote"
|
||||
"label": "Add Weight Votes Switch",
|
||||
"relatedUiObject": "Weight Votes Switch"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Asset Weight Vote",
|
||||
"relatedUiObject": "Asset Weight Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Feature Weight Vote",
|
||||
"relatedUiObject": "Feature Weight Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Position Claim Vote",
|
||||
"relatedUiObject": "Position Claim Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Asset Claim Vote",
|
||||
"relatedUiObject": "Asset Claim Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Feature Claim Vote",
|
||||
"relatedUiObject": "Feature Claim Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add User Vote Transfer",
|
||||
"relatedUiObject": "User Vote Transfer"
|
||||
"label": "Add User Profile Votes Switch",
|
||||
"relatedUiObject": "User Profile Votes Switch"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
@@ -102,51 +76,21 @@
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "poolWeightVotes",
|
||||
"name": "claimVotesSwitch",
|
||||
"type": "array",
|
||||
"childType": "Pool Weight Vote",
|
||||
"childType": "Claim Votes Switch",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "assetWeightVotes",
|
||||
"name": "weightVotesSwitch",
|
||||
"type": "array",
|
||||
"childType": "Asset Weight Vote",
|
||||
"childType": "Weight Votes Switch",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "featureWeightVotes",
|
||||
"name": "userProfileotesSwitch",
|
||||
"type": "array",
|
||||
"childType": "Feature Weight Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "positionClaimVotes",
|
||||
"type": "array",
|
||||
"childType": "Position Claim Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "assetClaimVotes",
|
||||
"type": "array",
|
||||
"childType": "Asset Claim Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "featureClaimVotes",
|
||||
"type": "array",
|
||||
"childType": "Feature Claim Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "positionWeightVotes",
|
||||
"type": "array",
|
||||
"childType": "Position Weight Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "userVoteTransfers",
|
||||
"type": "array",
|
||||
"childType": "User Vote Transfer",
|
||||
"childType": "User Profile Votes Switch",
|
||||
"autoAdd": false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"type": "Weight Votes Switch",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Configure",
|
||||
"actionFunction": "uiObject.configEditor.activate",
|
||||
"label": "Configure",
|
||||
"iconPathOn": "configuration",
|
||||
"iconPathOff": "configuration"
|
||||
},
|
||||
{
|
||||
"action": "Install Votes",
|
||||
"actionProject": "Governance",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Install Votes",
|
||||
"relatedUiObject": "Weight Votes Switch",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Install"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Weight Votes Switch",
|
||||
"relatedUiObject": "Weight Votes Switch"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Pool Weight Vote",
|
||||
"relatedUiObject": "Pool Weight Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Position Weight Vote",
|
||||
"relatedUiObject": "Position Weight Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Asset Weight Vote",
|
||||
"relatedUiObject": "Asset Weight Vote"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add Feature Weight Vote",
|
||||
"relatedUiObject": "Feature Weight Vote"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity",
|
||||
"actionFunction": "payload.executeAction"
|
||||
}
|
||||
],
|
||||
"editors": {
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{}"
|
||||
},
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->Pools->Pool Class->Assets->Asset Class->Features->Feature Class->Positions->Position Class->"
|
||||
},
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Weight Votes Switch->Votes Switch->"
|
||||
},
|
||||
"propertyNameAtParent": "weightVotesSwitch",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "weightVotesSwitch",
|
||||
"type": "array",
|
||||
"childType": "Weight Votes Switch",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "poolWeightVotes",
|
||||
"type": "array",
|
||||
"childType": "Pool Weight Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "assetWeightVotes",
|
||||
"type": "array",
|
||||
"childType": "Asset Weight Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "featureWeightVotes",
|
||||
"type": "array",
|
||||
"childType": "Feature Weight Vote",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
"name": "positionWeightVotes",
|
||||
"type": "array",
|
||||
"childType": "Position Weight Vote",
|
||||
"autoAdd": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "User Vote Transfer",
|
||||
"type": "User Profile Vote",
|
||||
"definition": {
|
||||
"text": "This node allows users to transfer some of their voting power to other users, effectively creating a Liquid Democracy. Votes received by users are then flowed through the recipient user's token streams, increasing their size.",
|
||||
"updated": 1622989097099
|
||||
|
||||
@@ -18,12 +18,16 @@ function newGovernanceActionSwitch() {
|
||||
|
||||
async function executeAction(action) {
|
||||
switch (action.name) {
|
||||
case 'Install Assets': {
|
||||
case 'Install Assets':
|
||||
{
|
||||
UI.projects.governance.functionLibraries.assets.installAssets(action.node, action.rootNodes)
|
||||
break
|
||||
}
|
||||
}
|
||||
case 'Install Votes':
|
||||
{
|
||||
UI.projects.governance.functionLibraries.votes.installVotes(action.node, action.rootNodes)
|
||||
break
|
||||
}
|
||||
case 'Add Missing Plugin User Profiles':
|
||||
{
|
||||
UI.projects.governance.functionLibraries.pluginsFunctions.addMissingPluginUserProfiles(action.node, action.rootNodes)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
function newGovernanceFunctionLibraryVotes() {
|
||||
let thisObject = {
|
||||
calculate: calculate
|
||||
calculate: calculate,
|
||||
installVotes: installVotes
|
||||
}
|
||||
|
||||
return thisObject
|
||||
@@ -46,148 +47,134 @@ function newGovernanceFunctionLibraryVotes() {
|
||||
let userProfile = userProfiles[i]
|
||||
distributeForProfile(userProfile)
|
||||
}
|
||||
}
|
||||
|
||||
function resetVotes(node) {
|
||||
if (node === undefined) { return }
|
||||
if (node.payload === undefined) { return }
|
||||
node.payload.votes = 0
|
||||
/*
|
||||
When we reach certain node types, we will halt the distribution, because thse are targets for
|
||||
voting power.
|
||||
*/
|
||||
if (
|
||||
node.type === 'Position' ||
|
||||
node.type === 'Asset' ||
|
||||
node.type === 'Feature' ||
|
||||
node.type === 'Pool' ||
|
||||
node.type === 'Position Contribution Claim' ||
|
||||
node.type === 'Asset Contribution Claim' ||
|
||||
node.type === 'Feature Contribution Claim'
|
||||
) { return }
|
||||
/*
|
||||
If there is a reference parent defined, this means that the voting power is
|
||||
transfered to it and not distributed among children.
|
||||
*/
|
||||
if (
|
||||
node.payload.referenceParent !== undefined &&
|
||||
node.type !== 'Asset Class' &&
|
||||
node.type !== 'Feature Class' &&
|
||||
node.type !== 'Position Class'
|
||||
) {
|
||||
resetVotes(node.payload.referenceParent)
|
||||
return
|
||||
}
|
||||
/*
|
||||
If there is no reference parent we will redistribute voting power among children.
|
||||
*/
|
||||
let schemaDocument = getSchemaDocument(node)
|
||||
if (schemaDocument === undefined) { return }
|
||||
function resetVotes(node) {
|
||||
if (node === undefined) { return }
|
||||
if (node.payload === undefined) { return }
|
||||
node.payload.votes = 0
|
||||
/*
|
||||
When we reach certain node types, we will halt the distribution, because thse are targets for
|
||||
voting power.
|
||||
*/
|
||||
if (
|
||||
node.type === 'Position' ||
|
||||
node.type === 'Asset' ||
|
||||
node.type === 'Feature' ||
|
||||
node.type === 'Pool' ||
|
||||
node.type === 'Position Contribution Claim' ||
|
||||
node.type === 'Asset Contribution Claim' ||
|
||||
node.type === 'Feature Contribution Claim'
|
||||
) { return }
|
||||
/*
|
||||
If there is a reference parent defined, this means that the voting power is
|
||||
transfered to it and not distributed among children.
|
||||
*/
|
||||
if (
|
||||
node.payload.referenceParent !== undefined &&
|
||||
node.type !== 'Votes Switch' &&
|
||||
node.type !== 'Claim Votes Switch' &&
|
||||
node.type !== 'Weight Votes Switch' &&
|
||||
node.type !== 'User Profile Votes Switch'
|
||||
) {
|
||||
resetVotes(node.payload.referenceParent)
|
||||
return
|
||||
}
|
||||
/*
|
||||
If there is no reference parent we will redistribute voting power among children.
|
||||
*/
|
||||
let schemaDocument = getSchemaDocument(node)
|
||||
if (schemaDocument === undefined) { return }
|
||||
|
||||
if (schemaDocument.childrenNodesProperties !== undefined) {
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
if (schemaDocument.childrenNodesProperties !== undefined) {
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
|
||||
if (node.type === 'User Profile' && property.name !== "votesDistribution") { continue }
|
||||
if (node.type === 'User Profile' && property.name !== "votesDistribution") { continue }
|
||||
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
if (node.type === 'User Profile' && property.name === "votesDistribution") {
|
||||
let childNode = node[property.name]
|
||||
resetVotes(childNode)
|
||||
}
|
||||
}
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = node[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
let childNode = propertyArray[m]
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
if (node.type === 'User Profile' && property.name === "votesDistribution") {
|
||||
let childNode = node[property.name]
|
||||
resetVotes(childNode)
|
||||
}
|
||||
}
|
||||
break
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = node[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
let childNode = propertyArray[m]
|
||||
resetVotes(childNode)
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function distributeForProfile(userProfile) {
|
||||
let votes = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(userProfile.payload, 'tokens')
|
||||
distributeVotes(userProfile, votes)
|
||||
}
|
||||
|
||||
function distributeVotes(node, votes, switchPercentage) {
|
||||
if (node === undefined) { return }
|
||||
if (node.payload === undefined) { return }
|
||||
node.payload.votes = node.payload.votes + votes
|
||||
drawVotes(node, node.payload.votes, switchPercentage)
|
||||
/*
|
||||
When we reach certain node types, we will halt the distribution, because thse are targets for
|
||||
voting power.
|
||||
*/
|
||||
if (
|
||||
node.type === 'Position' ||
|
||||
node.type === 'Asset' ||
|
||||
node.type === 'Feature' ||
|
||||
node.type === 'Pool' ||
|
||||
node.type === 'Position Contribution Claim' ||
|
||||
node.type === 'Asset Contribution Claim' ||
|
||||
node.type === 'Feature Contribution Claim'
|
||||
) { return }
|
||||
/*
|
||||
If there is a reference parent defined, this means that the voting power is
|
||||
transfered to it and not distributed among children.
|
||||
*/
|
||||
if (
|
||||
node.payload.referenceParent !== undefined &&
|
||||
node.type !== 'Asset Class' &&
|
||||
node.type !== 'Feature Class' &&
|
||||
node.type !== 'Position Class'
|
||||
) {
|
||||
distributeVotes(node.payload.referenceParent, votes)
|
||||
return
|
||||
function distributeForProfile(userProfile) {
|
||||
let votes = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(userProfile.payload, 'tokens')
|
||||
distributeVotes(userProfile, votes)
|
||||
}
|
||||
/*
|
||||
If there is no reference parent we will redistribute voting power among children.
|
||||
*/
|
||||
let schemaDocument = getSchemaDocument(node)
|
||||
if (schemaDocument === undefined) { return }
|
||||
|
||||
if (schemaDocument.childrenNodesProperties !== undefined) {
|
||||
function distributeVotes(node, votes, switchPercentage) {
|
||||
if (node === undefined) { return }
|
||||
if (node.payload === undefined) { return }
|
||||
node.payload.votes = node.payload.votes + votes
|
||||
drawVotes(node, node.payload.votes, switchPercentage)
|
||||
/*
|
||||
Before distributing the voting power, we will calculate how the power
|
||||
is going to be switched between all nodes. The first pass is about
|
||||
scanning all sibling nodes to see which ones have a percentage defined
|
||||
at their config, and check that all percentages don't add more than 100.
|
||||
When we reach certain node types, we will halt the distribution, because thse are targets for
|
||||
voting power.
|
||||
*/
|
||||
let totalPercentage = 0
|
||||
let totalNodesWithoutPercentage = 0
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
if (
|
||||
node.type === 'Position' ||
|
||||
node.type === 'Asset' ||
|
||||
node.type === 'Feature' ||
|
||||
node.type === 'Pool' ||
|
||||
node.type === 'Position Contribution Claim' ||
|
||||
node.type === 'Asset Contribution Claim' ||
|
||||
node.type === 'Feature Contribution Claim'
|
||||
) { return }
|
||||
/*
|
||||
If there is a reference parent defined, this means that the voting power is
|
||||
transfered to it and not distributed among children.
|
||||
*/
|
||||
if (
|
||||
node.payload.referenceParent !== undefined &&
|
||||
node.type !== 'Votes Switch' &&
|
||||
node.type !== 'Claim Votes Switch' &&
|
||||
node.type !== 'Weight Votes Switch' &&
|
||||
node.type !== 'User Profile Votes Switch'
|
||||
) {
|
||||
distributeVotes(node.payload.referenceParent, votes)
|
||||
return
|
||||
}
|
||||
/*
|
||||
If there is no reference parent we will redistribute voting power among children.
|
||||
*/
|
||||
let schemaDocument = getSchemaDocument(node)
|
||||
if (schemaDocument === undefined) { return }
|
||||
|
||||
if (node.type === 'User Profile' && property.name !== "votesDistribution") { continue }
|
||||
if (schemaDocument.childrenNodesProperties !== undefined) {
|
||||
/*
|
||||
Before distributing the voting power, we will calculate how the power
|
||||
is going to be switched between all nodes. The first pass is about
|
||||
scanning all sibling nodes to see which ones have a percentage defined
|
||||
at their config, and check that all percentages don't add more than 100.
|
||||
*/
|
||||
let totalPercentage = 0
|
||||
let totalNodesWithoutPercentage = 0
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
if (node.type === 'User Profile' && property.name === "votesDistribution") {
|
||||
let childNode = node[property.name]
|
||||
if (childNode === undefined) { continue }
|
||||
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) !== true) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
}
|
||||
}
|
||||
}
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = node[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
let childNode = propertyArray[m]
|
||||
if (node.type === 'User Profile' && property.name !== "votesDistribution") { continue }
|
||||
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
if (node.type === 'User Profile' && property.name === "votesDistribution") {
|
||||
let childNode = node[property.name]
|
||||
if (childNode === undefined) { continue }
|
||||
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) !== true) {
|
||||
@@ -197,44 +184,45 @@ function newGovernanceFunctionLibraryVotes() {
|
||||
}
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if (totalPercentage > 100) {
|
||||
node.payload.uiObject.setErrorMessage('Voting Power Switching Error. Total Percentage of children nodes is grater that 100.')
|
||||
return
|
||||
}
|
||||
let defaultPercentage = 0
|
||||
if (totalNodesWithoutPercentage > 0) {
|
||||
defaultPercentage = (100 - totalPercentage) / totalNodesWithoutPercentage
|
||||
}
|
||||
/*
|
||||
Here we do the actual distribution.
|
||||
*/
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
|
||||
if (node.type === 'User Profile' && property.name !== "votesDistribution") { continue }
|
||||
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
if (node.type === 'User Profile' && property.name === "votesDistribution") {
|
||||
let childNode = node[property.name]
|
||||
if (childNode === undefined) { continue }
|
||||
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage === undefined || isNaN(percentage) === true) {
|
||||
percentage = defaultPercentage
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = node[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
let childNode = propertyArray[m]
|
||||
if (childNode === undefined) { continue }
|
||||
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) !== true) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
}
|
||||
}
|
||||
}
|
||||
distributeVotes(childNode, votes * percentage / 100, percentage)
|
||||
break
|
||||
}
|
||||
}
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = node[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
let childNode = propertyArray[m]
|
||||
}
|
||||
if (totalPercentage > 100) {
|
||||
node.payload.uiObject.setErrorMessage('Voting Power Switching Error. Total Percentage of children nodes is grater that 100.')
|
||||
return
|
||||
}
|
||||
let defaultPercentage = 0
|
||||
if (totalNodesWithoutPercentage > 0) {
|
||||
defaultPercentage = (100 - totalPercentage) / totalNodesWithoutPercentage
|
||||
}
|
||||
/*
|
||||
Here we do the actual distribution.
|
||||
*/
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
|
||||
if (node.type === 'User Profile' && property.name !== "votesDistribution") { continue }
|
||||
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
if (node.type === 'User Profile' && property.name === "votesDistribution") {
|
||||
let childNode = node[property.name]
|
||||
if (childNode === undefined) { continue }
|
||||
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage === undefined || isNaN(percentage) === true) {
|
||||
@@ -243,45 +231,176 @@ function newGovernanceFunctionLibraryVotes() {
|
||||
distributeVotes(childNode, votes * percentage / 100, percentage)
|
||||
}
|
||||
}
|
||||
break
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = node[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
let childNode = propertyArray[m]
|
||||
if (childNode === undefined) { continue }
|
||||
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage === undefined || isNaN(percentage) === true) {
|
||||
percentage = defaultPercentage
|
||||
}
|
||||
distributeVotes(childNode, votes * percentage / 100, percentage)
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function drawVotes(node, votes, percentage) {
|
||||
votes = new Intl.NumberFormat().format(votes) + ' ' + 'Votes'
|
||||
if (node.payload !== undefined) {
|
||||
if (node.type === 'User Profile') {
|
||||
return
|
||||
}
|
||||
if (
|
||||
node.type === 'Position' ||
|
||||
node.type === 'Position Class' ||
|
||||
node.type === 'Pool' ||
|
||||
node.type === 'Tokens Switch' ||
|
||||
node.type === 'Asset' ||
|
||||
node.type === 'Asset Class' ||
|
||||
node.type === 'Feature' ||
|
||||
node.type === 'Feature Class' ||
|
||||
node.type === 'Position Contribution Claim' ||
|
||||
node.type === 'Asset Contribution Claim' ||
|
||||
node.type === 'Feature Contribution Claim'
|
||||
) {
|
||||
node.payload.uiObject.valueAngleOffset = 0
|
||||
node.payload.uiObject.valueAtAngle = false
|
||||
} else {
|
||||
node.payload.uiObject.valueAngleOffset = 180
|
||||
node.payload.uiObject.valueAtAngle = true
|
||||
}
|
||||
|
||||
node.payload.uiObject.setValue(votes)
|
||||
|
||||
if (percentage !== undefined) {
|
||||
node.payload.uiObject.setPercentage(percentage.toFixed(2))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function drawVotes(node, votes, percentage) {
|
||||
votes = new Intl.NumberFormat().format(votes) + ' ' + 'Votes'
|
||||
if (node.payload !== undefined) {
|
||||
if (node.type === 'User Profile') {
|
||||
return
|
||||
}
|
||||
function installVotes(node, rootNodes) {
|
||||
if (node.payload === undefined) { return }
|
||||
if (node.payload.referenceParent === undefined) {
|
||||
node.payload.uiObject.setErrorMessage('To install votes you need a Reference Parent')
|
||||
return
|
||||
}
|
||||
scanNodeBranch(node, node.payload.referenceParent)
|
||||
|
||||
function scanNodeBranch(originNode, destinationNode) {
|
||||
if (
|
||||
node.type === 'Position' ||
|
||||
node.type === 'Position Class' ||
|
||||
node.type === 'Pool' ||
|
||||
node.type === 'Tokens Switch' ||
|
||||
node.type === 'Asset' ||
|
||||
node.type === 'Asset Class' ||
|
||||
node.type === 'Feature' ||
|
||||
node.type === 'Feature Class' ||
|
||||
node.type === 'Position Contribution Claim' ||
|
||||
node.type === 'Asset Contribution Claim' ||
|
||||
node.type === 'Feature Contribution Claim'
|
||||
destinationNode.type === 'Pool' ||
|
||||
destinationNode.type === 'Asset' ||
|
||||
destinationNode.type === 'Feature' ||
|
||||
destinationNode.type === 'Position'
|
||||
) {
|
||||
node.payload.uiObject.valueAngleOffset = 0
|
||||
node.payload.uiObject.valueAtAngle = false
|
||||
originNode.name = destinationNode.name + ' ' + destinationNode.type + ' ' + ' Vote'
|
||||
} else {
|
||||
node.payload.uiObject.valueAngleOffset = 180
|
||||
node.payload.uiObject.valueAtAngle = true
|
||||
originNode.name = destinationNode.name + ' ' + destinationNode.type
|
||||
}
|
||||
|
||||
node.payload.uiObject.setValue(votes)
|
||||
let schemaDocument = getSchemaDocument(destinationNode)
|
||||
if (schemaDocument === undefined) { return }
|
||||
|
||||
if (percentage !== undefined) {
|
||||
node.payload.uiObject.setPercentage(percentage.toFixed(2))
|
||||
if (schemaDocument.childrenNodesProperties !== undefined) {
|
||||
for (let i = 0; i < schemaDocument.childrenNodesProperties.length; i++) {
|
||||
let property = schemaDocument.childrenNodesProperties[i]
|
||||
|
||||
switch (property.type) {
|
||||
case 'node': {
|
||||
|
||||
let destinationNodeChild = destinationNode[property.name]
|
||||
|
||||
let originNodeChildType = getOriginNodeChildType(destinationNodeChild)
|
||||
let originNodeChild = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(originNode, originNodeChildType)
|
||||
|
||||
if (
|
||||
destinationNodeChild.type === 'Pool' ||
|
||||
destinationNodeChild.type === 'Asset' ||
|
||||
destinationNodeChild.type === 'Feature' ||
|
||||
destinationNodeChild.type === 'Position'
|
||||
) {
|
||||
originNodeChild.payload.referenceParent = destinationNodeChild
|
||||
}
|
||||
|
||||
scanNodeBranch(originNodeChild, destinationNodeChild)
|
||||
}
|
||||
break
|
||||
case 'array': {
|
||||
let propertyArray = destinationNode[property.name]
|
||||
if (propertyArray !== undefined) {
|
||||
for (let m = 0; m < propertyArray.length; m++) {
|
||||
|
||||
let destinationNodeChild = propertyArray[m]
|
||||
|
||||
let originNodeChildType = getOriginNodeChildType(destinationNodeChild)
|
||||
let originNodeChild = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(originNode, originNodeChildType)
|
||||
|
||||
if (
|
||||
destinationNodeChild.type === 'Pool' ||
|
||||
destinationNodeChild.type === 'Asset' ||
|
||||
destinationNodeChild.type === 'Feature' ||
|
||||
destinationNodeChild.type === 'Position'
|
||||
) {
|
||||
originNodeChild.payload.referenceParent = destinationNodeChild
|
||||
}
|
||||
|
||||
scanNodeBranch(originNodeChild, destinationNodeChild)
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getOriginNodeChildType(destinationNode) {
|
||||
let originNodeType
|
||||
|
||||
switch (destinationNode.type) {
|
||||
case 'Pool Class': {
|
||||
originNodeType = 'Weight Votes Switch'
|
||||
break
|
||||
}
|
||||
case 'Asset Class': {
|
||||
originNodeType = 'Weight Votes Switch'
|
||||
break
|
||||
}
|
||||
case 'Feature Class': {
|
||||
originNodeType = 'Weight Votes Switch'
|
||||
break
|
||||
}
|
||||
case 'Position Class': {
|
||||
originNodeType = 'Weight Votes Switch'
|
||||
break
|
||||
}
|
||||
case 'Pool': {
|
||||
originNodeType = 'Pool Weight Vote'
|
||||
break
|
||||
}
|
||||
case 'Asset': {
|
||||
originNodeType = 'Asset Weight Vote'
|
||||
break
|
||||
}
|
||||
case 'Feature': {
|
||||
originNodeType = 'Feature Weight Vote'
|
||||
break
|
||||
}
|
||||
case 'Position Class': {
|
||||
originNodeType = 'Position Weight Vote'
|
||||
break
|
||||
}
|
||||
}
|
||||
return originNodeType
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user