sushiswap-dump 1.0.5 → 1.0.6

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.
@@ -1,4 +1,4 @@
1
- name: Update dump binary files
1
+ name: Update dump binary files and publish to NPM
2
2
 
3
3
  on:
4
4
  push:
@@ -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
@@ -7,16 +7,24 @@ New pairs updates happen **every hour** at GitHub Action [update.yml](https://gi
7
7
  via [uniswap-v2-loader](https://github.com/calp-pro/uniswap-v2-loader)
8
8
 
9
9
  Data:
10
- - `dump_pairs.bin` 10 Mb+
11
- - `dump_tokens.bin` 10 Mb+
12
- - `dump_p2tt.bin` 3 Mb+
10
+ - `dump_pairs.bin` 90 Kb+
11
+ - `dump_tokens.bin` 76 Kb+
12
+ - `dump_p2tt.bin` 27 Kb+
13
13
 
14
14
 
15
- ## Example:
16
- ```
17
- ...
18
- 1,0x06da0fd433c1a5d7a4faa01111c044910a184553,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7
19
- ...
15
+ ## Output format
16
+ `load` and subscribe` methods return collection of pools/pairs.
17
+ ```js
18
+ [
19
+ ...
20
+ {
21
+ id: 1,
22
+ pair: '0x06da0fd433c1a5d7a4faa01111c044910a184553',
23
+ token0: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
24
+ token1: '0xdac17f958d2ee523a2206206994597c13d831ec7'
25
+ },
26
+ ...
27
+ ]
20
28
  ```
21
29
  where:
22
30
  - `1`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sushiswap-dump",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Static set of addresses (SushiSwap Ethereum mainnet)",
5
5
  "keywords": [
6
6
  "SushiSwap",
package/dump.csv DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:00602bc71b9c5c17dcfadfa813c6cc37b3b529366376872e470cb465b1283bc0
3
- size 609662