Kaynağa Gözat

1. 新factory
2. npm run脚本优化
3. logger.info -> logger.debug

skyfffire 3 yıl önce
ebeveyn
işleme
1546ea5d73
3 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 1 0
      config/router-list.json
  2. 5 6
      package.json
  3. 2 2
      scripts/lp/lpGenerate.ts

+ 1 - 0
config/router-list.json

@@ -1,4 +1,5 @@
 [
+  {"name":"Ethswap","router":"0x0000000000000000000000000000000000000000","factory":"0x8BF922dA8E2CC0c094AB4827f660e17542cC30A3","fee":"3000","type":"univ2","chain":"ethw","fromPosition": 0},
   {"name":"UNIE96","router":"0x2eEBfF016c28e924F315F01A6ee4beF6C058ec55","factory":"0xE96276F040Bb3619BC2F104f9E8Caa51eE3C1812","fee":"3000","type":"univ2","chain":"ethw","fromPosition": 0},
   {"name":"AAA","router":"0x0000000000000000000000000000000000000000","factory":"0xfA969454d450dFB86a2dCeFfEc48529F799F4a69","fee":"3000","type":"univ2","chain":"ethw","fromPosition": 0},
   {"name":"POWER","router":"0x0000000000000000000000000000000000000000","factory":"0xD51CFEb0fa23101f67cF62EB02D0a82A4BaD52b7","fee":"3000","type":"univ2","chain":"ethw","fromPosition": 0},

+ 5 - 6
package.json

@@ -1,11 +1,10 @@
 {
   "scripts": {
-    "hardhat": "hardhat",
-    "speedTest": "npm run hardhat -- run test/speed/Web3SpeedTest.ts",
-    "requestTest": "npm run hardhat -- run test/speed/RequestTest.ts",
-    "lpGenerate": "npm run hardhat -- run scripts/lp/lpGenerate.ts",
-    "lpMaintenance": "npm run hardhat -- run scripts/lp/lpMaintenance.ts",
-    "level2": "npm run hardhat -- run scripts/path/level2Generate.ts"
+    "speedTest": "hardhat run test/speed/Web3SpeedTest.ts",
+    "requestTest": "hardhat run test/speed/RequestTest.ts",
+    "lpGenerate": "hardhat run scripts/lp/lpGenerate.ts",
+    "lpMaintenance": "hardhat run scripts/lp/lpMaintenance.ts",
+    "level2": "hardhat run scripts/path/level2Generate.ts"
   },
   "devDependencies": {
     "@nomicfoundation/hardhat-toolbox": "^2.0.0",

+ 2 - 2
scripts/lp/lpGenerate.ts

@@ -278,9 +278,9 @@ export class LpGenerate {
     }
 
     if (lp) {
-      logger.info(`${position + 1} / ${pairsLength}, ${lp.name}-${lp.LP}-${routerObj.chain}`)
+      logger.debug(`${position + 1} / ${pairsLength}, ${lp.name}-${lp.LP}-${routerObj.chain}`)
     } else {
-      logger.info(`lp get filed. ${position + 1} / ${pairsLength}, ${routerObj.name}-${routerObj.router}-${routerObj.chain}`)
+      logger.debug(`lp get filed. ${position + 1} / ${pairsLength}, ${routerObj.name}-${routerObj.router}-${routerObj.chain}`)
     }
   }