Skip to content

Commit ee05b7b

Browse files
committed
Update @oraichain/common to version 1.2.11 and refactor imports in common.ts
1 parent 6d189ef commit ee05b7b

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

packages/oraidex-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@oraichain/oraidex-contracts-sdk": "latest",
3030
"@injectivelabs/sdk-ts": "1.12.1",
3131
"tronweb": "6.0.0-beta.4",
32-
"@oraichain/common": "1.2.10",
32+
"@oraichain/common": "1.2.11",
3333
"@ton/core": "0.56.3",
3434
"@ton/crypto": "3.3.0"
3535
},

packages/oraidex-common/src/common.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BridgeAppCurrency, ChainInfos, CoinType, MULTICALL_CONTRACT, OraiCommon, TokenItems } from "@oraichain/common";
1+
import { ChainInfos, MULTICALL_CONTRACT, OraiCommon, TokenItems } from "@oraichain/common";
22
import { flatten } from "lodash";
33
import { chainIcons, mapListWithIcon, tokensIcon } from "./config";
44
import {
@@ -16,10 +16,9 @@ import {
1616
solChainId,
1717
STAKING_CONTRACT
1818
} from "./constant";
19-
import { NetworkConfig } from "./network";
2019
import { CustomChainInfo } from "./format-types";
2120
import { ChainIdEnum } from "./interface";
22-
import { FeeCurrency } from "@keplr-wallet/types";
21+
import { NetworkConfig } from "./network";
2322

2423
export class OraidexCommon {
2524
static instance: OraidexCommon;
@@ -42,6 +41,10 @@ export class OraidexCommon {
4241
return this.tokenConfig.otherChainTokens;
4342
}
4443

44+
get oraichainEvmTokens() {
45+
return this.tokenConfig.oraichainTokens.filter((token: any) => token.evmExtendInfo);
46+
}
47+
4548
get chainInfosCommon() {
4649
return this.chainConfig;
4750
}

yarn.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3757,6 +3757,19 @@
37573757
ethers "^5.5.1"
37583758
lodash "^4.17.21"
37593759

3760+
"@oraichain/[email protected]":
3761+
version "1.2.11"
3762+
resolved "https://registry.yarnpkg.com/@oraichain/common/-/common-1.2.11.tgz#827186a581ef621989b002a72d80694588594bb6"
3763+
integrity sha512-qG7d4/1xCFbi1pSn1Iytzvd9BoXCQL0oVhYVT+oj286uPuz+MohPT0BTk6JSd+b/55AK5G6sFiFyRLdMXr8k7g==
3764+
dependencies:
3765+
"@keplr-wallet/types" "0.12.141"
3766+
axios "0.21.4"
3767+
axios-extensions "3.1.6"
3768+
bech32 "^1.1.4"
3769+
cosmjs-types "^0.9.0"
3770+
ethers "^5.5.1"
3771+
lodash "^4.17.21"
3772+
37603773
"@oraichain/[email protected]":
37613774
version "1.2.8"
37623775
resolved "https://registry.yarnpkg.com/@oraichain/common/-/common-1.2.8.tgz#af1e5766d78a4c8b080b7b0544eaceecf852996e"

0 commit comments

Comments
 (0)