sushiswap-dump 1.0.0 → 1.0.2
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 +60 -0
- package/README.md +5 -5
- package/dump.csv +2207 -0
- package/index.d.ts +59 -0
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Update dump.csv
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: '0 * * * *'
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
update-data:
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
id-token: write # Required for OIDC
|
|
20
|
+
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout repository
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
|
+
with:
|
|
27
|
+
lfs: true
|
|
28
|
+
|
|
29
|
+
- name: Setup Node.js
|
|
30
|
+
uses: actions/setup-node@v4
|
|
31
|
+
with:
|
|
32
|
+
node-version: '22'
|
|
33
|
+
registry-url: 'https://registry.npmjs.org'
|
|
34
|
+
|
|
35
|
+
- name: Update npm
|
|
36
|
+
run: npm install -g npm@latest
|
|
37
|
+
|
|
38
|
+
- name: Install dependencies
|
|
39
|
+
run: npm install
|
|
40
|
+
|
|
41
|
+
- name: Run update
|
|
42
|
+
run: npm start
|
|
43
|
+
|
|
44
|
+
- name: Commit and push changes
|
|
45
|
+
id: commit
|
|
46
|
+
run: |
|
|
47
|
+
git config --global user.name "github-actions[bot]"
|
|
48
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
49
|
+
git add dump.csv
|
|
50
|
+
if ! git diff --cached --quiet; then
|
|
51
|
+
npm version patch --force -m "chore: update dump.csv to %s [skip ci]"
|
|
52
|
+
git push --follow-tags
|
|
53
|
+
echo "can_publish=true" >> $GITHUB_OUTPUT
|
|
54
|
+
else
|
|
55
|
+
echo "No changes"
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
- name: Publish to NPM
|
|
59
|
+
if: steps.commit.outputs.can_publish == 'true'
|
|
60
|
+
run: npm publish
|
package/README.md
CHANGED
|
@@ -17,13 +17,13 @@ CSV schema: `id,pair,token0,token1`
|
|
|
17
17
|
...
|
|
18
18
|
```
|
|
19
19
|
where:
|
|
20
|
-
-
|
|
21
|
-
*
|
|
22
|
-
-
|
|
20
|
+
- `1`
|
|
21
|
+
* pair/pool index at factory contract
|
|
22
|
+
- `0x06da0fd433c1a5d7a4faa01111c044910a184553`
|
|
23
23
|
* USDT/WETH AMM [contract](https://etherscan.io/address/0x06da0fd433c1a5d7a4faa01111c044910a184553) address
|
|
24
|
-
-
|
|
24
|
+
- `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2`
|
|
25
25
|
* WETH ERC-20 token [contract](https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2) address
|
|
26
|
-
-
|
|
26
|
+
- `0xdac17f958d2ee523a2206206994597c13d831ec7`
|
|
27
27
|
* USDT ERC-20 token [contract](https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7) address
|
|
28
28
|
|
|
29
29
|
## API
|