Skip to content

Commit

Permalink
update solana config
Browse files Browse the repository at this point in the history
  • Loading branch information
marxeille committed Feb 10, 2025
1 parent 00f0e19 commit b824b97
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export const SelectNetworkModal: FunctionComponent<{
}
let chainIcon = chainIcons.find((c) => c.chainId === formatedChainID);

console.log("chainIcon", chainIcon);

// Hardcode for Oasis because oraidex-common does not have icon yet
if (item.chainName.toLowerCase().includes("oasis")) {
chainIcon = {
Expand All @@ -145,6 +147,13 @@ export const SelectNetworkModal: FunctionComponent<{
};
}

if (item.chainName.toLowerCase().includes("solana")) {
chainIcon = {
chainId: item.chainId,
Icon: "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
};
}

if (!chainIcon) {
chainIcon = chainIcons.find((c) => c.chainId === ChainIdEnum.Oraichain);
}
Expand Down
104 changes: 52 additions & 52 deletions packages/common/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,58 +582,58 @@ export const EmbedChainInfos: ChainInfo[] = [
],
features: ["not-support-staking"],
},
{
rpc: "https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ",
rest: "https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ",
chainId: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
chainName: "Solana",
bip44: {
coinType: 501,
},
stakeCurrency: {
coinDenom: "SOL",
coinMinimalDenom: "sol",
coinDecimals: 9,
coinGeckoId: "solana",
coinImageUrl:
"https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
},
chainSymbolImageUrl:
"https://upload.wikimedia.org/wikipedia/en/b/b9/Solana_logo.png",
currencies: [
{
coinDenom: "SOL",
coinMinimalDenom: "sol",
coinDecimals: 9,
coinGeckoId: "solana",
coinImageUrl:
"https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
},
],
get feeCurrencies() {
return [
{
coinDenom: "SOL",
coinMinimalDenom: "sol",
coinDecimals: 9,
coinGeckoId: "solana",
coinImageUrl:
"https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
gasPriceStep: {
low: 1,
average: 1.25,
high: 1.5,
},
},
];
},
features: ["gen-address", "svm", "not-support-staking"],
txExplorer: {
name: "Sol Explorer",
txUrl: "https://solscan.io/tx/{txHash}",
accountUrl: "https://solscan.io/address/{address}",
},
},
// {
// rpc: "https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ",
// rest: "https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ",
// chainId: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
// chainName: "Solana",
// bip44: {
// coinType: 501,
// },
// stakeCurrency: {
// coinDenom: "SOL",
// coinMinimalDenom: "sol",
// coinDecimals: 9,
// coinGeckoId: "solana",
// coinImageUrl:
// "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
// },
// chainSymbolImageUrl:
// "https://upload.wikimedia.org/wikipedia/en/b/b9/Solana_logo.png",
// currencies: [
// {
// coinDenom: "SOL",
// coinMinimalDenom: "sol",
// coinDecimals: 9,
// coinGeckoId: "solana",
// coinImageUrl:
// "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
// },
// ],
// get feeCurrencies() {
// return [
// {
// coinDenom: "SOL",
// coinMinimalDenom: "sol",
// coinDecimals: 9,
// coinGeckoId: "solana",
// coinImageUrl:
// "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756",
// gasPriceStep: {
// low: 1,
// average: 1.25,
// high: 1.5,
// },
// },
// ];
// },
// features: ["gen-address", "svm", "not-support-staking"],
// txExplorer: {
// name: "Sol Explorer",
// txUrl: "https://solscan.io/tx/{txHash}",
// accountUrl: "https://solscan.io/address/{address}",
// },
// },
{
rpc: "https://evm-56.keplr.app",
rest: "https://evm-56.keplr.app",
Expand Down
4 changes: 0 additions & 4 deletions packages/hooks/src/universal-swap/use-load-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,6 @@ async function loadEvmEntries(
if (nativeEvmToken)
entries.push([nativeEvmToken.denom, nativeBalance.toString()]);

console.log("entries 2", entries, Object.fromEntries(entries));

return Object.fromEntries(entries);
} catch (error) {
console.log("error querying EVM balance: ", error);
Expand Down Expand Up @@ -577,8 +575,6 @@ async function loadEvmAmounts(

const tokens = flattenObject(amountDetails);

console.log("amountDetails", evmAddress, flattenObject(amountDetails));

if (!isTronAddress) {
Object.keys(tokens).forEach(function (key) {
if (key.startsWith("trx")) {
Expand Down

0 comments on commit b824b97

Please sign in to comment.