Skip to content

Commit

Permalink
Merge pull request #361 from oraidex/feat/support-doge
Browse files Browse the repository at this point in the history
chore: add doge coin
  • Loading branch information
trung2891 authored Nov 13, 2024
2 parents c48d0b8 + 356c604 commit 5f3fadb
Show file tree
Hide file tree
Showing 3 changed files with 36 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.29",
"version": "1.1.30",
"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 @@ -55,6 +55,7 @@ export const KWT_BSC_CONTRACT = "0x257a8d1E03D17B8535a182301f15290F11674b53";
export const MILKY_BSC_CONTRACT = "0x6fE3d0F096FC932A905accd1EB1783F6e4cEc717";
export const PEPE_BSC_CONTRACT = "0x25d887Ce7a35172C62FeBFD67a1856F20FaEbB00";
export const CAT_BSC_CONTRACT = "0x6894CDe390a3f51155ea41Ed24a33A4827d3063D";
export const DOGE_BSC_CONTRACT = "0xbA2aE424d960c26247Dd6c32edC70B295c744C43";
// tron contracts
export const USDT_TRON_CONTRACT = "0xa614f803B6FD780986A42c78Ec9c7f77e6DeD13C";
export const WRAP_TRON_TRX_CONTRACT = "0x891cdb91d149f23B1a45D9c5Ca78a88d0cB44C18";
Expand Down Expand Up @@ -101,6 +102,8 @@ 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 DOGE_BNB_ORAICHAIN_DENOM =
"factory/orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9/DogeBNB";

// config for oraichain token
export const AIRI_CONTRACT = "orai10ldgzued6zjp0mkqwsv2mux3ml50l97c74x8sg";
Expand Down
35 changes: 32 additions & 3 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ import {
PEPE_ETH_CONTRACT,
PEPE_BSC_CONTRACT,
CAT_BSC_CONTRACT,
HMSTR_ORAICHAIN_DENOM
HMSTR_ORAICHAIN_DENOM,
DOGE_BNB_ORAICHAIN_DENOM,
DOGE_BSC_CONTRACT
} from "./constant";
import { listOsmosisToken } from "./alpha-network";
import { celestiaNetwork } from "./celestia-network";
Expand Down Expand Up @@ -125,7 +127,8 @@ export type CoinGeckoId =
| "the-open-network"
| "pepe"
| "simon-s-cat"
| "hamster-kombat";
| "hamster-kombat"
| "dogecoin";

export type NetworkType = "cosmos" | "evm";
export interface NetworkConfig {
Expand Down Expand Up @@ -156,7 +159,7 @@ export type BridgeAppCurrency = FeeCurrency & {
readonly Icon?: CoinIcon;
readonly IconLight?: CoinIcon;
readonly bridgeNetworkIdentifier?: EvmChainId;
readonly coinDecimals: 6 | 9 | 18;
readonly coinDecimals: 6 | 8 | 9 | 18;
readonly contractAddress?: string;
readonly prefixToken?: string;
};
Expand Down Expand Up @@ -337,6 +340,14 @@ export const oraichainNetwork: CustomChainInfo = {
coinDecimals: 6,
coinImageUrl: "https://assets.coingecko.com/coins/images/29850/standard/pepe-token.jpeg?1696528776"
},
{
coinDenom: "DOGE",
coinMinimalDenom: DOGE_BNB_ORAICHAIN_DENOM,
coinDecimals: 8,
bridgeTo: ["0x38"],
coinGeckoId: "dogecoin",
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
},
// {
// coinDenom: "CAT",
// coinMinimalDenom: CAT_ORAICHAIN_DENOM,
Expand Down Expand Up @@ -691,6 +702,15 @@ export const chainInfos: CustomChainInfo[] = [
coinGeckoId: "pepe",
prefixToken: ORAI_BRIDGE_EVM_ETH_DENOM_PREFIX,
coinImageUrl: "https://assets.coingecko.com/coins/images/29850/standard/pepe-token.jpeg?1696528776"
},
{
coinDenom: "DOGE",
coinMinimalDenom: ORAI_BRIDGE_EVM_DENOM_PREFIX + DOGE_BSC_CONTRACT,
bridgeNetworkIdentifier: "0x38",
coinDecimals: 8,
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinGeckoId: "dogecoin",
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
}
// {
// coinDenom: "CAT",
Expand Down Expand Up @@ -1080,6 +1100,15 @@ export const chainInfos: CustomChainInfo[] = [
bridgeTo: ["Oraichain"],
prefixToken: ORAI_BRIDGE_EVM_DENOM_PREFIX,
coinImageUrl: "https://assets.coingecko.com/coins/images/29850/standard/pepe-token.jpeg?1696528776"
},
{
coinDenom: "DOGE",
coinMinimalDenom: "bep20_doge",
contractAddress: DOGE_BSC_CONTRACT,
coinDecimals: 8,
coinGeckoId: "dogecoin",
bridgeTo: ["Oraichain"],
coinImageUrl: "https://assets.coingecko.com/coins/images/5/standard/dogecoin.png?1696501409"
}
// {
// coinDenom: "CAT",
Expand Down

0 comments on commit 5f3fadb

Please sign in to comment.