@nightlylabs/dex-sdk 0.0.65 → 0.0.66
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/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -996,7 +996,7 @@ var Client = class _Client {
|
|
|
996
996
|
return response.time;
|
|
997
997
|
};
|
|
998
998
|
this._aptos = connection;
|
|
999
|
-
this._chainId = chainId ||
|
|
999
|
+
this._chainId = chainId || 177;
|
|
1000
1000
|
this._surf = (0, import_surf.createSurfClient)(this._aptos);
|
|
1001
1001
|
this._apiKey = apiKey || generateApiKey();
|
|
1002
1002
|
this._subscriptions = /* @__PURE__ */ new Map();
|
|
@@ -1020,7 +1020,7 @@ var Client = class _Client {
|
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
static async init(connection, apiKey, url = "http://127.0.0.1:4567", enableWs = true, chainId =
|
|
1023
|
+
static async init(connection, apiKey, url = "http://127.0.0.1:4567", enableWs = true, chainId = 177) {
|
|
1024
1024
|
let ws = void 0;
|
|
1025
1025
|
if (enableWs) {
|
|
1026
1026
|
ws = await _Client.initWebSocket(url);
|
package/dist/index.js
CHANGED
|
@@ -945,7 +945,7 @@ var Client = class _Client {
|
|
|
945
945
|
return response.time;
|
|
946
946
|
};
|
|
947
947
|
this._aptos = connection;
|
|
948
|
-
this._chainId = chainId ||
|
|
948
|
+
this._chainId = chainId || 177;
|
|
949
949
|
this._surf = createSurfClient(this._aptos);
|
|
950
950
|
this._apiKey = apiKey || generateApiKey();
|
|
951
951
|
this._subscriptions = /* @__PURE__ */ new Map();
|
|
@@ -969,7 +969,7 @@ var Client = class _Client {
|
|
|
969
969
|
};
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
static async init(connection, apiKey, url = "http://127.0.0.1:4567", enableWs = true, chainId =
|
|
972
|
+
static async init(connection, apiKey, url = "http://127.0.0.1:4567", enableWs = true, chainId = 177) {
|
|
973
973
|
let ws = void 0;
|
|
974
974
|
if (enableWs) {
|
|
975
975
|
ws = await _Client.initWebSocket(url);
|