pancakeswap-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 +7536 -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> pancakeswap-dump
|
|
2
|
+
|
|
3
|
+
<br>
|
|
4
|
+
|
|
5
|
+
Static set of addresses (PancakeSwap 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` 986Kb+
|
|
10
|
+
|
|
11
|
+
CSV schema: `id,pair,token0,token1`
|
|
12
|
+
|
|
13
|
+
## Example:
|
|
14
|
+
```
|
|
15
|
+
...
|
|
16
|
+
13,0x29ba6dddcc17513855fcd3f710be89b50cf17e5b,0xbec299f79fe8edf9f7374113d576f9b7c008b154,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
|
|
17
|
+
...
|
|
18
|
+
```
|
|
19
|
+
where:
|
|
20
|
+
- `13`
|
|
21
|
+
* pair/pool index at factory contract
|
|
22
|
+
- `0x29ba6dddcc17513855fcd3f710be89b50cf17e5b`
|
|
23
|
+
* FLAKE/WETH AMM [contract](https://etherscan.io/address/0x29ba6dddcc17513855fcd3f710be89b50cf17e5b) address
|
|
24
|
+
- `0xbec299f79fe8edf9f7374113d576f9b7c008b154`
|
|
25
|
+
* FLAKE ERC-20 token [contract](https://etherscan.io/token/0xbec299f79fe8edf9f7374113d576f9b7c008b154) address
|
|
26
|
+
- `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2`
|
|
27
|
+
* WETH ERC-20 token [contract](https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2) 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('pancakeswap-dump').load().then(pairs => console.log(pairs.length))"
|
|
37
|
+
> 7537
|
|
38
|
+
```
|