Skip to content

Commit

Permalink
Merge pull request #372 from oraidex/feat/add-sol
Browse files Browse the repository at this point in the history
hotfix: change sol denom + bep20 addr
  • Loading branch information
trung2891 authored Nov 30, 2024
2 parents cd3c557 + a63e89b commit f6b2769
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-common",
"version": "1.1.33",
"version": "1.1.34",
"main": "build/index.js",
"files": [
"build/"
Expand Down
5 changes: 3 additions & 2 deletions packages/oraidex-common/src/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const MILKY_BSC_CONTRACT = "0x6fE3d0F096FC932A905accd1EB1783F6e4cEc717";
export const PEPE_BSC_CONTRACT = "0x25d887Ce7a35172C62FeBFD67a1856F20FaEbB00";
export const CAT_BSC_CONTRACT = "0x6894CDe390a3f51155ea41Ed24a33A4827d3063D";
export const DOGE_BSC_CONTRACT = "0xbA2aE424d960c26247Dd6c32edC70B295c744C43";
export const SOL_BSC_CONTRACT = "0x570A5D26f7765Ecb712C0924E4De545B89fD43dF";
export const WSOL_WORMHOLE_BSC_CONTRACT = "0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e";
// tron contracts
export const USDT_TRON_CONTRACT = "0xa614f803B6FD780986A42c78Ec9c7f77e6DeD13C";
export const WRAP_TRON_TRX_CONTRACT = "0x891cdb91d149f23B1a45D9c5Ca78a88d0cB44C18";
Expand Down Expand Up @@ -106,7 +106,8 @@ export const HMSTR_ORAICHAIN_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj
export const OBTC_ORAICHAIN_EXT_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/obtc";
export const DOGE_BNB_ORAICHAIN_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/DogeBNB";
export const SOL_BNB_ORAICHAIN_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/SolBNB";
export const WSOL_WORMHOLE_BNB_ORAICHAIN_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/oraib0x4VH72cCsNwZwLtHtBnXuCxHWf4mB";

// config for oraichain token
export const AIRI_CONTRACT = "orai10ldgzued6zjp0mkqwsv2mux3ml50l97c74x8sg";
Expand Down
24 changes: 12 additions & 12 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ import {
OBTC_ORAICHAIN_EXT_DENOM,
DOGE_BNB_ORAICHAIN_DENOM,
DOGE_BSC_CONTRACT,
SOL_BSC_CONTRACT,
SOL_BNB_ORAICHAIN_DENOM
WSOL_WORMHOLE_BNB_ORAICHAIN_DENOM,
WSOL_WORMHOLE_BSC_CONTRACT
} from "./constant";
import { listOsmosisToken } from "./alpha-network";
import { celestiaNetwork } from "./celestia-network";
Expand Down Expand Up @@ -353,9 +353,9 @@ export const oraichainNetwork: CustomChainInfo = {
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
{
coinDenom: "SOL",
coinMinimalDenom: SOL_BNB_ORAICHAIN_DENOM,
coinDecimals: 6,
coinDenom: "WSOL",
coinMinimalDenom: WSOL_WORMHOLE_BNB_ORAICHAIN_DENOM,
coinDecimals: 9,
bridgeTo: ["0x38"],
coinGeckoId: "solana",
coinImageUrl: "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756"
Expand Down Expand Up @@ -733,10 +733,10 @@ export const chainInfos: CustomChainInfo[] = [
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
{
coinDenom: "SOL",
coinMinimalDenom: ORAI_BRIDGE_EVM_DENOM_PREFIX + SOL_BSC_CONTRACT,
coinDenom: "WSOL",
coinMinimalDenom: ORAI_BRIDGE_EVM_DENOM_PREFIX + WSOL_WORMHOLE_BSC_CONTRACT,
bridgeNetworkIdentifier: "0x38",
coinDecimals: 18,
coinDecimals: 9,
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinGeckoId: "solana",
coinImageUrl: "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756"
Expand Down Expand Up @@ -1141,10 +1141,10 @@ export const chainInfos: CustomChainInfo[] = [
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
{
coinDenom: "SOL",
coinMinimalDenom: "bep20_sol",
contractAddress: SOL_BSC_CONTRACT,
coinDecimals: 18,
coinDenom: "WSOL",
coinMinimalDenom: "bep20_wsol",
contractAddress: WSOL_WORMHOLE_BSC_CONTRACT,
coinDecimals: 9,
coinGeckoId: "solana",
bridgeTo: ["Oraichain"],
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
Expand Down

0 comments on commit f6b2769

Please sign in to comment.