@reyaxyz/community-sdk 0.3.3 → 0.4.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/constants.js
CHANGED
|
@@ -6,18 +6,18 @@ exports.SERVICE_CONFIG = {
|
|
|
6
6
|
production: {
|
|
7
7
|
environment: 'production',
|
|
8
8
|
chainId: common_1.ReyaChainId.reyaNetwork,
|
|
9
|
-
// todo:
|
|
9
|
+
// todo: change to production creds when new app is created
|
|
10
10
|
twitter: {
|
|
11
|
-
clientId: '',
|
|
12
|
-
redirectURI: '',
|
|
11
|
+
clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
|
|
12
|
+
redirectURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
test: {
|
|
16
16
|
environment: 'test',
|
|
17
17
|
chainId: common_1.ReyaChainId.reyaCronos,
|
|
18
18
|
twitter: {
|
|
19
|
-
clientId: '',
|
|
20
|
-
redirectURI: '',
|
|
19
|
+
clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
|
|
20
|
+
redirectURI: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"/","sources":["client/constants.ts"],"names":[],"mappings":";;;AAAA,0CAA8C;AAajC,QAAA,cAAc,GAA8C;IACvE,UAAU,EAAE;QACV,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,oBAAW,CAAC,WAAW;QAChC,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"/","sources":["client/constants.ts"],"names":[],"mappings":";;;AAAA,0CAA8C;AAajC,QAAA,cAAc,GAA8C;IACvE,UAAU,EAAE;QACV,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,oBAAW,CAAC,WAAW;QAChC,2DAA2D;QAC3D,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,WAAW,EACT,oEAAoE;SACvE;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,oBAAW,CAAC,UAAU;QAC/B,OAAO,EAAE;YACP,QAAQ,EAAE,oCAAoC;YAC9C,WAAW,EACT,oEAAoE;SACvE;KACF;CACF,CAAC","sourcesContent":["import { ReyaChainId } from '@reyaxyz/common';\n\nexport type ServiceEnvironment = 'production' | 'test';\n\nexport type ServiceConfig = {\n chainId: ReyaChainId;\n twitter: {\n clientId: string;\n redirectURI: string;\n };\n environment: ServiceEnvironment;\n};\n\nexport const SERVICE_CONFIG: Record<ServiceEnvironment, ServiceConfig> = {\n production: {\n environment: 'production',\n chainId: ReyaChainId.reyaNetwork,\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 },\n test: {\n environment: 'test',\n chainId: ReyaChainId.reyaCronos,\n twitter: {\n clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',\n redirectURI:\n 'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',\n },\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"/","sources":["client/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,MAAM,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,kBAAkB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"/","sources":["client/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,MAAM,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAoBpE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/community-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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": "
|
|
40
|
+
"gitHead": "03560eb9a08e7255cd37ac46825ceba99559c654"
|
|
41
41
|
}
|
package/src/client/constants.ts
CHANGED
|
@@ -15,18 +15,20 @@ export const SERVICE_CONFIG: Record<ServiceEnvironment, ServiceConfig> = {
|
|
|
15
15
|
production: {
|
|
16
16
|
environment: 'production',
|
|
17
17
|
chainId: ReyaChainId.reyaNetwork,
|
|
18
|
-
// todo:
|
|
18
|
+
// todo: change to production creds when new app is created
|
|
19
19
|
twitter: {
|
|
20
|
-
clientId: '',
|
|
21
|
-
redirectURI:
|
|
20
|
+
clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
|
|
21
|
+
redirectURI:
|
|
22
|
+
'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
|
|
22
23
|
},
|
|
23
24
|
},
|
|
24
25
|
test: {
|
|
25
26
|
environment: 'test',
|
|
26
27
|
chainId: ReyaChainId.reyaCronos,
|
|
27
28
|
twitter: {
|
|
28
|
-
clientId: '',
|
|
29
|
-
redirectURI:
|
|
29
|
+
clientId: 'LTBKa25VWkpjaEtSMzRGVEZaYmU6MTpjaQ',
|
|
30
|
+
redirectURI:
|
|
31
|
+
'https://m8mjgmqmte.eu-central-1.awsapprunner.com/api/twitter/share',
|
|
30
32
|
},
|
|
31
33
|
},
|
|
32
34
|
};
|