@reyaxyz/common 0.56.1 → 0.57.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.
@@ -12,7 +12,9 @@ exports.API_CLIENT_CONFIGS = {
12
12
  // todo: change to production creds when new app is created
13
13
  twitter: {
14
14
  clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
15
- redirectURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
15
+ getExtraBoostTwitterApiURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/extraBoost',
16
+ getLockGameBoostTwitterApiURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',
17
+ getShareReferralTwitterApiURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/shareReferral',
16
18
  },
17
19
  logging: true,
18
20
  },
@@ -23,7 +25,9 @@ exports.API_CLIENT_CONFIGS = {
23
25
  timeout: utils_1.API_TIMEOUT,
24
26
  twitter: {
25
27
  clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
26
- redirectURI: 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/share',
28
+ getExtraBoostTwitterApiURI: 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/extraBoost',
29
+ getLockGameBoostTwitterApiURI: 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',
30
+ getShareReferralTwitterApiURI: 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/shareReferral',
27
31
  },
28
32
  logging: false,
29
33
  },
@@ -34,7 +38,9 @@ exports.API_CLIENT_CONFIGS = {
34
38
  timeout: utils_1.API_TIMEOUT,
35
39
  twitter: {
36
40
  clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
37
- redirectURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
41
+ getExtraBoostTwitterApiURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/extraBoost',
42
+ getLockGameBoostTwitterApiURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',
43
+ getShareReferralTwitterApiURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/shareReferral',
38
44
  },
39
45
  logging: true,
40
46
  },
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"/","sources":["rest/helpers/constants.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,qCAA0C;AAe7B,QAAA,kBAAkB,GAA8C;IAC3E,KAAK,EAAE;QACL,KAAK,EAAE,mBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,uBAAuB;QACpC,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,mBAAW;QACpB,2DAA2D;QAC3D,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,WAAW,EACT,oEAAoE;SACvE;QACD,OAAO,EAAE,IAAI;KACd;IACD,UAAU,EAAE;QACV,KAAK,EAAE,mBAAW,CAAC,WAAW;QAC9B,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,mBAAW;QACpB,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,WAAW,EACT,oEAAoE;SACvE;QACD,OAAO,EAAE,KAAK;KACf;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,mBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,kDAAkD;QAC/D,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,mBAAW;QACpB,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,WAAW,EACT,oEAAoE;SACvE;QACD,OAAO,EAAE,IAAI;KACd;CACF,CAAC","sourcesContent":["import { API_TIMEOUT } from '../../utils';\nimport { ReyaChainId } from '../../types';\n\ntype ServiceEnvironment = 'production' | 'test' | 'local';\nexport interface ServiceConfig {\n chain: ReyaChainId;\n apiEndpoint: string;\n environment: ServiceEnvironment; // Configuration for SDK, such as base URL for the REST API\n timeout: number; // Optional timeout for API requests\n twitter: {\n clientId: string;\n redirectURI: string;\n };\n logging: boolean;\n}\n\nexport const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {\n local: {\n chain: ReyaChainId.reyaCronos,\n apiEndpoint: 'http://localhost:3000',\n environment: 'local',\n timeout: API_TIMEOUT,\n // todo: change to production creds when new app is created\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n redirectURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',\n },\n logging: true,\n },\n production: {\n chain: ReyaChainId.reyaNetwork,\n apiEndpoint: 'https://api.reya.xyz',\n environment: 'production',\n timeout: API_TIMEOUT,\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n redirectURI:\n 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/share',\n },\n logging: false,\n },\n test: {\n chain: ReyaChainId.reyaCronos,\n apiEndpoint: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com',\n environment: 'test',\n timeout: API_TIMEOUT,\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n redirectURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',\n },\n logging: true,\n },\n};\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"/","sources":["rest/helpers/constants.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,qCAA0C;AAiB7B,QAAA,kBAAkB,GAA8C;IAC3E,KAAK,EAAE;QACL,KAAK,EAAE,mBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,uBAAuB;QACpC,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,mBAAW;QACpB,2DAA2D;QAC3D,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,0BAA0B,EACxB,yEAAyE;YAC3E,6BAA6B,EAC3B,4EAA4E;YAC9E,6BAA6B,EAC3B,4EAA4E;SAC/E;QACD,OAAO,EAAE,IAAI;KACd;IACD,UAAU,EAAE;QACV,KAAK,EAAE,mBAAW,CAAC,WAAW;QAC9B,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,mBAAW;QACpB,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,0BAA0B,EACxB,yEAAyE;YAC3E,6BAA6B,EAC3B,4EAA4E;YAC9E,6BAA6B,EAC3B,4EAA4E;SAC/E;QACD,OAAO,EAAE,KAAK;KACf;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,mBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,kDAAkD;QAC/D,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,mBAAW;QACpB,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,0BAA0B,EACxB,yEAAyE;YAC3E,6BAA6B,EAC3B,4EAA4E;YAC9E,6BAA6B,EAC3B,4EAA4E;SAC/E;QACD,OAAO,EAAE,IAAI;KACd;CACF,CAAC","sourcesContent":["import { API_TIMEOUT } from '../../utils';\nimport { ReyaChainId } from '../../types';\n\ntype ServiceEnvironment = 'production' | 'test' | 'local';\nexport interface ServiceConfig {\n chain: ReyaChainId;\n apiEndpoint: string;\n environment: ServiceEnvironment; // Configuration for SDK, such as base URL for the REST API\n timeout: number; // Optional timeout for API requests\n twitter: {\n clientId: string;\n getExtraBoostTwitterApiURI: string;\n getLockGameBoostTwitterApiURI: string;\n getShareReferralTwitterApiURI: string;\n };\n logging: boolean;\n}\n\nexport const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {\n local: {\n chain: ReyaChainId.reyaCronos,\n apiEndpoint: 'http://localhost:3000',\n environment: 'local',\n timeout: API_TIMEOUT,\n // todo: change to production creds when new app is created\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n getExtraBoostTwitterApiURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/extraBoost',\n getLockGameBoostTwitterApiURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',\n getShareReferralTwitterApiURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/shareReferral',\n },\n logging: true,\n },\n production: {\n chain: ReyaChainId.reyaNetwork,\n apiEndpoint: 'https://api.reya.xyz',\n environment: 'production',\n timeout: API_TIMEOUT,\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n getExtraBoostTwitterApiURI:\n 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/extraBoost',\n getLockGameBoostTwitterApiURI:\n 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',\n getShareReferralTwitterApiURI:\n 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/shareReferral',\n },\n logging: false,\n },\n test: {\n chain: ReyaChainId.reyaCronos,\n apiEndpoint: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com',\n environment: 'test',\n timeout: API_TIMEOUT,\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n getExtraBoostTwitterApiURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/extraBoost',\n getLockGameBoostTwitterApiURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',\n getShareReferralTwitterApiURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/shareReferral',\n },\n logging: true,\n },\n};\n"]}
@@ -7,7 +7,9 @@ export interface ServiceConfig {
7
7
  timeout: number;
8
8
  twitter: {
9
9
  clientId: string;
10
- redirectURI: string;
10
+ getExtraBoostTwitterApiURI: string;
11
+ getLockGameBoostTwitterApiURI: string;
12
+ getShareReferralTwitterApiURI: string;
11
13
  };
12
14
  logging: boolean;
13
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"/","sources":["rest/helpers/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,KAAK,kBAAkB,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1D,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAsCxE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"/","sources":["rest/helpers/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,KAAK,kBAAkB,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1D,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,0BAA0B,EAAE,MAAM,CAAC;QACnC,6BAA6B,EAAE,MAAM,CAAC;QACtC,6BAA6B,EAAE,MAAM,CAAC;KACvC,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAkDxE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/common",
3
- "version": "0.56.1",
3
+ "version": "0.57.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -42,5 +42,5 @@
42
42
  "generate:coverage-badges": "npx istanbul-badges-readme --silent"
43
43
  },
44
44
  "packageManager": "pnpm@8.10.4",
45
- "gitHead": "4d4c3ecb9c3a66bfe128ba4e96c8922d4259a42c"
45
+ "gitHead": "58d9e1729861ee7ab5299cf86ba59027799dab22"
46
46
  }
@@ -9,7 +9,9 @@ export interface ServiceConfig {
9
9
  timeout: number; // Optional timeout for API requests
10
10
  twitter: {
11
11
  clientId: string;
12
- redirectURI: string;
12
+ getExtraBoostTwitterApiURI: string;
13
+ getLockGameBoostTwitterApiURI: string;
14
+ getShareReferralTwitterApiURI: string;
13
15
  };
14
16
  logging: boolean;
15
17
  }
@@ -23,8 +25,12 @@ export const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {
23
25
  // todo: change to production creds when new app is created
24
26
  twitter: {
25
27
  clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
26
- redirectURI:
27
- 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
28
+ getExtraBoostTwitterApiURI:
29
+ 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/extraBoost',
30
+ getLockGameBoostTwitterApiURI:
31
+ 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',
32
+ getShareReferralTwitterApiURI:
33
+ 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/shareReferral',
28
34
  },
29
35
  logging: true,
30
36
  },
@@ -35,8 +41,12 @@ export const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {
35
41
  timeout: API_TIMEOUT,
36
42
  twitter: {
37
43
  clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
38
- redirectURI:
39
- 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/share',
44
+ getExtraBoostTwitterApiURI:
45
+ 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/extraBoost',
46
+ getLockGameBoostTwitterApiURI:
47
+ 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',
48
+ getShareReferralTwitterApiURI:
49
+ 'https://mtducb79rf.eu-central-1.awsapprunner.com/api/twitter/shareReferral',
40
50
  },
41
51
  logging: false,
42
52
  },
@@ -47,8 +57,12 @@ export const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {
47
57
  timeout: API_TIMEOUT,
48
58
  twitter: {
49
59
  clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
50
- redirectURI:
51
- 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
60
+ getExtraBoostTwitterApiURI:
61
+ 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/extraBoost',
62
+ getLockGameBoostTwitterApiURI:
63
+ 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/lockGameBoost',
64
+ getShareReferralTwitterApiURI:
65
+ 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/shareReferral',
52
66
  },
53
67
  logging: true,
54
68
  },