Skip to content

Commit

Permalink
Merge pull request #374 from oraidex/feat/sol
Browse files Browse the repository at this point in the history
add sol20 orai
  • Loading branch information
haunv3 authored Dec 4, 2024
2 parents 0ac4ff7 + ad3dfa4 commit 59bf76e
Show file tree
Hide file tree
Showing 3 changed files with 14 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.35",
"version": "1.1.36",
"main": "build/index.js",
"files": [
"build/"
Expand Down
1 change: 1 addition & 0 deletions packages/oraidex-common/src/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const MAX_ORAICHAIN_DENOM =
export const ORAICHAIN_RELAYER_ADDRESS = "orai1ehmhqcn8erf3dgavrca69zgp4rtxj5kqgtcnyd";
export const SOL_RELAYER_ADDRESS = "4k7xvinq6nB221iBhcP9uMFCPFh29MxQ6LieMH7cqw45";
export const MAX_SOL_CONTRACT_ADDRESS = "oraim8c9d1nkfuQk9EzGYEUGxqL3MHQYndRw1huVo5h";
export const ORAI_SOL_CONTRACT_ADDRESS = "orai1f5j9myddepjuq0m6jdmsy2c64vsmrqpd53mad6edrn2j30f9tups7w2lce";
export const SOLANA_RPC = "https://swr.xnftdata.com/rpc-proxy/";
export const SOLANA_WEBSOCKET = "wss://go.getblock.io/52d75331a9b74f9fa4a0056f15a1c022";
export const MEMO_PROGRAM_ID = "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
Expand Down
14 changes: 12 additions & 2 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ import {
WSOL_WORMHOLE_BSC_CONTRACT,
solChainId,
MAX_SOL_CONTRACT_ADDRESS,
MAX_ORAICHAIN_DENOM
MAX_ORAICHAIN_DENOM,
ORAI_SOL_CONTRACT_ADDRESS
} from "./constant";
import { listOsmosisToken } from "./alpha-network";
import { celestiaNetwork } from "./celestia-network";
Expand Down Expand Up @@ -226,7 +227,7 @@ export const OraiToken: BridgeAppCurrency = {
coinMinimalDenom: "orai",
coinDecimals: 6,
coinGeckoId: "oraichain-token",
bridgeTo: ["0x38", "0x01", "injective-1"],
bridgeTo: ["0x38", "0x01", "injective-1", solChainId],
coinImageUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/7533.png",
gasPriceStep: {
low: 0.003,
Expand Down Expand Up @@ -616,6 +617,15 @@ export const solanaMainnet: CustomChainInfo = {
coinGeckoId: "max.clan",
coinImageUrl:
"https://pump.mypinata.cloud/ipfs/QmcGwYebsQfYbNSM9QDAMS2wKZ8fZNEiMbezJah1zgEWWS?img-width=256&img-dpr=2"
},
{
coinDenom: "ORAI",
coinMinimalDenom: "s20_orai",
coinDecimals: 8,
bridgeTo: ["Oraichain"],
contractAddress: ORAI_SOL_CONTRACT_ADDRESS,
coinGeckoId: "oraichain-token",
coinImageUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/7533.png"
}
],
get feeCurrencies() {
Expand Down

0 comments on commit 59bf76e

Please sign in to comment.