Skip to content

Commit

Permalink
Merge branch 'feat/retire-btc' into feat/oraidex-universal-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Oct 23, 2024
2 parents dd7b8ed + 23f9374 commit 8983d08
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 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.23",
"version": "1.1.24",
"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 @@ -101,6 +101,7 @@ export const PEPE_ORAICHAIN_EXT_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/extPEPE";
export const CAT_ORAICHAIN_EXT_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/extCAT";
export const HMSTR_ORAICHAIN_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/HMSTR";
export const OBTC_ORAICHAIN_EXT_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/obtc";

// config for oraichain token
export const AIRI_CONTRACT = "orai10ldgzued6zjp0mkqwsv2mux3ml50l97c74x8sg";
Expand Down
16 changes: 13 additions & 3 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ import {
PEPE_ETH_CONTRACT,
PEPE_BSC_CONTRACT,
CAT_BSC_CONTRACT,
HMSTR_ORAICHAIN_DENOM
HMSTR_ORAICHAIN_DENOM,
OBTC_ORAICHAIN_EXT_DENOM
} from "./constant";
import { listOsmosisToken } from "./alpha-network";
import { celestiaNetwork } from "./celestia-network";
Expand Down Expand Up @@ -156,7 +157,7 @@ export type BridgeAppCurrency = FeeCurrency & {
readonly Icon?: CoinIcon;
readonly IconLight?: CoinIcon;
readonly bridgeNetworkIdentifier?: EvmChainId;
readonly coinDecimals: 6 | 9 | 18;
readonly coinDecimals: 6 | 9 | 14 | 18;
readonly contractAddress?: string;
readonly prefixToken?: string;
};
Expand Down Expand Up @@ -504,7 +505,7 @@ export const oraichainNetwork: CustomChainInfo = {
coinImageUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png"
},
{
coinDenom: "BTC",
coinDenom: "BTC (Legacy)",
coinGeckoId: "bitcoin",
coinMinimalDenom: "usat",
type: "cw20",
Expand All @@ -513,6 +514,15 @@ export const oraichainNetwork: CustomChainInfo = {
coinDecimals: 6,
coinImageUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png"
},
{
coinDenom: "BTC",
coinGeckoId: "bitcoin",
coinMinimalDenom: "usat",
contractAddress: OBTC_ORAICHAIN_EXT_DENOM,
bridgeTo: ["bitcoin"] as any,
coinDecimals: 14,
coinImageUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png"
},
{
coinDenom: "OCH",
coinGeckoId: "och",
Expand Down

0 comments on commit 8983d08

Please sign in to comment.