sushiswap-dump 1.0.13 → 1.0.16

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.
@@ -33,9 +33,12 @@ jobs:
33
33
  - name: Install dependencies
34
34
  run: npm install
35
35
 
36
- - name: Run update
36
+ - name: Update
37
37
  run: npm start
38
38
 
39
+ - name: Test
40
+ run: npm test
41
+
39
42
  - name: Commit and push changes
40
43
  id: commit
41
44
  run: |
package/dump_p2tt.bin CHANGED
Binary file
package/dump_pairs.bin CHANGED
Binary file
package/dump_tokens.bin CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sushiswap-dump",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "description": "Static set of addresses (SushiSwap Ethereum mainnet)",
5
5
  "keywords": [
6
6
  "SushiSwap",
@@ -19,7 +19,8 @@
19
19
  "type": "commonjs",
20
20
  "main": "index.js",
21
21
  "scripts": {
22
- "start": "node -e \"require('./index.js').load({workers: 0})\""
22
+ "start": "node -e \"require('./index.js').load({workers: 0})\"",
23
+ "test": "node --test test.js"
23
24
  },
24
25
  "dependencies": {
25
26
  "uniswap-v2-loader": "6.1.*"
package/test.js ADDED
@@ -0,0 +1,19 @@
1
+ const { describe, before, it } = require('node:test')
2
+ const assert = require('node:assert/strict')
3
+ const {load} = require('./index')
4
+
5
+ describe('sushiswap-dump', () => {
6
+
7
+ it('Find pair addresses WBTC/WETH', () =>
8
+ load().then(pairs =>
9
+ assert.ok(
10
+ pairs.some(_ =>
11
+ _.pair == '0xceff51756c56ceffca006cd410b03ffc46dd3a58' &&
12
+ _.token0 == '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599' &&
13
+ _.token1 == '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
14
+ )
15
+ )
16
+ )
17
+ )
18
+
19
+ })