byreal-test 1.3.2 → 1.3.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/cli.js CHANGED
@@ -6,16 +6,16 @@ const chalk = require('chalk');
6
6
  const path = require('path');
7
7
  const { runSuites, listTests } = require('./src/runner');
8
8
  const { printReport, saveReport } = require('./src/reporter');
9
- const { runSwap } = require('./src/swap-runner');
10
- const { runSetup } = require('./src/setup');
11
9
  const allSuites = require('./src/suites');
12
10
 
11
+ const { version } = require('./package.json');
12
+
13
13
  const program = new Command();
14
14
 
15
15
  program
16
16
  .name('byreal-test')
17
17
  .description('Byreal CLI test suite — validates byreal-cli commands and generates reports')
18
- .version(require('./package.json').version);
18
+ .version(version);
19
19
 
20
20
  program
21
21
  .command('run')
@@ -73,32 +73,4 @@ program
73
73
  listTests(allSuites, opts);
74
74
  });
75
75
 
76
- program
77
- .command('setup')
78
- .description('Configure wallet from a base58 private key (interactive)')
79
- .action(async () => {
80
- await runSetup();
81
- });
82
-
83
- program
84
- .command('run_swap')
85
- .description('Execute a random swap (USDC→random token) then verify order & kline APIs')
86
- .option('--order-api <url>', 'Order query API URL', 'https://api2.byreal.io/byreal/api/dex/v2/order/list?page=1&pageSize=5&userAddress=H8TjiJ8QTEXjDkCz763g5xWD6Du8FLmyb8ApxehddbvY')
87
- .option('--kline-api <url>', 'Kline query API base URL', 'https://api2.byreal.io/byreal/api/dex/v2/chart/k-line-ui')
88
- .option('--lark-webhook <url>', 'Lark bot webhook URL', 'https://open.larksuite.com/open-apis/bot/v2/hook/f6c4f3a5-cf66-4ce2-8f37-7960919b44d0')
89
- .option('--dry-run', 'Preview swap without executing on-chain')
90
- .option('--window1 <ms>', 'First polling window in ms (default 10000)', '10000')
91
- .option('--window2 <ms>', 'Second polling window in ms (default 30000)', '30000')
92
- .action(async (opts) => {
93
- const result = await runSwap({
94
- orderApiUrl: opts.orderApi,
95
- klineApiUrl: opts.klineApi,
96
- larkWebhook: opts.larkWebhook,
97
- dryRun: !!opts.dryRun,
98
- window1Ms: parseInt(opts.window1, 10),
99
- window2Ms: parseInt(opts.window2, 10),
100
- });
101
- process.exit(result.hasAlert ? 1 : 0);
102
- });
103
-
104
76
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "byreal-test",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Byreal CLI test suite - runs byreal-cli commands and generates test reports",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -9,7 +9,7 @@ const SWAP_AMOUNT = '1';
9
9
 
10
10
  const EXCLUDED_SYMBOLS = new Set([
11
11
  'SOL', 'bbSOL', 'USDT', 'USD1', 'CRCLx', 'NVDAx',
12
- 'XAUt0', 'METAx', 'AMZNx', 'COINx', 'APPLx', 'MCDx',
12
+ 'XAUt0', 'METAx', 'AMZNx', 'COINx', 'AAPLx', 'MCDx',
13
13
  'GOOGLx', 'TSLAx',
14
14
  ]);
15
15