From e5e4f4633f5d92cf02cb93c1e8c6d93562a3ed9c Mon Sep 17 00:00:00 2001 From: leohar Date: Tue, 8 Oct 2024 16:51:46 +0100 Subject: [PATCH] add zkSync Mainnet (#3107) * add zkSync Mainnet * add NODL contract * add explorer, fix api url --- assets/evm/v2/assets_dev.json | 13 ++++++ chains/v20/chains_dev.json | 54 ++++++++++++++++++++++++ icons/chains/gradient/ZKsync_Mainnet.svg | 15 +++++++ 3 files changed, 82 insertions(+) create mode 100644 icons/chains/gradient/ZKsync_Mainnet.svg diff --git a/assets/evm/v2/assets_dev.json b/assets/evm/v2/assets_dev.json index 8eec0570f..a1dc6134a 100644 --- a/assets/evm/v2/assets_dev.json +++ b/assets/evm/v2/assets_dev.json @@ -637,5 +637,18 @@ "contractAddress": "0xBA41Ddf06B7fFD89D1267b5A93BFeF2424eb2003" } ] + }, + { + "symbol": "NODL", + "precision": 18, + "name": "Nodle token", + "priceId": "nodle-network", + "icon": "https://raw.githubusercontent.com/novasamatech/nova-utils/master/icons/chains/white/Nodle.svg", + "instances": [ + { + "chainId": "eip155:324", + "contractAddress": "0xBD4372e44c5eE654dd838304006E1f0f69983154" + } + ] } ] diff --git a/chains/v20/chains_dev.json b/chains/v20/chains_dev.json index 20a0457c5..00219c7fa 100644 --- a/chains/v20/chains_dev.json +++ b/chains/v20/chains_dev.json @@ -11199,5 +11199,59 @@ "ethereumBased", "noSubstrateRuntime" ] + }, + { + "chainId": "eip155:324", + "name": "ZKsync Era Mainnet", + "assets": [ + { + "assetId": 0, + "symbol": "ETH", + "priceId": "ethereum", + "type": "evmNative", + "icon": "https://raw.githubusercontent.com/novasamatech/nova-utils/master/icons/tokens/white/ETH.svg", + "precision": 18 + } + ], + "nodeSelectionStrategy": "uniform", + "nodes": [ + { + "url": "https://mainnet.era.zksync.io", + "name": "http node" + }, + { + "url": "wss://mainnet.era.zksync.io/ws", + "name": "wss node" + } + ], + "explorers": [ + { + "name": "ZKsync Era explorer", + "extrinsic": "https://era.zksync.network/tx/{hash}", + "account": "https://era.zksync.network/address/{address}" + }, + { + "name": "Block explorer", + "extrinsic": "https://explorer.zksync.io/tx/{hash}", + "account": "https://explorer.zksync.io/address/{address}" + } + ], + "externalApi": { + "history": [ + { + "type": "etherscan", + "url": "https://api-era.zksync.network/api", + "parameters": { + "assetType": "evm" + } + } + ] + }, + "icon": "https://raw.githubusercontent.com/novasamatech/nova-utils/master/icons/chains/gradient/ZKsync_Mainnet.svg", + "addressPrefix": 324, + "options": [ + "ethereumBased", + "noSubstrateRuntime" + ] } ] diff --git a/icons/chains/gradient/ZKsync_Mainnet.svg b/icons/chains/gradient/ZKsync_Mainnet.svg new file mode 100644 index 000000000..a9a81010e --- /dev/null +++ b/icons/chains/gradient/ZKsync_Mainnet.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +