uniswap-v2-loader 6.1.1 → 6.1.2
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/.github/workflows/test.yml +3 -0
- package/package.json +4 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniswap-v2-loader",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "Uniswap v2 protocol loader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DEFI",
|
|
@@ -48,5 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"provenance": true
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@calp-pro/dex-db": "^2.0.4"
|
|
51
54
|
}
|
|
52
55
|
}
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@ const fs = require('fs')
|
|
|
3
3
|
const os = require('os')
|
|
4
4
|
const path = require('path')
|
|
5
5
|
const default_cache_filename = require('./default_cache_filename')
|
|
6
|
-
const dex_db = require('
|
|
6
|
+
const dex_db = require('@calp-pro/dex-db')
|
|
7
7
|
const max_workers = os.cpus().length - 1
|
|
8
8
|
const debug_key = process.env.KEY || 'FZBvlPrOxtgaKBBkry3SH0W1IqH4Y5tu'
|
|
9
9
|
const uniswap_v2_factory = '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f'
|
|
@@ -57,7 +57,7 @@ const load = (params = {}) => {
|
|
|
57
57
|
) {
|
|
58
58
|
db.load(filename)
|
|
59
59
|
db.get_all_pairs().forEach((pair, i) => {
|
|
60
|
-
const tokens = db.
|
|
60
|
+
const tokens = db.get_pair_tokens(pair)
|
|
61
61
|
pairs[i] = {
|
|
62
62
|
id: i,
|
|
63
63
|
pair,
|