Skip to content

Commit

Permalink
Merge branch 'main' of github.com:oraichain/oraidex-sdk into feat/con…
Browse files Browse the repository at this point in the history
…stant-chain
  • Loading branch information
haunv3 committed Nov 27, 2023
2 parents 98d48ba + 6827045 commit 55d16be
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 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.0.38",
"version": "1.0.39",
"main": "build/index.js",
"files": [
"build/"
Expand Down
35 changes: 21 additions & 14 deletions packages/oraidex-common/src/pairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55d16be

Please sign in to comment.