sushiswap-dump 1.0.0

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 ADDED
@@ -0,0 +1 @@
1
+ dump.csv filter=lfs diff=lfs merge=lfs -text
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # <picture><source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/npm/uniswap-v2-loader@5.0.1/logo-dark.svg"><img alt="calp.pro icon" src="https://cdn.jsdelivr.net/npm/uniswap-v2-loader@5.0.1/logo-light.svg" height="32" align="absmiddle"></picture>&nbsp;&nbsp;sushiswap-dump
2
+
3
+ <br>
4
+
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>
7
+ via [uniswap-v2-loader](https://github.com/calp-pro/uniswap-v2-loader)
8
+
9
+ Data: `dump.csv` 209Kb+
10
+
11
+ CSV schema: `id,pair,token0,token1`
12
+
13
+ ## Example:
14
+ ```
15
+ ...
16
+ 1,0x06da0fd433c1a5d7a4faa01111c044910a184553,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7
17
+ ...
18
+ ```
19
+ where:
20
+ - ``
21
+ * 1 pair/pool index at factory contract
22
+ - ``
23
+ * USDT/WETH AMM [contract](https://etherscan.io/address/0x06da0fd433c1a5d7a4faa01111c044910a184553) address
24
+ - ``
25
+ * WETH ERC-20 token [contract](https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2) address
26
+ - ``
27
+ * USDT ERC-20 token [contract](https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7) address
28
+
29
+ ## API
30
+ Same implementation as other Uniswap v2 based protocols.<br>
31
+ 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.csv`.
33
+
34
+ ## Usage CLI/API:
35
+ ```bash
36
+ > node -e "require('sushiswap-dump').load().then(pairs => console.log(pairs.length))"
37
+ > 4557
38
+ ```