Skip to content

Commit

Permalink
Merge pull request #371 from oraidex/feat/add-sol
Browse files Browse the repository at this point in the history
feat: add sol bnb
  • Loading branch information
trung2891 authored Nov 30, 2024
2 parents b5651af + ef47225 commit cd3c557
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 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.32",
"version": "1.1.33",
"main": "build/index.js",
"files": [
"build/"
Expand Down
2 changes: 2 additions & 0 deletions packages/oraidex-common/src/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +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";
// tron contracts
export const USDT_TRON_CONTRACT = "0xa614f803B6FD780986A42c78Ec9c7f77e6DeD13C";
export const WRAP_TRON_TRX_CONTRACT = "0x891cdb91d149f23B1a45D9c5Ca78a88d0cB44C18";
Expand Down Expand Up @@ -105,6 +106,7 @@ 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";

// config for oraichain token
export const AIRI_CONTRACT = "orai10ldgzued6zjp0mkqwsv2mux3ml50l97c74x8sg";
Expand Down
34 changes: 32 additions & 2 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ import {
HMSTR_ORAICHAIN_DENOM,
OBTC_ORAICHAIN_EXT_DENOM,
DOGE_BNB_ORAICHAIN_DENOM,
DOGE_BSC_CONTRACT
DOGE_BSC_CONTRACT,
SOL_BSC_CONTRACT,
SOL_BNB_ORAICHAIN_DENOM
} from "./constant";
import { listOsmosisToken } from "./alpha-network";
import { celestiaNetwork } from "./celestia-network";
Expand Down Expand Up @@ -129,7 +131,8 @@ export type CoinGeckoId =
| "pepe"
| "simon-s-cat"
| "hamster-kombat"
| "dogecoin";
| "dogecoin"
| "solana";

export type NetworkType = "cosmos" | "evm";
export interface NetworkConfig {
Expand Down Expand Up @@ -349,6 +352,14 @@ export const oraichainNetwork: CustomChainInfo = {
coinGeckoId: "dogecoin",
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
{
coinDenom: "SOL",
coinMinimalDenom: SOL_BNB_ORAICHAIN_DENOM,
coinDecimals: 6,
bridgeTo: ["0x38"],
coinGeckoId: "solana",
coinImageUrl: "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756"
},
// {
// coinDenom: "CAT",
// coinMinimalDenom: CAT_ORAICHAIN_DENOM,
Expand Down Expand Up @@ -720,6 +731,15 @@ export const chainInfos: CustomChainInfo[] = [
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinGeckoId: "dogecoin",
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
{
coinDenom: "SOL",
coinMinimalDenom: ORAI_BRIDGE_EVM_DENOM_PREFIX + SOL_BSC_CONTRACT,
bridgeNetworkIdentifier: "0x38",
coinDecimals: 18,
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinGeckoId: "solana",
coinImageUrl: "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756"
}
// {
// coinDenom: "CAT",
Expand Down Expand Up @@ -1119,6 +1139,16 @@ export const chainInfos: CustomChainInfo[] = [
bridgeTo: ["Oraichain"],
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
{
coinDenom: "SOL",
coinMinimalDenom: "bep20_sol",
contractAddress: SOL_BSC_CONTRACT,
coinDecimals: 18,
coinGeckoId: "solana",
bridgeTo: ["Oraichain"],
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinImageUrl: "https://assets.coingecko.com/coins/images/4128/standard/solana.png?1718769756"
}
// {
// coinDenom: "CAT",
Expand Down

0 comments on commit cd3c557

Please sign in to comment.