Skip to content

Commit

Permalink
adding QL1 and qomswap
Browse files Browse the repository at this point in the history
  • Loading branch information
encrypt3dw4lrus committed Dec 19, 2024
1 parent 7226f9d commit 3005a6e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,6 @@
"zksync",
"zora",
"zyx",
"xsat"
"xsat",
"ql1"
]
10 changes: 10 additions & 0 deletions projects/helper/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
5 changes: 4 additions & 1 deletion projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
Expand Down Expand Up @@ -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] || {}) })
Expand Down
4 changes: 4 additions & 0 deletions projects/qomswap/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { uniTvlExport } = require('../helper/unknownTokens')

module.exports = uniTvlExport('ql1', '0x475f361993D6FAcBF32fB82B66be0fB40f3d974C')

0 comments on commit 3005a6e

Please sign in to comment.