@reyaxyz/community-sdk 0.2.0 → 0.2.2

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.
@@ -54,7 +54,7 @@ _) { return __awaiter(void 0, void 0, void 0, function () {
54
54
  setTimeout(function () {
55
55
  var error = Math.random() * 100 > 50;
56
56
  if (error) {
57
- reject(new Error('Vote not found'));
57
+ reject(new Error('getAccountLGEStatus error'));
58
58
  }
59
59
  resolve(mockAccountLGEStatus());
60
60
  }, Math.random() * 100 + 1000);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,oBAAoB;IAC3B,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG;QACjC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI;QACnD,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,IAAI;KAC3C,CAAC;AACJ,CAAC;AAED,oCAAoC;AAC7B,IAAM,mBAAmB,GAAG;AACjC,6DAA6D;AAC7D,CAA4B;;;oBAErB,qBAAM,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACvC,UAAU,CACR;wBACE,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;wBACvC,IAAI,KAAK,EAAE,CAAC;4BACV,MAAM,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;wBACtC,CAAC;wBACD,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;oBAClC,CAAC,EACD,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAC3B,CAAC;gBACJ,CAAC,CAAC,EAAA;oBAXF,sBAAO,SAWL,EAAC;;;KACJ,CAAC;AAhBW,QAAA,mBAAmB,uBAgB9B","sourcesContent":["import { GetAccountLGEStatusParams, GetLAccountLGEStatusResult } from './types';\n\nfunction mockAccountLGEStatus(): GetLAccountLGEStatusResult {\n return {\n currentBoost: Math.random() * 100,\n deposited: Math.floor(Math.random() * 10000) + 1000,\n xp: Math.floor(Math.random() * 100) + 1000,\n };\n}\n\n// TODO: Write proper implementation\nexport const getAccountLGEStatus = async (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _: GetAccountLGEStatusParams,\n): Promise<GetLAccountLGEStatusResult> => {\n return await new Promise((resolve, reject) => {\n setTimeout(\n () => {\n const error = Math.random() * 100 > 50;\n if (error) {\n reject(new Error('Vote not found'));\n }\n resolve(mockAccountLGEStatus());\n },\n Math.random() * 100 + 1000,\n );\n });\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,oBAAoB;IAC3B,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG;QACjC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI;QACnD,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,IAAI;KAC3C,CAAC;AACJ,CAAC;AAED,oCAAoC;AAC7B,IAAM,mBAAmB,GAAG;AACjC,6DAA6D;AAC7D,CAA4B;;;oBAErB,qBAAM,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACvC,UAAU,CACR;wBACE,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;wBACvC,IAAI,KAAK,EAAE,CAAC;4BACV,MAAM,CAAC,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC;wBACjD,CAAC;wBACD,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;oBAClC,CAAC,EACD,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAC3B,CAAC;gBACJ,CAAC,CAAC,EAAA;oBAXF,sBAAO,SAWL,EAAC;;;KACJ,CAAC;AAhBW,QAAA,mBAAmB,uBAgB9B","sourcesContent":["import { GetAccountLGEStatusParams, GetLAccountLGEStatusResult } from './types';\n\nfunction mockAccountLGEStatus(): GetLAccountLGEStatusResult {\n return {\n currentBoost: Math.random() * 100,\n deposited: Math.floor(Math.random() * 10000) + 1000,\n xp: Math.floor(Math.random() * 100) + 1000,\n };\n}\n\n// TODO: Write proper implementation\nexport const getAccountLGEStatus = async (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _: GetAccountLGEStatusParams,\n): Promise<GetLAccountLGEStatusResult> => {\n return await new Promise((resolve, reject) => {\n setTimeout(\n () => {\n const error = Math.random() * 100 > 50;\n if (error) {\n reject(new Error('getAccountLGEStatus error'));\n }\n resolve(mockAccountLGEStatus());\n },\n Math.random() * 100 + 1000,\n );\n });\n};\n"]}
@@ -46,12 +46,8 @@ var getLGEBoostRate = function (
46
46
  _) { return __awaiter(void 0, void 0, void 0, function () {
47
47
  return __generator(this, function (_a) {
48
48
  switch (_a.label) {
49
- case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {
49
+ case 0: return [4 /*yield*/, new Promise(function (resolve) {
50
50
  setTimeout(function () {
51
- var error = Math.random() * 100 > 50;
52
- if (error) {
53
- reject(new Error('Vote not found'));
54
- }
55
51
  resolve(mockLGEBoostRate());
56
52
  }, Math.random() * 100 + 1000);
57
53
  })];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/lge/services/get-lge-boost-rate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,gBAAgB;IACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,oCAAoC;AAC7B,IAAM,eAAe,GAAG;AAC7B,6DAA6D;AAC7D,CAAwB;;;oBAEjB,qBAAM,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACvC,UAAU,CACR;wBACE,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;wBACvC,IAAI,KAAK,EAAE,CAAC;4BACV,MAAM,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;wBACtC,CAAC;wBACD,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;oBAC9B,CAAC,EACD,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAC3B,CAAC;gBACJ,CAAC,CAAC,EAAA;oBAXF,sBAAO,SAWL,EAAC;;;KACJ,CAAC;AAhBW,QAAA,eAAe,mBAgB1B","sourcesContent":["import { GetLGEBoostRateParams, GetLGEBoostRateResult } from './types';\n\nfunction mockLGEBoostRate(): GetLGEBoostRateResult {\n return Math.floor(Math.random() * 1000);\n}\n\n// TODO: Write proper implementation\nexport const getLGEBoostRate = async (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _: GetLGEBoostRateParams,\n): Promise<GetLGEBoostRateResult> => {\n return await new Promise((resolve, reject) => {\n setTimeout(\n () => {\n const error = Math.random() * 100 > 50;\n if (error) {\n reject(new Error('Vote not found'));\n }\n resolve(mockLGEBoostRate());\n },\n Math.random() * 100 + 1000,\n );\n });\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/lge/services/get-lge-boost-rate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,gBAAgB;IACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,oCAAoC;AAC7B,IAAM,eAAe,GAAG;AAC7B,6DAA6D;AAC7D,CAAwB;;;oBAEjB,qBAAM,IAAI,OAAO,CAAC,UAAC,OAAO;oBAC/B,UAAU,CACR;wBACE,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;oBAC9B,CAAC,EACD,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAC3B,CAAC;gBACJ,CAAC,CAAC,EAAA;oBAPF,sBAAO,SAOL,EAAC;;;KACJ,CAAC;AAZW,QAAA,eAAe,mBAY1B","sourcesContent":["import { GetLGEBoostRateParams, GetLGEBoostRateResult } from './types';\n\nfunction mockLGEBoostRate(): GetLGEBoostRateResult {\n return Math.floor(Math.random() * 1000);\n}\n\n// TODO: Write proper implementation\nexport const getLGEBoostRate = async (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _: GetLGEBoostRateParams,\n): Promise<GetLGEBoostRateResult> => {\n return await new Promise((resolve) => {\n setTimeout(\n () => {\n resolve(mockLGEBoostRate());\n },\n Math.random() * 100 + 1000,\n );\n });\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/lge/services/get-lge-boost-rate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAOvE,eAAO,MAAM,eAAe,MAEvB,qBAAqB,KACvB,QAAQ,qBAAqB,CAa/B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/lge/services/get-lge-boost-rate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAOvE,eAAO,MAAM,eAAe,MAEvB,qBAAqB,KACvB,QAAQ,qBAAqB,CAS/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/community-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -37,5 +37,5 @@
37
37
  "generate:coverage-badges": "npx istanbul-badges-readme --silent"
38
38
  },
39
39
  "packageManager": "pnpm@8.10.4",
40
- "gitHead": "3777f4edc3ecb95df885f7102cf76059917d85c2"
40
+ "gitHead": "2a958d356ffc6a48f755421a4b0ce949e9ad40a4"
41
41
  }
@@ -18,7 +18,7 @@ export const getAccountLGEStatus = async (
18
18
  () => {
19
19
  const error = Math.random() * 100 > 50;
20
20
  if (error) {
21
- reject(new Error('Vote not found'));
21
+ reject(new Error('getAccountLGEStatus error'));
22
22
  }
23
23
  resolve(mockAccountLGEStatus());
24
24
  },
@@ -9,13 +9,9 @@ export const getLGEBoostRate = async (
9
9
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
10
  _: GetLGEBoostRateParams,
11
11
  ): Promise<GetLGEBoostRateResult> => {
12
- return await new Promise((resolve, reject) => {
12
+ return await new Promise((resolve) => {
13
13
  setTimeout(
14
14
  () => {
15
- const error = Math.random() * 100 > 50;
16
- if (error) {
17
- reject(new Error('Vote not found'));
18
- }
19
15
  resolve(mockLGEBoostRate());
20
16
  },
21
17
  Math.random() * 100 + 1000,