pancakeswap-dump 1.0.15 → 1.0.17

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.
@@ -22,12 +22,12 @@ jobs:
22
22
 
23
23
  steps:
24
24
  - name: Checkout repository
25
- uses: actions/checkout@v4
25
+ uses: actions/checkout@v6
26
26
 
27
27
  - name: Setup Node.js
28
- uses: actions/setup-node@v4
28
+ uses: actions/setup-node@v6
29
29
  with:
30
- node-version: '22'
30
+ node-version: '24'
31
31
  registry-url: 'https://registry.npmjs.org'
32
32
 
33
33
  - name: Update npm
@@ -44,13 +44,13 @@ jobs:
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
48
- git add dump_tokens.bin
49
- git add dump_p2tt.bin
47
+ git add dump_pairs.bin dump_tokens.bin dump_p2tt.bin
50
48
  if ! git diff --cached --quiet; then
51
49
  npm version patch --force -m "chore: update dump_*.bin to %s [skip ci]"
52
50
  git push --follow-tags
53
51
  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/README.md CHANGED
@@ -3,18 +3,27 @@
3
3
  <br>
4
4
 
5
5
  Static set of addresses (PancakeSwap Ethereum mainnet).<br>
6
- New pairs updates happen every hour at GitHub Action [update.yml](https://github.com/calp-pro/uniswap-v2-dump/actions/workflows/update.yml)<br>
6
+ New pairs updates happen **every hour** at GitHub Action [update.yml](https://github.com/calp-pro/pancakeswap-dump/actions/workflows/update.yml)<br>
7
7
  via [uniswap-v2-loader](https://github.com/calp-pro/uniswap-v2-loader)
8
8
 
9
- Data: `dump.csv` 986Kb+
9
+ Data:
10
+ - `dump_pairs.bin` 148 Kb+
11
+ - `dump_tokens.bin` 147 Kb+
12
+ - `dump_p2tt.bin` 45 Kb+
10
13
 
11
- CSV schema: `id,pair,token0,token1`
12
-
13
- ## Example:
14
- ```
15
- ...
16
- 13,0x29ba6dddcc17513855fcd3f710be89b50cf17e5b,0xbec299f79fe8edf9f7374113d576f9b7c008b154,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
17
- ...
14
+ ## Output format
15
+ `load` and subscribe` methods return collection of pools/pairs.
16
+ ```js
17
+ [
18
+ ...
19
+ {
20
+ id: 13,
21
+ pair: '0x29ba6dddcc17513855fcd3f710be89b50cf17e5b',
22
+ token0: '0xbec299f79fe8edf9f7374113d576f9b7c008b154',
23
+ token1: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
24
+ },
25
+ ...
26
+ ]
18
27
  ```
19
28
  where:
20
29
  - `13`
@@ -29,7 +38,7 @@ where:
29
38
  ## API
30
39
  Same implementation as other Uniswap v2 based protocols.<br>
31
40
  Base API reference: [uniswap-v2-loader](https://github.com/calp-pro/uniswap-v2-loader?tab=readme-ov-file#api-reference).<br>
32
- Predefined `filename` with value `dump.csv`.
41
+ Predefined `filename` with value `dump` & `csv: false`.
33
42
 
34
43
  ## Usage CLI/API:
35
44
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pancakeswap-dump",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Static set of addresses (PancakeSwap Ethereum mainnet)",
5
5
  "keywords": [
6
6
  "PancakeSwap",