@reyaxyz/wallet-sdk 0.4.0 → 0.5.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.
|
@@ -13,7 +13,7 @@ exports.API_CLIENT_CONFIGS = {
|
|
|
13
13
|
},
|
|
14
14
|
production: {
|
|
15
15
|
chain: common_1.ReyaChainId.reyaNetwork,
|
|
16
|
-
apiEndpoint: 'https://
|
|
16
|
+
apiEndpoint: 'https://api.reya.xyz',
|
|
17
17
|
trmApiEndpoint: 'https://api.trmlabs.com',
|
|
18
18
|
tosUrl: '',
|
|
19
19
|
environment: 'production',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"/","sources":["clients/helpers/constants.ts"],"names":[],"mappings":";;;AAAA,0CAA2D;AAY9C,QAAA,kBAAkB,GAA8C;IAC3E,KAAK,EAAE;QACL,KAAK,EAAE,oBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,uBAAuB;QACpC,cAAc,EAAE,yBAAyB;QACzC,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,oBAAW;KACrB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,oBAAW,CAAC,WAAW;QAC9B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"/","sources":["clients/helpers/constants.ts"],"names":[],"mappings":";;;AAAA,0CAA2D;AAY9C,QAAA,kBAAkB,GAA8C;IAC3E,KAAK,EAAE;QACL,KAAK,EAAE,oBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,uBAAuB;QACpC,cAAc,EAAE,yBAAyB;QACzC,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,oBAAW;KACrB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,oBAAW,CAAC,WAAW;QAC9B,WAAW,EAAE,sBAAsB;QACnC,cAAc,EAAE,yBAAyB;QACzC,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,oBAAW;KACrB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,oBAAW,CAAC,UAAU;QAC7B,WAAW,EAAE,kDAAkD;QAC/D,cAAc,EAAE,yBAAyB;QACzC,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,oBAAW;KACrB;CACF,CAAC;AAEF;;;GAGG;AACI,IAAM,UAAU,GAAG,UAAC,MAAc;IACvC,IAAM,IAAI,GAAG,+MAIb,MAAM,oGAEoF,CAAC;IAE3F,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;AACrB,CAAC,CAAC;AAVW,QAAA,UAAU,cAUrB","sourcesContent":["import { API_TIMEOUT, ReyaChainId } from '@reyaxyz/common';\n\ntype ServiceEnvironment = 'production' | 'test' | 'local';\nexport interface ServiceConfig {\n chain: ReyaChainId;\n apiEndpoint: string;\n trmApiEndpoint: string;\n tosUrl: string;\n environment: ServiceEnvironment; // Configuration for SDK, such as base URL for the REST API\n timeout: number; // Optional timeout for API requests\n}\n\nexport const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {\n local: {\n chain: ReyaChainId.reyaCronos,\n apiEndpoint: 'http://localhost:3000',\n trmApiEndpoint: 'https://api.trmlabs.com',\n tosUrl: '',\n environment: 'local',\n timeout: API_TIMEOUT,\n },\n production: {\n chain: ReyaChainId.reyaNetwork,\n apiEndpoint: 'https://api.reya.xyz',\n trmApiEndpoint: 'https://api.trmlabs.com',\n tosUrl: '',\n environment: 'production',\n timeout: API_TIMEOUT,\n },\n test: {\n chain: ReyaChainId.reyaCronos,\n apiEndpoint: 'https://m8mjgmqmte.eu-central-1.awsapprunner.com',\n trmApiEndpoint: 'https://api.trmlabs.com',\n tosUrl: '',\n environment: 'test',\n timeout: API_TIMEOUT,\n },\n};\n\n/**\n * Returns the terms of service text that users have to agree to connect their wallet.\n * Note - Any changes, including whitespace, will mean a new signature is required.\n */\nexport const getToSText = (tosUrl: string) => {\n const text = `\nPlease sign this message to log in. This won't cost you any ETH.\n\nBy signing, you accept Voltz's Terms of Service (which may have been updated since you last signed). You can find these here:\n${tosUrl}\n\nIf you're connecting a hardware wallet, you'll need to sign the message on your device too.`;\n\n return text.trim();\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/wallet-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@reyaxyz/common": "0.
|
|
36
|
+
"@reyaxyz/common": "0.41.0",
|
|
37
37
|
"axios": "^1.6.2",
|
|
38
38
|
"bignumber.js": "^9.1.2",
|
|
39
39
|
"ethers": "6.9.0"
|
|
40
40
|
},
|
|
41
41
|
"packageManager": "pnpm@8.10.4",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "dff5be302f0eac65c426af8a483da4c5849007ab"
|
|
43
43
|
}
|
|
@@ -21,7 +21,7 @@ export const API_CLIENT_CONFIGS: Record<ServiceEnvironment, ServiceConfig> = {
|
|
|
21
21
|
},
|
|
22
22
|
production: {
|
|
23
23
|
chain: ReyaChainId.reyaNetwork,
|
|
24
|
-
apiEndpoint: 'https://
|
|
24
|
+
apiEndpoint: 'https://api.reya.xyz',
|
|
25
25
|
trmApiEndpoint: 'https://api.trmlabs.com',
|
|
26
26
|
tosUrl: '',
|
|
27
27
|
environment: 'production',
|