From 3005a6e7c627d5719bbd92b34e32ef19e58d3a50 Mon Sep 17 00:00:00 2001 From: encrypt3dW4lrus Date: Thu, 19 Dec 2024 00:21:23 +0000 Subject: [PATCH] adding QL1 and qomswap --- projects/helper/chains.json | 3 ++- projects/helper/env.js | 10 ++++++++++ projects/helper/tokenMapping.js | 5 ++++- projects/qomswap/index.js | 4 ++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 projects/qomswap/index.js diff --git a/projects/helper/chains.json b/projects/helper/chains.json index 02faf84c604f..7f7b14d5c145 100644 --- a/projects/helper/chains.json +++ b/projects/helper/chains.json @@ -365,5 +365,6 @@ "zksync", "zora", "zyx", - "xsat" + "xsat", + "ql1" ] diff --git a/projects/helper/env.js b/projects/helper/env.js index 1dd47e9c79da..646d5cb768cb 100644 --- a/projects/helper/env.js +++ b/projects/helper/env.js @@ -19,8 +19,18 @@ const DEFAULTS = { ANKR_API_KEY: '79258ce7f7ee046decc3b5292a24eb4bf7c910d7e39b691384c7ce0cfb839a01', RENEC_RPC: "https://api-mainnet-beta.renec.foundation:8899/", RPC_PROXY_URL: "https://rpc-proxy.llama.fi", +<<<<<<< HEAD DUCKCHAIN_RPC: "https://rpc.duckchain.io,https://rpc-hk.duckchain.io", SOPHON_RPC_MULTICALL: "0x5f4867441d2416cA88B1b3fd38f21811680CD2C8", +======= + UNIT0_RPC: "https://rpc.unit0.dev", + RBN_RPC: "https://governors.mainnet.redbelly.network", + CORN_RPC: "https://rpc.ankr.com/corn_maizenet", + QL1_RPC: "https://rpc.qom.one", + ACE_RPC_MULTICALL: "0x025A2B4fCE1E0bD736D5cebe6C8a52229795376B", + ZILLIQA_RPC_MULTICALL: "0x38899efb93d5106d3adb86662c557f237f6ecf57", + VINU_RPC_MULTICALL: "0x63CE2062281fb85fE5BC407799A455C21f35F355", +>>>>>>> 5ecba31e2 (adding QL1 and qomswap) } const ENV_KEYS = [ diff --git a/projects/helper/tokenMapping.js b/projects/helper/tokenMapping.js index ea6fd085f06b..99274693284d 100644 --- a/projects/helper/tokenMapping.js +++ b/projects/helper/tokenMapping.js @@ -18,7 +18,7 @@ coreAssets = JSON.parse(JSON.stringify(coreAssets)) // orbit brige: https://bridge.orbitchain.io/open/v1/api/monitor/rawTokenList -const ibcChains = ['ibc', 'terra', 'terra2', 'crescent', 'osmosis', 'kujira', 'stargaze', 'juno', 'injective', 'cosmos', 'comdex', 'umee', 'orai', 'persistence', 'fxcore', 'neutron', 'quasar', 'chihuahua', 'sei', 'archway', 'migaloo', 'secret', 'aura', 'xpla', 'bostrom', 'joltify', 'nibiru'] +const ibcChains = ['ibc', 'terra', 'terra2', 'crescent', 'osmosis', 'kujira', 'stargaze', 'juno', 'injective', 'cosmos', 'comdex', 'umee', 'orai', 'persistence', 'fxcore', 'neutron', 'quasar', 'chihuahua', 'sei', 'archway', 'migaloo', 'secret', 'aura', 'xpla', 'bostrom', 'joltify', 'nibiru', 'ql1'] const caseSensitiveChains = [...ibcChains, 'solana', 'tezos', 'ton', 'algorand', 'aptos', 'near', 'bitcoin', 'waves', 'tron', 'litecoin', 'polkadot', 'ripple', 'elrond', 'cardano', 'stacks', 'sui', 'ergo', 'mvc', 'renec', 'doge', 'stellar', 'massa', 'eclipse', ] @@ -61,6 +61,9 @@ const fixBalancesTokens = { duckchain: { ["0x7F9308E8d724e724EC31395f3af52e0593BB2e3f"]: { coingeckoId: "wrapped-ton", decimals: 18 }, }, + ql1: { + '0xa26dfBF98Dd1A32FAe56A3D2B2D60A8a41b0bDF0': { coingeckoId: "wrapped-qom", decimals: 18}, + } } ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) }) diff --git a/projects/qomswap/index.js b/projects/qomswap/index.js new file mode 100644 index 000000000000..a315e3c28d2b --- /dev/null +++ b/projects/qomswap/index.js @@ -0,0 +1,4 @@ +const { uniTvlExport } = require('../helper/unknownTokens') + +module.exports = uniTvlExport('ql1', '0x475f361993D6FAcBF32fB82B66be0fB40f3d974C') +