Skip to content

Commit

Permalink
feat: add Sophon chain (#12748)
Browse files Browse the repository at this point in the history
Co-authored-by: g1nt0ki <[email protected]>
Co-authored-by: 0xsign <[email protected]>
Co-authored-by: Jarekkkkk <[email protected]>
Co-authored-by: VarekStorm <[email protected]>
Co-authored-by: VarekStorm <[email protected]>
Co-authored-by: Linkie Link <[email protected]>
Co-authored-by: Bao Nguyen <[email protected]>
Co-authored-by: Winson Cheng <[email protected]>
Co-authored-by: Denis <[email protected]>
Co-authored-by: Define101 <[email protected]>
Co-authored-by: Brendon Votteler <[email protected]>
Co-authored-by: MD <[email protected]>
Co-authored-by: rogi-sh <[email protected]>
Co-authored-by: igorshelkovenkov <[email protected]>
Co-authored-by: Antoine <[email protected]>
  • Loading branch information
16 people authored Dec 18, 2024
1 parent eeb437d commit 7226f9d
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 9 deletions.
1 change: 1 addition & 0 deletions projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
"sommelier",
"songbird",
"sonic",
"sophon",
"sora",
"stacks",
"stafi",
Expand Down
9 changes: 9 additions & 0 deletions projects/helper/coreAssets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2086,5 +2086,14 @@
"ETH": "0xDd4b9b3Ce03faAbA4a3839c8B5023b7792be6e2C",
"VINU": "0x00c1E515EA9579856304198EFb15f525A0bb50f6",
"WVC": "0xEd8c5530a0A086a12f57275728128a60DFf04230"
},
"sophon": {
"ETH": "0x72af9f169b619d85a47dfa8fefbcd39de55c567d",
"USDT": "0x6386da73545ae4e2b2e0393688fa8b65bb9a7169",
"USDC": "0x9aa0f72392b5784ad86c6f3e899bcc053d00db4f",
"WSTETH": "0x60d02f185f80644e1a5ae35497736dd31d1b078b",
"WEETH": "0x5e9fc50b44988b66ba84500f8bc32c0493fe8f8d",
"DAI": "0x88171a5bbacd92ca5e25575c5904581c80b025dd",
"SDAI": "0xeccbb9360d235548473cb8c752735f68e652439b"
}
}
1 change: 1 addition & 0 deletions projects/helper/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const DEFAULTS = {
RENEC_RPC: "https://api-mainnet-beta.renec.foundation:8899/",
RPC_PROXY_URL: "https://rpc-proxy.llama.fi",
DUCKCHAIN_RPC: "https://rpc.duckchain.io,https://rpc-hk.duckchain.io",
SOPHON_RPC_MULTICALL: "0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",
}

