uniswap-v2-loader 5.0.12 → 5.0.14
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/test.yml +33 -2
- package/README.md +4 -4
- package/package.json +5 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: test.yml
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -7,8 +7,15 @@ on:
|
|
|
7
7
|
branches: [ main ]
|
|
8
8
|
workflow_dispatch:
|
|
9
9
|
|
|
10
|
+
|
|
10
11
|
jobs:
|
|
11
12
|
test:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write # Required for OIDC
|
|
17
|
+
packages: write # Required for GitHub Packages
|
|
18
|
+
|
|
12
19
|
runs-on: ubuntu-latest
|
|
13
20
|
|
|
14
21
|
steps:
|
|
@@ -19,9 +26,13 @@ jobs:
|
|
|
19
26
|
uses: actions/setup-node@v4
|
|
20
27
|
with:
|
|
21
28
|
node-version: '22'
|
|
22
|
-
|
|
29
|
+
registry-url: 'https://registry.npmjs.org'
|
|
30
|
+
|
|
31
|
+
- name: Update npm
|
|
32
|
+
run: npm install -g npm@latest
|
|
23
33
|
|
|
24
34
|
- name: Global install package CLI version
|
|
35
|
+
|
|
25
36
|
run: npm i -g .
|
|
26
37
|
|
|
27
38
|
- name: CLI Load first 4 pairs from Uniswap V2 using 2 workers
|
|
@@ -42,3 +53,23 @@ jobs:
|
|
|
42
53
|
with:
|
|
43
54
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
44
55
|
file: lcov.info
|
|
56
|
+
|
|
57
|
+
- name: Publish to NPM
|
|
58
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
59
|
+
run: npm publish
|
|
60
|
+
|
|
61
|
+
- name: Setup Node.js for GitHub Packages
|
|
62
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
63
|
+
uses: actions/setup-node@v4
|
|
64
|
+
with:
|
|
65
|
+
node-version: '22'
|
|
66
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
67
|
+
scope: '@calp-pro'
|
|
68
|
+
|
|
69
|
+
- name: Publish to GitHub Packages
|
|
70
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
71
|
+
run: |
|
|
72
|
+
npm pkg set name=@calp-pro/uniswap-v2-loader
|
|
73
|
+
npm publish
|
|
74
|
+
env:
|
|
75
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/README.md
CHANGED
|
@@ -49,9 +49,9 @@ High-performance parallel fetcher for liquidity pairs. Efficiently synchronizes
|
|
|
49
49
|
[
|
|
50
50
|
{
|
|
51
51
|
"id": 0,
|
|
52
|
-
"pair": "
|
|
53
|
-
"token0": "
|
|
54
|
-
"token1": "
|
|
52
|
+
"pair": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
|
|
53
|
+
"token0": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
54
|
+
"token1": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
|
|
55
55
|
}
|
|
56
56
|
]
|
|
57
57
|
```
|
|
@@ -101,7 +101,7 @@ const rl = require('readline')
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
load({
|
|
104
|
-
factory: '
|
|
104
|
+
factory: '0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac ', // SushiSwap
|
|
105
105
|
to: 1000,
|
|
106
106
|
progress: (c, t) => {
|
|
107
107
|
rl.cursorTo(process.stdout, 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniswap-v2-loader",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.14",
|
|
4
4
|
"description": "Uniswap v2 protocol loader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uniswap-v2",
|
|
@@ -42,6 +42,9 @@
|
|
|
42
42
|
"test-esm": "node --test test-esm.mjs"
|
|
43
43
|
},
|
|
44
44
|
"bin": {
|
|
45
|
-
"uniswap-v2-loader": "
|
|
45
|
+
"uniswap-v2-loader": "bin/uniswap-v2-loader"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"provenance": true
|
|
46
49
|
}
|
|
47
50
|
}
|