Merge remote-tracking branch 'upstream/develop' into develop

This commit is contained in:
Philip Love committed 2021-10-01 10:39:31 -04:00
commit 7baee2c619
13 files changed
+19113 -940

No files matched your search

@@ -164,6 +164,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
if (err && err.result !== GLOBAL.DEFAULT_OK_RESPONSE.result) {
console.log('[WARN] Cannot load plugin ' + pluginFolder + ' ' + name + '. The Workspace will be loaded with this plugin file missing.')
} else {
let receivedNode
try {
@@ -174,6 +175,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
console.log('[ERROR] pluginAllTheseFiles -> err.stack = ' + err.stack)
return
}
/*
If the workspace already contains a root node with the id of the head of the hirierchy
we are loading, we remove it because the plugin file has precedende.
@@ -181,6 +183,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
for (let i = 0; i < node.rootNodes.length; i++) {
let rootNode = node.rootNodes[i]
if (rootNode.id === receivedNode.id) {
console.log('[WARN] The node with name "' + rootNode.name + '" and type "' + rootNode.type + '" will be replaced by the node with name "' + receivedNode.name + '" and type "' + receivedNode.type +'" because they both have the same node.id')
node.rootNodes.splice(i, 1)
break
}
@@ -365,7 +368,6 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
if (node[property.name] !== undefined) {
if (node[property.name].name === pathName && node[property.name].type === pathType) {
nextNode = node[property.name]
console.log("we have a match!", nextNode)
return nextNode
}
}
@@ -36,7 +36,7 @@
}
],
"assets": [],
"id": "79467868-de64-42a9-8852-8c1377bbd52b",
"id": "79467863-de64-42a9-8852-8c1377bbd52b",
"savedPayload": {
"position": {
"x": 2810.75,
@@ -36,7 +36,7 @@
}
],
"assets": [],
"id": "5ea11d1d-31e4-4e77-9697-cf373ab0c1e3",
"id": "5ea11d1d-31e4-4e77-9297-cf373ab0c1e3",
"savedPayload": {
"position": {
"x": 2896.75,
@@ -73313,7 +73313,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -20155,7 +20155,7 @@
"project": "Governance",
"assetClasses": [],
"assets": [],
"id": "8eb55d2d-6f7b-41e9-a550-05eef663e12a",
"id": "3ea656b2-b222-401e-abae-d0746d6c643d",
"savedPayload": {
"position": {
"x": 24465.935573766892,
@@ -23758,4 +23758,4 @@
"isRunning": false
}
}
}
}
@@ -353,7 +353,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -195,12 +195,12 @@
},
"referenceParent": {
"type": "Positions",
"name": "Superalgos",
"name": "Foundations-Project",
"id": "50c68665-5da2-48a8-b229-7a1563ae82d2"
},
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Foundations-Project",
"Positions",
"Governance",
"50c68665-5da2-48a8-b229-7a1563ae82d2"
@@ -363,7 +363,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -1,7 +1,7 @@
{
"type": "Pools",
"name": "Superalgos",
"config": "{\"tokens\":\"66000000\",\"codeName\":\"Superalgos\"}",
"config": "{\n \"tokens\": \"53806083\",\n \"codeName\": \"Superalgos\"\n}",
"project": "Governance",
"poolClasses": [
{
@@ -817,7 +817,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -1060,7 +1060,15 @@
"type": "Assets",
"name": "Foundations-Project Plugins Data-Mines Rewards",
"id": "cfc85fed-e63c-4a02-9d25-f7bacec173d4"
}
},
"referenceParentCombinedNodePath": [
[
"Foundations-Project Plugins Data-Mines Rewards",
"Assets",
"Governance",
"cfc85fed-e63c-4a02-9d25-f7bacec173d4"
]
]
}
},
{
@@ -1095,7 +1103,15 @@
"type": "Assets",
"name": "Foundations-Project Plugins Trading-Systems Rewards",
"id": "519d2386-ccef-4e6c-af91-9169fc2a4a6f"
}
},
"referenceParentCombinedNodePath": [
[
"Foundations-Project Plugins Trading-Systems Rewards",
"Assets",
"Governance",
"519d2386-ccef-4e6c-af91-9169fc2a4a6f"
]
]
}
},
{
@@ -1130,7 +1146,15 @@
"type": "Assets",
"name": "Foundations-Project Plugins API-Data-Mines Rewards",
"id": "4e1ff7bb-dc41-42c7-8ca6-552a9521d4f4"
}
},
"referenceParentCombinedNodePath": [
[
"Foundations-Project Plugins API-Data-Mines Rewards",
"Assets",
"Governance",
"4e1ff7bb-dc41-42c7-8ca6-552a9521d4f4"
]
]
}
}
],
@@ -1239,7 +1263,15 @@
"type": "Assets",
"name": "TensorFlow-Project-Docs",
"id": "92c7a808-dc9d-469b-b486-841ec7eee4e2"
}
},
"referenceParentCombinedNodePath": [
[
"TensorFlow-Project-Docs",
"Assets",
"Governance",
"92c7a808-dc9d-469b-b486-841ec7eee4e2"
]
]
}
},
{
@@ -1274,7 +1306,15 @@
"type": "Assets",
"name": "Governance-Project-Docs",
"id": "daa76791-2fed-434d-973e-5e7c58ca91a4"
}
},
"referenceParentCombinedNodePath": [
[
"Governance-Project-Docs",
"Assets",
"Governance",
"daa76791-2fed-434d-973e-5e7c58ca91a4"
]
]
}
},
{
@@ -1309,7 +1349,15 @@
"type": "Assets",
"name": "Education-Project-Docs",
"id": "5d8db042-b165-480e-a11e-6c16c7acdfd7"
}
},
"referenceParentCombinedNodePath": [
[
"Education-Project-Docs",
"Assets",
"Governance",
"5d8db042-b165-480e-a11e-6c16c7acdfd7"
]
]
}
},
{
@@ -1344,7 +1392,15 @@
"type": "Assets",
"name": "Ethereum-Project-Docs",
"id": "3479b6ab-1b95-4c09-a96a-ed5c690ed485"
}
},
"referenceParentCombinedNodePath": [
[
"Ethereum-Project-Docs",
"Assets",
"Governance",
"3479b6ab-1b95-4c09-a96a-ed5c690ed485"
]
]
}
}
],
@@ -1361,7 +1417,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -1410,14 +1466,14 @@
"referenceParent": {
"type": "Assets",
"name": "Superalgos-Marketing",
"id": "eeeed37c-a0e5-4d6c-a57f-01fdd8622f0f"
"id": "0a490128-61c8-49aa-96aa-769cc5513951"
},
"referenceParentCombinedNodePath": [
[
"Superalgos-Marketing",
"Assets",
"Governance",
"eeeed37c-a0e5-4d6c-a57f-01fdd8622f0f"
"0a490128-61c8-49aa-96aa-769cc5513951"
]
]
}
@@ -1761,7 +1817,9 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Features"
"Features",
"Governance",
"7c27de79-0ac7-4d48-81f0-5d7b6a4d93c6"
]
]
}
@@ -1805,7 +1863,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -1830,7 +1888,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -311,7 +311,7 @@
}
],
"positions": [],
"id": "50c68665-5da2-48a8-b229-7a1563ae82d2",
"id": "50c68665-5da2-48a4-b229-7a1563ae82d2",
"savedPayload": {
"position": {
"x": 30231,
File diff suppressed because it is too large. Load diff
@@ -127,12 +127,12 @@
"id": "1697b890-3593-4b00-ac86-0a775e5cfac3",
"savedPayload": {
"position": {
"x": 27433.669625258543,
"y": 20823.02456766718
"x": 22888.215079804,
"y": 17822.02456766718
},
"targetPosition": {
"x": 27572.72727272727,
"y": 21251
"x": 23027.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -653,12 +653,12 @@
"id": "d81c6c7d-a042-47cc-b951-45c5cd2ecc1a",
"savedPayload": {
"position": {
"x": 28000.70270506009,
"y": 21111.942352531274
"x": 23455.248159605544,
"y": 18110.942352531274
},
"targetPosition": {
"x": 27572.72727272727,
"y": 21251
"x": 23027.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -712,12 +712,12 @@
"id": "55beab48-ae90-40ab-8cff-93afe20cacc4",
"savedPayload": {
"position": {
"x": 27830.4299231882,
"y": 20467.529367961746
"x": 23284.975377733655,
"y": 17466.529367961746
},
"targetPosition": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"floatingObject": {
"isPinned": false,
@@ -738,31 +738,45 @@
"referenceParentCombinedNodePath": [
[
"Smidy13",
"User Profile"
"User Profile",
"Governance",
"4b5eca40-4d97-454d-91f3-8627a98ef682"
],
[
"New Token Power Switch",
"Token Power Switch"
"Token Power Switch",
"Governance",
"7fb54153-47b4-48dc-b2e0-99b52eda5949"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
"Votes And Claims Programs",
"Governance",
"7b4da8e8-6c7e-43eb-bfab-22c4b57ad286"
],
[
"New Claims Program",
"Claims Program"
"Claims Program",
"Governance",
"121a7d91-bb40-466f-88a4-b354fd22e1d6"
],
[
"New Position Claims Folder",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"eacbb85b-5f5e-406e-8b16-a6766a856394"
],
[
"Superalgos",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"66070818-04fe-43e8-8e39-ce704adda62f"
],
[
"Moderator Community Management",
"Position Contribution Claim"
"Position Contribution Claim",
"Governance",
"5500f230-15f8-42cb-ac83-194e55f92f11"
]
]
}
@@ -775,12 +789,12 @@
"id": "04ab91c4-c367-4353-96a0-f2a4e902d4b5",
"savedPayload": {
"position": {
"x": 27767.120502844326,
"y": 20277.530615873096
"x": 23221.66595738978,
"y": 17276.530615873096
},
"targetPosition": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"floatingObject": {
"isPinned": false,
@@ -801,27 +815,39 @@
"referenceParentCombinedNodePath": [
[
"ssplatt",
"User Profile"
"User Profile",
"Governance",
"56600855-7a91-49e8-8a58-2fa28d07efd1"
],
[
"New Token Power Switch",
"Token Power Switch"
"Token Power Switch",
"Governance",
"e056163b-0413-488e-913a-8baa59d41a4f"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
"Votes And Claims Programs",
"Governance",
"768ed0b3-bb30-49df-a068-11b3bff1ab93"
],
[
"New Claims Program",
"Claims Program"
"Claims Program",
"Governance",
"efb5c85c-0a81-4c64-9e00-4211fdbfd558"
],
[
"Community Management Position Class",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"13d0ff82-dc45-45cd-95cf-0834dce22a52"
],
[
"Moderator Community Management",
"Position Contribution Claim"
"Position Contribution Claim",
"Governance",
"bc3448ff-42b0-4ce0-8701-b06687e83baf"
]
]
}
@@ -834,12 +860,12 @@
"id": "bd6669db-72ed-4519-a896-72a76ed948f4",
"savedPayload": {
"position": {
"x": 27792.51805505344,
"y": 20078.878727280753
"x": 23247.063509598895,
"y": 17077.878727280753
},
"targetPosition": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"floatingObject": {
"isPinned": false,
@@ -860,27 +886,39 @@
"referenceParentCombinedNodePath": [
[
"Raplh2502",
"User Profile"
"User Profile",
"Governance",
"420bd6a6-1d5c-4324-9cd7-3b616ff4a4b9"
],
[
"New Token Power Switch",
"Token Power Switch"
"Token Power Switch",
"Governance",
"57775fd6-0660-4588-93dd-099af9855d40"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
"Votes And Claims Programs",
"Governance",
"ba94aa89-b035-48d2-9631-03be32950e03"
],
[
"New Claims Program",
"Claims Program"
"Claims Program",
"Governance",
"d8400032-0ef1-4ea5-b889-fbbac4633697"
],
[
"New Position Claims Folder",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"671451bd-5d8e-4d61-865d-d8c687c498ca"
],
[
"Project Lead Rewarded Positions",
"Position Contribution Claim"
"Position Contribution Claim",
"Governance",
"930441db-3f0f-4307-8eef-4e96a13820ad"
]
]
}
@@ -893,12 +931,12 @@
"id": "7391ae32-2bfc-47ef-89ad-c84fec35c269",
"savedPayload": {
"position": {
"x": 27901.59228311999,
"y": 19910.919145025953
"x": 23356.137737665445,
"y": 16909.919145025953
},
"targetPosition": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"floatingObject": {
"isPinned": false,
@@ -919,27 +957,39 @@
"referenceParentCombinedNodePath": [
[
"Raplh2502",
"User Profile"
"User Profile",
"Governance",
"420bd6a6-1d5c-4324-9cd7-3b616ff4a4b9"
],
[
"New Token Power Switch",
"Token Power Switch"
"Token Power Switch",
"Governance",
"57775fd6-0660-4588-93dd-099af9855d40"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
"Votes And Claims Programs",
"Governance",
"ba94aa89-b035-48d2-9631-03be32950e03"
],
[
"New Claims Program",
"Claims Program"
"Claims Program",
"Governance",
"d8400032-0ef1-4ea5-b889-fbbac4633697"
],
[
"New Position Claims Folder",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"671451bd-5d8e-4d61-865d-d8c687c498ca"
],
[
"Moderator Community Management",
"Position Contribution Claim"
"Position Contribution Claim",
"Governance",
"c05e0a50-43f0-48f0-b7a5-e06386c06e25"
]
]
}
@@ -952,12 +1002,12 @@
"id": "44d3c4b8-1359-460b-91de-e87e438d862f",
"savedPayload": {
"position": {
"x": 28072.739698467773,
"y": 19806.91832426336
"x": 23527.28515301323,
"y": 16805.91832426336
},
"targetPosition": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"floatingObject": {
"isPinned": false,
@@ -978,31 +1028,45 @@
"referenceParentCombinedNodePath": [
[
"harrellbm",
"User Profile"
"User Profile",
"Governance",
"3af73d3b-7c0e-4de7-a1e1-a72238081740"
],
[
"New Token Power Switch",
"Token Power Switch"
"Token Power Switch",
"Governance",
"77f2f63d-b010-4c0e-8a53-a9f531d4edae"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
"Votes And Claims Programs",
"Governance",
"256ab295-7e90-4c66-8a83-45c5b4eaf059"
],
[
"New Claims Program",
"Claims Program"
"Claims Program",
"Governance",
"3eae8d92-6250-4aa9-a361-a8f4e8c9b110"
],
[
"New Position Claims Folder",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"1e714443-cf8f-46df-ac93-7de2e780ceae"
],
[
"Core Team Position Class",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"3f33513a-48e3-4181-b3f7-7848d0c2db75"
],
[
"Member Core Team",
"Position Contribution Claim"
"Position Contribution Claim",
"Governance",
"0737efa1-942d-4b8e-959e-447764c388dd"
]
]
}
@@ -1015,12 +1079,12 @@
"id": "a97e411a-f851-452e-a310-516430e8fdfd",
"savedPayload": {
"position": {
"x": 28272.06245650186,
"y": 19787.474903031365
"x": 23726.607911047315,
"y": 16786.474903031365
},
"targetPosition": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"floatingObject": {
"isPinned": false,
@@ -1041,31 +1105,45 @@
"referenceParentCombinedNodePath": [
[
"harrellbm",
"User Profile"
"User Profile",
"Governance",
"3af73d3b-7c0e-4de7-a1e1-a72238081740"
],
[
"New Token Power Switch",
"Token Power Switch"
"Token Power Switch",
"Governance",
"77f2f63d-b010-4c0e-8a53-a9f531d4edae"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
"Votes And Claims Programs",
"Governance",
"256ab295-7e90-4c66-8a83-45c5b4eaf059"
],
[
"New Claims Program",
"Claims Program"
"Claims Program",
"Governance",
"3eae8d92-6250-4aa9-a361-a8f4e8c9b110"
],
[
"New Position Claims Folder",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"1e714443-cf8f-46df-ac93-7de2e780ceae"
],
[
"Community Management Position Class",
"Position Claims Folder"
"Position Claims Folder",
"Governance",
"c7cff054-388f-4afa-add9-f8e0b599d858"
],
[
"Moderator Community Management",
"Position Contribution Claim"
"Position Contribution Claim",
"Governance",
"f6bd1317-bc60-49ed-bce2-233ccfdd2dd4"
]
]
}
@@ -1076,12 +1154,12 @@
"id": "4a4dec1f-1d17-4596-8ec5-78072db99ac1",
"savedPayload": {
"position": {
"x": 28214.994674703634,
"y": 20233.84164493832
"x": 23669.54012924909,
"y": 17232.84164493832
},
"targetPosition": {
"x": 28592.396430279074,
"y": 20478.92921069508
"x": 24046.94188482453,
"y": 17477.92921069508
},
"floatingObject": {
"isPinned": false,
@@ -1112,12 +1190,12 @@
"id": "21d95203-fae9-4576-8abf-a25163884cb9",
"savedPayload": {
"position": {
"x": 28405.27590854309,
"y": 19598.596370034655
"x": 23859.821363088548,
"y": 16597.596370034655
},
"targetPosition": {
"x": 28498.836169411083,
"y": 20038.762790364868
"x": 23953.38162395654,
"y": 17037.762790364868
},
"floatingObject": {
"isPinned": false,
@@ -1137,12 +1215,12 @@
"id": "c8471507-c0b7-4c7f-af99-92c87876bb6d",
"savedPayload": {
"position": {
"x": 28498.836169411083,
"y": 20038.762790364868
"x": 23953.38162395654,
"y": 17037.762790364868
},
"targetPosition": {
"x": 28592.396430279074,
"y": 20478.92921069508
"x": 24046.94188482453,
"y": 17477.92921069508
},
"floatingObject": {
"isPinned": false,
@@ -1174,12 +1252,12 @@
"id": "41a29ddd-e96f-4aa2-bc01-6d502feb85fd",
"savedPayload": {
"position": {
"x": 29082.5715617926,
"y": 19724.1256995442
"x": 24537.117016338056,
"y": 16723.1256995442
},
"targetPosition": {
"x": 28837.483996035837,
"y": 20101.52745511964
"x": 24292.029450581293,
"y": 17100.52745511964
},
"floatingObject": {
"isPinned": false,
@@ -1198,12 +1276,12 @@
"id": "91923785-42e8-4214-a52f-ea91b8a4ddbc",
"savedPayload": {
"position": {
"x": 28837.483996035837,
"y": 20101.52745511964
"x": 24292.029450581293,
"y": 17100.52745511964
},
"targetPosition": {
"x": 28592.396430279074,
"y": 20478.92921069508
"x": 24046.94188482453,
"y": 17477.92921069508
},
"floatingObject": {
"isPinned": false,
@@ -1225,12 +1303,12 @@
"id": "ea100fd6-6f6b-4dfb-a856-f97fc4679351",
"savedPayload": {
"position": {
"x": 28592.396430279074,
"y": 20478.92921069508
"x": 24046.94188482453,
"y": 17477.92921069508
},
"targetPosition": {
"x": 28685.956691147065,
"y": 20919.095631025295
"x": 24140.50214569252,
"y": 17918.095631025295
},
"floatingObject": {
"isPinned": false,
@@ -1260,12 +1338,12 @@
"id": "9a8b949d-2a67-4ee2-bb6b-a4b953791a59",
"savedPayload": {
"position": {
"x": 28931.044256903828,
"y": 20541.693875449855
"x": 24385.589711449284,
"y": 17540.693875449855
},
"targetPosition": {
"x": 28685.956691147065,
"y": 20919.095631025295
"x": 24140.50214569252,
"y": 17918.095631025295
},
"floatingObject": {
"isPinned": false,
@@ -1292,12 +1370,12 @@
"id": "6f15124c-2f69-416a-a74b-0693230f0fcc",
"savedPayload": {
"position": {
"x": 29126.123111477278,
"y": 20825.535370157304
"x": 24580.668566022734,
"y": 17824.535370157304
},
"targetPosition": {
"x": 28685.956691147065,
"y": 20919.095631025295
"x": 24140.50214569252,
"y": 17918.095631025295
},
"floatingObject": {
"isPinned": false,
@@ -1316,12 +1394,12 @@
"id": "48e1b44e-971d-4c44-a17c-633d5fbe5f25",
"savedPayload": {
"position": {
"x": 28685.956691147065,
"y": 20919.095631025295
"x": 24140.50214569252,
"y": 17918.095631025295
},
"targetPosition": {
"x": 28440.8691253903,
"y": 21296.497386600735
"x": 23895.414579935758,
"y": 18295.497386600735
},
"floatingObject": {
"isPinned": false,
@@ -1634,12 +1712,12 @@
"id": "cfb60c65-55ba-4174-83ef-6ebfffe6f0cb",
"savedPayload": {
"position": {
"x": 28881.035545720515,
"y": 21202.937125732744
"x": 24335.58100026597,
"y": 18201.937125732744
},
"targetPosition": {
"x": 28440.8691253903,
"y": 21296.497386600735
"x": 23895.414579935758,
"y": 18295.497386600735
},
"floatingObject": {
"isPinned": false,
@@ -1662,12 +1740,12 @@
"id": "d0ecacdd-d2df-49ee-9156-f1babe11fba3",
"savedPayload": {
"position": {
"x": 28818.27088096574,
"y": 21541.584952357498
"x": 24272.816335511197,
"y": 18540.584952357498
},
"targetPosition": {
"x": 28440.8691253903,
"y": 21296.497386600735
"x": 23895.414579935758,
"y": 18295.497386600735
},
"floatingObject": {
"isPinned": false,
@@ -1685,12 +1763,12 @@
"id": "6bdc33ff-9392-4089-962d-0c8c2bfd0118",
"savedPayload": {
"position": {
"x": 28440.8691253903,
"y": 21296.497386600735
"x": 23895.414579935758,
"y": 18295.497386600735
},
"targetPosition": {
"x": 28000.70270506009,
"y": 21390.057647468726
"x": 23455.248159605544,
"y": 18389.057647468726
},
"floatingObject": {
"isPinned": false,
@@ -1728,12 +1806,12 @@
"id": "1ac4c257-0ff4-4076-bc1b-0a46cfb86342",
"savedPayload": {
"position": {
"x": 28953.711027114867,
"y": 21817.998322205
"x": 24408.256481660323,
"y": 18816.998322205
},
"targetPosition": {
"x": 28472.238665740446,
"y": 21661.558468802683
"x": 23926.7841202859,
"y": 18660.558468802683
},
"floatingObject": {
"isPinned": false,
@@ -1783,12 +1861,12 @@
"id": "4e0c4cd4-dc98-4913-a8dc-72cbae46776a",
"savedPayload": {
"position": {
"x": 28472.238665740446,
"y": 21661.558468802683
"x": 23926.7841202859,
"y": 18660.558468802683
},
"targetPosition": {
"x": 28151.257091490832,
"y": 21557.26523320114
"x": 23605.802546036288,
"y": 18556.26523320114
},
"floatingObject": {
"isPinned": false,
@@ -1811,12 +1889,12 @@
"id": "879ef024-7f98-48a2-abd1-05ada3de517a",
"savedPayload": {
"position": {
"x": 28221.427287141825,
"y": 21887.390048448797
"x": 23675.97274168728,
"y": 18886.390048448797
},
"targetPosition": {
"x": 28151.257091490832,
"y": 21557.26523320114
"x": 23605.802546036288,
"y": 18556.26523320114
},
"floatingObject": {
"isPinned": false,
@@ -1834,12 +1912,12 @@
"id": "d5b96ff4-c6ec-4139-8cc1-259d0940196b",
"savedPayload": {
"position": {
"x": 28151.257091490832,
"y": 21557.26523320114
"x": 23605.802546036288,
"y": 18556.26523320114
},
"targetPosition": {
"x": 28000.70270506009,
"y": 21390.057647468726
"x": 23455.248159605544,
"y": 18389.057647468726
},
"floatingObject": {
"isPinned": false,
@@ -1857,12 +1935,12 @@
"id": "bc73fcad-a3b2-4094-931e-c8f3d608a99c",
"savedPayload": {
"position": {
"x": 28000.70270506009,
"y": 21390.057647468726
"x": 23455.248159605544,
"y": 18389.057647468726
},
"targetPosition": {
"x": 27572.72727272727,
"y": 21251
"x": 23027.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -1880,7 +1958,7 @@
"financialPrograms": {
"type": "Financial Programs",
"name": "New Financial Programs",
"config": "{}",
"config": "{\n \"percentage\": 0\n}",
"project": "Governance",
"delegationProgram": {
"type": "Delegation Program",
@@ -1898,12 +1976,12 @@
"id": "917e8805-7f4b-4de4-84c7-4af36ac0820e",
"savedPayload": {
"position": {
"x": 28718.377183699253,
"y": 22253.662529013618
"x": 24172.92263824471,
"y": 19252.662529013618
},
"targetPosition": {
"x": 28101.733999790496,
"y": 21979.115294937452
"x": 23556.279454335952,
"y": 18978.115294937452
},
"floatingObject": {
"isPinned": false,
@@ -1926,12 +2004,12 @@
"id": "3e6a4426-25ef-415b-a20a-855600012975",
"savedPayload": {
"position": {
"x": 28172.290712496164,
"y": 22650.417574311035
"x": 23626.83616704162,
"y": 19649.417574311035
},
"targetPosition": {
"x": 28101.733999790496,
"y": 21979.115294937452
"x": 23556.279454335952,
"y": 18978.115294937452
},
"floatingObject": {
"isPinned": false,
@@ -1949,12 +2027,12 @@
"id": "bfd4495b-90ce-499e-bf69-502bdb2ede1a",
"savedPayload": {
"position": {
"x": 28101.733999790496,
"y": 21979.115294937452
"x": 23556.279454335952,
"y": 18978.115294937452
},
"targetPosition": {
"x": 27837.230636258882,
"y": 21615.057647468726
"x": 23291.77609080434,
"y": 18614.057647468726
},
"floatingObject": {
"isPinned": false,
@@ -1972,12 +2050,12 @@
"id": "4f0d8cba-1e6b-4fa7-a862-7696452836ea",
"savedPayload": {
"position": {
"x": 27837.230636258882,
"y": 21615.057647468726
"x": 23291.77609080434,
"y": 18614.057647468726
},
"targetPosition": {
"x": 27572.72727272727,
"y": 21251
"x": 23027.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -1995,12 +2073,12 @@
"id": "91519c6e-8c07-488c-98dd-255890a00d6e",
"savedPayload": {
"position": {
"x": 27572.72727272727,
"y": 21251
"x": 23027.272727272724,
"y": 18250
},
"targetPosition": {
"x": 27272.72727272727,
"y": 21251
"x": 22727.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -2022,12 +2100,12 @@
"id": "774ad037-353d-49e2-ba63-6dff7d55decc",
"savedPayload": {
"position": {
"x": 26972.72727272727,
"y": 21251
"x": 22427.272727272724,
"y": 18250
},
"targetPosition": {
"x": 27272.72727272727,
"y": 21251
"x": 22727.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -2045,12 +2123,12 @@
"id": "b1ce221b-2752-4419-ae53-8410e8a93798",
"savedPayload": {
"position": {
"x": 27272.72727272727,
"y": 21251
"x": 22727.272727272724,
"y": 18250
},
"targetPosition": {
"x": 27272.72727272727,
"y": 21251
"x": 22727.272727272724,
"y": 18250
},
"floatingObject": {
"isPinned": false,
@@ -127,12 +127,12 @@
"id": "69b4f8d0-c9bb-4716-84fa-4fa392fe0ef1",
"savedPayload": {
"position": {
"x": 19077.450980392154,
"y": 23990.192378864667
"x": 15155.882352941173,
"y": 23991.192378864667
},
"targetPosition": {
"x": 18927.450980392154,
"y": 24250
"x": 15005.882352941173,
"y": 24251
},
"floatingObject": {
"isPinned": false,
@@ -462,12 +462,12 @@
"id": "b573ee60-8430-41a2-a952-6deac320aee1",
"savedPayload": {
"position": {
"x": 19337.258601527486,
"y": 24359.807621135333
"x": 15415.689974076504,
"y": 24360.807621135333
},
"targetPosition": {
"x": 19077.450980392154,
"y": 24509.807621135333
"x": 15155.882352941173,
"y": 24510.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -496,12 +496,12 @@
"id": "bbb25bb9-b04a-4c65-96c8-7530f3fdfcc8",
"savedPayload": {
"position": {
"x": 17226.474287801997,
"y": 24919.615242270665
"x": 15506.62153484883,
"y": 24547.671794627448
},
"targetPosition": {
"x": 16966.666666666664,
"y": 24769.615242270665
"x": 15305.882352941173,
"y": 24770.615242270665
},
"floatingObject": {
"isPinned": false,
@@ -528,105 +528,21 @@
]
]
}
}
],
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "cc178821-4f6b-44b1-82af-7a4173f9bf2c",
"savedPayload": {
"position": {
"x": 16816.666666666664,
"y": 25029.422863406
},
"targetPosition": {
"x": 16966.666666666664,
"y": 24769.615242270665
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "f5059354-dd55-4ae3-863c-b9e5a0fbb827",
"savedPayload": {
"position": {
"x": 16706.85904553133,
"y": 24619.615242270665
},
"targetPosition": {
"x": 16966.666666666664,
"y": 24769.615242270665
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "73623eba-8a71-4876-8b17-c71b19f2f47a",
"savedPayload": {
"position": {
"x": 19227.450980392154,
"y": 24769.615242270665
},
"targetPosition": {
"x": 19077.450980392154,
"y": 24509.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"mentorshipProgram": {
"type": "Mentorship Program",
"name": "New Mentorship Program",
"config": "{}",
"project": "Governance",
"userMentors": [
{
"type": "User Mentor",
"type": "User Supporter",
"name": "Luis-Fernando-Molina",
"config": "{}",
"project": "Governance",
"id": "d676b5e5-4a35-4283-917e-1ff3091873dd",
"id": "491aa3f4-2325-4912-a69d-783a2c1822f6",
"savedPayload": {
"position": {
"x": 19096.90548385008,
"y": 24769.40992844525
"x": 15579.945990233953,
"y": 24892.636235193404
},
"targetPosition": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 15305.882352941173,
"y": 24770.615242270665
},
"floatingObject": {
"isPinned": false,
@@ -651,6 +567,131 @@
]
]
}
}
],
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "cc178821-4f6b-44b1-82af-7a4173f9bf2c",
"savedPayload": {
"position": {
"x": 15274.523813960877,
"y": 25068.971810881147
},
"targetPosition": {
"x": 15305.882352941173,
"y": 24770.615242270665
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "f5059354-dd55-4ae3-863c-b9e5a0fbb827",
"savedPayload": {
"position": {
"x": 15012.438072721032,
"y": 24832.988749515993
},
"targetPosition": {
"x": 15305.882352941173,
"y": 24770.615242270665
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "73623eba-8a71-4876-8b17-c71b19f2f47a",
"savedPayload": {
"position": {
"x": 15305.882352941173,
"y": 24770.615242270665
},
"targetPosition": {
"x": 15155.882352941173,
"y": 24510.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"mentorshipProgram": {
"type": "Mentorship Program",
"name": "New Mentorship Program",
"config": "{}",
"project": "Governance",
"userMentors": [
{
"type": "User Mentor",
"name": "Luis-Fernando-Molina",
"config": "{}",
"project": "Governance",
"id": "d676b5e5-4a35-4283-917e-1ff3091873dd",
"savedPayload": {
"position": {
"x": 15175.336856399103,
"y": 24770.40992844525
},
"targetPosition": {
"x": 14896.074731805842,
"y": 24660.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "Luis-Fernando-Molina",
"id": "a8de78f0-c3e4-4a2a-b7e8-f659073969db"
},
"referenceParentCombinedNodePath": [
[
"Luis-Fernando-Molina",
"User Profile",
"Governance",
"a8de78f0-c3e4-4a2a-b7e8-f659073969db"
]
]
}
},
{
"type": "User Mentor",
@@ -660,12 +701,12 @@
"id": "5734caf3-1515-40d1-be26-97d56cfd819a",
"savedPayload": {
"position": {
"x": 18906.069911580093,
"y": 24946.479462871175
"x": 14984.501284129114,
"y": 24947.479462871175
},
"targetPosition": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 14896.074731805842,
"y": 24660.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -686,7 +727,9 @@
"referenceParentCombinedNodePath": [
[
"Julian-Molina",
"User Profile"
"User Profile",
"Governance",
"1fd95e41-4b22-48d5-be3a-904c37afcb11"
]
]
}
@@ -699,12 +742,12 @@
"id": "f460b270-d736-4d23-b27d-f96570c2f15d",
"savedPayload": {
"position": {
"x": 18648.647341837735,
"y": 24907.67925343013
"x": 14727.078714386755,
"y": 24908.67925343013
},
"targetPosition": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 14896.074731805842,
"y": 24660.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -725,7 +768,9 @@
"referenceParentCombinedNodePath": [
[
"piyanthak",
"User Profile"
"User Profile",
"Governance",
"b1ce221b-2752-4419-ae53-8410e8a93798"
]
]
}
@@ -738,12 +783,12 @@
"id": "49f06107-44c9-4471-8d37-af883a3d3ff6",
"savedPayload": {
"position": {
"x": 18518.482220102465,
"y": 24682.22664921126
"x": 14596.913592651488,
"y": 24683.22664921126
},
"targetPosition": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 14896.074731805842,
"y": 24660.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -764,7 +809,9 @@
"referenceParentCombinedNodePath": [
[
"hellarnasstrom",
"User Profile"
"User Profile",
"Governance",
"f93bb5da-dd98-4dcf-92b2-95d86e0e0ed2"
]
]
}
@@ -777,12 +824,12 @@
"id": "2e5aa490-cfca-4c61-8b31-1dd036498f8e",
"savedPayload": {
"position": {
"x": 18613.591537925546,
"y": 24439.892059586386
"x": 14692.022910474567,
"y": 24440.892059586386
},
"targetPosition": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 14896.074731805842,
"y": 24660.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -804,12 +851,12 @@
"id": "15cfff8e-8be7-4f0c-be27-0789055fddc5",
"savedPayload": {
"position": {
"x": 18862.356039109673,
"y": 24363.158373267794
"x": 14940.787411658694,
"y": 24364.158373267794
},
"targetPosition": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 14896.074731805842,
"y": 24660.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -827,12 +874,12 @@
"id": "a56be34b-0153-4136-81f4-765bfff595dd",
"savedPayload": {
"position": {
"x": 18817.64335925682,
"y": 24659.807621135333
"x": 14896.074731805842,
"y": 24660.807621135333
},
"targetPosition": {
"x": 19077.450980392154,
"y": 24509.807621135333
"x": 15155.882352941173,
"y": 24510.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -850,12 +897,12 @@
"id": "fd803f47-976b-4c5f-a1d2-e9c54b96d2d2",
"savedPayload": {
"position": {
"x": 19077.450980392154,
"y": 24509.807621135333
"x": 15155.882352941173,
"y": 24510.807621135333
},
"targetPosition": {
"x": 18927.450980392154,
"y": 24250
"x": 15005.882352941173,
"y": 24251
},
"floatingObject": {
"isPinned": false,
@@ -873,12 +920,12 @@
"id": "5daefc7c-340a-4a60-8c5d-884d2e262729",
"savedPayload": {
"position": {
"x": 18927.450980392154,
"y": 24250
"x": 15005.882352941173,
"y": 24251
},
"targetPosition": {
"x": 18627.450980392154,
"y": 24250
"x": 14705.882352941173,
"y": 24251
},
"floatingObject": {
"isPinned": false,
@@ -900,12 +947,12 @@
"id": "057b6d0e-2ae5-4c54-99f2-b6d262bde1b5",
"savedPayload": {
"position": {
"x": 18327.450980392154,
"y": 24250
"x": 14405.882352941173,
"y": 24251
},
"targetPosition": {
"x": 18627.450980392154,
"y": 24250
"x": 14705.882352941173,
"y": 24251
},
"floatingObject": {
"isPinned": false,
@@ -923,12 +970,12 @@
"id": "501b09ca-778e-479b-98ff-7d2e6e8f2bb8",
"savedPayload": {
"position": {
"x": 18627.450980392154,
"y": 24250
"x": 14705.882352941173,
"y": 24251
},
"targetPosition": {
"x": 18627.450980392154,
"y": 24250
"x": 14705.882352941173,
"y": 24251
},
"floatingObject": {
"isPinned": true,
@@ -129,15 +129,12 @@ function newGovernanceUserProfileSpace() {
if (transfer.contractAddress !== UI.projects.governance.globals.saToken.SA_TOKEN_BSC_CONTRACT_ADDRESS) { continue }
if (transfer.from !== UI.projects.governance.globals.saToken.SA_TOKEN_BSC_TREASURY_ACCOUNT_ADDRESS) { continue }
if (transfer.to === '0x9F25cc5f3e70b907269CebbB45D812313b3e9143'.toLowerCase()) {
console.log(JSON.stringify(transfer))
}
let currentReputation = Number(transfer.value) / UI.projects.governance.globals.saToken.SA_TOKEN_BSC_DECIMAL_FACTOR
let previousReputation = reputationByAddress.get(transfer.to.toLowerCase())
let newReputation = previousReputation | 0 + currentReputation
reputationByAddress.set(transfer.to.toLowerCase(), newReputation)
}
console.log('[INFO] tokenTransfers = ' + JSON.stringify(tokenTransfers))
//console.log('[INFO] tokenTransfers = ' + JSON.stringify(tokenTransfers))
if (tokenTransfers.length > 9000) {
console.log('[WARN] The total amount of BSC SA Token transfers is above 9000. After 10k this method will need pagination or otherwise users will not get their reputation calculated correctly.')
} else {
@@ -420,17 +417,17 @@ function newGovernanceUserProfileSpace() {
}
function getBlockchainTokens(userProfile, blockchainAccount) {
console.log('User Profile Name: ', userProfile.name, 'blockchainAccount: ', blockchainAccount)
console.log('[INFO] Loading Blockachain Balance for User Profile: ', userProfile.name, 'blockchainAccount: ', blockchainAccount)
const url = "https://api.bscscan.com/api?module=account&action=tokenbalance&contractaddress=" + UI.projects.governance.globals.saToken.SA_TOKEN_BSC_CONTRACT_ADDRESS + "&address=" + blockchainAccount + "&tag=latest&apikey=YourApiKeyToken"
fetch(url).then(function (response) {
return response.json();
}).then(function (data) {
console.log(data)
//console.log(data)
if (data.result === "Max rate limit reached, please use API Key for higher rate limit") {
userProfile.payload.blockchainTokens = undefined // This enables this profile to query the blockchain again.
} else {
userProfile.payload.uiObject.setInfoMessage(data,
userProfile.payload.uiObject.setInfoMessage('Blockchan Balance Succesfully Loaded.',
UI.projects.governance.globals.designer.SET_INFO_COUNTER_FACTOR
)
userProfile.payload.blockchainTokens = Number(data.result) / 1000000000000000000