@reyaxyz/community-sdk 0.2.4 → 0.2.5

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.
@@ -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,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"]}
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, GetAccountLGEStatusResult } from './types';\n\nfunction mockAccountLGEStatus(): GetAccountLGEStatusResult {\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<GetAccountLGEStatusResult> => {\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/types.ts"],"names":[],"mappings":"","sourcesContent":["export type GetAccountLGEStatusParams = {\n address: string; // wallet address\n};\nexport type GetLAccountLGEStatusResult = {\n xp: number;\n currentBoost: number;\n deposited: number;\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/types.ts"],"names":[],"mappings":"","sourcesContent":["export type GetAccountLGEStatusParams = {\n address: string; // wallet address\n};\nexport type GetAccountLGEStatusResult = {\n xp: number;\n currentBoost: number;\n deposited: number;\n};\n"]}
@@ -4,6 +4,6 @@ export default class LGEModule {
4
4
  private chainId;
5
5
  constructor(chainId: ReyaChainId);
6
6
  getLGEBoostRate(params: GetLGEBoostRateParams): Promise<number>;
7
- getAccountLGEStatus(params: GetAccountLGEStatusParams): Promise<import("./services").GetLAccountLGEStatusResult>;
7
+ getAccountLGEStatus(params: GetAccountLGEStatusParams): Promise<import("./services").GetAccountLGEStatusResult>;
8
8
  }
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- import { GetAccountLGEStatusParams, GetLAccountLGEStatusResult } from './types';
2
- export declare const getAccountLGEStatus: (_: GetAccountLGEStatusParams) => Promise<GetLAccountLGEStatusResult>;
1
+ import { GetAccountLGEStatusParams, GetAccountLGEStatusResult } from './types';
2
+ export declare const getAccountLGEStatus: (_: GetAccountLGEStatusParams) => Promise<GetAccountLGEStatusResult>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAWhF,eAAO,MAAM,mBAAmB,MAE3B,yBAAyB,KAC3B,QAAQ,0BAA0B,CAapC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAW/E,eAAO,MAAM,mBAAmB,MAE3B,yBAAyB,KAC3B,QAAQ,yBAAyB,CAanC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export type GetAccountLGEStatusParams = {
2
2
  address: string;
3
3
  };
4
- export type GetLAccountLGEStatusResult = {
4
+ export type GetAccountLGEStatusResult = {
5
5
  xp: number;
6
6
  currentBoost: number;
7
7
  deposited: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["modules/lge/services/get-account-lge-status/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/community-sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
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": "eccb0c061d91c383ae02680b3193ff8ee07a4ad6"
40
+ "gitHead": "d34780c9a7afd0a6fea60a8360365203206e71e2"
41
41
  }
@@ -1,6 +1,6 @@
1
- import { GetAccountLGEStatusParams, GetLAccountLGEStatusResult } from './types';
1
+ import { GetAccountLGEStatusParams, GetAccountLGEStatusResult } from './types';
2
2
 
3
- function mockAccountLGEStatus(): GetLAccountLGEStatusResult {
3
+ function mockAccountLGEStatus(): GetAccountLGEStatusResult {
4
4
  return {
5
5
  currentBoost: Math.random() * 100,
6
6
  deposited: Math.floor(Math.random() * 10000) + 1000,
@@ -12,7 +12,7 @@ function mockAccountLGEStatus(): GetLAccountLGEStatusResult {
12
12
  export const getAccountLGEStatus = async (
13
13
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
14
  _: GetAccountLGEStatusParams,
15
- ): Promise<GetLAccountLGEStatusResult> => {
15
+ ): Promise<GetAccountLGEStatusResult> => {
16
16
  return await new Promise((resolve, reject) => {
17
17
  setTimeout(
18
18
  () => {
@@ -1,7 +1,7 @@
1
1
  export type GetAccountLGEStatusParams = {
2
2
  address: string; // wallet address
3
3
  };
4
- export type GetLAccountLGEStatusResult = {
4
+ export type GetAccountLGEStatusResult = {
5
5
  xp: number;
6
6
  currentBoost: number;
7
7
  deposited: number;