diff --git a/packages/oraidex-common/package.json b/packages/oraidex-common/package.json index 71741ead..88d46fda 100644 --- a/packages/oraidex-common/package.json +++ b/packages/oraidex-common/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-common", - "version": "1.1.30", + "version": "1.1.31", "main": "build/index.js", "files": [ "build/" diff --git a/packages/oraidex-common/src/constant.ts b/packages/oraidex-common/src/constant.ts index 61c36e19..b273600f 100644 --- a/packages/oraidex-common/src/constant.ts +++ b/packages/oraidex-common/src/constant.ts @@ -102,6 +102,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"; export const DOGE_BNB_ORAICHAIN_DENOM = "factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/DogeBNB"; diff --git a/packages/oraidex-common/src/network.ts b/packages/oraidex-common/src/network.ts index 54102257..d20b8c49 100644 --- a/packages/oraidex-common/src/network.ts +++ b/packages/oraidex-common/src/network.ts @@ -61,6 +61,7 @@ import { PEPE_BSC_CONTRACT, CAT_BSC_CONTRACT, HMSTR_ORAICHAIN_DENOM, + OBTC_ORAICHAIN_EXT_DENOM, DOGE_BNB_ORAICHAIN_DENOM, DOGE_BSC_CONTRACT } from "./constant"; @@ -159,7 +160,7 @@ export type BridgeAppCurrency = FeeCurrency & { readonly Icon?: CoinIcon; readonly IconLight?: CoinIcon; readonly bridgeNetworkIdentifier?: EvmChainId; - readonly coinDecimals: 6 | 8 | 9 | 18; + readonly coinDecimals: 6 | 9 | 14 | 18 | 8; readonly contractAddress?: string; readonly prefixToken?: string; }; @@ -515,7 +516,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", @@ -524,6 +525,14 @@ export const oraichainNetwork: CustomChainInfo = { coinDecimals: 6, coinImageUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png" }, + { + coinDenom: "BTC", + coinGeckoId: "bitcoin", + coinMinimalDenom: 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",