@reyaxyz/community-sdk 0.17.8 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/client/index.js +32 -16
  2. package/dist/client/index.js.map +1 -1
  3. package/dist/index.js +2 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/modules/index.js +1 -0
  6. package/dist/modules/index.js.map +1 -1
  7. package/dist/modules/{trading-league → leaderboard}/index.js +14 -14
  8. package/dist/modules/leaderboard/index.js.map +1 -0
  9. package/dist/modules/leaderboard/types.js.map +1 -0
  10. package/dist/modules/lge/index.js.map +1 -1
  11. package/dist/modules/referral/index.js +68 -0
  12. package/dist/modules/referral/index.js.map +1 -0
  13. package/dist/modules/referral/services/get-wallet-referral-details/index.js +18 -0
  14. package/dist/modules/referral/services/get-wallet-referral-details/index.js.map +1 -0
  15. package/dist/modules/referral/services/get-wallet-referral-details/types.js +3 -0
  16. package/dist/modules/referral/services/get-wallet-referral-details/types.js.map +1 -0
  17. package/dist/modules/referral/services/index.js +19 -0
  18. package/dist/modules/referral/services/index.js.map +1 -0
  19. package/dist/modules/twitter/index.js.map +1 -1
  20. package/dist/types/client/index.d.ts +22 -12
  21. package/dist/types/client/index.d.ts.map +1 -1
  22. package/dist/types/index.d.ts +2 -1
  23. package/dist/types/index.d.ts.map +1 -1
  24. package/dist/types/modules/index.d.ts +1 -0
  25. package/dist/types/modules/index.d.ts.map +1 -1
  26. package/dist/types/modules/{trading-league → leaderboard}/index.d.ts +1 -1
  27. package/dist/types/modules/leaderboard/index.d.ts.map +1 -0
  28. package/dist/types/modules/leaderboard/types.d.ts.map +1 -0
  29. package/dist/types/modules/lge/index.d.ts +2 -2
  30. package/dist/types/modules/lge/index.d.ts.map +1 -1
  31. package/dist/types/modules/referral/index.d.ts +8 -0
  32. package/dist/types/modules/referral/index.d.ts.map +1 -0
  33. package/dist/types/modules/referral/services/get-wallet-referral-details/index.d.ts +3 -0
  34. package/dist/types/modules/referral/services/get-wallet-referral-details/index.d.ts.map +1 -0
  35. package/dist/types/modules/referral/services/get-wallet-referral-details/types.d.ts +9 -0
  36. package/dist/types/modules/referral/services/get-wallet-referral-details/types.d.ts.map +1 -0
  37. package/dist/types/modules/referral/services/index.d.ts +3 -0
  38. package/dist/types/modules/referral/services/index.d.ts.map +1 -0
  39. package/dist/types/modules/twitter/index.d.ts.map +1 -1
  40. package/package.json +4 -4
  41. package/src/client/index.ts +34 -20
  42. package/src/index.ts +2 -1
  43. package/src/modules/index.ts +1 -0
  44. package/src/modules/{trading-league → leaderboard}/index.ts +4 -7
  45. package/src/modules/lge/index.ts +6 -0
  46. package/src/modules/referral/index.ts +18 -0
  47. package/src/modules/referral/services/get-wallet-referral-details/index.ts +21 -0
  48. package/src/modules/referral/services/get-wallet-referral-details/types.ts +9 -0
  49. package/src/modules/referral/services/index.ts +2 -0
  50. package/src/modules/twitter/index.ts +3 -0
  51. package/dist/modules/trading-league/index.js.map +0 -1
  52. package/dist/modules/trading-league/types.js.map +0 -1
  53. package/dist/types/modules/trading-league/index.d.ts.map +0 -1
  54. package/dist/types/modules/trading-league/types.d.ts.map +0 -1
  55. /package/dist/modules/{trading-league → leaderboard}/types.js +0 -0
  56. /package/dist/types/modules/{trading-league → leaderboard}/types.d.ts +0 -0
  57. /package/src/modules/{trading-league → leaderboard}/types.ts +0 -0
@@ -8,16 +8,18 @@ var common_1 = require("@reyaxyz/common");
8
8
  var vote_1 = __importDefault(require("../modules/vote"));
9
9
  var lge_1 = __importDefault(require("../modules/lge"));
10
10
  var twitter_1 = __importDefault(require("../modules/twitter"));
11
- var trading_league_1 = __importDefault(require("../modules/trading-league"));
11
+ var leaderboard_1 = __importDefault(require("../modules/leaderboard"));
12
+ var referral_1 = __importDefault(require("../modules/referral"));
12
13
  /**
13
14
  * @description Client for Community SDK
14
15
  */
