eth-chainlist 0.0.11 → 0.0.12
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/CHANGELOG.md +8 -0
- package/README.md +52 -0
- package/data/chain.js +42 -2
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 0.0.12 (2022-11-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Maintenance
|
|
7
|
+
|
|
8
|
+
* patch vulnerabilities ([34713a9](https://github.com/poowf/eth-chainlist/commit/34713a91b48550bedd940d659db0ce5dcd20315b))
|
|
9
|
+
* update chain data ([010ffc9](https://github.com/poowf/eth-chainlist/commit/010ffc90beb541f56460bcaaddecdebb69a25a92))
|
|
10
|
+
|
|
3
11
|
### 0.0.11 (2022-11-17)
|
|
4
12
|
|
|
5
13
|
|
package/README.md
CHANGED
|
@@ -1 +1,53 @@
|
|
|
1
1
|
# eth-chainlist
|
|
2
|
+
|
|
3
|
+
`eth-chainlist` is a Node.JS NPM Package that provides evm chain based on the data from [https://chainlist.org/](https://chainlist.org/)
|
|
4
|
+
|
|
5
|
+
This package automatically updates itself once a day as long as there is chain data updates.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
```javascript
|
|
9
|
+
import { getChainById } from 'eth-chainlist';
|
|
10
|
+
const currentChain = getChainById(1);
|
|
11
|
+
/**
|
|
12
|
+
* {
|
|
13
|
+
name: 'Ethereum Mainnet',
|
|
14
|
+
chain: 'ETH',
|
|
15
|
+
icon: 'ethereum',
|
|
16
|
+
rpc: [
|
|
17
|
+
'https://mainnet.infura.io/v3/${INFURA_API_KEY}',
|
|
18
|
+
'wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}',
|
|
19
|
+
'https://api.mycryptoapi.com/eth',
|
|
20
|
+
'https://cloudflare-eth.com'
|
|
21
|
+
],
|
|
22
|
+
faucets: [],
|
|
23
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
24
|
+
infoURL: 'https://ethereum.org',
|
|
25
|
+
shortName: 'eth',
|
|
26
|
+
chainId: 1,
|
|
27
|
+
networkId: 1,
|
|
28
|
+
slip44: 60,
|
|
29
|
+
ens: { registry: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e' },
|
|
30
|
+
explorers: [
|
|
31
|
+
{
|
|
32
|
+
name: 'etherscan',
|
|
33
|
+
url: 'https://etherscan.io',
|
|
34
|
+
standard: 'EIP3091'
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
* **/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## APIs
|
|
42
|
+
|
|
43
|
+
The following APIs are available in this package:
|
|
44
|
+
|
|
45
|
+
`rawChainData` will return all the chain data in JSON format.
|
|
46
|
+
|
|
47
|
+
`getChainById` takes in a chain id and will return you a single chain
|
|
48
|
+
|
|
49
|
+
`getChainByNetworkId` takes in a network id and will return you a single chain
|
|
50
|
+
|
|
51
|
+
`getChainByName` takes in a name and will return you a single chain
|
|
52
|
+
|
|
53
|
+
`getChainByShortName` takes in a short name and will return you a single chain
|
package/data/chain.js
CHANGED
|
@@ -724,7 +724,7 @@ const chainArray = [
|
|
|
724
724
|
{
|
|
725
725
|
name: 'Darwinia Pangoro Testnet',
|
|
726
726
|
chain: 'pangoro',
|
|
727
|
-
rpc: [ '
|
|
727
|
+
rpc: [ 'https://pangoro-rpc.darwinia.network' ],
|
|
728
728
|
faucets: [],
|
|
729
729
|
nativeCurrency: {
|
|
730
730
|
name: 'Pangoro Network Native Token”',
|
|
@@ -746,7 +746,7 @@ const chainArray = [
|
|
|
746
746
|
{
|
|
747
747
|
name: 'Darwinia Network',
|
|
748
748
|
chain: 'darwinia',
|
|
749
|
-
rpc: [ 'https://
|
|
749
|
+
rpc: [ 'https://rpc.darwinia.network' ],
|
|
750
750
|
faucets: [],
|
|
751
751
|
nativeCurrency: {
|
|
752
752
|
name: 'Darwinia Network Native Token',
|
|
@@ -4718,6 +4718,46 @@ const chainArray = [
|
|
|
4718
4718
|
}
|
|
4719
4719
|
]
|
|
4720
4720
|
},
|
|
4721
|
+
{
|
|
4722
|
+
name: 'ONUS Chain Testnet',
|
|
4723
|
+
title: 'ONUS Chain Testnet',
|
|
4724
|
+
chain: 'onus',
|
|
4725
|
+
rpc: [ 'https://rpc-testnet.onuschain.io' ],
|
|
4726
|
+
faucets: [],
|
|
4727
|
+
nativeCurrency: { name: 'ONUS', symbol: 'ONUS', decimals: 18 },
|
|
4728
|
+
infoURL: 'https://onuschain.io',
|
|
4729
|
+
shortName: 'onus-testnet',
|
|
4730
|
+
chainId: 1945,
|
|
4731
|
+
networkId: 1945,
|
|
4732
|
+
explorers: [
|
|
4733
|
+
{
|
|
4734
|
+
name: 'Onus explorer testnet',
|
|
4735
|
+
url: 'https://explorer-testnet.onuschain.io',
|
|
4736
|
+
icon: 'onus',
|
|
4737
|
+
standard: 'EIP3091'
|
|
4738
|
+
}
|
|
4739
|
+
]
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
name: 'ONUS Chain Mainnet',
|
|
4743
|
+
title: 'ONUS Chain Mainnet',
|
|
4744
|
+
chain: 'onus',
|
|
4745
|
+
rpc: [ 'https://rpc.onuschain.io', 'wss://ws.onuschain.io' ],
|
|
4746
|
+
faucets: [],
|
|
4747
|
+
nativeCurrency: { name: 'ONUS', symbol: 'ONUS', decimals: 18 },
|
|
4748
|
+
infoURL: 'https://onuschain.io',
|
|
4749
|
+
shortName: 'onus-mainnet',
|
|
4750
|
+
chainId: 1975,
|
|
4751
|
+
networkId: 1975,
|
|
4752
|
+
explorers: [
|
|
4753
|
+
{
|
|
4754
|
+
name: 'Onus explorer mainnet',
|
|
4755
|
+
url: 'https://explorer.onuschain.io',
|
|
4756
|
+
icon: 'onus',
|
|
4757
|
+
standard: 'EIP3091'
|
|
4758
|
+
}
|
|
4759
|
+
]
|
|
4760
|
+
},
|
|
4721
4761
|
{
|
|
4722
4762
|
name: 'Eurus Testnet',
|
|
4723
4763
|
chain: 'EUN',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eth-chainlist",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "List of EVM Chains",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"prettier": "^2.3.2",
|
|
37
37
|
"standard-version": "^9.3.1"
|
|
38
38
|
},
|
|
39
|
+
"resolutions": {
|
|
40
|
+
"minimist": "1.2.6"
|
|
41
|
+
},
|
|
39
42
|
"config": {
|
|
40
43
|
"commitizen": {
|
|
41
44
|
"path": "cz-conventional-changelog"
|