@hypurrquant/defi-cli 0.2.2 → 0.2.3
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.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +10 -3
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/cli.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
|
+
import { createRequire } from "module";
|
|
5
6
|
|
|
6
7
|
// src/executor.ts
|
|
7
8
|
import { createPublicClient as createPublicClient2, createWalletClient, http as http2 } from "viem";
|
|
@@ -8219,6 +8220,8 @@ function registerFarm(parent, getOpts, makeExecutor2) {
|
|
|
8219
8220
|
}
|
|
8220
8221
|
|
|
8221
8222
|
// src/cli.ts
|
|
8223
|
+
var _require = createRequire(import.meta.url);
|
|
8224
|
+
var _pkg = _require("../package.json");
|
|
8222
8225
|
var BANNER = `
|
|
8223
8226
|
\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557
|
|
8224
8227
|
\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2551
|
|
@@ -8232,7 +8235,7 @@ var BANNER = `
|
|
|
8232
8235
|
Scan exploits, swap tokens, bridge assets, track whales,
|
|
8233
8236
|
compare yields \u2014 all from your terminal.
|
|
8234
8237
|
`;
|
|
8235
|
-
var program = new Command().name("defi").description("DeFi CLI \u2014 Multi-chain DeFi toolkit").version(
|
|
8238
|
+
var program = new Command().name("defi").description("DeFi CLI \u2014 Multi-chain DeFi toolkit").version(_pkg.version).addHelpText("before", BANNER).option("--json", "Output as JSON").option("--ndjson", "Output as newline-delimited JSON").option("--fields <fields>", "Select specific output fields (comma-separated)").option("--chain <chain>", "Target chain", "hyperevm").option("--dry-run", "Dry-run mode (default, no broadcast)", true).option("--broadcast", "Actually broadcast the transaction");
|
|
8236
8239
|
function getOutputMode() {
|
|
8237
8240
|
const opts = program.opts();
|
|
8238
8241
|
return parseOutputMode(opts);
|