@reyaxyz/community-sdk 0.17.9 → 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.
- package/dist/client/index.js +32 -16
- package/dist/client/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/index.js +1 -4
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/{trading-league → leaderboard}/index.js +14 -14
- package/dist/modules/leaderboard/index.js.map +1 -0
- package/dist/modules/leaderboard/types.js.map +1 -0
- package/dist/modules/referral/index.js +68 -0
- package/dist/modules/referral/index.js.map +1 -0
- package/dist/modules/referral/services/get-wallet-referral-details/index.js +18 -0
- package/dist/modules/referral/services/get-wallet-referral-details/index.js.map +1 -0
- package/dist/modules/referral/services/get-wallet-referral-details/types.js +3 -0
- package/dist/modules/referral/services/get-wallet-referral-details/types.js.map +1 -0
- package/dist/modules/referral/services/index.js +19 -0
- package/dist/modules/referral/services/index.js.map +1 -0
- package/dist/types/client/index.d.ts +22 -12
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/index.d.ts +1 -0
- package/dist/types/modules/index.d.ts.map +1 -1
- package/dist/types/modules/{trading-league → leaderboard}/index.d.ts +1 -1
- package/dist/types/modules/leaderboard/index.d.ts.map +1 -0
- package/dist/types/modules/leaderboard/types.d.ts.map +1 -0
- package/dist/types/modules/referral/index.d.ts +8 -0
- package/dist/types/modules/referral/index.d.ts.map +1 -0
- package/dist/types/modules/referral/services/get-wallet-referral-details/index.d.ts +3 -0
- package/dist/types/modules/referral/services/get-wallet-referral-details/index.d.ts.map +1 -0
- package/dist/types/modules/referral/services/get-wallet-referral-details/types.d.ts +9 -0
- package/dist/types/modules/referral/services/get-wallet-referral-details/types.d.ts.map +1 -0
- package/dist/types/modules/referral/services/index.d.ts +3 -0
- package/dist/types/modules/referral/services/index.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/client/index.ts +34 -20
- package/src/index.ts +2 -1
- package/src/modules/index.ts +1 -5
- package/src/modules/{trading-league → leaderboard}/index.ts +4 -7
- package/src/modules/referral/index.ts +18 -0
- package/src/modules/referral/services/get-wallet-referral-details/index.ts +21 -0
- package/src/modules/referral/services/get-wallet-referral-details/types.ts +9 -0
- package/src/modules/referral/services/index.ts +2 -0
- package/dist/modules/trading-league/index.js.map +0 -1
- package/dist/modules/trading-league/types.js.map +0 -1
- package/dist/types/modules/trading-league/index.d.ts.map +0 -1
- package/dist/types/modules/trading-league/types.d.ts.map +0 -1
- /package/dist/modules/{trading-league → leaderboard}/types.js +0 -0
- /package/dist/types/modules/{trading-league → leaderboard}/types.d.ts +0 -0
- /package/src/modules/{trading-league → leaderboard}/types.ts +0 -0
package/dist/client/index.js
CHANGED
|
@@ -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
|
|
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.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
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, "
|
|
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().
|
|
44
|
+
return CommunityClient.getInstance()._voteModule;
|
|
43
45
|
},
|
|
44
46
|
enumerable: false,
|
|
45
47
|
configurable: true
|
|
46
48
|
});
|
|
47
|
-
Object.defineProperty(CommunityClient, "
|
|
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().
|
|
58
|
+
return CommunityClient.getInstance()._lgeModule;
|
|
57
59
|
},
|
|
58
60
|
enumerable: false,
|
|
59
61
|
configurable: true
|
|
60
62
|
});
|
|
61
|
-
Object.defineProperty(CommunityClient, "
|
|
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().
|
|
72
|
+
return CommunityClient.getInstance()._twitterModule;
|
|
71
73
|
},
|
|
72
74
|
enumerable: false,
|
|
73
75
|
configurable: true
|
|
74
76
|
});
|
|
75
|
-
Object.defineProperty(CommunityClient, "
|
|
77
|
+
Object.defineProperty(CommunityClient, "leaderboard", {
|
|
76
78
|
/**
|
|
77
|
-
* Provides access to the
|
|
78
|
-
* This getter allows for interacting with
|
|
79
|
+
* Provides access to the LeaderboardModule instance.
|
|
80
|
+
* This getter allows for interacting with leaderboard-related functionalities.
|
|
79
81
|
*
|
|
80
|
-
* @returns {
|
|
82
|
+
* @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.
|
|
81
83
|
* @memberof CommunityClient
|
|
82
84
|
*/
|
|
83
85
|
get: function () {
|
|
84
|
-
return CommunityClient.getInstance().
|
|
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
|
package/dist/client/index.js.map
CHANGED
|
@@ -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,
|
|
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/
|
|
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,
|
|
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"]}
|
package/dist/modules/index.js
CHANGED
|
@@ -17,8 +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
|
-
|
|
21
|
-
// There add a function that:
|
|
22
|
-
// return { referralLink: string, totalReferralsCount: number, totalReferralXP: number }
|
|
23
|
-
// params: address
|
|
20
|
+
__exportStar(require("./referral"), exports);
|
|
24
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;
|
|
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
|
|
62
|
-
__extends(
|
|
63
|
-
function
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)('
|
|
111
|
-
],
|
|
110
|
+
(0, common_1.Logger)('LeaderboardModule.claimRank')
|
|
111
|
+
], LeaderboardModule.prototype, "claimRank", null);
|
|
112
112
|
__decorate([
|
|
113
|
-
(0, common_1.Logger)('
|
|
114
|
-
],
|
|
113
|
+
(0, common_1.Logger)('LeaderboardModule.getLeaderboard')
|
|
114
|
+
], LeaderboardModule.prototype, "getLeaderboard", null);
|
|
115
115
|
__decorate([
|
|
116
|
-
(0, common_1.Logger)('
|
|
117
|
-
],
|
|
118
|
-
return
|
|
116
|
+
(0, common_1.Logger)('LeaderboardModule.getUserLeaderboardData')
|
|
117
|
+
], LeaderboardModule.prototype, "getUserLeaderboardData", null);
|
|
118
|
+
return LeaderboardModule;
|
|
119
119
|
}(common_1.RestClient));
|
|
120
|
-
exports.default =
|
|
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"]}
|
|
@@ -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 @@
|
|
|
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"]}
|
|
@@ -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
|
|
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
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
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
|
|
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
|
|
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
|
|
44
|
+
static get twitterModule(): TwitterModule;
|
|
43
45
|
/**
|
|
44
|
-
* Provides access to the
|
|
45
|
-
* This getter allows for interacting with
|
|
46
|
+
* Provides access to the LeaderboardModule instance.
|
|
47
|
+
* This getter allows for interacting with leaderboard-related functionalities.
|
|
46
48
|
*
|
|
47
|
-
* @returns {
|
|
49
|
+
* @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.
|
|
48
50
|
* @memberof CommunityClient
|
|
49
51
|
*/
|
|
50
|
-
static get
|
|
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,
|
|
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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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/
|
|
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,
|
|
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 +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
|
|
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"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/community-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -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": "
|
|
41
|
+
"gitHead": "2e89489d56061effe76a3e188468495166e244e7"
|
|
42
42
|
}
|
package/src/client/index.ts
CHANGED
|
@@ -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
|
|
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
|
|
15
|
-
private readonly
|
|
16
|
-
private readonly
|
|
17
|
-
private readonly
|
|
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.
|
|
22
|
+
this._voteModule = new VoteModule(
|
|
21
23
|
CommunityClient.config.apiEndpoint,
|
|
22
24
|
CommunityClient.config.logging,
|
|
23
25
|
);
|
|
24
|
-
this.
|
|
26
|
+
this._lgeModule = new LGEModule(
|
|
25
27
|
CommunityClient.config.apiEndpoint,
|
|
26
28
|
CommunityClient.config.logging,
|
|
27
29
|
);
|
|
28
|
-
this.
|
|
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.
|
|
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
|
|
62
|
-
return CommunityClient.getInstance().
|
|
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
|
|
73
|
-
return CommunityClient.getInstance().
|
|
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
|
|
84
|
-
return CommunityClient.getInstance().
|
|
86
|
+
public static get twitterModule(): TwitterModule {
|
|
87
|
+
return CommunityClient.getInstance()._twitterModule;
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
/**
|
|
88
|
-
* Provides access to the
|
|
89
|
-
* This getter allows for interacting with
|
|
91
|
+
* Provides access to the LeaderboardModule instance.
|
|
92
|
+
* This getter allows for interacting with leaderboard-related functionalities.
|
|
90
93
|
*
|
|
91
|
-
* @returns {
|
|
94
|
+
* @returns {LeaderboardModule} An instance of Leaderboard for twitter operations.
|
|
92
95
|
* @memberof CommunityClient
|
|
93
96
|
*/
|
|
94
|
-
public static get
|
|
95
|
-
return CommunityClient.getInstance().
|
|
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/
|
|
5
|
+
export * from './modules/leaderboard/types';
|
|
6
|
+
export * from './modules/referral/services/get-wallet-referral-details/types';
|
package/src/modules/index.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export * from './vote';
|
|
2
2
|
export * from './lge';
|
|
3
3
|
export * from './twitter';
|
|
4
|
-
|
|
5
|
-
// TODO: Filip, Antonio add new Module for Referrals
|
|
6
|
-
// There add a function that:
|
|
7
|
-
// return { referralLink: string, totalReferralsCount: number, totalReferralXP: number }
|
|
8
|
-
// params: address
|
|
4
|
+
export * from './referral';
|
|
@@ -9,10 +9,7 @@ import {
|
|
|
9
9
|
GetUserLeaderboardDataResult,
|
|
10
10
|
} from './types';
|
|
11
11
|
|
|
12
|
-
export default class
|
|
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('
|
|
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('
|
|
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('
|
|
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);
|
|
@@ -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
|
+
}
|
|
@@ -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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|