From b75a2d805bd9608534db5d743c5a7cf7fef07593 Mon Sep 17 00:00:00 2001 From: trungbach Date: Mon, 27 Nov 2023 15:18:27 +0700 Subject: [PATCH 1/2] update: correct order asset info in list pair mapping --- packages/oraidex-common/src/pairs.ts | 35 +++++++++++++++++----------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/packages/oraidex-common/src/pairs.ts b/packages/oraidex-common/src/pairs.ts index 581c8979..0df49364 100644 --- a/packages/oraidex-common/src/pairs.ts +++ b/packages/oraidex-common/src/pairs.ts @@ -19,59 +19,66 @@ import { oraichainTokens } from "./token"; export type PairMapping = { asset_infos: [AssetInfo, AssetInfo]; + symbols: [string, string]; factoryV1?: boolean; }; export const PAIRS: PairMapping[] = [ { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: AIRI_CONTRACT } }], + asset_infos: [{ token: { contract_addr: AIRI_CONTRACT } }, { native_token: { denom: ORAI } }], + symbols: ["AIRI", "ORAI"], factoryV1: true }, { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: ORAIX_CONTRACT } }], + asset_infos: [{ token: { contract_addr: ORAIX_CONTRACT } }, { native_token: { denom: ORAI } }], + symbols: ["ORAIX", "ORAI"], factoryV1: true }, { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: SCORAI_CONTRACT } }] + asset_infos: [{ token: { contract_addr: SCORAI_CONTRACT } }, { native_token: { denom: ORAI } }], + symbols: ["scORAI", "ORAI"] }, { asset_infos: [{ native_token: { denom: ORAI } }, { native_token: { denom: ATOM_ORAICHAIN_DENOM } }], + symbols: ["ORAI", "ATOM"], factoryV1: true }, { asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: USDT_CONTRACT } }], + symbols: ["ORAI", "USDT"], factoryV1: true }, { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: KWT_CONTRACT } }], + asset_infos: [{ token: { contract_addr: KWT_CONTRACT } }, { native_token: { denom: ORAI } }], + symbols: ["KWT", "ORAI"], factoryV1: true }, { asset_infos: [{ native_token: { denom: ORAI } }, { native_token: { denom: OSMOSIS_ORAICHAIN_DENOM } }], + symbols: ["ORAI", "OSMO"], factoryV1: true }, { asset_infos: [{ token: { contract_addr: MILKY_CONTRACT } }, { token: { contract_addr: USDT_CONTRACT } }], + symbols: ["MILKY", "USDT"], factoryV1: true }, { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: USDC_CONTRACT } }] + asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: USDC_CONTRACT } }], + symbols: ["ORAI", "USDC"] }, { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: TRX_CONTRACT } }] + asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: TRX_CONTRACT } }], + symbols: ["ORAI", "WTRX"] }, { - asset_infos: [{ native_token: { denom: ATOM_ORAICHAIN_DENOM } }, { token: { contract_addr: SCATOM_CONTRACT } }] + asset_infos: [{ token: { contract_addr: SCATOM_CONTRACT } }, { native_token: { denom: ATOM_ORAICHAIN_DENOM } }], + symbols: ["scATOM", "ATOM"] }, { - asset_infos: [{ native_token: { denom: ORAI } }, { token: { contract_addr: INJECTIVE_CONTRACT } }] + asset_infos: [{ token: { contract_addr: INJECTIVE_CONTRACT } }, { native_token: { denom: ORAI } }], + symbols: ["INJ", "ORAI"] } - // { - // asset_infos: [ - // { native_token: { denom: ORAI } }, // or your ibc native / cw20 token pair - // { token: { contract_addr: 'orai17l2zk3arrx0a0fyuneyx8raln68622a2lrsz8ph75u7gw9tgz3esayqryf' } } - // ] - // } ]; // token identifier can be denom or contract addr From 78eea238a33c48ee81de26a647f3e168e9e5f860 Mon Sep 17 00:00:00 2001 From: trungbach Date: Mon, 27 Nov 2023 15:19:06 +0700 Subject: [PATCH 2/2] chore: pumb oraidex-common --- packages/oraidex-common/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oraidex-common/package.json b/packages/oraidex-common/package.json index 9bbad640..ab07f5a4 100644 --- a/packages/oraidex-common/package.json +++ b/packages/oraidex-common/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-common", - "version": "1.0.38", + "version": "1.0.39", "main": "build/index.js", "files": [ "build/"