polycopy 0.0.2 → 0.0.4
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/cli.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const child_process = require("child_process");
|
|
4
4
|
const fs = require("fs");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const paths = require("./paths-
|
|
6
|
+
const paths = require("./paths-D38j8blX.js");
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -74,13 +74,8 @@ PolyMarket 跟单机器人
|
|
|
74
74
|
`);
|
|
75
75
|
}
|
|
76
76
|
function showVersion() {
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
const pkg = JSON.parse(fs__namespace.readFileSync(packagePath, "utf-8"));
|
|
80
|
-
console.log(`polycopy v${pkg.version}`);
|
|
81
|
-
} catch {
|
|
82
|
-
console.log("polycopy v1.0.0");
|
|
83
|
-
}
|
|
77
|
+
const pkg = require("../package.json");
|
|
78
|
+
console.log(`polycopy v${pkg.version}`);
|
|
84
79
|
}
|
|
85
80
|
async function startForeground() {
|
|
86
81
|
const runningPid = getRunningPid();
|
package/dist/config.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const init = require("./init-
|
|
2
|
+
const init = require("./init-BYV6n20C.js");
|
|
3
3
|
const grammy = require("grammy");
|
|
4
4
|
const wallet = require("@ethersproject/wallet");
|
|
5
5
|
const clobClient = require("@polymarket/clob-client");
|
|
@@ -11,7 +11,7 @@ const builderRelayerClient = require("@polymarket/builder-relayer-client");
|
|
|
11
11
|
const setPromiseInterval = require("set-promise-interval");
|
|
12
12
|
const child_process = require("child_process");
|
|
13
13
|
const fs = require("fs");
|
|
14
|
-
const paths = require("./paths-
|
|
14
|
+
const paths = require("./paths-D38j8blX.js");
|
|
15
15
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
16
16
|
function _interopNamespace(e) {
|
|
17
17
|
if (e && e.__esModule) return e;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const readline = require("readline");
|
|
3
3
|
const fsExtra = require("fs-extra");
|
|
4
4
|
const path = require("path");
|
|
5
|
-
const paths = require("./paths-
|
|
5
|
+
const paths = require("./paths-D38j8blX.js");
|
|
6
6
|
const grammy = require("grammy");
|
|
7
7
|
const winston = require("winston");
|
|
8
8
|
const DailyRotateFile = require("winston-daily-rotate-file");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const path = require("path");
|
|
3
3
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
4
4
|
const path__default = /* @__PURE__ */ _interopDefault(path);
|
|
5
|
-
const PROJECT_ROOT = path__default.default.join(__dirname, ".."
|
|
5
|
+
const PROJECT_ROOT = path__default.default.join(__dirname, "..");
|
|
6
6
|
const LOGS_DIR = path__default.default.join(PROJECT_ROOT, "logs");
|
|
7
7
|
const LOCALSTORAGE_DIR = path__default.default.join(PROJECT_ROOT, "localstorage");
|
|
8
8
|
const PID_DIR = path__default.default.join(process.env.HOME || PROJECT_ROOT, ".polycopy");
|