uniswap-v2-dump 3.0.248 → 3.0.251
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/update.yml +9 -11
- package/dump_p2tt.bin +0 -0
- package/dump_pairs.bin +0 -0
- package/dump_tokens.bin +0 -0
- package/package.json +4 -3
- package/test.js +19 -0
|
@@ -22,25 +22,23 @@ jobs:
|
|
|
22
22
|
|
|
23
23
|
steps:
|
|
24
24
|
- name: Checkout repository
|
|
25
|
-
uses: actions/checkout@
|
|
26
|
-
with:
|
|
27
|
-
lfs: true
|
|
25
|
+
uses: actions/checkout@v6
|
|
28
26
|
|
|
29
27
|
- name: Setup Node.js
|
|
30
|
-
uses: actions/setup-node@
|
|
28
|
+
uses: actions/setup-node@v6
|
|
31
29
|
with:
|
|
32
|
-
node-version: '
|
|
30
|
+
node-version: '24'
|
|
33
31
|
registry-url: 'https://registry.npmjs.org'
|
|
34
32
|
|
|
35
|
-
- name:
|
|
36
|
-
run: npm
|
|
37
|
-
|
|
38
|
-
- name: Install dependencies
|
|
39
|
-
run: npm install
|
|
33
|
+
- name: Install devDependencies
|
|
34
|
+
run: npm i
|
|
40
35
|
|
|
41
|
-
- name:
|
|
36
|
+
- name: Update
|
|
42
37
|
run: npm start
|
|
43
38
|
|
|
39
|
+
- name: Test
|
|
40
|
+
run: npm test
|
|
41
|
+
|
|
44
42
|
- name: Commit and push changes
|
|
45
43
|
id: commit
|
|
46
44
|
run: |
|
package/dump_p2tt.bin
CHANGED
|
Binary file
|
package/dump_pairs.bin
CHANGED
|
Binary file
|
package/dump_tokens.bin
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniswap-v2-dump",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.251",
|
|
4
4
|
"description": "Static set of addresses (uniswap-v2)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Uniswap-v2",
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
"types": "index.d.ts",
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"scripts": {
|
|
23
|
-
"start": "node -e \"require('./index.js').load({workers: 0})\""
|
|
23
|
+
"start": "node -e \"require('./index.js').load({workers: 0})\"",
|
|
24
|
+
"test": "node --test test.js"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"uniswap-v2-loader": "
|
|
27
|
+
"uniswap-v2-loader": "6.1.*"
|
|
27
28
|
},
|
|
28
29
|
"publishConfig": {
|
|
29
30
|
"provenance": true
|
package/test.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { describe, before, it } = require('node:test')
|
|
2
|
+
const assert = require('node:assert/strict')
|
|
3
|
+
const {load} = require('./index')
|
|
4
|
+
|
|
5
|
+
describe('uniswap-v2-dump', () => {
|
|
6
|
+
|
|
7
|
+
it('Find pair addresses WBTC/WETH', () =>
|
|
8
|
+
load().then(pairs =>
|
|
9
|
+
assert.ok(
|
|
10
|
+
pairs.some(_ =>
|
|
11
|
+
_.pair == '0xbb2b8038a1640196fbe3e38816f3e67cba72d940' &&
|
|
12
|
+
_.token0 == '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599' &&
|
|
13
|
+
_.token1 == '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
)
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
})
|