Adding Profiles Query
This commit is contained in:
1 parent
c815d07c19
commit
36e00115ed
4 files changed
+49
-35
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "User Profile",
|
||||
"name": "Test-Network-Client-Profile",
|
||||
"config": "{\n \"signature\": {\n \"message\": \"Test-Network-Client-Profile\",\n \"messageHash\": \"0xd768f828a837f3fa0c3e9bb8090820c415ff08be93cad759a53bc2115487c5d7\",\n \"v\": \"0x1c\",\n \"r\": \"0x1401b80eec441aa9789580848e0179f36485acab9562fe184bca5e2fd9e77887\",\n \"s\": \"0x06400cef3453437805fb9b086c246d7def27a146ed975450edf7dcc46795a57d\",\n \"signature\": \"0x1401b80eec441aa9789580848e0179f36485acab9562fe184bca5e2fd9e7788706400cef3453437805fb9b086c246d7def27a146ed975450edf7dcc46795a57d1c\"\n }\n}",
|
||||
"config": "{\"signature\":{\"message\":\"Test-Network-Client-Profile\",\"messageHash\":\"0xd768f828a837f3fa0c3e9bb8090820c415ff08be93cad759a53bc2115487c5d7\",\"v\":\"0x1c\",\"r\":\"0x1401b80eec441aa9789580848e0179f36485acab9562fe184bca5e2fd9e77887\",\"s\":\"0x06400cef3453437805fb9b086c246d7def27a146ed975450edf7dcc46795a57d\",\"signature\":\"0x1401b80eec441aa9789580848e0179f36485acab9562fe184bca5e2fd9e7788706400cef3453437805fb9b086c246d7def27a146ed975450edf7dcc46795a57d1c\"},\"codeName\":\"Test-Network-Client-Profile\"}",
|
||||
"project": "Governance",
|
||||
"tokenPowerSwitch": {
|
||||
"type": "Token Power Switch",
|
||||
@@ -12,12 +12,12 @@
|
||||
"id": "c2a1f8b1-0eb3-457a-9508-2e0c813ced37",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13282,
|
||||
"y": 11240.5
|
||||
"x": 14303,
|
||||
"y": 11452.5
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13327,
|
||||
"y": 11256.5
|
||||
"x": 14003,
|
||||
"y": 11452.5
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
@@ -39,12 +39,12 @@
|
||||
"id": "e796be1b-7d10-47f1-8b1a-4d7ce962a113",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13400,
|
||||
"y": 11204.5
|
||||
"x": 13703,
|
||||
"y": 11452.5
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13327,
|
||||
"y": 11256.5
|
||||
"x": 14003,
|
||||
"y": 11452.5
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
@@ -62,17 +62,17 @@
|
||||
"id": "baa2f02c-2920-4edb-a103-d452fc61d82f",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13327,
|
||||
"y": 11256.5
|
||||
"x": 20588.235294117643,
|
||||
"y": 18250
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13297,
|
||||
"y": 11290.5
|
||||
"x": 20588.235294117643,
|
||||
"y": 18250
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"isCollapsed": true,
|
||||
"angleToParent": 1,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "User Profile",
|
||||
"name": "Test-Network-Node-Profile",
|
||||
"config": "{\n \"signature\": {\n \"message\": \"Test-Network-Node-Profile\",\n \"messageHash\": \"0xa05026b7c6c2a2375480d5d24949621749cc48e461e6e80278a9ef1b6dc7c5f1\",\n \"v\": \"0x1c\",\n \"r\": \"0x8f28f992b0074e4d50007cdfbf18980ca58b4969e04a54d06e4d4798bb982c9a\",\n \"s\": \"0x1c11951a92a1beffe8f3ddd06426ebe1b89875b56d5e374426100d5f59245ea3\",\n \"signature\": \"0x8f28f992b0074e4d50007cdfbf18980ca58b4969e04a54d06e4d4798bb982c9a1c11951a92a1beffe8f3ddd06426ebe1b89875b56d5e374426100d5f59245ea31c\"\n }\n}",
|
||||
"config": "{\"signature\":{\"message\":\"Test-Network-Node-Profile\",\"messageHash\":\"0xa05026b7c6c2a2375480d5d24949621749cc48e461e6e80278a9ef1b6dc7c5f1\",\"v\":\"0x1c\",\"r\":\"0x8f28f992b0074e4d50007cdfbf18980ca58b4969e04a54d06e4d4798bb982c9a\",\"s\":\"0x1c11951a92a1beffe8f3ddd06426ebe1b89875b56d5e374426100d5f59245ea3\",\"signature\":\"0x8f28f992b0074e4d50007cdfbf18980ca58b4969e04a54d06e4d4798bb982c9a1c11951a92a1beffe8f3ddd06426ebe1b89875b56d5e374426100d5f59245ea31c\"},\"codeName\":\"Test-Network-Node-Profile\"}",
|
||||
"project": "Governance",
|
||||
"tokenPowerSwitch": {
|
||||
"type": "Token Power Switch",
|
||||
@@ -12,12 +12,12 @@
|
||||
"id": "11f69cbe-00c8-4fac-9fcc-701a7600c92c",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13516,
|
||||
"y": 11661
|
||||
"x": 14327,
|
||||
"y": 11862
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13486,
|
||||
"y": 11579
|
||||
"x": 14027,
|
||||
"y": 11862
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
@@ -39,12 +39,12 @@
|
||||
"id": "501f456f-b4b5-4b7e-9118-0f26215dd20e",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13470,
|
||||
"y": 11657
|
||||
"x": 13727,
|
||||
"y": 11862
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13486,
|
||||
"y": 11579
|
||||
"x": 14027,
|
||||
"y": 11862
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
@@ -62,17 +62,17 @@
|
||||
"id": "36c2b050-631f-4291-987c-418adc94317d",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13486,
|
||||
"y": 11579
|
||||
"x": 17647.05882352941,
|
||||
"y": 21251
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13413,
|
||||
"y": 11508
|
||||
"x": 17647.05882352941,
|
||||
"y": 21251
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"isCollapsed": true,
|
||||
"angleToParent": 1,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
|
||||
@@ -1315,6 +1315,12 @@
|
||||
}
|
||||
],
|
||||
"modules": [
|
||||
{
|
||||
"name": "User Profiles",
|
||||
"propertyName": "queriesUserProfiles",
|
||||
"functionName": "newSocialTradingModulesQueriesUserProfiles",
|
||||
"fileName": "Queries/UserProfiles.js"
|
||||
},
|
||||
{
|
||||
"name": "Bot Profile Stats",
|
||||
"propertyName": "queriesBotProfileStats",
|
||||
|
||||
@@ -17,13 +17,14 @@ exports.newSocialTradingModulesQuery = function newSocialTradingModulesQuery() {
|
||||
|
||||
const QUERY_TYPES = {
|
||||
|
||||
USER_PROFILE_STATS: 0,
|
||||
BOT_PROFILE_STATS: 1,
|
||||
PROFILE_POSTS: 2,
|
||||
PROFILE_FOLLOWERS: 3,
|
||||
PROFILE_FOLLOWING: 4,
|
||||
POST_REPLIES: 5,
|
||||
EVENTS: 6
|
||||
USER_PROFILES: 0,
|
||||
USER_PROFILE_STATS: 1,
|
||||
BOT_PROFILE_STATS: 2,
|
||||
PROFILE_POSTS: 3,
|
||||
PROFILE_FOLLOWERS: 4,
|
||||
PROFILE_FOLLOWING: 5,
|
||||
POST_REPLIES: 6,
|
||||
EVENTS: 7
|
||||
|
||||
}
|
||||
|
||||
@@ -40,6 +41,13 @@ exports.newSocialTradingModulesQuery = function newSocialTradingModulesQuery() {
|
||||
|
||||
switch (thisObject.queryType) {
|
||||
|
||||
case QUERY_TYPES.USER_PROFILES: {
|
||||
thisObject.query = NT.projects.socialTrading.modules.queriesUserProfiles.newSocialTradingModulesQueriesUserProfiles()
|
||||
query.initialize(queryReceived)
|
||||
query.finalize()
|
||||
break
|
||||
}
|
||||
|
||||
case QUERY_TYPES.USER_PROFILE_STATS: {
|
||||
thisObject.query = NT.projects.socialTrading.modules.queriesUserProfileStats.newSocialTradingModulesQueriesUserProfileStats()
|
||||
query.initialize(queryReceived)
|
||||
|
||||
Reference in new issue
Block a user