Skip to content

Commit

Permalink
Merge pull request #391 from oraidex/feat/tag-defai
Browse files Browse the repository at this point in the history
update tag info token
  • Loading branch information
haunv3 authored Feb 6, 2025
2 parents 79ef5e7 + 7e494f3 commit 6d189ef
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/oraidex-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-common",
"version": "2.0.10",
"version": "2.0.11",
"main": "./build/index.js",
"module": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down Expand Up @@ -29,7 +29,7 @@
"@oraichain/oraidex-contracts-sdk": "latest",
"@injectivelabs/sdk-ts": "1.12.1",
"tronweb": "6.0.0-beta.4",
"@oraichain/common": "1.2.8",
"@oraichain/common": "1.2.10",
"@ton/core": "0.56.3",
"@ton/crypto": "3.3.0"
},
Expand Down
11 changes: 9 additions & 2 deletions packages/oraidex-common/tests/helper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ import path from "path";
import { fileURLToPath } from "url";
import { beforeAll, describe, expect, it } from "vitest";
import { OraidexCommon } from "../src/common";
import { AIRI_CONTRACT, AVERAGE_COSMOS_GAS_PRICE, BTC_CONTRACT, MILKYBSC_ORAICHAIN_DENOM, ORAI } from "../src/constant";
import {
AIRI_CONTRACT,
AVERAGE_COSMOS_GAS_PRICE,
BTC_CONTRACT,
MILKYBSC_ORAICHAIN_DENOM,
OCH_CONTRACT,
ORAI
} from "../src/constant";
import {
calculateMinReceive,
calculateTimeoutTimestamp,
Expand Down Expand Up @@ -706,7 +713,7 @@ describe("should helper functions in helper run exactly", () => {
["", null],
["orai333", null],
["orai", { native_token: { denom: "orai" } }],
[BTC_CONTRACT, { token: { contract_addr: BTC_CONTRACT } }]
[OCH_CONTRACT, { token: { contract_addr: OCH_CONTRACT } }]
])("test-generateConvertErc20Cw20Message-should-return-correct-message", (addressOrDenom, expectedMessage) => {
const result = parseAssetInfoFromContractAddrOrDenom(addressOrDenom, oraidexCommon.cosmosTokens);
expect(result).toEqual(expectedMessage);
Expand Down
4 changes: 2 additions & 2 deletions packages/universal-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-universal-swap",
"version": "1.3.1",
"version": "1.3.2",
"main": "build/index.js",
"files": [
"build/"
Expand All @@ -16,7 +16,7 @@
"bech32": "1.1.4",
"ethers": "^5.0.15",
"tronweb": "5.3.2",
"@oraichain/common": "1.2.8",
"@oraichain/common": "1.2.10",
"ts-protoc-gen": "^0.15.0",
"@oraichain/osor-api-contracts-sdk": "^1.0.2",
"cosmjs-types": "^0.9.0"
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3744,6 +3744,19 @@
resolved "https://registry.yarnpkg.com/@oraichain/common-contracts-sdk/-/common-contracts-sdk-1.0.31.tgz#595f93b168438d69d64896909b37855c9afc92fb"
integrity sha512-s8H20RXy5gCnu3DnM7L5ClQyj2mdQpbSBpZrXCpIAX9qY0LKsDdZG3sYaDQ8+VN333jz9Pp/qGWdFSYD+6PBsg==

"@oraichain/[email protected]":
version "1.2.10"
resolved "https://registry.yarnpkg.com/@oraichain/common/-/common-1.2.10.tgz#88e836198a46f1dd695ea4fc6fc0f86ecf5548ad"
integrity sha512-fV3jYVVA/FSJ+CXA8xq4TWHKkz2DYNb1lujX74keUZWhTVs49l65uAzPuIA02NGS0tVhdlXMqS8ViJPRp0lnzQ==
dependencies:
"@keplr-wallet/types" "0.12.141"
axios "0.21.4"
axios-extensions "3.1.6"
bech32 "^1.1.4"
cosmjs-types "^0.9.0"
ethers "^5.5.1"
lodash "^4.17.21"

"@oraichain/[email protected]":
version "1.2.8"
resolved "https://registry.yarnpkg.com/@oraichain/common/-/common-1.2.8.tgz#af1e5766d78a4c8b080b7b0544eaceecf852996e"
Expand Down

0 comments on commit 6d189ef

Please sign in to comment.