diff --git a/Client/client.js b/Client/client.js index 02d588d66..f634a4dbc 100644 --- a/Client/client.js +++ b/Client/client.js @@ -78,7 +78,7 @@ try { global.CL = {} /* The SA object is accesible everywhere at the Superalgos Client. - It provides access to all modules built Superalgos in general. + It provides access to all modules built for Superalgos in general. */ global.SA = {} /* diff --git a/Network/SocialGraphNetwokNode.js b/Network/SocialGraphNetwokNode.js index a886b34e9..cf3bb416a 100644 --- a/Network/SocialGraphNetwokNode.js +++ b/Network/SocialGraphNetwokNode.js @@ -11,17 +11,6 @@ This type of node is responsible for mantaining the whole Social Graph or relationships between User and Bot profiles and also between their posts. */ global.NT = { - memory: { - maps: { - USER_PROFILES_BY_ID: new Map(), // Here we will store the user profiles by User Profile Id. - USER_PROFILES_BY_HANDLE: new Map(), // Here we will store the user profiles by User Profile Handle. - EVENTS: new Map(), // This is the registry of all events received that prevents processing them more than once. - }, - arrays: { - NETWORK_CLIENTS: [], // These are the Network Clients connected to this Network Node ordered by Ranking. - NETWORK_PEERS: [], // These are the Network Peers connected to this Network Node ordered by Ranking. - } - }, modules: { BOOTSTRAP: require('./Bootstrap.js'), EVENT: require('./Event.js'), @@ -53,6 +42,43 @@ global.NT = { } } } +/* +The NT object is accesible everywhere at the Superalgos Network. +It provides access to all modules built for this Network. +*/ +global.NT = {} +/* +The SA object is accesible everywhere at the Superalgos Network. +It provides access to all modules built for Superalgos in general. +*/ +global.SA = {} +/* +First thing is to load the project schema file. +*/ +global.PROJECTS_SCHEMA = require(global.env.PATH_TO_PROJECT_SCHEMA) +/* +Setting up the modules that will be available for the Servers Running inside this Client +*/ +let MULTI_PROJECT = require('../MultiProject.js'); +let MULTI_PROJECT_MODULE = MULTI_PROJECT.newMultiProject() +MULTI_PROJECT_MODULE.initialize(CL, 'CL') +MULTI_PROJECT_MODULE.initialize(SA, 'SA') +/* +Here is the Data we are going to keep in memory. +*/ +NT.memory = { + maps: { + USER_PROFILES_BY_ID: new Map(), // Here we will store the user profiles by User Profile Id. + USER_PROFILES_BY_HANDLE: new Map(), // Here we will store the user profiles by User Profile Handle. + EVENTS: new Map(), // This is the registry of all events received that prevents processing them more than once. + }, + arrays: { + NETWORK_CLIENTS: [], // These are the Network Clients connected to this Network Node ordered by Ranking. + NETWORK_PEERS: [], // These are the Network Peers connected to this Network Node ordered by Ranking. + } +} + + let bootstrapProcess = NT.modules.BOOTSTRAP.newBootstrap() bootstrapProcess.initialize() \ No newline at end of file diff --git a/Projects/Governance/Schemas/Docs-Nodes/C/Contribution/Contribution-Claims/contribution-claims.json b/Projects/Governance/Schemas/Docs-Nodes/C/Contribution/Contribution-Claims/contribution-claims.json deleted file mode 100644 index 0f38bc9ea..000000000 --- a/Projects/Governance/Schemas/Docs-Nodes/C/Contribution/Contribution-Claims/contribution-claims.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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 - }, - "paragraphs": [ - { - "style": "Text", - "text": "Right click and select the pencil button to enter edit mode." - } - ] -} \ No newline at end of file diff --git a/TaskServer/Task.js b/TaskServer/Task.js index 87ff58724..ce3c19ce7 100644 --- a/TaskServer/Task.js +++ b/TaskServer/Task.js @@ -15,7 +15,7 @@ It provides access to all modules built for the Task Server. global.TS = {} /* The SA object is accesible everywhere at the Superalgos Client. -It provides access to all modules built Superalgos in general. +It provides access to all modules built for Superalgos in general. */ global.SA = {} /*