const ENV_KEYS = [
Expand Down
10 changes: 10 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const ibcMappings = {
}

const fixBalancesTokens = {

// Sample Code
ozone: {
// '0x83048f0bf34feed8ced419455a4320a735a92e9d': { coingeckoId: "ozonechain", decimals: 18 }, // was mapped to wrong chain
Expand All @@ -48,6 +49,15 @@ const fixBalancesTokens = {
ink: {
[ADDRESSES.optimism.WETH_1]: { coingeckoId: "ethereum", decimals: 18 },
},
sophon: {
[ADDRESSES.sophon.ETH]: { coingeckoId: "ethereum", decimals: 18 },
[ADDRESSES.sophon.USDT]: { coingeckoId: "tether", decimals: 6 },
[ADDRESSES.sophon.USDC]: { coingeckoId: "usd-coin", decimals: 6 },
[ADDRESSES.sophon.WSTETH]: { coingeckoId: "wrapped-steth", decimals: 18 },
[ADDRESSES.sophon.WEETH]: { coingeckoId: "wrapped-eeth", decimals: 18 },
[ADDRESSES.sophon.DAI]: { coingeckoId: "dai", decimals: 18 },
[ADDRESSES.sophon.SDAI]: { coingeckoId: "savings-dai", decimals: 18 },
},
duckchain: {
["0x7F9308E8d724e724EC31395f3af52e0593BB2e3f"]: { coingeckoId: "wrapped-ton", decimals: 18 },
},
Expand Down
24 changes: 15 additions & 9 deletions projects/syncswap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,27 @@ async function tvl(api) {
const config = {
era: {
fromBlock: 9775,
stableFactorys: ['0x5b9f21d407F35b10CbfDDca17D5D84b129356ea3','0x81251524898774F5F2FCaE7E7ae86112Cb5C317f'],
classicFactorys: ['0xf2DAd89f2788a8CD54625C60b55cD3d2D0ACa7Cb','0x0a34FBDf37C246C0B401da5f00ABd6529d906193'],
aquaFactorys: ['0x20b28B1e4665FFf290650586ad76E977EAb90c5D','0xFfa499b019394d9bEB5e21FC54AD572E4942302b','0x0754870C1aAb00eDCFABDF4e6FEbDD30e90f327d']
stableFactorys: ['0x5b9f21d407F35b10CbfDDca17D5D84b129356ea3', '0x81251524898774F5F2FCaE7E7ae86112Cb5C317f'],
classicFactorys: ['0xf2DAd89f2788a8CD54625C60b55cD3d2D0ACa7Cb', '0x0a34FBDf37C246C0B401da5f00ABd6529d906193'],
aquaFactorys: ['0x20b28B1e4665FFf290650586ad76E977EAb90c5D', '0xFfa499b019394d9bEB5e21FC54AD572E4942302b', '0x0754870C1aAb00eDCFABDF4e6FEbDD30e90f327d']
},
linea: {
fromBlock: 716,
stableFactorys: ['0xE4CF807E351b56720B17A59094179e7Ed9dD3727','0x61Abf754fc031C544236053495a193f3518e9101','0x024A096bAb43587d24004C95C3e20FcB7518Ad86'],
classicFactorys: ['0x37BAc764494c8db4e54BDE72f6965beA9fa0AC2d','0x9573994Ae6C9b35627976d26FA89e507e71FBaA2','0xb8AbaEa25E42DA5ac6897C9DAb0a8157885fE32b'],
aquaFactorys: ['0x7a31060d8524c21496a352BE65549eEf1e864fb0','0x1080EE857D165186aF7F8d63e8ec510C28A6d1Ea']
stableFactorys: ['0xE4CF807E351b56720B17A59094179e7Ed9dD3727', '0x61Abf754fc031C544236053495a193f3518e9101', '0x024A096bAb43587d24004C95C3e20FcB7518Ad86'],
classicFactorys: ['0x37BAc764494c8db4e54BDE72f6965beA9fa0AC2d', '0x9573994Ae6C9b35627976d26FA89e507e71FBaA2', '0xb8AbaEa25E42DA5ac6897C9DAb0a8157885fE32b'],
aquaFactorys: ['0x7a31060d8524c21496a352BE65549eEf1e864fb0', '0x1080EE857D165186aF7F8d63e8ec510C28A6d1Ea']
},
sophon: {
fromBlock: 38459,
stableFactorys: ["0x8c9d66ba3e1d7681cffffa3c7d9807adae368e74"],
classicFactorys: ["0x432bcc3bc62de9186f9e8763c82d43e418681e6c"],
aquaFactorys: ["0xa2e2f6b5db704fde654db69895c89523332e538e"],
},
scroll: {
fromBlock: 80875,
stableFactorys: ['0xE4CF807E351b56720B17A59094179e7Ed9dD3727','0x5BEBDA7E264b03bB963CB2418f40C5ffcefb7A9e','0xA2acA673C00495A184F88De533BBa8e1b7f38D00'],
classicFactorys: ['0x37BAc764494c8db4e54BDE72f6965beA9fa0AC2d','0xDAEdEcF3F1Caf8d9050A0C973B77E40bA8024F69','0x76f549af692efA64952d02c075226df9878Fb54C'],
aquaFactorys: ['0xa033eAbcCfd9b71543E34dec43935467A230Ce2d','0x87aeb51d606056F48D241C4072f55ACd9D937018']
stableFactorys: ['0xE4CF807E351b56720B17A59094179e7Ed9dD3727', '0x5BEBDA7E264b03bB963CB2418f40C5ffcefb7A9e', '0xA2acA673C00495A184F88De533BBa8e1b7f38D00'],
classicFactorys: ['0x37BAc764494c8db4e54BDE72f6965beA9fa0AC2d', '0xDAEdEcF3F1Caf8d9050A0C973B77E40bA8024F69', '0x76f549af692efA64952d02c075226df9878Fb54C'],
aquaFactorys: ['0xa033eAbcCfd9b71543E34dec43935467A230Ce2d', '0x87aeb51d606056F48D241C4072f55ACd9D937018']
},
}

Expand Down

0 comments on commit 7226f9d

Please sign in to comment.