diff --git a/packages/oraidex-common/package.json b/packages/oraidex-common/package.json index 437a049a..fc90eb9b 100644 --- a/packages/oraidex-common/package.json +++ b/packages/oraidex-common/package.json @@ -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", @@ -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" }, diff --git a/packages/oraidex-common/tests/helper.spec.ts b/packages/oraidex-common/tests/helper.spec.ts index e7e5351a..7415bd70 100644 --- a/packages/oraidex-common/tests/helper.spec.ts +++ b/packages/oraidex-common/tests/helper.spec.ts @@ -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, @@ -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); diff --git a/packages/universal-swap/package.json b/packages/universal-swap/package.json index 808ff785..1346e6b9 100644 --- a/packages/universal-swap/package.json +++ b/packages/universal-swap/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-universal-swap", - "version": "1.3.1", + "version": "1.3.2", "main": "build/index.js", "files": [ "build/" @@ -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" diff --git a/yarn.lock b/yarn.lock index 3357c4bb..75c8a882 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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/common@1.2.10": + 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/common@1.2.8": version "1.2.8" resolved "https://registry.yarnpkg.com/@oraichain/common/-/common-1.2.8.tgz#af1e5766d78a4c8b080b7b0544eaceecf852996e"