Skip to content

Commit

Permalink
Merge pull request #727 from chainapsis/delivan/add-native-evm-chains
Browse files Browse the repository at this point in the history
Add native-integrating EVM chains
  • Loading branch information
delivan authored Jul 22, 2024
2 parents f6f695b + 42dfb8e commit b37f364
Show file tree
Hide file tree
Showing 25 changed files with 262 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ jobs:
yarn ts-node src/index.ts $file
fi
done
env:
PRICE_URL: ${{ secrets.PRICE_URL }}
36 changes: 36 additions & 0 deletions evm/eip155:10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-10.keplr.app",
"websocket": "wss://evm-10.keplr.app/websocket",
"chainId": "eip155:10",
"chainName": "Optimism",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:10/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "optimism-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:10/optimism-native.png"
},
{
"coinDenom": "USDC",
"coinMinimalDenom": "erc20:0x0b2c639c533813f4aa9d7837caf62653d097ff85",
"coinDecimals": 6,
"coinGeckoId": "usd-coin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:10/erc20/0x0b2c639c533813f4aa9d7837caf62653d097ff85.png"
}
],
"feeCurrencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "optimism-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:10/optimism-native.png"
}
],
"features": []
}
36 changes: 36 additions & 0 deletions evm/eip155:137.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-137.keplr.app",
"websocket": "wss://evm-137.keplr.app/websocket",
"chainId": "eip155:137",
"chainName": "Polygon",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:137/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "MATIC",
"coinMinimalDenom": "polygon-native",
"coinDecimals": 18,
"coinGeckoId": "matic-network",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:137/polygon-native.png"
},
{
"coinDenom": "USDC",
"coinMinimalDenom": "erc20:0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
"coinDecimals": 6,
"coinGeckoId": "usd-coin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:137/erc20/0x3c499c542cef5e3811e1192ce70d8cc03d5c3359.png"
}
],
"feeCurrencies": [
{
"coinDenom": "MATIC",
"coinMinimalDenom": "polygon-native",
"coinDecimals": 18,
"coinGeckoId": "matic-network",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:137/polygon-native.png"
}
],
"features": []
}
36 changes: 36 additions & 0 deletions evm/eip155:42161.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-42161.keplr.app",
"websocket": "wss://evm-42161.keplr.app/websocket",
"chainId": "eip155:42161",
"chainName": "Arbitrum",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:42161/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "arbitrum-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:42161/arbitrum-native.png"
},
{
"coinDenom": "USDC",
"coinMinimalDenom": "erc20:0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"coinDecimals": 6,
"coinGeckoId": "usd-coin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:42161/erc20/0xaf88d065e77c8cc2239327c5edb3a432268e5831.png"
}
],
"feeCurrencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "arbitrum-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:42161/arbitrum-native.png"
}
],
"features": []
}
36 changes: 36 additions & 0 deletions evm/eip155:43114.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-43114.keplr.app",
"websocket": "wss://evm-43114.keplr.app/websocket",
"chainId": "eip155:43114",
"chainName": "Avalanche",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:43114/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "AVAX",
"coinMinimalDenom": "avalanche-native",
"coinDecimals": 18,
"coinGeckoId": "avalanche-2",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:43114/avalanche-native.png"
},
{
"coinDenom": "USDC",
"coinMinimalDenom": "erc20:0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
"coinDecimals": 6,
"coinGeckoId": "usd-coin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:43114/erc20/0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e.png"
}
],
"feeCurrencies": [
{
"coinDenom": "AVAX",
"coinMinimalDenom": "avalanche-native",
"coinDecimals": 18,
"coinGeckoId": "avalanche-2",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:43114/avalanche-native.png"
}
],
"features": []
}
36 changes: 36 additions & 0 deletions evm/eip155:56.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-56.keplr.app",
"websocket": "wss://evm-56.keplr.app/websocket",
"chainId": "eip155:56",
"chainName": "BNB Smart Chain",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:56/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "BNB",
"coinMinimalDenom": "binance-native",
"coinDecimals": 18,
"coinGeckoId": "binancecoin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:56/binance-native.png"
},
{
"coinDenom": "USDC",
"coinMinimalDenom": "erc20:0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"coinDecimals": 6,
"coinGeckoId": "usd-coin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:56/erc20/0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d.png"
}
],
"feeCurrencies": [
{
"coinDenom": "BNB",
"coinMinimalDenom": "binance-native",
"coinDecimals": 18,
"coinGeckoId": "binancecoin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:56/binance-native.png"
}
],
"features": []
}
36 changes: 36 additions & 0 deletions evm/eip155:81457.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-81457.keplr.app",
"websocket": "wss://evm-81457.keplr.app/websocket",
"chainId": "eip155:81457",
"chainName": "Blast",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:81457/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "blast-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:81457/blast-native.png"
},
{
"coinDenom": "USDB",
"coinMinimalDenom": "erc20:0x4300000000000000000000000000000000000003",
"coinDecimals": 18,
"coinGeckoId": "usdb",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:81457/erc20/0x4300000000000000000000000000000000000003.png"
}
],
"feeCurrencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "blast-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:81457/blast-native.png"
}
],
"features": []
}
36 changes: 36 additions & 0 deletions evm/eip155:8453.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rpc": "https://evm-8453.keplr.app",
"websocket": "wss://evm-8453.keplr.app/websocket",
"chainId": "eip155:8453",
"chainName": "Base",
"chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:8453/chain.png",
"bip44": {
"coinType": 60
},
"currencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "base-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:8453/base-native.png"
},
{
"coinDenom": "USDC",
"coinMinimalDenom": "erc20:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"coinDecimals": 6,
"coinGeckoId": "usd-coin",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:8453/erc20/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.png"
}
],
"feeCurrencies": [
{
"coinDenom": "ETH",
"coinMinimalDenom": "base-native",
"coinDecimals": 18,
"coinGeckoId": "ethereum",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/eip155:8453/base-native.png"
}
],
"features": []
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:10/optimism-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:137/polygon-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:42161/arbitrum-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:43114/avalanche-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/eip155:43114/chain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:56/binance-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:81457/blast-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eip155:8453/base-native.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export const nativeMainnetChainIdentifiers: string[] = [
"pryzm",
"zetachain_7000",
"eip155:1",
"eip155:10",
"eip155:56",
"eip155:137",
"eip155:8453",
"eip155:42161",
"eip155:43114",
"eip155:81457",
];

export const nativeTestnetChainIdentifiers: string[] = [
Expand Down
2 changes: 1 addition & 1 deletion src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const checkCoinGeckoIds = async (...coinGeckoIds: string[]) => {
for (const coinGeckoId of coinGeckoIds) {
if (data[coinGeckoId] == null || data[coinGeckoId]["usd"] == null) {
throw new Error(
`Failed to fetch coinGeckoId ${coinGeckoId} from coin gecko`,
`Failed to fetch coinGeckoId ${coinGeckoId} from coingecko`,
);
}
}
Expand Down

0 comments on commit b37f364

Please sign in to comment.