sushiswap-dump 1.0.3 → 1.0.5
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/.gitattributes +0 -1
- package/.github/workflows/update.yml +5 -5
- package/README.md +6 -4
- package/dump.csv +3 -4558
- package/dump_p2tt.bin +0 -0
- package/dump_pairs.bin +0 -0
- package/dump_tokens.bin +0 -0
- package/index.d.ts +3 -1
- package/index.js +5 -3
- package/package.json +2 -2
package/.gitattributes
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dump.csv filter=lfs diff=lfs merge=lfs -text
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Update dump
|
|
1
|
+
name: Update dump binary files
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -23,8 +23,6 @@ jobs:
|
|
|
23
23
|
steps:
|
|
24
24
|
- name: Checkout repository
|
|
25
25
|
uses: actions/checkout@v4
|
|
26
|
-
with:
|
|
27
|
-
lfs: true
|
|
28
26
|
|
|
29
27
|
- name: Setup Node.js
|
|
30
28
|
uses: actions/setup-node@v4
|
|
@@ -46,9 +44,11 @@ jobs:
|
|
|
46
44
|
run: |
|
|
47
45
|
git config --global user.name "github-actions[bot]"
|
|
48
46
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
49
|
-
git add
|
|
47
|
+
git add dump_pairs.bin
|
|
48
|
+
git add dump_tokens.bin
|
|
49
|
+
git add dump_p2tt.bin
|
|
50
50
|
if ! git diff --cached --quiet; then
|
|
51
|
-
npm version patch --force -m "chore: update
|
|
51
|
+
npm version patch --force -m "chore: update dump_*.bin to %s [skip ci]"
|
|
52
52
|
git push --follow-tags
|
|
53
53
|
echo "can_publish=true" >> $GITHUB_OUTPUT
|
|
54
54
|
else
|
package/README.md
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
<br>
|
|
4
4
|
|
|
5
5
|
Static set of addresses (SushiSwap 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/uniswap-v2-dump/actions/workflows/update.yml)<br>
|
|
7
7
|
via [uniswap-v2-loader](https://github.com/calp-pro/uniswap-v2-loader)
|
|
8
8
|
|
|
9
|
-
Data:
|
|
9
|
+
Data:
|
|
10
|
+
- `dump_pairs.bin` 10 Mb+
|
|
11
|
+
- `dump_tokens.bin` 10 Mb+
|
|
12
|
+
- `dump_p2tt.bin` 3 Mb+
|
|
10
13
|
|
|
11
|
-
CSV schema: `id,pair,token0,token1`
|
|
12
14
|
|
|
13
15
|
## Example:
|
|
14
16
|
```
|
|
@@ -29,7 +31,7 @@ where:
|
|
|
29
31
|
## API
|
|
30
32
|
Same implementation as other Uniswap v2 based protocols.<br>
|
|
31
33
|
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
|
|
34
|
+
Predefined `filename` with value `dump` & `csv: false`.
|
|
33
35
|
|
|
34
36
|
## Usage CLI/API:
|
|
35
37
|
```bash
|