shibaswap-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 +1 -0
- package/README.md +38 -0
- package/dump.csv +1035 -0
- package/index.d.ts +59 -0
- package/index.js +17 -0
- package/package.json +27 -0
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> shibaswap-dump
|
|
2
|
+
|
|
3
|
+
<br>
|
|
4
|
+
|
|
5
|
+
Static set of addresses (ShibaSwap 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` 135Kb+
|
|
10
|
+
|
|
11
|
+
CSV schema: `id,pair,token0,token1`
|
|
12
|
+
|
|
13
|
+
## Example:
|
|
14
|
+
```
|
|
15
|
+
...
|
|
16
|
+
10,0x4200b824d4b1118e290767a9f255d53af21fabca,0x6b175474e89094c44da98b954eedeac495271d0f,0x9813037ee2218799597d83d4a5b6f3b6778218d9
|
|
17
|
+
...
|
|
18
|
+
```
|
|
19
|
+
where:
|
|
20
|
+
- `10`
|
|
21
|
+
* pair/pool index at factory contract
|
|
22
|
+
- `0x4200b824d4b1118e290767a9f255d53af21fabca`
|
|
23
|
+
* BONE/DAI AMM [contract](https://etherscan.io/address/0x4200b824d4b1118e290767a9f255d53af21fabca) address
|
|
24
|
+
- `0x6b175474e89094c44da98b954eedeac495271d0f`
|
|
25
|
+
* DAI ERC-20 token [contract](https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f) address
|
|
26
|
+
- `0x9813037ee2218799597d83d4a5b6f3b6778218d9`
|
|
27
|
+
* BONE ERC-20 token [contract](https://etherscan.io/token/0x9813037ee2218799597d83d4a5b6f3b6778218d9) 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('shibaswap-dump').load().then(pairs => console.log(pairs.length))"
|
|
37
|
+
> 1036
|
|
38
|
+
```
|