@nadohq/engine-client 0.37.0 → 0.41.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/endpoints.cjs +6 -6
- package/dist/endpoints.cjs.map +1 -1
- package/dist/endpoints.js +6 -6
- package/dist/endpoints.js.map +1 -1
- package/package.json +3 -3
- package/src/endpoints.ts +6 -6
package/dist/endpoints.cjs
CHANGED
|
@@ -2,18 +2,18 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
//#region src/endpoints.ts
|
|
3
3
|
const ENGINE_CLIENT_ENDPOINTS = {
|
|
4
4
|
local: "http://localhost:80",
|
|
5
|
-
inkTestnet: "https://
|
|
6
|
-
inkMainnet: "https://
|
|
5
|
+
inkTestnet: "https://api.test.nado.xyz/gateway/v1",
|
|
6
|
+
inkMainnet: "https://api.prod.nado.xyz/gateway/v1"
|
|
7
7
|
};
|
|
8
8
|
const ENGINE_WS_CLIENT_ENDPOINTS = {
|
|
9
9
|
local: "ws://localhost:80",
|
|
10
|
-
inkTestnet: "wss://
|
|
11
|
-
inkMainnet: "wss://
|
|
10
|
+
inkTestnet: "wss://api.test.nado.xyz/gateway/v1/ws",
|
|
11
|
+
inkMainnet: "wss://api.prod.nado.xyz/gateway/v1/ws"
|
|
12
12
|
};
|
|
13
13
|
const ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS = {
|
|
14
14
|
local: "ws://localhost:80",
|
|
15
|
-
inkTestnet: "wss://
|
|
16
|
-
inkMainnet: "wss://
|
|
15
|
+
inkTestnet: "wss://api.test.nado.xyz/gateway/v1/subscribe",
|
|
16
|
+
inkMainnet: "wss://api.prod.nado.xyz/gateway/v1/subscribe"
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
exports.ENGINE_CLIENT_ENDPOINTS = ENGINE_CLIENT_ENDPOINTS;
|
package/dist/endpoints.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.cjs","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\nexport const ENGINE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://localhost:80',\n inkTestnet: 'https://
|
|
1
|
+
{"version":3,"file":"endpoints.cjs","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\nexport const ENGINE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://localhost:80',\n inkTestnet: 'https://api.test.nado.xyz/gateway/v1',\n inkMainnet: 'https://api.prod.nado.xyz/gateway/v1',\n};\n\nexport const ENGINE_WS_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'ws://localhost:80',\n inkTestnet: 'wss://api.test.nado.xyz/gateway/v1/ws',\n inkMainnet: 'wss://api.prod.nado.xyz/gateway/v1/ws',\n};\n\nexport const ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS: Record<ChainEnv, string> =\n {\n local: 'ws://localhost:80',\n inkTestnet: 'wss://api.test.nado.xyz/gateway/v1/subscribe',\n inkMainnet: 'wss://api.prod.nado.xyz/gateway/v1/subscribe',\n };\n"],"mappings":";;AAEA,MAAa,0BAAoD;CAC/D,OAAO;CACP,YAAY;CACZ,YAAY;AACd;AAEA,MAAa,6BAAuD;CAClE,OAAO;CACP,YAAY;CACZ,YAAY;AACd;AAEA,MAAa,0CACX;CACE,OAAO;CACP,YAAY;CACZ,YAAY;AACd"}
|
package/dist/endpoints.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
//#region src/endpoints.ts
|
|
2
2
|
const ENGINE_CLIENT_ENDPOINTS = {
|
|
3
3
|
local: "http://localhost:80",
|
|
4
|
-
inkTestnet: "https://
|
|
5
|
-
inkMainnet: "https://
|
|
4
|
+
inkTestnet: "https://api.test.nado.xyz/gateway/v1",
|
|
5
|
+
inkMainnet: "https://api.prod.nado.xyz/gateway/v1"
|
|
6
6
|
};
|
|
7
7
|
const ENGINE_WS_CLIENT_ENDPOINTS = {
|
|
8
8
|
local: "ws://localhost:80",
|
|
9
|
-
inkTestnet: "wss://
|
|
10
|
-
inkMainnet: "wss://
|
|
9
|
+
inkTestnet: "wss://api.test.nado.xyz/gateway/v1/ws",
|
|
10
|
+
inkMainnet: "wss://api.prod.nado.xyz/gateway/v1/ws"
|
|
11
11
|
};
|
|
12
12
|
const ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS = {
|
|
13
13
|
local: "ws://localhost:80",
|
|
14
|
-
inkTestnet: "wss://
|
|
15
|
-
inkMainnet: "wss://
|
|
14
|
+
inkTestnet: "wss://api.test.nado.xyz/gateway/v1/subscribe",
|
|
15
|
+
inkMainnet: "wss://api.prod.nado.xyz/gateway/v1/subscribe"
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { ENGINE_CLIENT_ENDPOINTS, ENGINE_WS_CLIENT_ENDPOINTS, ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS };
|
package/dist/endpoints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\nexport const ENGINE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://localhost:80',\n inkTestnet: 'https://
|
|
1
|
+
{"version":3,"file":"endpoints.js","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\nexport const ENGINE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://localhost:80',\n inkTestnet: 'https://api.test.nado.xyz/gateway/v1',\n inkMainnet: 'https://api.prod.nado.xyz/gateway/v1',\n};\n\nexport const ENGINE_WS_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'ws://localhost:80',\n inkTestnet: 'wss://api.test.nado.xyz/gateway/v1/ws',\n inkMainnet: 'wss://api.prod.nado.xyz/gateway/v1/ws',\n};\n\nexport const ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS: Record<ChainEnv, string> =\n {\n local: 'ws://localhost:80',\n inkTestnet: 'wss://api.test.nado.xyz/gateway/v1/subscribe',\n inkMainnet: 'wss://api.prod.nado.xyz/gateway/v1/subscribe',\n };\n"],"mappings":";AAEA,MAAa,0BAAoD;CAC/D,OAAO;CACP,YAAY;CACZ,YAAY;AACd;AAEA,MAAa,6BAAuD;CAClE,OAAO;CACP,YAAY;CACZ,YAAY;AACd;AAEA,MAAa,0CACX;CACE,OAAO;CACP,YAAY;CACZ,YAAY;AACd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/engine-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "HTTP client for the Nado off-chain matching engine",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"module": "./dist/index.js",
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nadohq/shared": "^0.
|
|
44
|
+
"@nadohq/shared": "^0.41.0",
|
|
45
45
|
"axios": "1.16.1",
|
|
46
46
|
"ts-mixer": "6.0.4"
|
|
47
47
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"bignumber.js": "11.1.1",
|
|
54
54
|
"viem": "2.52.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "bd534f98c5e429aafc861e1fcc4a639ffd2850a6"
|
|
57
57
|
}
|
package/src/endpoints.ts
CHANGED
|
@@ -2,19 +2,19 @@ import { ChainEnv } from '@nadohq/shared';
|
|
|
2
2
|
|
|
3
3
|
export const ENGINE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {
|
|
4
4
|
local: 'http://localhost:80',
|
|
5
|
-
inkTestnet: 'https://
|
|
6
|
-
inkMainnet: 'https://
|
|
5
|
+
inkTestnet: 'https://api.test.nado.xyz/gateway/v1',
|
|
6
|
+
inkMainnet: 'https://api.prod.nado.xyz/gateway/v1',
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export const ENGINE_WS_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {
|
|
10
10
|
local: 'ws://localhost:80',
|
|
11
|
-
inkTestnet: 'wss://
|
|
12
|
-
inkMainnet: 'wss://
|
|
11
|
+
inkTestnet: 'wss://api.test.nado.xyz/gateway/v1/ws',
|
|
12
|
+
inkMainnet: 'wss://api.prod.nado.xyz/gateway/v1/ws',
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const ENGINE_WS_SUBSCRIPTION_CLIENT_ENDPOINTS: Record<ChainEnv, string> =
|
|
16
16
|
{
|
|
17
17
|
local: 'ws://localhost:80',
|
|
18
|
-
inkTestnet: 'wss://
|
|
19
|
-
inkMainnet: 'wss://
|
|
18
|
+
inkTestnet: 'wss://api.test.nado.xyz/gateway/v1/subscribe',
|
|
19
|
+
inkMainnet: 'wss://api.prod.nado.xyz/gateway/v1/subscribe',
|
|
20
20
|
};
|