pancakeswap-dump 1.0.51 → 1.0.55
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 -9
- 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
|
@@ -30,27 +30,27 @@ jobs:
|
|
|
30
30
|
node-version: '24'
|
|
31
31
|
registry-url: 'https://registry.npmjs.org'
|
|
32
32
|
|
|
33
|
-
- name:
|
|
34
|
-
run: npm
|
|
33
|
+
- name: Install devDependencies
|
|
34
|
+
run: npm i
|
|
35
35
|
|
|
36
|
-
- name:
|
|
37
|
-
run: npm install
|
|
38
|
-
|
|
39
|
-
- name: Run update
|
|
36
|
+
- name: Update
|
|
40
37
|
run: npm start
|
|
41
38
|
|
|
39
|
+
- name: Test
|
|
40
|
+
run: npm test
|
|
41
|
+
|
|
42
42
|
- name: Commit and push changes
|
|
43
43
|
id: commit
|
|
44
44
|
run: |
|
|
45
45
|
git config --global user.name "github-actions[bot]"
|
|
46
46
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
47
|
-
git add dump_pairs.bin
|
|
47
|
+
git add dump_pairs.bin
|
|
48
|
+
git add dump_tokens.bin
|
|
49
|
+
git add dump_p2tt.bin
|
|
48
50
|
if ! git diff --cached --quiet; then
|
|
49
51
|
npm version patch --force -m "chore: update dump_*.bin to %s [skip ci]"
|
|
50
52
|
git push --follow-tags
|
|
51
53
|
echo "can_publish=true" >> $GITHUB_OUTPUT
|
|
52
|
-
elif [ "${{ github.event_name }}" != "schedule" ]; then
|
|
53
|
-
echo "can_publish=true" >> $GITHUB_OUTPUT
|
|
54
54
|
else
|
|
55
55
|
echo "No changes"
|
|
56
56
|
fi
|
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": "pancakeswap-dump",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"description": "Static set of addresses (PancakeSwap Ethereum mainnet)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"PancakeSwap",
|
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
"type": "commonjs",
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"start": "node -e \"require('./index.js').load({workers: 0})\""
|
|
22
|
+
"start": "node -e \"require('./index.js').load({workers: 0})\"",
|
|
23
|
+
"test": "node --test test.js"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"uniswap-v2-loader": "
|
|
26
|
+
"uniswap-v2-loader": "6.1.*"
|
|
26
27
|
},
|
|
27
28
|
"publishConfig": {
|
|
28
29
|
"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('pancakeswap-v2-dump', () => {
|
|
6
|
+
|
|
7
|
+
it('Find pair addresses WBTC/WETH', () =>
|
|
8
|
+
load().then(pairs =>
|
|
9
|
+
assert.ok(
|
|
10
|
+
pairs.some(_ =>
|
|
11
|
+
_.pair == '0x4ab6702b3ed3877e9b1f203f90cbef13d663b0e8' &&
|
|
12
|
+
_.token0 == '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599' &&
|
|
13
|
+
_.token1 == '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
)
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
})
|