15
16
  var CommunityClient = /** @class */ (function () {
16
17
  function CommunityClient() {
17
- this._vote = new vote_1.default(CommunityClient.config.apiEndpoint, CommunityClient.config.logging);
18
- this._LGE = new lge_1.default(CommunityClient.config.apiEndpoint, CommunityClient.config.logging);
19
- this._twitter = new twitter_1.default(CommunityClient.config.twitter.redirectURI, CommunityClient.config.twitter.clientId, CommunityClient.config.logging);
20
- this._tradingLeague = new trading_league_1.default(CommunityClient.config.apiEndpoint, CommunityClient.config.logging);
18
+ this._voteModule = new vote_1.default(CommunityClient.config.apiEndpoint, CommunityClient.config.logging);
19
+ this._lgeModule = new lge_1.default(CommunityClient.config.apiEndpoint, CommunityClient.config.logging);
20
+ this._twitterModule = new twitter_1.default(CommunityClient.config.twitter.redirectURI, CommunityClient.config.twitter.clientId, CommunityClient.config.logging);
21
+ this._leaderboardModule = new leaderboard_1.default(CommunityClient.config.apiEndpoint, CommunityClient.config.logging);
22
+ this._referralModule = new referral_1.default(CommunityClient.config.logging);
21
23
  }
22
24
  CommunityClient.configure = function (environment) {
23
25
  CommunityClient.config =
@@ -30,7 +32,7 @@ var CommunityClient = /** @class */ (function () {
30
32
  }
31
33
  return CommunityClient.instance;
32
34
  };
33
- Object.defineProperty(CommunityClient, "vote", {
35
+ Object.defineProperty(CommunityClient, "voteModule", {
34
36
  /**
35
37
  * Provides access to the VoteModule instance.
36
38
  * This getter allows for interacting with vote-related functionalities.
@@ -39,12 +41,12 @@ var CommunityClient = /** @class */ (function () {
39
41
  * @memberof CommunityClient
40
42
  */
41
43
  get: function () {
42
- return CommunityClient.getInstance()._vote;
44
+ return CommunityClient.getInstance()._voteModule;
43
45
  },
44
46
  enumerable: false,
45
47
  configurable: true
46
48
  });
47
- Object.defineProperty(CommunityClient, "LGE", {
49
+ Object.defineProperty(CommunityClient, "lgeModule", {
48
50
  /**
49
51
  * Provides access to the LGEModule instance.
50
52
  * This getter allows for interacting with LGE-related functionalities.
@@ -53,12 +55,12 @@ var CommunityClient = /** @class */ (function () {
53
55
  * @memberof CommunityClient
54
56
  */
55
57
  get: function () {
56
- return CommunityClient.getInstance()._LGE;
58
+ return CommunityClient.getInstance()._lgeModule;
57
59
  },
58
60
  enumerable: false,
59
61
  configurable: true
60
62
  });
61
- Object.defineProperty(CommunityClient, "twitter", {
63
+ Object.defineProperty(CommunityClient, "twitterModule", {
62
64
  /**
63
65
  * Provides access to the TwitterModule instance.
64
66
  * This getter allows for interacting with twitter-related functionalities.
@@ -67,21 +69,35 @@ var CommunityClient = /** @class */ (function () {
67
69
  * @memberof CommunityClient
68
70
  */
69
71
  get: function () {
70
- return CommunityClient.getInstance()._twitter;
72
+ return CommunityClient.getInstance()._twitterModule;
71
73
  },
72
74
  enumerable: false,
73
75
  configurable: true
74
76
  });
75
- Object.defineProperty(CommunityClient, "tradingLeague", {
77
+ Object.defineProperty(CommunityClient, "leaderboard", {
76
78
  /**
77
- * Provides access to the TradingLeagueModule instance.
78
- * This getter allows for interacting with trading-league-related functionalities.
79
+ * Provides access to the LeaderboardModule instance.
80
+ * This getter allows for interacting with leaderboard-related functionalities.
79
81
  *
80
- * @returns {TradingLeagueModule} An instance of Trading League for twitter operations.
82
+ * @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.
81
83
  * @memberof CommunityClient
82
84
  */
83
85
  get: function () {
84
- return CommunityClient.getInstance()._tradingLeague;
86
+ return CommunityClient.getInstance()._leaderboardModule;
87
+ },
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ Object.defineProperty(CommunityClient, "referral", {
92
+ /**
93
+ * Provides access to the ReferralModule instance.
94
+ * This getter allows for interacting with referral related functionalities.
95
+ *
96
+ * @returns {ReferralModule} An instance of ReferralModule .
97
+ * @memberof CommunityClient
98
+ */
99
+ get: function () {
100
+ return CommunityClient.getInstance()._referralModule;
85
101
  },
86
102
  enumerable: false,
87
103
  configurable: true
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["client/index.ts"],"names":[],"mappings":";;;;;;AAAA,0CAAoE;AACpE,yDAAyC;AACzC,uDAAuC;AACvC,+DAA+C;AAC/C,6EAA4D;AAE5D;;GAEG;AACH;IASE;QACE,IAAI,CAAC,KAAK,GAAG,IAAI,cAAU,CACzB,eAAe,CAAC,MAAM,CAAC,WAAW,EAClC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,aAAS,CACvB,eAAe,CAAC,MAAM,CAAC,WAAW,EAClC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAa,CAC/B,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAC1C,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EACvC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAmB,CAC3C,eAAe,CAAC,MAAM,CAAC,WAAW,EAClC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;IACJ,CAAC;IAEa,yBAAS,GAAvB,UAAwB,WAAyC;QAC/D,eAAe,CAAC,MAAM;YACpB,2BAAkB,CAAC,WAAW,CAAC,IAAI,2BAAkB,CAAC,MAAM,CAAC,CAAC;QAChE,eAAe,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;IACnD,CAAC;IAEc,2BAAW,GAA1B;QACE,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CACb,6DAA6D,CAC9D,CAAC;QACJ,CAAC;QACD,OAAO,eAAe,CAAC,QAAQ,CAAC;IAClC,CAAC;IASD,sBAAkB,uBAAI;QAPtB;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;QAC7C,CAAC;;;OAAA;IASD,sBAAkB,sBAAG;QAPrB;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC;QAC5C,CAAC;;;OAAA;IASD,sBAAkB,0BAAO;QAPzB;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC;QAChD,CAAC;;;OAAA;IASD,sBAAkB,gCAAa;QAP/B;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,cAAc,CAAC;QACtD,CAAC;;;OAAA;IAED,sBAAkB,iCAAc;aAAhC;YACE,OAAO,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC;QACtC,CAAC;;;OAAA;IAxFc,sBAAM,GAAkB,2BAAkB,CAAC,MAAM,CAAC,CAAC;IAyFpE,sBAAC;CAAA,AA3FD,IA2FC;AA3FY,0CAAe","sourcesContent":["import { API_CLIENT_CONFIGS, ServiceConfig } from '@reyaxyz/common';\nimport VoteModule from '../modules/vote';\nimport LGEModule from '../modules/lge';\nimport TwitterModule from '../modules/twitter';\nimport TradingLeagueModule from '../modules/trading-league';\n\n/**\n * @description Client for Community SDK\n */\nexport class CommunityClient {\n private static instance: CommunityClient;\n private static config: ServiceConfig = API_CLIENT_CONFIGS['test'];\n\n private readonly _vote: VoteModule;\n private readonly _LGE: LGEModule;\n private readonly _twitter: TwitterModule;\n private readonly _tradingLeague: TradingLeagueModule;\n\n private constructor() {\n this._vote = new VoteModule(\n CommunityClient.config.apiEndpoint,\n CommunityClient.config.logging,\n );\n this._LGE = new LGEModule(\n CommunityClient.config.apiEndpoint,\n CommunityClient.config.logging,\n );\n this._twitter = new TwitterModule(\n CommunityClient.config.twitter.redirectURI,\n CommunityClient.config.twitter.clientId,\n CommunityClient.config.logging,\n );\n this._tradingLeague = new TradingLeagueModule(\n CommunityClient.config.apiEndpoint,\n CommunityClient.config.logging,\n );\n }\n\n public static configure(environment: ServiceConfig['environment']): void {\n CommunityClient.config =\n API_CLIENT_CONFIGS[environment] || API_CLIENT_CONFIGS['test'];\n CommunityClient.instance = new CommunityClient();\n }\n\n private static getInstance(): CommunityClient {\n if (!CommunityClient.instance) {\n throw new Error(\n 'Client is not configured. Please configure it before using.',\n );\n }\n return CommunityClient.instance;\n }\n\n /**\n * Provides access to the VoteModule instance.\n * This getter allows for interacting with vote-related functionalities.\n *\n * @returns {VoteModule} An instance of VoteModule for vote operations.\n * @memberof CommunityClient\n */\n public static get vote(): VoteModule {\n return CommunityClient.getInstance()._vote;\n }\n\n /**\n * Provides access to the LGEModule instance.\n * This getter allows for interacting with LGE-related functionalities.\n *\n * @returns {LGEModule} An instance of LGEModule for LGE operations.\n * @memberof CommunityClient\n */\n public static get LGE(): LGEModule {\n return CommunityClient.getInstance()._LGE;\n }\n\n /**\n * Provides access to the TwitterModule instance.\n * This getter allows for interacting with twitter-related functionalities.\n *\n * @returns {TwitterModule} An instance of Twitter for twitter operations.\n * @memberof CommunityClient\n */\n public static get twitter(): TwitterModule {\n return CommunityClient.getInstance()._twitter;\n }\n\n /**\n * Provides access to the TradingLeagueModule instance.\n * This getter allows for interacting with trading-league-related functionalities.\n *\n * @returns {TradingLeagueModule} An instance of Trading League for twitter operations.\n * @memberof CommunityClient\n */\n public static get tradingLeague(): TradingLeagueModule {\n return CommunityClient.getInstance()._tradingLeague;\n }\n\n public static get supportedChain(): number {\n return CommunityClient.config.chain;\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["client/index.ts"],"names":[],"mappings":";;;;;;AAAA,0CAAoE;AACpE,yDAAyC;AACzC,uDAAuC;AACvC,+DAA+C;AAC/C,uEAAuD;AACvD,iEAAiD;AAEjD;;GAEG;AACH;IAUE;QACE,IAAI,CAAC,WAAW,GAAG,IAAI,cAAU,CAC/B,eAAe,CAAC,MAAM,CAAC,WAAW,EAClC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,aAAS,CAC7B,eAAe,CAAC,MAAM,CAAC,WAAW,EAClC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,IAAI,iBAAa,CACrC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAC1C,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EACvC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,IAAI,qBAAiB,CAC7C,eAAe,CAAC,MAAM,CAAC,WAAW,EAClC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,CAAC;QACF,IAAI,CAAC,eAAe,GAAG,IAAI,kBAAc,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEa,yBAAS,GAAvB,UAAwB,WAAyC;QAC/D,eAAe,CAAC,MAAM;YACpB,2BAAkB,CAAC,WAAW,CAAC,IAAI,2BAAkB,CAAC,MAAM,CAAC,CAAC;QAChE,eAAe,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;IACnD,CAAC;IAEc,2BAAW,GAA1B;QACE,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CACb,6DAA6D,CAC9D,CAAC;QACJ,CAAC;QACD,OAAO,eAAe,CAAC,QAAQ,CAAC;IAClC,CAAC;IASD,sBAAkB,6BAAU;QAP5B;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC;QACnD,CAAC;;;OAAA;IASD,sBAAkB,4BAAS;QAP3B;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC;QAClD,CAAC;;;OAAA;IASD,sBAAkB,gCAAa;QAP/B;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,cAAc,CAAC;QACtD,CAAC;;;OAAA;IASD,sBAAkB,8BAAW;QAP7B;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,kBAAkB,CAAC;QAC1D,CAAC;;;OAAA;IASD,sBAAkB,2BAAQ;QAP1B;;;;;;WAMG;aACH;YACE,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,eAAe,CAAC;QACvD,CAAC;;;OAAA;IAED,sBAAkB,iCAAc;aAAhC;YACE,OAAO,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC;QACtC,CAAC;;;OAAA;IArGc,sBAAM,GAAkB,2BAAkB,CAAC,MAAM,CAAC,CAAC;IAsGpE,sBAAC;CAAA,AAxGD,IAwGC;AAxGY,0CAAe","sourcesContent":["import { API_CLIENT_CONFIGS, ServiceConfig } from '@reyaxyz/common';\nimport VoteModule from '../modules/vote';\nimport LGEModule from '../modules/lge';\nimport TwitterModule from '../modules/twitter';\nimport LeaderboardModule from '../modules/leaderboard';\nimport ReferralModule from '../modules/referral';\n\n/**\n * @description Client for Community SDK\n */\nexport class CommunityClient {\n private static instance: CommunityClient;\n private static config: ServiceConfig = API_CLIENT_CONFIGS['test'];\n\n private readonly _voteModule: VoteModule;\n private readonly _lgeModule: LGEModule;\n private readonly _twitterModule: TwitterModule;\n private readonly _leaderboardModule: LeaderboardModule;\n private readonly _referralModule: ReferralModule;\n\n private constructor() {\n this._voteModule = new VoteModule(\n CommunityClient.config.apiEndpoint,\n CommunityClient.config.logging,\n );\n this._lgeModule = new LGEModule(\n CommunityClient.config.apiEndpoint,\n CommunityClient.config.logging,\n );\n this._twitterModule = new TwitterModule(\n CommunityClient.config.twitter.redirectURI,\n CommunityClient.config.twitter.clientId,\n CommunityClient.config.logging,\n );\n this._leaderboardModule = new LeaderboardModule(\n CommunityClient.config.apiEndpoint,\n CommunityClient.config.logging,\n );\n this._referralModule = new ReferralModule(CommunityClient.config.logging);\n }\n\n public static configure(environment: ServiceConfig['environment']): void {\n CommunityClient.config =\n API_CLIENT_CONFIGS[environment] || API_CLIENT_CONFIGS['test'];\n CommunityClient.instance = new CommunityClient();\n }\n\n private static getInstance(): CommunityClient {\n if (!CommunityClient.instance) {\n throw new Error(\n 'Client is not configured. Please configure it before using.',\n );\n }\n return CommunityClient.instance;\n }\n\n /**\n * Provides access to the VoteModule instance.\n * This getter allows for interacting with vote-related functionalities.\n *\n * @returns {VoteModule} An instance of VoteModule for vote operations.\n * @memberof CommunityClient\n */\n public static get voteModule(): VoteModule {\n return CommunityClient.getInstance()._voteModule;\n }\n\n /**\n * Provides access to the LGEModule instance.\n * This getter allows for interacting with LGE-related functionalities.\n *\n * @returns {LGEModule} An instance of LGEModule for LGE operations.\n * @memberof CommunityClient\n */\n public static get lgeModule(): LGEModule {\n return CommunityClient.getInstance()._lgeModule;\n }\n\n /**\n * Provides access to the TwitterModule instance.\n * This getter allows for interacting with twitter-related functionalities.\n *\n * @returns {TwitterModule} An instance of Twitter for twitter operations.\n * @memberof CommunityClient\n */\n public static get twitterModule(): TwitterModule {\n return CommunityClient.getInstance()._twitterModule;\n }\n\n /**\n * Provides access to the LeaderboardModule instance.\n * This getter allows for interacting with leaderboard-related functionalities.\n *\n * @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.\n * @memberof CommunityClient\n */\n public static get leaderboard(): LeaderboardModule {\n return CommunityClient.getInstance()._leaderboardModule;\n }\n\n /**\n * Provides access to the ReferralModule instance.\n * This getter allows for interacting with referral related functionalities.\n *\n * @returns {ReferralModule} An instance of ReferralModule .\n * @memberof CommunityClient\n */\n public static get referral(): ReferralModule {\n return CommunityClient.getInstance()._referralModule;\n }\n\n public static get supportedChain(): number {\n return CommunityClient.config.chain;\n }\n}\n"]}
package/dist/index.js CHANGED
@@ -18,5 +18,6 @@ __exportStar(require("./client"), exports);
18
18
  __exportStar(require("./modules/twitter/services/get-auth-url/types"), exports);
19
19
  __exportStar(require("./modules/vote/types"), exports);
20
20
  __exportStar(require("./modules/lge/types"), exports);
21
- __exportStar(require("./modules/trading-league/types"), exports);
21
+ __exportStar(require("./modules/leaderboard/types"), exports);
22
+ __exportStar(require("./modules/referral/services/get-wallet-referral-details/types"), exports);
22
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,gFAA8D;AAC9D,uDAAqC;AACrC,sDAAoC;AACpC,iEAA+C","sourcesContent":["export * from './client';\nexport * from './modules/twitter/services/get-auth-url/types';\nexport * from './modules/vote/types';\nexport * from './modules/lge/types';\nexport * from './modules/trading-league/types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,gFAA8D;AAC9D,uDAAqC;AACrC,sDAAoC;AACpC,8DAA4C;AAC5C,gGAA8E","sourcesContent":["export * from './client';\nexport * from './modules/twitter/services/get-auth-url/types';\nexport * from './modules/vote/types';\nexport * from './modules/lge/types';\nexport * from './modules/leaderboard/types';\nexport * from './modules/referral/services/get-wallet-referral-details/types';\n"]}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./vote"), exports);
18
18
  __exportStar(require("./lge"), exports);
19
19
  __exportStar(require("./twitter"), exports);
20
+ __exportStar(require("./referral"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B","sourcesContent":["export * from './vote';\nexport * from './lge';\nexport * from './twitter';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,6CAA2B","sourcesContent":["export * from './vote';\nexport * from './lge';\nexport * from './twitter';\nexport * from './referral';\n"]}
@@ -58,15 +58,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
58
58
  };
59
59
  Object.defineProperty(exports, "__esModule", { value: true });
60
60
  var common_1 = require("@reyaxyz/common");
61
- var TradingLeagueModule = /** @class */ (function (_super) {
62
- __extends(TradingLeagueModule, _super);
63
- function TradingLeagueModule(apiUrl, loggingEnabled) {
61
+ var LeaderboardModule = /** @class */ (function (_super) {
62
+ __extends(LeaderboardModule, _super);
63
+ function LeaderboardModule(apiUrl, loggingEnabled) {
64
64
  var _this = _super.call(this, apiUrl) || this;
65
65
  _this.loggingEnabled = false;
66
66
  _this.loggingEnabled = loggingEnabled;
67
67
  return _this;
68
68
  }
69
- TradingLeagueModule.prototype.claimRank = function (params) {
69
+ LeaderboardModule.prototype.claimRank = function (params) {
70
70
  return __awaiter(this, void 0, void 0, function () {
71
71
  return __generator(this, function (_a) {
72
72
  switch (_a.label) {
@@ -88,7 +88,7 @@ var TradingLeagueModule = /** @class */ (function (_super) {
88
88
  });
89
89
  });
90
90
  };
91
- TradingLeagueModule.prototype.getLeaderboard = function (params) {
91
+ LeaderboardModule.prototype.getLeaderboard = function (params) {
92
92
  return __awaiter(this, void 0, void 0, function () {
93
93
  var uri;
94
94
  return __generator(this, function (_a) {
@@ -97,7 +97,7 @@ var TradingLeagueModule = /** @class */ (function (_super) {
97
97
  });
98
98
  });
99
99
  };
100
- TradingLeagueModule.prototype.getUserLeaderboardData = function (params) {
100
+ LeaderboardModule.prototype.getUserLeaderboardData = function (params) {
101
101
  return __awaiter(this, void 0, void 0, function () {
102
102
  var uri;
103
103
  return __generator(this, function (_a) {
@@ -107,15 +107,15 @@ var TradingLeagueModule = /** @class */ (function (_super) {
107
107
  });
108
108
  };
109
109
  __decorate([
110
- (0, common_1.Logger)('TradingLeagueModule.claimRank')
111
- ], TradingLeagueModule.prototype, "claimRank", null);
110
+ (0, common_1.Logger)('LeaderboardModule.claimRank')
111
+ ], LeaderboardModule.prototype, "claimRank", null);
112
112
  __decorate([
113
- (0, common_1.Logger)('TradingLeagueModule.getLeaderboard')
114
- ], TradingLeagueModule.prototype, "getLeaderboard", null);
113
+ (0, common_1.Logger)('LeaderboardModule.getLeaderboard')
114
+ ], LeaderboardModule.prototype, "getLeaderboard", null);
115
115
  __decorate([
116
- (0, common_1.Logger)('TradingLeagueModule.getUserLeaderboardData')
117
- ], TradingLeagueModule.prototype, "getUserLeaderboardData", null);
118
- return TradingLeagueModule;
116
+ (0, common_1.Logger)('LeaderboardModule.getUserLeaderboardData')
117
+ ], LeaderboardModule.prototype, "getUserLeaderboardData", null);
118
+ return LeaderboardModule;
119
119
  }(common_1.RestClient));
120
- exports.default = TradingLeagueModule;
120
+ exports.default = LeaderboardModule;
121
121
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/leaderboard/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA+D;AAW/D;IAA+C,qCAAU;IAGvD,2BAAY,MAAc,EAAE,cAAuB;QACjD,YAAA,MAAK,YAAC,MAAM,CAAC,SAAC;QAHhB,oBAAc,GAAY,KAAK,CAAC;QAI9B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;IACvC,CAAC;IAGK,qCAAS,GAAT,UAAU,MAAuB;;;;4BAE9B,qBAAM,IAAI,OAAO,CACtB,UAAC,OAAqC,EAAE,MAAM;4BAC5C,UAAU,CACR;gCACE,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;gCACvC,IAAI,KAAK,EAAE,CAAC;oCACV,MAAM,CAAC,IAAI,KAAK,CAAC,yBAAkB,MAAM,CAAC,OAAO,WAAQ,CAAC,CAAC,CAAC;gCAC9D,CAAC;gCACD,OAAO,CAAC;oCACN,OAAO,EAAE,IAAI;iCACd,CAAC,CAAC;4BACL,CAAC,EACD,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAC3B,CAAC;wBACJ,CAAC,CACF,EAAA;;oBAhBD,oCAAoC;oBACpC,sBAAO,SAeN,EAAC;;;;KACH;IAGK,0CAAc,GAAd,UAAe,MAA4B;;;;gBACzC,GAAG,GAAG,8BAAuB,MAAM,CAAC,OAAO,cAAI,MAAM,CAAC,IAAI,CAAE,CAAC;gBACnE,sBAAO,IAAI,CAAC,GAAG,CAAuB,GAAG,CAAC,EAAC;;;KAC5C;IAGK,kDAAsB,GAAtB,UAAuB,MAAoC;;;;gBACzD,GAAG,GAAG,wCAAiC,MAAM,CAAC,OAAO,CAAE,CAAC;gBAC9D,sBAAO,IAAI,CAAC,GAAG,CAA+B,GAAG,CAAC,EAAC;;;KACpD;IA9BK;QADL,IAAA,eAAM,EAAC,6BAA6B,CAAC;sDAmBrC;IAGK;QADL,IAAA,eAAM,EAAC,kCAAkC,CAAC;2DAI1C;IAGK;QADL,IAAA,eAAM,EAAC,0CAA0C,CAAC;mEAIlD;IACH,wBAAC;CAAA,AAxCD,CAA+C,mBAAU,GAwCxD;kBAxCoB,iBAAiB","sourcesContent":["import { Loggable, Logger, RestClient } from '@reyaxyz/common';\n\nimport {\n ClaimRankParams,\n ClaimRankResult,\n GetLeaderboardParams,\n GetLeaderboardResult,\n GetUserLeaderboardDataParams,\n GetUserLeaderboardDataResult,\n} from './types';\n\nexport default class LeaderboardModule extends RestClient implements Loggable {\n loggingEnabled: boolean = false;\n\n constructor(apiUrl: string, loggingEnabled: boolean) {\n super(apiUrl);\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('LeaderboardModule.claimRank')\n async claimRank(params: ClaimRankParams) {\n // TODO: Write proper implementation\n return await new Promise(\n (resolve: (_: ClaimRankResult) => void, reject) => {\n setTimeout(\n () => {\n const error = Math.random() * 100 > 50;\n if (error) {\n reject(new Error(`Claim Rank for ${params.address} error`));\n }\n resolve({\n success: true,\n });\n },\n Math.random() * 100 + 1000,\n );\n },\n );\n }\n\n @Logger('LeaderboardModule.getLeaderboard')\n async getLeaderboard(params: GetLeaderboardParams) {\n const uri = `/api/xp/leaderboard/${params.perPage}/${params.page}`;\n return this.get<GetLeaderboardResult>(uri);\n }\n\n @Logger('LeaderboardModule.getUserLeaderboardData')\n async getUserLeaderboardData(params: GetUserLeaderboardDataParams) {\n const uri = `/api/xp/leaderboard-user-data/${params.address}`;\n return this.get<GetUserLeaderboardDataResult>(uri);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"/","sources":["modules/leaderboard/types.ts"],"names":[],"mappings":"","sourcesContent":["export {\n ClaimRankParams,\n ClaimRankResult,\n LeaderboardEntity,\n GetLeaderboardParams,\n GetLeaderboardResult,\n UserLeaderboardDataEntity,\n GetUserLeaderboardDataParams,\n GetUserLeaderboardDataResult,\n} from '@reyaxyz/common';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/lge/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAMyB;AASzB,0CAAmD;AAEnD;IAAuC,6BAAU;IAG/C,mBAAY,MAAc,EAAE,cAAuB;QACjD,YAAA,MAAK,YAAC,MAAM,CAAC,SAAC;QAHhB,oBAAc,GAAY,KAAK,CAAC;QAI9B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;IACvC,CAAC;IAIK,mCAAe,GAAf,UAAgB,CAAwB;;;;gBACtC,GAAG,GAAG,kBAAkB,CAAC;gBAC/B,sBAAO,IAAI,CAAC,GAAG,CAAwB,GAAG,CAAC,EAAC;;;KAC7C;IAGK,uCAAmB,GAAnB,UAAoB,MAAiC;;;;gBACnD,GAAG,GAAG,6BAAsB,MAAM,CAAC,OAAO,CAAE,CAAC;gBACnD,sBAAO,IAAI,CAAC,GAAG,CAA4B,GAAG,CAAC,EAAC;;;KACjD;IAGK,kCAAc,GAAd,UAAe,MAA4B;;;;gBACzC,GAAG,GAAG,8BAAuB,MAAM,CAAC,OAAO,cAAI,MAAM,CAAC,IAAI,CAAE,CAAC;gBACnE,sBAAO,IAAI,CAAC,GAAG,CAAuB,GAAG,CAAC,EAAC;;;KAC5C;IAGK,0CAAsB,GAAtB,UAAuB,MAAoC;;;;gBACzD,GAAG,GAAG,wCAAiC,MAAM,CAAC,OAAO,CAAE,CAAC;gBAC9D,sBAAO,IAAI,CAAC,GAAG,CAA+B,GAAG,CAAC,EAAC;;;KACpD;IArBK;QAFL,IAAA,eAAM,EAAC,2BAA2B,CAAC;QACpC,6DAA6D;oDAI5D;IAGK;QADL,IAAA,eAAM,EAAC,+BAA+B,CAAC;wDAIvC;IAGK;QADL,IAAA,eAAM,EAAC,0BAA0B,CAAC;mDAIlC;IAGK;QADL,IAAA,eAAM,EAAC,kCAAkC,CAAC;2DAI1C;IACH,gBAAC;CAAA,AAhCD,CAAuC,mBAAU,GAgChD;kBAhCoB,SAAS","sourcesContent":["import {\n GetLeaderboardParams,\n GetLeaderboardResult,\n GetUserLeaderboardDataParams,\n GetUserLeaderboardDataResult,\n RestClient,\n} from '@reyaxyz/common';\n\nimport {\n GetAccountLGEStatusParams,\n GetAccountLGEStatusResult,\n GetLGEBoostRateParams,\n GetLGEBoostRateResult,\n} from './types';\n\nimport { Loggable, Logger } from '@reyaxyz/common';\n\nexport default class LGEModule extends RestClient implements Loggable {\n loggingEnabled: boolean = false;\n\n constructor(apiUrl: string, loggingEnabled: boolean) {\n super(apiUrl);\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('LGEModule.getLGEBoostRate')\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async getLGEBoostRate(_: GetLGEBoostRateParams) {\n const uri = `/api/xp/lp-boost`;\n return this.get<GetLGEBoostRateResult>(uri);\n }\n\n @Logger('LGEModule.getAccountLGEStatus')\n async getAccountLGEStatus(params: GetAccountLGEStatusParams) {\n const uri = `/api/xp/lp-profile/${params.address}`;\n return this.get<GetAccountLGEStatusResult>(uri);\n }\n\n @Logger('LGEModule.getLeaderboard')\n async getLeaderboard(params: GetLeaderboardParams) {\n const uri = `/api/xp/leaderboard/${params.perPage}/${params.page}`;\n return this.get<GetLeaderboardResult>(uri);\n }\n\n @Logger('LGEModule.getUserLeaderboardData')\n async getUserLeaderboardData(params: GetUserLeaderboardDataParams) {\n const uri = `/api/xp/leaderboard-user-data/${params.address}`;\n return this.get<GetUserLeaderboardDataResult>(uri);\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/lge/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAMyB;AASzB,0CAAmD;AAEnD;IAAuC,6BAAU;IAG/C,mBAAY,MAAc,EAAE,cAAuB;QACjD,YAAA,MAAK,YAAC,MAAM,CAAC,SAAC;QAHhB,oBAAc,GAAY,KAAK,CAAC;QAI9B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;IACvC,CAAC;IAIK,mCAAe,GAAf,UAAgB,CAAwB;;;;gBACtC,GAAG,GAAG,kBAAkB,CAAC;gBAC/B,sBAAO,IAAI,CAAC,GAAG,CAAwB,GAAG,CAAC,EAAC;;;KAC7C;IAGK,uCAAmB,GAAnB,UAAoB,MAAiC;;;;gBACnD,GAAG,GAAG,6BAAsB,MAAM,CAAC,OAAO,CAAE,CAAC;gBACnD,sBAAO,IAAI,CAAC,GAAG,CAA4B,GAAG,CAAC,EAAC;;;KACjD;IAGK,kCAAc,GAAd,UAAe,MAA4B;;;;gBACzC,GAAG,GAAG,8BAAuB,MAAM,CAAC,OAAO,cAAI,MAAM,CAAC,IAAI,CAAE,CAAC;gBACnE,sBAAO,IAAI,CAAC,GAAG,CAAuB,GAAG,CAAC,EAAC;;;KAC5C;IAGK,0CAAsB,GAAtB,UAAuB,MAAoC;;;;gBACzD,GAAG,GAAG,wCAAiC,MAAM,CAAC,OAAO,CAAE,CAAC;gBAC9D,sBAAO,IAAI,CAAC,GAAG,CAA+B,GAAG,CAAC,EAAC;;;KACpD;IArBK;QAFL,IAAA,eAAM,EAAC,2BAA2B,CAAC;QACpC,6DAA6D;oDAI5D;IAGK;QADL,IAAA,eAAM,EAAC,+BAA+B,CAAC;wDAIvC;IAGK;QADL,IAAA,eAAM,EAAC,0BAA0B,CAAC;mDAIlC;IAGK;QADL,IAAA,eAAM,EAAC,kCAAkC,CAAC;2DAI1C;IAOH,gBAAC;CAAA,AAtCD,CAAuC,mBAAU,GAsChD;kBAtCoB,SAAS","sourcesContent":["import {\n GetLeaderboardParams,\n GetLeaderboardResult,\n GetUserLeaderboardDataParams,\n GetUserLeaderboardDataResult,\n RestClient,\n} from '@reyaxyz/common';\n\nimport {\n GetAccountLGEStatusParams,\n GetAccountLGEStatusResult,\n GetLGEBoostRateParams,\n GetLGEBoostRateResult,\n} from './types';\n\nimport { Loggable, Logger } from '@reyaxyz/common';\n\nexport default class LGEModule extends RestClient implements Loggable {\n loggingEnabled: boolean = false;\n\n constructor(apiUrl: string, loggingEnabled: boolean) {\n super(apiUrl);\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('LGEModule.getLGEBoostRate')\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async getLGEBoostRate(_: GetLGEBoostRateParams) {\n const uri = `/api/xp/lp-boost`;\n return this.get<GetLGEBoostRateResult>(uri);\n }\n\n @Logger('LGEModule.getAccountLGEStatus')\n async getAccountLGEStatus(params: GetAccountLGEStatusParams) {\n const uri = `/api/xp/lp-profile/${params.address}`;\n return this.get<GetAccountLGEStatusResult>(uri);\n }\n\n @Logger('LGEModule.getLeaderboard')\n async getLeaderboard(params: GetLeaderboardParams) {\n const uri = `/api/xp/leaderboard/${params.perPage}/${params.page}`;\n return this.get<GetLeaderboardResult>(uri);\n }\n\n @Logger('LGEModule.getUserLeaderboardData')\n async getUserLeaderboardData(params: GetUserLeaderboardDataParams) {\n const uri = `/api/xp/leaderboard-user-data/${params.address}`;\n return this.get<GetUserLeaderboardDataResult>(uri);\n }\n\n // TODO: Filip, Antonio add function that returns gameStatus for user\n // return { bodyId:string, status: 'notStarted' | 'notLockedIn' | 'lockedIn', boostRate: number, nextBoostStartTimestampMilliseconds: number }\n\n // TODO: Filip, Antonio add function that triggers new random boost for user, we just pass address BE should persist and return this number to UI\n // params: { bodyId:string } and return { boostRate: number, bodyId: string }\n}\n"]}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
9
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10
+ return new (P || (P = Promise))(function (resolve, reject) {
11
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
12
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
13
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
14
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
15
+ });
16
+ };
17
+ var __generator = (this && this.__generator) || function (thisArg, body) {
18
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
19
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
20
+ function verb(n) { return function (v) { return step([n, v]); }; }
21
+ function step(op) {
22
+ if (f) throw new TypeError("Generator is already executing.");
23
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
24
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
25
+ if (y = 0, t) op = [op[0] & 2, t.value];
26
+ switch (op[0]) {
27
+ case 0: case 1: t = op; break;
28
+ case 4: _.label++; return { value: op[1], done: false };
29
+ case 5: _.label++; y = op[1]; op = [0]; continue;
30
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
31
+ default:
32
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
33
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
34
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
35
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
36
+ if (t[2]) _.ops.pop();
37
+ _.trys.pop(); continue;
38
+ }
39
+ op = body.call(thisArg, _);
40
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
41
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
42
+ }
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ var services_1 = require("./services");
46
+ var common_1 = require("@reyaxyz/common");
47
+ var ReferralModule = /** @class */ (function () {
48
+ function ReferralModule(loggingEnabled) {
49
+ this.loggingEnabled = false;
50
+ this.loggingEnabled = loggingEnabled;
51
+ }
52
+ ReferralModule.prototype.getWalletReferralDetails = function (params) {
53
+ return __awaiter(this, void 0, void 0, function () {
54
+ return __generator(this, function (_a) {
55
+ switch (_a.label) {
56
+ case 0: return [4 /*yield*/, (0, services_1.getWalletReferralDetails)(params)];
57
+ case 1: return [2 /*return*/, _a.sent()];
58
+ }
59
+ });
60
+ });
61
+ };
62
+ __decorate([
63
+ (0, common_1.Logger)('ReferralModule.getWalletReferralDetails')
64
+ ], ReferralModule.prototype, "getWalletReferralDetails", null);
65
+ return ReferralModule;
66
+ }());
67
+ exports.default = ReferralModule;
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/referral/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAGoB;AACpB,0CAAmD;AAEnD;IAGE,wBAAY,cAAuB;QAFnC,mBAAc,GAAY,KAAK,CAAC;QAG9B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAGK,iDAAwB,GAAxB,UAAyB,MAAsC;;;;4BAC5D,qBAAM,IAAA,mCAAwB,EAAC,MAAM,CAAC,EAAA;4BAA7C,sBAAO,SAAsC,EAAC;;;;KAC/C;IAFK;QADL,IAAA,eAAM,EAAC,yCAAyC,CAAC;kEAGjD;IACH,qBAAC;CAAA,AAXD,IAWC;kBAXoB,cAAc","sourcesContent":["import {\n getWalletReferralDetails,\n GetWalletReferralDetailsParams,\n} from './services';\nimport { Loggable, Logger } from '@reyaxyz/common';\n\nexport default class ReferralModule implements Loggable {\n loggingEnabled: boolean = false;\n\n constructor(loggingEnabled: boolean) {\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('ReferralModule.getWalletReferralDetails')\n async getWalletReferralDetails(params: GetWalletReferralDetailsParams) {\n return await getWalletReferralDetails(params);\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWalletReferralDetails = void 0;
4
+ // TODO: Costin fix implementation
5
+ function getWalletReferralDetails(_a) {
6
+ var address = _a.address;
7
+ return new Promise(function (resolve) {
8
+ return setTimeout(function () {
9
+ return resolve({
10
+ referralLink: "https://reya.network/".concat(address),
11
+ totalReferralXP: Math.random() * 100000,
12
+ totalReferralsCount: Math.random() * 1000,
13
+ });
14
+ }, Math.random() * 2000);
15
+ });
16
+ }
17
+ exports.getWalletReferralDetails = getWalletReferralDetails;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/referral/services/get-wallet-referral-details/index.ts"],"names":[],"mappings":";;;AAKA,kCAAkC;AAClC,SAAgB,wBAAwB,CAAC,EAER;QAD/B,OAAO,aAAA;IAEP,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO;QACzB,OAAA,UAAU,CACR;YACE,OAAA,OAAO,CAAC;gBACN,YAAY,EAAE,+BAAwB,OAAO,CAAE;gBAC/C,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM;gBACvC,mBAAmB,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI;aAC1C,CAAC;QAJF,CAIE,EACJ,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CACrB;IARD,CAQC,CACF,CAAC;AACJ,CAAC;AAdD,4DAcC","sourcesContent":["import {\n GetWalletReferralDetailsParams,\n GetWalletReferralDetailsResult,\n} from './types';\n\n// TODO: Costin fix implementation\nexport function getWalletReferralDetails({\n address,\n}: GetWalletReferralDetailsParams): Promise<GetWalletReferralDetailsResult> {\n return new Promise((resolve) =>\n setTimeout(\n () =>\n resolve({\n referralLink: `https://reya.network/${address}`,\n totalReferralXP: Math.random() * 100000,\n totalReferralsCount: Math.random() * 1000,\n }),\n Math.random() * 2000,\n ),\n );\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"/","sources":["modules/referral/services/get-wallet-referral-details/types.ts"],"names":[],"mappings":"","sourcesContent":["export type GetWalletReferralDetailsParams = {\n address: string;\n};\n\nexport type GetWalletReferralDetailsResult = {\n referralLink: string;\n totalReferralsCount: number;\n totalReferralXP: number;\n};\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-wallet-referral-details"), exports);
18
+ __exportStar(require("./get-wallet-referral-details/types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/referral/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,sEAAoD","sourcesContent":["export * from './get-wallet-referral-details';\nexport * from './get-wallet-referral-details/types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/twitter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,uCAA0E;AAC1E,0CAAmD;AAEnD;IAKE,uBACE,WAAmB,EACnB,eAAuB,EACvB,cAAuB;QALzB,mBAAc,GAAY,KAAK,CAAC;QAO9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAGD,0CAAkB,GAAlB,UACE,MAAuD;QAEvD,OAAO,IAAA,6BAAkB,wBACpB,MAAM,KACT,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,IACrC,CAAC;IACL,CAAC;IARD;QADC,IAAA,eAAM,EAAC,kCAAkC,CAAC;2DAS1C;IACH,oBAAC;CAAA,AAzBD,IAyBC;kBAzBoB,aAAa","sourcesContent":["import { getTwitterOauthUrl, GetTwitterOauthUrlParams } from './services';\nimport { Loggable, Logger } from '@reyaxyz/common';\n\nexport default class TwitterModule implements Loggable {\n private redirectURI: string;\n private twitterClientId: string;\n loggingEnabled: boolean = false;\n\n constructor(\n redirectURI: string,\n twitterClientId: string,\n loggingEnabled: boolean,\n ) {\n this.redirectURI = redirectURI;\n this.twitterClientId = twitterClientId;\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('TwitterModule.getTwitterOauthUrl')\n getTwitterOauthUrl(\n params: Pick<GetTwitterOauthUrlParams, 'walletAddress'>,\n ): string {\n return getTwitterOauthUrl({\n ...params,\n redirectURI: this.redirectURI,\n twitterClientId: this.twitterClientId,\n });\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/twitter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,uCAA0E;AAC1E,0CAAmD;AAEnD;IAKE,uBACE,WAAmB,EACnB,eAAuB,EACvB,cAAuB;QALzB,mBAAc,GAAY,KAAK,CAAC;QAO9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAGD,0CAAkB,GAAlB,UACE,MAAuD;QAEvD,OAAO,IAAA,6BAAkB,wBACpB,MAAM,KACT,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,IACrC,CAAC;IACL,CAAC;IARD;QADC,IAAA,eAAM,EAAC,kCAAkC,CAAC;2DAS1C;IAIH,oBAAC;CAAA,AA5BD,IA4BC;kBA5BoB,aAAa","sourcesContent":["import { getTwitterOauthUrl, GetTwitterOauthUrlParams } from './services';\nimport { Loggable, Logger } from '@reyaxyz/common';\n\nexport default class TwitterModule implements Loggable {\n private redirectURI: string;\n private twitterClientId: string;\n loggingEnabled: boolean = false;\n\n constructor(\n redirectURI: string,\n twitterClientId: string,\n loggingEnabled: boolean,\n ) {\n this.redirectURI = redirectURI;\n this.twitterClientId = twitterClientId;\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('TwitterModule.getTwitterOauthUrl')\n getTwitterOauthUrl(\n params: Pick<GetTwitterOauthUrlParams, 'walletAddress'>,\n ): string {\n return getTwitterOauthUrl({\n ...params,\n redirectURI: this.redirectURI,\n twitterClientId: this.twitterClientId,\n });\n }\n\n // TODO: Filip, Antonio add twitter function to TwitterModule that triggers boost lockin for game flow\n // TODO: Filip, Antonio add twitter function to TwitterModule that triggers share referral\n}\n"]}
@@ -2,17 +2,19 @@ import { ServiceConfig } from '@reyaxyz/common';
2
2
  import VoteModule from '../modules/vote';
3
3
  import LGEModule from '../modules/lge';
4
4
  import TwitterModule from '../modules/twitter';
5
- import TradingLeagueModule from '../modules/trading-league';
5
+ import LeaderboardModule from '../modules/leaderboard';
6
+ import ReferralModule from '../modules/referral';
6
7
  /**
7
8
  * @description Client for Community SDK
8
9
  */
9
10
  export declare class CommunityClient {
10
11
  private static instance;
11
12
  private static config;
12
- private readonly _vote;
13
- private readonly _LGE;
14
- private readonly _twitter;
15
- private readonly _tradingLeague;
13
+ private readonly _voteModule;
14
+ private readonly _lgeModule;
15
+ private readonly _twitterModule;
16
+ private readonly _leaderboardModule;
17
+ private readonly _referralModule;
16
18
  private constructor();
17
19
  static configure(environment: ServiceConfig['environment']): void;
18
20
  private static getInstance;
@@ -23,7 +25,7 @@ export declare class CommunityClient {
23
25
  * @returns {VoteModule} An instance of VoteModule for vote operations.
24
26
  * @memberof CommunityClient
25
27
  */
26
- static get vote(): VoteModule;
28
+ static get voteModule(): VoteModule;
27
29
  /**
28
30
  * Provides access to the LGEModule instance.
29
31
  * This getter allows for interacting with LGE-related functionalities.
@@ -31,7 +33,7 @@ export declare class CommunityClient {
31
33
  * @returns {LGEModule} An instance of LGEModule for LGE operations.
32
34
  * @memberof CommunityClient
33
35
  */
34
- static get LGE(): LGEModule;
36
+ static get lgeModule(): LGEModule;
35
37
  /**
36
38
  * Provides access to the TwitterModule instance.
37
39
  * This getter allows for interacting with twitter-related functionalities.
@@ -39,15 +41,23 @@ export declare class CommunityClient {
39
41
  * @returns {TwitterModule} An instance of Twitter for twitter operations.
40
42
  * @memberof CommunityClient
41
43
  */
42
- static get twitter(): TwitterModule;
44
+ static get twitterModule(): TwitterModule;
43
45
  /**
44
- * Provides access to the TradingLeagueModule instance.
45
- * This getter allows for interacting with trading-league-related functionalities.
46
+ * Provides access to the LeaderboardModule instance.
47
+ * This getter allows for interacting with leaderboard-related functionalities.
46
48
  *
47
- * @returns {TradingLeagueModule} An instance of Trading League for twitter operations.
49
+ * @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.
48
50
  * @memberof CommunityClient
49
51
  */
50
- static get tradingLeague(): TradingLeagueModule;
52
+ static get leaderboard(): LeaderboardModule;
53
+ /**
54
+ * Provides access to the ReferralModule instance.
55
+ * This getter allows for interacting with referral related functionalities.
56
+ *
57
+ * @returns {ReferralModule} An instance of ReferralModule .
58
+ * @memberof CommunityClient
59
+ */
60
+ static get referral(): ReferralModule;
51
61
  static get supportedChain(): number;
52
62
  }
53
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAE5D;;GAEG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAkB;IACzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAA6C;IAElE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAY;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsB;IAErD,OAAO;WAoBO,SAAS,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,IAAI;IAMxE,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B;;;;;;OAMG;IACH,WAAkB,IAAI,IAAI,UAAU,CAEnC;IAED;;;;;;OAMG;IACH,WAAkB,GAAG,IAAI,SAAS,CAEjC;IAED;;;;;;OAMG;IACH,WAAkB,OAAO,IAAI,aAAa,CAEzC;IAED;;;;;;OAMG;IACH,WAAkB,aAAa,IAAI,mBAAmB,CAErD;IAED,WAAkB,cAAc,IAAI,MAAM,CAEzC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD;;GAEG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAkB;IACzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAA6C;IAElE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IACzC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAoB;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IAEjD,OAAO;WAqBO,SAAS,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,IAAI;IAMxE,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B;;;;;;OAMG;IACH,WAAkB,UAAU,IAAI,UAAU,CAEzC;IAED;;;;;;OAMG;IACH,WAAkB,SAAS,IAAI,SAAS,CAEvC;IAED;;;;;;OAMG;IACH,WAAkB,aAAa,IAAI,aAAa,CAE/C;IAED;;;;;;OAMG;IACH,WAAkB,WAAW,IAAI,iBAAiB,CAEjD;IAED;;;;;;OAMG;IACH,WAAkB,QAAQ,IAAI,cAAc,CAE3C;IAED,WAAkB,cAAc,IAAI,MAAM,CAEzC;CACF"}
@@ -2,5 +2,6 @@ export * from './client';
2
2
  export * from './modules/twitter/services/get-auth-url/types';
3
3
  export * from './modules/vote/types';
4
4
  export * from './modules/lge/types';
5
- export * from './modules/trading-league/types';
5
+ export * from './modules/leaderboard/types';
6
+ export * from './modules/referral/services/get-wallet-referral-details/types';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+DAA+D,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './vote';
2
2
  export * from './lge';
3
3
  export * from './twitter';
4
+ export * from './referral';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Loggable, RestClient } from '@reyaxyz/common';
2
2
  import { ClaimRankParams, ClaimRankResult, GetLeaderboardParams, GetLeaderboardResult, GetUserLeaderboardDataParams } from './types';
3
- export default class TradingLeagueModule extends RestClient implements Loggable {
3
+ export default class LeaderboardModule extends RestClient implements Loggable {
4
4
  loggingEnabled: boolean;
5
5
  constructor(apiUrl: string, loggingEnabled: boolean);
6
6
  claimRank(params: ClaimRankParams): Promise<ClaimRankResult>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/leaderboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,EAE7B,MAAM,SAAS,CAAC;AAEjB,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAW,YAAW,QAAQ;IAC3E,cAAc,EAAE,OAAO,CAAS;gBAEpB,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO;IAM7C,SAAS,CAAC,MAAM,EAAE,eAAe;IAqBjC,cAAc,CAAC,MAAM,EAAE,oBAAoB;IAM3C,sBAAsB,CAAC,MAAM,EAAE,4BAA4B;CAIlE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["modules/leaderboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { GetLeaderboardParams, GetLeaderboardResult, GetUserLeaderboardDataParams, RestClient } from '@reyaxyz/common';
2
- import { GetAccountLGEStatusParams, GetAccountLGEStatusResult, GetLGEBoostRateParams } from './types';
2
+ import { GetAccountLGEStatusParams, GetAccountLGEStatusResult, GetLGEBoostRateParams, GetLGEBoostRateResult } from './types';
3
3
  import { Loggable } from '@reyaxyz/common';
4
4
  export default class LGEModule extends RestClient implements Loggable {
5
5
  loggingEnabled: boolean;
6
6
  constructor(apiUrl: string, loggingEnabled: boolean);
7
- getLGEBoostRate(_: GetLGEBoostRateParams): Promise<number>;
7
+ getLGEBoostRate(_: GetLGEBoostRateParams): Promise<GetLGEBoostRateResult>;
8
8
  getAccountLGEStatus(params: GetAccountLGEStatusParams): Promise<GetAccountLGEStatusResult>;
9
9
  getLeaderboard(params: GetLeaderboardParams): Promise<GetLeaderboardResult>;
10
10
  getUserLeaderboardData(params: GetUserLeaderboardDataParams): Promise<import("@reyaxyz/common").UserLeaderboardDataEntity>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/lge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,EAE5B,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EAEtB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAU,MAAM,iBAAiB,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAW,YAAW,QAAQ;IACnE,cAAc,EAAE,OAAO,CAAS;gBAEpB,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO;IAO7C,eAAe,CAAC,CAAC,EAAE,qBAAqB;IAMxC,mBAAmB,CAAC,MAAM,EAAE,yBAAyB;IAMrD,cAAc,CAAC,MAAM,EAAE,oBAAoB;IAM3C,sBAAsB,CAAC,MAAM,EAAE,4BAA4B;CAIlE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/lge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,EAE5B,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAU,MAAM,iBAAiB,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAW,YAAW,QAAQ;IACnE,cAAc,EAAE,OAAO,CAAS;gBAEpB,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO;IAO7C,eAAe,CAAC,CAAC,EAAE,qBAAqB;IAMxC,mBAAmB,CAAC,MAAM,EAAE,yBAAyB;IAMrD,cAAc,CAAC,MAAM,EAAE,oBAAoB;IAM3C,sBAAsB,CAAC,MAAM,EAAE,4BAA4B;CAUlE"}
@@ -0,0 +1,8 @@
1
+ import { GetWalletReferralDetailsParams } from './services';
2
+ import { Loggable } from '@reyaxyz/common';
3
+ export default class ReferralModule implements Loggable {
4
+ loggingEnabled: boolean;
5
+ constructor(loggingEnabled: boolean);
6
+ getWalletReferralDetails(params: GetWalletReferralDetailsParams): Promise<import("./services").GetWalletReferralDetailsResult>;
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/referral/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,8BAA8B,EAC/B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAU,MAAM,iBAAiB,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,QAAQ;IACrD,cAAc,EAAE,OAAO,CAAS;gBAEpB,cAAc,EAAE,OAAO;IAK7B,wBAAwB,CAAC,MAAM,EAAE,8BAA8B;CAGtE"}
@@ -0,0 +1,3 @@
1
+ import { GetWalletReferralDetailsParams, GetWalletReferralDetailsResult } from './types';
2
+ export declare function getWalletReferralDetails({ address, }: GetWalletReferralDetailsParams): Promise<GetWalletReferralDetailsResult>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/referral/services/get-wallet-referral-details/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAGjB,wBAAgB,wBAAwB,CAAC,EACvC,OAAO,GACR,EAAE,8BAA8B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAY1E"}
@@ -0,0 +1,9 @@
1
+ export type GetWalletReferralDetailsParams = {
2
+ address: string;
3
+ };
4
+ export type GetWalletReferralDetailsResult = {
5
+ referralLink: string;
6
+ totalReferralsCount: number;
7
+ totalReferralXP: number;
8
+ };
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["modules/referral/services/get-wallet-referral-details/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './get-wallet-referral-details';
2
+ export * from './get-wallet-referral-details/types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/referral/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/twitter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAU,MAAM,iBAAiB,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,aAAc,YAAW,QAAQ;IACpD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAS;IAChC,cAAc,EAAE,OAAO,CAAS;gBAG9B,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,OAAO;IAQzB,kBAAkB,CAChB,MAAM,EAAE,IAAI,CAAC,wBAAwB,EAAE,eAAe,CAAC,GACtD,MAAM;CAOV"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/twitter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAU,MAAM,iBAAiB,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,aAAc,YAAW,QAAQ;IACpD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAS;IAChC,cAAc,EAAE,OAAO,CAAS;gBAG9B,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,OAAO;IAQzB,kBAAkB,CAChB,MAAM,EAAE,IAAI,CAAC,wBAAwB,EAAE,eAAe,CAAC,GACtD,MAAM;CAUV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/community-sdk",
3
- "version": "0.17.8",
3
+ "version": "0.18.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -10,8 +10,8 @@
10
10
  "url": "https://github.com/Reya-Labs/reya-off-chain-monorepo.git"
11
11
  },
12
12
  "dependencies": {
13
- "@reyaxyz/common": "0.56.0",
14
- "@reyaxyz/sdk": "0.48.2",
13
+ "@reyaxyz/common": "0.56.1",
14
+ "@reyaxyz/sdk": "0.48.3",
15
15
  "ethers": "6.9.0"
16
16
  },
17
17
  "main": "dist/index.js",
@@ -38,5 +38,5 @@
38
38
  "generate:coverage-badges": "npx istanbul-badges-readme --silent"
39
39
  },
40
40
  "packageManager": "pnpm@8.10.4",
41
- "gitHead": "2fb26bafb2c1da159c41d93795d1ea5f564cc731"
41
+ "gitHead": "2e89489d56061effe76a3e188468495166e244e7"
42
42
  }
@@ -2,7 +2,8 @@ import { API_CLIENT_CONFIGS, ServiceConfig } from '@reyaxyz/common';
2
2
  import VoteModule from '../modules/vote';
3
3
  import LGEModule from '../modules/lge';
4
4
  import TwitterModule from '../modules/twitter';
5
- import TradingLeagueModule from '../modules/trading-league';
5
+ import LeaderboardModule from '../modules/leaderboard';
6
+ import ReferralModule from '../modules/referral';
6
7
 
7
8
  /**
8
9
  * @description Client for Community SDK
@@ -11,29 +12,31 @@ export class CommunityClient {
11
12
  private static instance: CommunityClient;
12
13
  private static config: ServiceConfig = API_CLIENT_CONFIGS['test'];
13
14
 
14
- private readonly _vote: VoteModule;
15
- private readonly _LGE: LGEModule;
16
- private readonly _twitter: TwitterModule;
17
- private readonly _tradingLeague: TradingLeagueModule;
15
+ private readonly _voteModule: VoteModule;
16
+ private readonly _lgeModule: LGEModule;
17
+ private readonly _twitterModule: TwitterModule;
18
+ private readonly _leaderboardModule: LeaderboardModule;
19
+ private readonly _referralModule: ReferralModule;
18
20
 
19
21
  private constructor() {
20
- this._vote = new VoteModule(
22
+ this._voteModule = new VoteModule(
21
23
  CommunityClient.config.apiEndpoint,
22
24
  CommunityClient.config.logging,
23
25
  );
24
- this._LGE = new LGEModule(
26
+ this._lgeModule = new LGEModule(
25
27
  CommunityClient.config.apiEndpoint,
26
28
  CommunityClient.config.logging,
27
29
  );
28
- this._twitter = new TwitterModule(
30
+ this._twitterModule = new TwitterModule(
29
31
  CommunityClient.config.twitter.redirectURI,
30
32
  CommunityClient.config.twitter.clientId,
31
33
  CommunityClient.config.logging,
32
34
  );
33
- this._tradingLeague = new TradingLeagueModule(
35
+ this._leaderboardModule = new LeaderboardModule(
34
36
  CommunityClient.config.apiEndpoint,
35
37
  CommunityClient.config.logging,
36
38
  );
39
+ this._referralModule = new ReferralModule(CommunityClient.config.logging);
37
40
  }
38
41
 
39
42
  public static configure(environment: ServiceConfig['environment']): void {
@@ -58,8 +61,8 @@ export class CommunityClient {
58
61
  * @returns {VoteModule} An instance of VoteModule for vote operations.
59
62
  * @memberof CommunityClient
60
63
  */
61
- public static get vote(): VoteModule {
62
- return CommunityClient.getInstance()._vote;
64
+ public static get voteModule(): VoteModule {
65
+ return CommunityClient.getInstance()._voteModule;
63
66
  }
64
67
 
65
68
  /**
@@ -69,8 +72,8 @@ export class CommunityClient {
69
72
  * @returns {LGEModule} An instance of LGEModule for LGE operations.
70
73
  * @memberof CommunityClient
71
74
  */
72
- public static get LGE(): LGEModule {
73
- return CommunityClient.getInstance()._LGE;
75
+ public static get lgeModule(): LGEModule {
76
+ return CommunityClient.getInstance()._lgeModule;
74
77
  }
75
78
 
76
79
  /**
@@ -80,19 +83,30 @@ export class CommunityClient {
80
83
  * @returns {TwitterModule} An instance of Twitter for twitter operations.
81
84
  * @memberof CommunityClient
82
85
  */
83
- public static get twitter(): TwitterModule {
84
- return CommunityClient.getInstance()._twitter;
86
+ public static get twitterModule(): TwitterModule {
87
+ return CommunityClient.getInstance()._twitterModule;
85
88
  }
86
89
 
87
90
  /**
88
- * Provides access to the TradingLeagueModule instance.
89
- * This getter allows for interacting with trading-league-related functionalities.
91
+ * Provides access to the LeaderboardModule instance.
92
+ * This getter allows for interacting with leaderboard-related functionalities.
90
93
  *
91
- * @returns {TradingLeagueModule} An instance of Trading League for twitter operations.
94
+ * @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.
92
95
  * @memberof CommunityClient
93
96
  */
94
- public static get tradingLeague(): TradingLeagueModule {
95
- return CommunityClient.getInstance()._tradingLeague;
97
+ public static get leaderboard(): LeaderboardModule {
98
+ return CommunityClient.getInstance()._leaderboardModule;
99
+ }
100
+
101
+ /**
102
+ * Provides access to the ReferralModule instance.
103
+ * This getter allows for interacting with referral related functionalities.
104
+ *
105
+ * @returns {ReferralModule} An instance of ReferralModule .
106
+ * @memberof CommunityClient
107
+ */
108
+ public static get referral(): ReferralModule {
109
+ return CommunityClient.getInstance()._referralModule;
96
110
  }
97
111
 
98
112
  public static get supportedChain(): number {
package/src/index.ts CHANGED
@@ -2,4 +2,5 @@ export * from './client';
2
2
  export * from './modules/twitter/services/get-auth-url/types';
3
3
  export * from './modules/vote/types';
4
4
  export * from './modules/lge/types';
5
- export * from './modules/trading-league/types';
5
+ export * from './modules/leaderboard/types';
6
+ export * from './modules/referral/services/get-wallet-referral-details/types';
@@ -1,3 +1,4 @@
1
1
  export * from './vote';
2
2
  export * from './lge';
3
3
  export * from './twitter';
4
+ export * from './referral';
@@ -9,10 +9,7 @@ import {
9
9
  GetUserLeaderboardDataResult,
10
10
  } from './types';
11
11
 
12
- export default class TradingLeagueModule
13
- extends RestClient
14
- implements Loggable
15
- {
12
+ export default class LeaderboardModule extends RestClient implements Loggable {
16
13
  loggingEnabled: boolean = false;
17
14
 
18
15
  constructor(apiUrl: string, loggingEnabled: boolean) {
@@ -20,7 +17,7 @@ export default class TradingLeagueModule
20
17
  this.loggingEnabled = loggingEnabled;
21
18
  }
22
19
 
23
- @Logger('TradingLeagueModule.claimRank')
20
+ @Logger('LeaderboardModule.claimRank')
24
21
  async claimRank(params: ClaimRankParams) {
25
22
  // TODO: Write proper implementation
26
23
  return await new Promise(
@@ -41,13 +38,13 @@ export default class TradingLeagueModule
41
38
  );
42
39
  }
43
40
 
44
- @Logger('TradingLeagueModule.getLeaderboard')
41
+ @Logger('LeaderboardModule.getLeaderboard')
45
42
  async getLeaderboard(params: GetLeaderboardParams) {
46
43
  const uri = `/api/xp/leaderboard/${params.perPage}/${params.page}`;
47
44
  return this.get<GetLeaderboardResult>(uri);
48
45
  }
49
46
 
50
- @Logger('TradingLeagueModule.getUserLeaderboardData')
47
+ @Logger('LeaderboardModule.getUserLeaderboardData')
51
48
  async getUserLeaderboardData(params: GetUserLeaderboardDataParams) {
52
49
  const uri = `/api/xp/leaderboard-user-data/${params.address}`;
53
50
  return this.get<GetUserLeaderboardDataResult>(uri);
@@ -47,4 +47,10 @@ export default class LGEModule extends RestClient implements Loggable {
47
47
  const uri = `/api/xp/leaderboard-user-data/${params.address}`;
48
48
  return this.get<GetUserLeaderboardDataResult>(uri);
49
49
  }
50
+
51
+ // TODO: Filip, Antonio add function that returns gameStatus for user
52
+ // return { bodyId:string, status: 'notStarted' | 'notLockedIn' | 'lockedIn', boostRate: number, nextBoostStartTimestampMilliseconds: number }
53
+
54
+ // TODO: Filip, Antonio add function that triggers new random boost for user, we just pass address BE should persist and return this number to UI
55
+ // params: { bodyId:string } and return { boostRate: number, bodyId: string }
50
56
  }
@@ -0,0 +1,18 @@
1
+ import {
2
+ getWalletReferralDetails,
3
+ GetWalletReferralDetailsParams,
4
+ } from './services';
5
+ import { Loggable, Logger } from '@reyaxyz/common';
6
+
7
+ export default class ReferralModule implements Loggable {
8
+ loggingEnabled: boolean = false;
9
+
10
+ constructor(loggingEnabled: boolean) {
11
+ this.loggingEnabled = loggingEnabled;
12
+ }
13
+
14
+ @Logger('ReferralModule.getWalletReferralDetails')
15
+ async getWalletReferralDetails(params: GetWalletReferralDetailsParams) {
16
+ return await getWalletReferralDetails(params);
17
+ }
18
+ }
@@ -0,0 +1,21 @@
1
+ import {
2
+ GetWalletReferralDetailsParams,
3
+ GetWalletReferralDetailsResult,
4
+ } from './types';
5
+
6
+ // TODO: Costin fix implementation
7
+ export function getWalletReferralDetails({
8
+ address,
9
+ }: GetWalletReferralDetailsParams): Promise<GetWalletReferralDetailsResult> {
10
+ return new Promise((resolve) =>
11
+ setTimeout(
12
+ () =>
13
+ resolve({
14
+ referralLink: `https://reya.network/${address}`,
15
+ totalReferralXP: Math.random() * 100000,
16
+ totalReferralsCount: Math.random() * 1000,
17
+ }),
18
+ Math.random() * 2000,
19
+ ),
20
+ );
21
+ }
@@ -0,0 +1,9 @@
1
+ export type GetWalletReferralDetailsParams = {
2
+ address: string;
3
+ };
4
+
5
+ export type GetWalletReferralDetailsResult = {
6
+ referralLink: string;
7
+ totalReferralsCount: number;
8
+ totalReferralXP: number;
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-wallet-referral-details';
2
+ export * from './get-wallet-referral-details/types';
@@ -26,4 +26,7 @@ export default class TwitterModule implements Loggable {
26
26
  twitterClientId: this.twitterClientId,
27
27
  });
28
28
  }
29
+
30
+ // TODO: Filip, Antonio add twitter function to TwitterModule that triggers boost lockin for game flow
31
+ // TODO: Filip, Antonio add twitter function to TwitterModule that triggers share referral
29
32
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/trading-league/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA+D;AAW/D;IACU,uCAAU;IAKlB,6BAAY,MAAc,EAAE,cAAuB;QACjD,YAAA,MAAK,YAAC,MAAM,CAAC,SAAC;QAHhB,oBAAc,GAAY,KAAK,CAAC;QAI9B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;IACvC,CAAC;IAGK,uCAAS,GAAT,UAAU,MAAuB;;;;4BAE9B,qBAAM,IAAI,OAAO,CACtB,UAAC,OAAqC,EAAE,MAAM;4BAC5C,UAAU,CACR;gCACE,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;gCACvC,IAAI,KAAK,EAAE,CAAC;oCACV,MAAM,CAAC,IAAI,KAAK,CAAC,yBAAkB,MAAM,CAAC,OAAO,WAAQ,CAAC,CAAC,CAAC;gCAC9D,CAAC;gCACD,OAAO,CAAC;oCACN,OAAO,EAAE,IAAI;iCACd,CAAC,CAAC;4BACL,CAAC,EACD,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAC3B,CAAC;wBACJ,CAAC,CACF,EAAA;;oBAhBD,oCAAoC;oBACpC,sBAAO,SAeN,EAAC;;;;KACH;IAGK,4CAAc,GAAd,UAAe,MAA4B;;;;gBACzC,GAAG,GAAG,8BAAuB,MAAM,CAAC,OAAO,cAAI,MAAM,CAAC,IAAI,CAAE,CAAC;gBACnE,sBAAO,IAAI,CAAC,GAAG,CAAuB,GAAG,CAAC,EAAC;;;KAC5C;IAGK,oDAAsB,GAAtB,UAAuB,MAAoC;;;;gBACzD,GAAG,GAAG,wCAAiC,MAAM,CAAC,OAAO,CAAE,CAAC;gBAC9D,sBAAO,IAAI,CAAC,GAAG,CAA+B,GAAG,CAAC,EAAC;;;KACpD;IA9BK;QADL,IAAA,eAAM,EAAC,+BAA+B,CAAC;wDAmBvC;IAGK;QADL,IAAA,eAAM,EAAC,oCAAoC,CAAC;6DAI5C;IAGK;QADL,IAAA,eAAM,EAAC,4CAA4C,CAAC;qEAIpD;IACH,0BAAC;CAAA,AA3CD,CACU,mBAAU,GA0CnB;kBA3CoB,mBAAmB","sourcesContent":["import { Loggable, Logger, RestClient } from '@reyaxyz/common';\n\nimport {\n ClaimRankParams,\n ClaimRankResult,\n GetLeaderboardParams,\n GetLeaderboardResult,\n GetUserLeaderboardDataParams,\n GetUserLeaderboardDataResult,\n} from './types';\n\nexport default class TradingLeagueModule\n extends RestClient\n implements Loggable\n{\n loggingEnabled: boolean = false;\n\n constructor(apiUrl: string, loggingEnabled: boolean) {\n super(apiUrl);\n this.loggingEnabled = loggingEnabled;\n }\n\n @Logger('TradingLeagueModule.claimRank')\n async claimRank(params: ClaimRankParams) {\n // TODO: Write proper implementation\n return await new Promise(\n (resolve: (_: ClaimRankResult) => void, reject) => {\n setTimeout(\n () => {\n const error = Math.random() * 100 > 50;\n if (error) {\n reject(new Error(`Claim Rank for ${params.address} error`));\n }\n resolve({\n success: true,\n });\n },\n Math.random() * 100 + 1000,\n );\n },\n );\n }\n\n @Logger('TradingLeagueModule.getLeaderboard')\n async getLeaderboard(params: GetLeaderboardParams) {\n const uri = `/api/xp/leaderboard/${params.perPage}/${params.page}`;\n return this.get<GetLeaderboardResult>(uri);\n }\n\n @Logger('TradingLeagueModule.getUserLeaderboardData')\n async getUserLeaderboardData(params: GetUserLeaderboardDataParams) {\n const uri = `/api/xp/leaderboard-user-data/${params.address}`;\n return this.get<GetUserLeaderboardDataResult>(uri);\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"/","sources":["modules/trading-league/types.ts"],"names":[],"mappings":"","sourcesContent":["export {\n ClaimRankParams,\n ClaimRankResult,\n LeaderboardEntity,\n GetLeaderboardParams,\n GetLeaderboardResult,\n UserLeaderboardDataEntity,\n GetUserLeaderboardDataParams,\n GetUserLeaderboardDataResult,\n} from '@reyaxyz/common';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/trading-league/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,EAE7B,MAAM,SAAS,CAAC;AAEjB,MAAM,CAAC,OAAO,OAAO,mBACnB,SAAQ,UACR,YAAW,QAAQ;IAEnB,cAAc,EAAE,OAAO,CAAS;gBAEpB,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO;IAM7C,SAAS,CAAC,MAAM,EAAE,eAAe;IAqBjC,cAAc,CAAC,MAAM,EAAE,oBAAoB;IAM3C,sBAAsB,CAAC,MAAM,EAAE,4BAA4B;CAIlE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["modules/trading-league/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC"}