Skip to content

Commit

Permalink
Merge pull request #384 from oraidex/feat/add-blackrack
Browse files Browse the repository at this point in the history
add token black rack
  • Loading branch information
haunv3 authored Dec 23, 2024
2 parents 8e6f873 + b01a120 commit 9410593
Show file tree
Hide file tree
Showing 3 changed files with 28 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.42",
"version": "1.1.43",
"main": "build/index.js",
"files": [
"build/"
Expand Down
3 changes: 3 additions & 0 deletions packages/oraidex-common/src/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,12 @@ export const WSOL_WORMHOLE_BNB_ORAICHAIN_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/oraib0x4VH72cCsNwZwLtHtBnXuCxHWf4mB";
export const MAX_ORAICHAIN_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/oraim8c9d1nkfuQk9EzGYEUGxqL3MHQYndRw1huVo5h";
export const RACKS_ORAICHAIN_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/oraigyiRnYoCgFiaLnpiaPvJjZbs5zzmWHp4sxBgZq3";

// config solana
export const MAX_SOL_CONTRACT_ADDRESS = "oraim8c9d1nkfuQk9EzGYEUGxqL3MHQYndRw1huVo5h";
export const RACKS_SOL_CONTRACT_ADDRESS = "oraigyiRnYoCgFiaLnpiaPvJjZbs5zzmWHp4sxBgZq3";
export const ORAI_SOL_CONTRACT_ADDRESS = "2hZWncnmsSMdbkdwzSHJfrnDVkL66g63gncdRWqjTbBB";
export const SOLANA_RPC = "https://swr.xnftdata.com/rpc-proxy/";
export const SOLANA_WEBSOCKET = "wss://go.getblock.io/52d75331a9b74f9fa4a0056f15a1c022";
Expand Down
26 changes: 24 additions & 2 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ import {
solChainId,
MAX_SOL_CONTRACT_ADDRESS,
MAX_ORAICHAIN_DENOM,
ORAI_SOL_CONTRACT_ADDRESS
ORAI_SOL_CONTRACT_ADDRESS,
RACKS_ORAICHAIN_DENOM,
RACKS_SOL_CONTRACT_ADDRESS
} from "./constant";
import { listOsmosisToken } from "./alpha-network";
import { celestiaNetwork } from "./celestia-network";
Expand Down Expand Up @@ -146,7 +148,9 @@ export type CoinGeckoId =
| "hamster-kombat"
| "dogecoin"
| "solana"
| "max-2";
| "max-2"
| "black-rack"
| string;

export type NetworkType = "cosmos" | "evm" | "ton" | "svm";
export interface NetworkConfig {
Expand Down Expand Up @@ -664,6 +668,15 @@ export const oraichainNetwork: CustomChainInfo = {
coinDecimals: 6,
coinImageUrl:
"https://pump.mypinata.cloud/ipfs/QmcGwYebsQfYbNSM9QDAMS2wKZ8fZNEiMbezJah1zgEWWS?img-width=256&img-dpr=2"
},
{
coinDenom: "RACKS",
coinGeckoId: "black-rack",
coinMinimalDenom: RACKS_ORAICHAIN_DENOM,
bridgeTo: [solChainId],
coinDecimals: 6,
coinImageUrl:
"https://pump.mypinata.cloud/ipfs/QmcGwYebsQfYbNSM9QDAMS2wKZ8fZNEiMbezJah1zgEWWS?img-width=256&img-dpr=2"
}
]
};
Expand Down Expand Up @@ -697,6 +710,15 @@ export const solanaMainnet: CustomChainInfo = {
coinImageUrl:
"https://pump.mypinata.cloud/ipfs/QmcGwYebsQfYbNSM9QDAMS2wKZ8fZNEiMbezJah1zgEWWS?img-width=256&img-dpr=2"
},
{
coinDenom: "RACKS",
coinMinimalDenom: "racks",
coinDecimals: 6,
bridgeTo: ["Oraichain"],
contractAddress: RACKS_SOL_CONTRACT_ADDRESS,
coinGeckoId: "black-rack",
coinImageUrl: "https://ipfs.io/ipfs/QmVRPsBSHpamDzcDzVL9wsbB9gr4frtNrrFF7g44Xa9FuS"
},
{
coinDenom: "ORAI",
coinMinimalDenom: "s20_orai",
Expand Down

0 comments on commit 9410593

Please sign in to comment.