Governance: Programs Structure

This commit is contained in:
Luis Fernando Molina committed 2021-06-16 00:45:25 +02:00
1 parent 12faa5b099
commit 02e23d2ab5
33 files changed
+802 -4375

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@@ -3,379 +3,30 @@
"name": "Julian-Molina",
"config": "{\n \"codeName\": \"\",\n \"tokens\": 500000\n}",
"project": "Governance",
"contributionClaims": {
"type": "Contribution Claims",
"name": "New Contribution Claims",
"tokenSwitch": {
"type": "Token Switch",
"name": "New Token Switch",
"config": "{}",
"project": "Governance",
"assetContributionsFolder": [
{
"type": "Asset Contributions Folder",
"name": "Tutorials",
"config": "{}",
"project": "Governance",
"assetContributionsFolder": [
{
"type": "Asset Contributions Folder",
"name": "Tutorials Created",
"config": "{}",
"project": "Governance",
"assetContributionsFolder": [],
"assetContributionClaims": [
{
"type": "Asset Contribution Claim",
"name": "",
"config": "{\n \"description\": \"\"\n}",
"project": "Governance",
"id": "b62215fd-405b-4b81-a446-d667de2fd23b",
"savedPayload": {
"position": {
"x": 26082.78190893733,
"y": 22758.100619195047
},
"targetPosition": {
"x": 25822.974287801997,
"y": 22908.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {},
"referenceParent": {
"type": "Asset",
"name": "Getting Started Tutorial",
"id": "6c3f251e-cb80-42b7-935b-23bcbe218f97"
}
}
}
],
"id": "30c01eef-80cf-4fb8-9231-af6694be0af9",
"savedPayload": {
"position": {
"x": 25822.974287801997,
"y": 22908.100619195047
},
"targetPosition": {
"x": 25563.166666666664,
"y": 23058.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
{
"type": "Asset Contributions Folder",
"name": "Tutorials Mantainance",
"config": "{}",
"project": "Governance",
"assetContributionsFolder": [],
"assetContributionClaims": [
{
"type": "Asset Contribution Claim",
"name": "",
"config": "{\n \"description\": \"\"\n}",
"project": "Governance",
"id": "4a841aaa-0730-4783-91be-87d718ee4e15",
"savedPayload": {
"position": {
"x": 26082.78190893733,
"y": 23358.100619195047
},
"targetPosition": {
"x": 25822.974287801997,
"y": 23208.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {},
"referenceParent": {
"type": "Asset",
"name": "Getting Started Tutorial",
"id": "6c3f251e-cb80-42b7-935b-23bcbe218f97"
}
}
}
],
"id": "03cd14ee-432e-4c7c-b2b0-79dc24d07820",
"savedPayload": {
"position": {
"x": 25822.974287801997,
"y": 23208.100619195047
},
"targetPosition": {
"x": 25563.166666666664,
"y": 23058.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"assetContributionClaims": [],
"id": "9318707a-afa0-4c84-8028-473eb448f96b",
"savedPayload": {
"position": {
"x": 25563.166666666664,
"y": 23058.100619195047
},
"targetPosition": {
"x": 25263.166666666664,
"y": 23058.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"featureContributionsFolder": [],
"positionContributionsFolder": [],
"id": "43a4118b-fc68-46a9-a7d8-fa4baafa5ad6",
"savedPayload": {
"position": {
"x": 25263.166666666664,
"y": 23058.100619195047
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23058.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"votesDistribution": {
"type": "Votes Distribution",
"name": "New Votes Distribution",
"config": "{\n\"codeName\": \"\"\n}",
"project": "Governance",
"votesSwitch": [
{
"type": "Votes Switch",
"name": "Test",
"referralProgram": {
"type": "Referral Program",
"name": "New Referral Program",
"config": "{}",
"project": "Governance",
"userReferrer": {
"type": "User Referrer",
"name": "Luis-Fernando-Molina",
"config": "{\n \"description\": \"\"\n}",
"project": "Governance",
"votesSwitch": [],
"claimVotesSwitch": [
{
"type": "Claim Votes Switch",
"name": "New Claim Votes Switch",
"config": "{}",
"project": "Governance",
"claimVotesSwitch": [],
"positionClaimVotes": [
{
"type": "Position Claim Vote",
"name": "Luis-Fernando-Molina Project Leader Superalgos",
"config": "{}",
"project": "Governance",
"id": "ab4d6901-a84c-44d3-a97a-7bc14de9ff31",
"savedPayload": {
"position": {
"x": 25113.166666666664,
"y": 23837.523482601046
},
"targetPosition": {
"x": 24813.166666666664,
"y": 23837.523482601046
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {},
"referenceParent": {
"type": "Position Contribution Claim",
"name": "Project Leader Superalgos",
"id": "a2bb4366-f480-4685-80b0-e40af9cddd8c"
}
}
},
{
"type": "Position Claim Vote",
"name": "Luis-Fernando-Molina Project Leader Superalgos",
"config": "{}",
"project": "Governance",
"id": "2248b955-af4b-42e6-9649-9b6a689d0ade",
"savedPayload": {
"position": {
"x": 24663.166666666664,
"y": 24097.33110373638
},
"targetPosition": {
"x": 24813.166666666664,
"y": 23837.523482601046
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {},
"referenceParent": {
"type": "Position Contribution Claim",
"name": "Project Leader Superalgos",
"id": "be2aedec-06fd-41fa-8599-08105931f75f"
}
}
}
],
"assetClaimVotes": [],
"featureClaimVotes": [],
"id": "6029fd9b-94b4-4b62-960a-14fb88107cdb",
"savedPayload": {
"position": {
"x": 24813.166666666664,
"y": 23837.523482601046
},
"targetPosition": {
"x": 24663.166666666664,
"y": 23577.715861465713
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"weightVotesSwitch": [
{
"type": "Weight Votes Switch",
"name": "New Weight Votes Switch",
"config": "{}",
"project": "Governance",
"weightVotesSwitch": [],
"poolWeightVotes": [],
"assetWeightVotes": [],
"featureWeightVotes": [],
"positionWeightVotes": [
{
"type": "Position Weight Vote",
"name": "Superalgos Project Leader",
"config": "{}",
"project": "Governance",
"id": "11a8ac12-eba4-472d-b44b-8783720f8c6a",
"savedPayload": {
"position": {
"x": 24063.166666666664,
"y": 23577.715861465713
},
"targetPosition": {
"x": 24363.166666666664,
"y": 23577.715861465713
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {},
"referenceParent": {
"type": "Position",
"name": "Project Leader",
"id": "5f694173-4568-46b2-a52c-4244320919f7"
}
}
}
],
"id": "d98792e3-620f-4827-b17f-74096a2fe5c8",
"savedPayload": {
"position": {
"x": 24363.166666666664,
"y": 23577.715861465713
},
"targetPosition": {
"x": 24663.166666666664,
"y": 23577.715861465713
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"userProfileVotesSwitch": [],
"id": "f4127f8b-eb94-4e5e-aea9-71ea43ba5b5b",
"id": "edf7bcda-23f6-49bb-b9b2-9a34edcb4a40",
"savedPayload": {
"position": {
"x": 24663.166666666664,
"y": 23577.715861465713
"x": 25503.74798740812,
"y": 23618.43086266558
},
"targetPosition": {
"x": 24813.166666666664,
"y": 23317.90824033038
"x": 25233.45732703739,
"y": 23488.265740930314
},
"floatingObject": {
"isPinned": false,
@@ -385,17 +36,186 @@
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
"uiObject": {},
"referenceParent": {
"type": "User Profile",
"name": "Luis-Fernando-Molina",
"id": "148911b3-b2f3-44fb-8cb4-017991789132"
}
}
},
"id": "a9ddce61-97b0-47e8-ad6c-e9438aca3913",
"savedPayload": {
"position": {
"x": 25233.45732703739,
"y": 23488.265740930314
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23358.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
],
"id": "84b2e7e0-577a-4edc-98fd-003905decb99",
},
"mentorshipProgram": {
"type": "Mentorship Program",
"name": "New Mentorship Program",
"config": "{}",
"project": "Governance",
"userMentors": [],
"id": "362a1ecb-dce9-4ebb-9b00-a20d3631f2f3",
"savedPayload": {
"position": {
"x": 25150.213607224283,
"y": 23592.650063935456
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23358.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"supportProgram": {
"type": "Support Program",
"name": "New Support Program",
"config": "{}",
"project": "Governance",
"userSupports": [],
"id": "f1020b53-23d4-4fea-b5d3-5409e13197a9",
"savedPayload": {
"position": {
"x": 25029.92294685356,
"y": 23650.578992849594
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23358.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"votingProgram": {
"type": "Voting Program",
"name": "New Voting Program",
"config": "{}",
"project": "Governance",
"votesSwitch": [],
"id": "0b2863a0-d280-4a9a-9e2c-fe5bdbc54854",
"savedPayload": {
"position": {
"x": 24896.41038647977,
"y": 23650.578992849594
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23358.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"claimsProgram": {
"type": "Claims Program",
"name": "New Claims Program",
"config": "{}",
"project": "Governance",
"assetContributionsFolder": [],
"featureContributionsFolder": [],
"positionContributionsFolder": [],
"id": "bec9399a-9f85-4cb5-bff4-9938a3bc7ac4",
"savedPayload": {
"position": {
"x": 24776.119726109046,
"y": 23592.650063935456
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23358.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"stakingProgram": {
"type": "Staking Program",
"name": "New Staking Program",
"config": "{}",
"project": "Governance",
"id": "d66a7bf2-963a-4d28-b896-c41e83f610ae",
"savedPayload": {
"position": {
"x": 24692.876006295937,
"y": 23488.265740930314
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23358.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {}
}
},
"id": "86a8ca4c-76d4-4eb0-9acb-5650095c6667",
"savedPayload": {
"position": {
"x": 24813.166666666664,
"y": 23317.90824033038
"x": 24963.166666666664,
"y": 23358.100619195047
},
"targetPosition": {
"x": 24963.166666666664,
@@ -405,7 +225,7 @@
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
@@ -414,37 +234,6 @@
}
}
},
"userReferrer": {
"type": "User Referrer",
"name": "Luis-Fernando-Molina",
"config": "{\n \"description\": \"\"\n}",
"project": "Governance",
"id": "edf7bcda-23f6-49bb-b9b2-9a34edcb4a40",
"savedPayload": {
"position": {
"x": 24813.166666666664,
"y": 22798.292998059715
},
"targetPosition": {
"x": 24963.166666666664,
"y": 23058.100619195047
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {},
"referenceParent": {
"type": "User Profile",
"name": "Luis-Fernando-Molina",
"id": "148911b3-b2f3-44fb-8cb4-017991789132"
}
}
},
"id": "1fd95e41-4b22-48d5-be3a-904c37afcb11",
"savedPayload": {
"position": {
@@ -458,8 +247,8 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
File diff suppressed because it is too large. Load diff
@@ -198,9 +198,9 @@
"name": "Julian-Molina",
"config": "{\n \"codeName\": \"\",\n \"tokens\": 500000\n}",
"project": "Governance",
"contributionClaims": {
"type": "Contribution Claims",
"name": "New Contribution Claims",
"claimsProgram": {
"type": "Claims Program",
"name": "New Claims Program",
"config": "{}",
"project": "Governance",
"assetContributionsFolder": [
@@ -385,9 +385,9 @@
}
}
},
"votesDistribution": {
"type": "Votes Distribution",
"name": "New Votes Distribution",
"votingProgram": {
"type": "Voting Program",
"name": "New Voting Program",
"config": "{\n\"codeName\": \"\"\n}",
"project": "Governance",
"votesSwitch": [
@@ -42,7 +42,7 @@
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Contribution Claims->Asset Contributions Folder->"
"compatibleTypes": "->Claims Program->Asset Contributions Folder->"
},
"propertyNameAtParent": "assetContributionsFolder",
"childrenNodesProperties": [
@@ -1,5 +1,5 @@
{
"type": "Contribution Claims",
"type": "Claims Program",
"menuItems": [
{
"action": "Configure",
@@ -47,11 +47,11 @@
"config": "{}"
},
"attachingRules": {
"compatibleTypes": "->User Profile->"
"compatibleTypes": "->Token Switch->"
},
"addLeftIcons": true,
"level": 1,
"propertyNameAtParent": "contributionClaims",
"propertyNameAtParent": "claimsProgram",
"childrenNodesProperties": [
{
"name": "assetContributionsFolder",
@@ -42,7 +42,7 @@
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Contribution Claims->Feature Contributions Folder->"
"compatibleTypes": "->Claims Program->Feature Contributions Folder->"
},
"propertyNameAtParent": "featureContributionsFolder",
"childrenNodesProperties": [
@@ -0,0 +1,51 @@
{
"type": "Mentorship Program",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "userMentor",
"actionFunction": "payload.executeAction",
"label": "Add User Mentor",
"relatedUiObject": "User Mentor"
},
{
"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": "{}"
},
"attachingRules": {
"compatibleTypes": "->Token Switch->"
},
"addLeftIcons": true,
"level": 1,
"propertyNameAtParent": "mentorshipProgram",
"childrenNodesProperties": [
{
"name": "userMentors",
"type": "array",
"childType": "User Mentor",
"autoAdd": false
}
]
}
@@ -42,7 +42,7 @@
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Contribution Claims->Position Contributions Folder->"
"compatibleTypes": "->Claims Program->Position Contributions Folder->"
},
"propertyNameAtParent": "positionContributionsFolder",
"childrenNodesProperties": [
@@ -0,0 +1,51 @@
{
"type": "Referral Program",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "userReferrer",
"actionFunction": "payload.executeAction",
"label": "Add User Referrer",
"relatedUiObject": "User Referrer"
},
{
"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": "{}"
},
"attachingRules": {
"compatibleTypes": "->Token Switch->"
},
"addLeftIcons": true,
"level": 1,
"propertyNameAtParent": "referralProgram",
"childrenNodesProperties": [
{
"name": "userReferrer",
"type": "node",
"childType": "User Referrer",
"autoAdd": true
}
]
}
@@ -0,0 +1,34 @@
{
"type": "Staking Program",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"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": "{}"
},
"attachingRules": {
"compatibleTypes": "->Token Switch->"
},
"addLeftIcons": true,
"level": 1,
"propertyNameAtParent": "stakingProgram"
}
@@ -0,0 +1,51 @@
{
"type": "Support Program",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "userSupport",
"actionFunction": "payload.executeAction",
"label": "Add User Support",
"relatedUiObject": "User Support"
},
{
"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": "{}"
},
"attachingRules": {
"compatibleTypes": "->Token Switch->"
},
"addLeftIcons": true,
"level": 1,
"propertyNameAtParent": "supportProgram",
"childrenNodesProperties": [
{
"name": "userSupports",
"type": "array",
"childType": "User Support",
"autoAdd": false
}
]
}
@@ -0,0 +1,126 @@
{
"type": "Token Switch",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "referralProgram",
"label": "Add Referral Program",
"relatedUiObject": "Referral Program"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "mentorshipProgram",
"label": "Add Mentorship Program",
"relatedUiObject": "Mentorship Program"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "supportProgram",
"label": "Add Support Program",
"relatedUiObject": "Support Program"
},
{
"action": "Add UI Object",
"actionProject": "Voting Program",
"actionFunction": "payload.executeAction",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "votingProgram",
"label": "Add Voting Program",
"relatedUiObject": "Voting Program"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "claimsProgram",
"label": "Add Claims Program",
"relatedUiObject": "Claims Program"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"actionFunction": "payload.executeAction",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "stakingProgram",
"label": "Add Staking Program",
"relatedUiObject": "Staking Program"
},
{
"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,
"attachingRules": {
"compatibleTypes": "->User Profile->"
},
"propertyNameAtParent": "tokenSwitch",
"childrenNodesProperties": [
{
"name": "referralProgram",
"type": "node",
"childType": "Referral Program",
"autoAdd": true
},
{
"name": "mentorshipProgram",
"type": "node",
"childType": "Mentorship Program",
"autoAdd": true
},
{
"name": "supportProgram",
"type": "node",
"childType": "Support Program",
"autoAdd": true
},
{
"name": "votingProgram",
"type": "node",
"childType": "Voting Program",
"autoAdd": true
},
{
"name": "claimsProgram",
"type": "node",
"childType": "Claims Program",
"autoAdd": true
},
{
"name": "stakingProgram",
"type": "node",
"childType": "Staking Program",
"autoAdd": true
}
]
}
@@ -0,0 +1,40 @@
{
"type": "User Mentor",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Delete UI Object",
"actionProject": "Foundations",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"title": [
"Use Reference Parent"
],
"editors": {
"config": true
},
"initialValues": {
"config": "{}"
},
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->mentorship Program->"
},
"referencingRules": {
"compatibleTypes": "->User Profile->"
},
"propertyNameAtParent": "userMentors"
}
@@ -12,28 +12,10 @@
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "contributionClaims",
"propertyToCheckFor": "tokenSwitch",
"actionFunction": "payload.executeAction",
"label": "Add Contribution Claims",
"relatedUiObject": "Contribution Claims"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "votesDistribution",
"actionFunction": "payload.executeAction",
"label": "Add Votes Distribution",
"relatedUiObject": "Votes Distribution"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "userReferrer",
"actionFunction": "payload.executeAction",
"label": "Add User Referrer",
"relatedUiObject": "User Referrer"
"label": "Add Token Switch",
"relatedUiObject": "Token Switch"
},
{
"action": "Delete UI Object",
@@ -50,7 +32,7 @@
"config": true
},
"initialValues": {
"config": "{\n\"codeName\": \"\"\n}"
"config": "{}"
},
"isTitleAllwaysVisible": false,
"isHierarchyHead": true,
@@ -58,22 +40,10 @@
"level": 0,
"childrenNodesProperties": [
{
"name": "contributionClaims",
"name": "tokenSwitch",
"type": "node",
"childType": "Contribution Claims",
"autoAdd": false
},
{
"name": "votesDistribution",
"type": "node",
"childType": "Votes Distribution",
"autoAdd": false
},
{
"name": "userReferrer",
"type": "node",
"childType": "User Referrer",
"autoAdd": false
"childType": "Token Switch",
"autoAdd": true
}
]
}
@@ -26,12 +26,12 @@
"config": true
},
"initialValues": {
"config": "{\n \"description\": \"\"\n}"
"config": "{}"
},
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->User Profile->"
"compatibleTypes": "->Referral Program->"
},
"referencingRules": {
"compatibleTypes": "->User Profile->"
@@ -0,0 +1,40 @@
{
"type": "User Support",
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration"
},
{
"action": "Delete UI Object",
"actionProject": "Foundations",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"title": [
"Use Reference Parent"
],
"editors": {
"config": true
},
"initialValues": {
"config": "{}"
},
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->support Program->"
},
"referencingRules": {
"compatibleTypes": "->User Profile->"
},
"propertyNameAtParent": "userSupports"
}
@@ -65,7 +65,7 @@
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Votes Distribution->Votes Switch->"
"compatibleTypes": "->Voting Program->Votes Switch->"
},
"propertyNameAtParent": "votesSwitch",
"childrenNodesProperties": [
@@ -1,5 +1,5 @@
{
"type": "Votes Distribution",
"type": "Voting Program",
"menuItems": [
{
"action": "Configure",
@@ -15,15 +15,6 @@
"label": "Add Votes Switch",
"relatedUiObject": "Votes Switch"
},
{
"action": "Add UI Object",
"actionProject": "Foundations",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "userReferrer",
"actionFunction": "payload.executeAction",
"label": "Add User Referrer",
"relatedUiObject": "User Referrer"
},
{
"action": "Delete UI Object",
"actionProject": "Foundations",
@@ -42,11 +33,11 @@
"config": "{}"
},
"attachingRules": {
"compatibleTypes": "->User Profile->"
"compatibleTypes": "->Token Switch->"
},
"addLeftIcons": true,
"level": 1,
"propertyNameAtParent": "votesDistribution",
"propertyNameAtParent": "votingProgram",
"childrenNodesProperties": [
{
"name": "votesSwitch",
@@ -1,5 +1,5 @@
{
"type": "Contribution Claims",
"type": "Claims Program",
"definition": {
"text": "This node helps define the section of the User Profiel hierarchy that is going to be used to define the claims users make for the contributions they have done. These claims need later to be voted by other users in order to be considered during the token distribution process.",
"updated": 1622989461838
@@ -1,7 +1,7 @@
{
"type": "User Profile",
"definition": {
"text": "At these hierarchies, users define their profile, which essentially means declaring which are their contribution claims, and which is the way they would like to distribute their voting power. From each user profile starts a stream of votes that flows through switches that split these streams according to the user preferences and end up at other hierarchies's nodes, who are the recipient of these votes. ",
"text": "At these hierarchies, users define their profile, which essentially means declaring which are their Claims Program, and which is the way they would like to distribute their voting power. From each user profile starts a stream of votes that flows through switches that split these streams according to the user preferences and end up at other hierarchies's nodes, who are the recipient of these votes. ",
"updated": 1622988108578
},
"paragraphs": [
@@ -1,5 +1,5 @@
{
"type": "Votes Distribution",
"type": "Voting Program",
"definition": {
"text": "This node defined the section where votes are going to flow like vote-streams, going through Votes Swithces and several different types of Vote nodes. Via references they are later sent to recipient nodes living at other hierarchies.",
"updated": 1622989230849
@@ -40,13 +40,13 @@ function newGovernanceFunctionLibraryClaims() {
},
count: 0
}
countForNode(userProfilesNode.contributionClaims)
countForNode(userProfilesNode.claimsProgram)
}
/* Claim Calculation Follows */
for (let i = 0; i < userProfiles.length; i++) {
let userProfilesNode = userProfiles[i]
calculateForNode(userProfilesNode.contributionClaims, userProfilesNode)
calculateForNode(userProfilesNode.claimsProgram, userProfilesNode)
}
}
@@ -102,7 +102,7 @@ function newGovernanceFunctionLibraryClaims() {
node.type !== 'Asset Contributions Folder' &&
node.type !== 'Feature Contributions Folder' &&
node.type !== 'Position Contributions Folder' &&
node.type !== 'Contribution Claims'
node.type !== 'Claims Program'
) {
if (node.payload.claims === undefined) {
node.payload.claims = {
@@ -170,7 +170,7 @@ function newGovernanceFunctionLibraryClaims() {
node.type !== 'Asset Contributions Folder' &&
node.type !== 'Feature Contributions Folder' &&
node.type !== 'Position Contributions Folder' &&
node.type !== 'Contribution Claims'
node.type !== 'Claims Program'
) {
if (
node.payload.claims !== undefined &&
@@ -71,7 +71,7 @@ function newGovernanceFunctionLibraryTokens() {
switch (property.type) {
case 'node': {
if (node.type === 'Pools' && property.name === "votesDistribution") {
if (node.type === 'Pools' && property.name === "votingProgram") {
let childNode = node[property.name]
resetTokenFlow(childNode)
}
@@ -142,7 +142,7 @@ function newGovernanceFunctionLibraryTokens() {
switch (property.type) {
case 'node': {
if (node.type === 'Pools' && property.name === "votesDistribution") {
if (node.type === 'Pools' && property.name === "votingProgram") {
let childNode = node[property.name]
distributeTokens(childNode, tokens)
}
@@ -89,11 +89,11 @@ function newGovernanceFunctionLibraryVotes() {
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 !== "votingProgram") { continue }
switch (property.type) {
case 'node': {
if (node.type === 'User Profile' && property.name === "votesDistribution") {
if (node.type === 'User Profile' && property.name === "votingProgram") {
let childNode = node[property.name]
resetVotes(childNode)
}
@@ -176,11 +176,11 @@ function newGovernanceFunctionLibraryVotes() {
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 !== "votingProgram") { continue }
switch (property.type) {
case 'node': {
if (node.type === 'User Profile' && property.name === "votesDistribution") {
if (node.type === 'User Profile' && property.name === "votingProgram") {
let childNode = node[property.name]
if (childNode === undefined) { continue }
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
@@ -224,11 +224,11 @@ function newGovernanceFunctionLibraryVotes() {
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 !== "votingProgram") { continue }
switch (property.type) {
case 'node': {
if (node.type === 'User Profile' && property.name === "votesDistribution") {
if (node.type === 'User Profile' && property.name === "votingProgram") {
let childNode = node[property.name]
if (childNode === undefined) { continue }
let percentage = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')