sushiswap-dump 1.0.2 → 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/dump_p2tt.bin ADDED
Binary file
package/dump_pairs.bin ADDED
Binary file
Binary file
package/index.d.ts CHANGED
@@ -22,6 +22,8 @@ export interface load_params {
22
22
  factory?: string
23
23
  /** Path to the cache file. Set to null to disable caching. */
24
24
  filename?: string | null
25
+ /** Switch cache between CSV and binary mode. */
26
+ csv?: boolean
25
27
  /** Number of pairs to fetch in a single multicall. */
26
28
  multicall_size?: number
27
29
  /** Start loading from this index. */
@@ -56,4 +58,4 @@ export function load(params?: load_params): Promise<pair[]>
56
58
  export function subscribe(
57
59
  callback: (pairs: pair[]) => void,
58
60
  params?: load_params
59
- ): () => void
61
+ ): () => void
package/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  const loader = require('uniswap-v2-loader')
2
- const dump_csv = require('path').join(__dirname, 'dump.csv')
2
+ const dump = require('path').join(__dirname, 'dump')
3
3
 
4
4
  module.exports.load = (params = {}) => loader.load({
5
5
  factory: '0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac',
6
- filename: dump_csv,
6
+ filename: dump,
7
+ csv: false,
7
8
  ...params
8
9
  })
9
10
 
@@ -11,7 +12,8 @@ module.exports.subscribe = (callback, params = {}) => loader.subscribe(
11
12
  callback,
12
13
  {
13
14
  factory: '0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac',
14
- filename: dump_csv,
15
+ filename: dump,
16
+ csv: false,
15
17
  ...params
16
18
  }
17
19
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sushiswap-dump",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Static set of addresses (SushiSwap Ethereum mainnet)",
5
5
  "keywords": [
6
6
  "SushiSwap",
@@ -22,6 +22,9 @@
22
22
  "start": "node -e \"require('./index.js').load({workers: 0})\""
23
23
  },
24
24
  "dependencies": {
25
- "uniswap-v2-loader": "^5.0.20"
25
+ "uniswap-v2-loader": "^6.1.3"
26
+ },
27
+ "publishConfig": {
28
+ "provenance": true
26
29
  }
27
30
  }