Skip to content

Commit b351725

Browse files
updated types imports, fixed workflow config
1 parent 405f163 commit b351725

File tree

10 files changed

+19
-101
lines changed

10 files changed

+19
-101
lines changed

.github/workflows/publish-sdk.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ jobs:
3737
scope: "@gmx-io"
3838
auth-token: ${{ secrets.NPM_TOKEN }}
3939

40+
- name: Import GPG Key
41+
run: |
42+
echo "${{ secrets.GPG_KEY }}" | gpg --batch --yes --import
43+
git config --global gpg.program gpg
44+
git config --global commit.gpgsign true
45+
git config user.name "GMX Release Bot"
46+
git config user.email "dev-bot@gmx.io"
47+
env:
48+
GPG_KEY: ${{ secrets.GPG_KEY }}
49+
4050
- name: Install dependencies
4151
working-directory: ./sdk
4252
run: yarn install --immutable
@@ -64,10 +74,8 @@ jobs:
6474
- name: Commit version bump
6575
working-directory: ./sdk
6676
run: |
67-
git config user.name "GMX Release Bot"
68-
git config user.email "release-bot@gmx.io"
6977
git add package.json
70-
git commit -m "Bump SDK version to $(jq -r .version package.json)"
78+
git commit -S -m "Bump SDK version to $(jq -r .version package.json)"
7179
7280
- run: npm publish --access public
7381
working-directory: ./sdk
@@ -79,5 +87,4 @@ jobs:
7987
if [ "${{ github.event.inputs.version_type }}" == "custom" ]; then
8088
exit 0
8189
fi
82-
8390
git push origin HEAD:${{ github.ref_name }}

src/components/Exchange/ChartTokenSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { BigNumberish } from "ethers";
88
import { USD_DECIMALS } from "config/factors";
99
import { getTokens, getWhitelistedV1Tokens } from "sdk/configs/tokens";
1010
import { getUsd } from "domain/tokens";
11-
import { InfoTokens, Token } from "domain/tokens/types";
11+
import { InfoTokens, Token } from "sdk/types/tokens";
1212
import { bigMath } from "lib/bigmath";
1313
import { LONG, SHORT, SWAP, USDG_DECIMALS } from "lib/legacy";
1414
import { expandDecimals, formatAmount } from "lib/numbers";

src/components/Synthetics/TradeHistory/TradeHistoryRow/utils/swap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { OrderType } from "domain/synthetics/orders";
66
import type { TokenData } from "domain/synthetics/tokens";
77
import { adaptToV1TokenInfo, getTokensRatioByAmounts } from "domain/synthetics/tokens/utils";
88
import { SwapTradeAction, TradeActionType } from "domain/synthetics/tradeHistory/types";
9-
import type { Token, TokenInfo } from "domain/tokens/types";
9+
import type { Token, TokenInfo } from "sdk/types/tokens";
1010
import { getExchangeRateDisplay } from "lib/legacy";
1111
import { formatTokenAmount } from "lib/numbers";
1212

src/domain/synthetics/claimHistory/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { MarketInfo } from "../markets";
2-
import { Token } from "domain/tokens/types";
2+
import { Token } from "sdk/types/tokens";
33

44
export enum ClaimType {
55
ClaimPriceImpact = "ClaimPriceImpact",

src/domain/synthetics/tokens/useTokensFavorites.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
TOKEN_FAVORITE_PREFERENCE_SETTINGS_KEY,
1212
} from "config/localStorage";
1313

14-
import type { TokenCategory } from "domain/tokens/types";
14+
import type { TokenCategory } from "sdk/types/tokens";
1515
import { useChainId } from "lib/chains";
1616
import { useLocalStorageByChainId } from "lib/localStorage";
1717
import { EMPTY_ARRAY, EMPTY_OBJECT } from "lib/objects";

src/domain/tokens/approveTokens.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Link } from "react-router-dom";
55
import { getChainName, getExplorerUrl } from "config/chains";
66
import { getNativeToken } from "sdk/configs/tokens";
77
import { helperToast } from "lib/helperToast";
8-
import { InfoTokens, TokenInfo } from "./types";
8+
import { InfoTokens, TokenInfo } from "sdk/types/tokens";
99

1010
import ExternalLink from "components/ExternalLink/ExternalLink";
1111
import { ToastifyDebug } from "components/ToastifyDebug/ToastifyDebug";

src/domain/tokens/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./utils";
2-
export * from "./types";
2+
export * from "sdk/types/tokens";
33
export * from "./useInfoTokens";
44
export * from "./approveTokens";

src/domain/tokens/types.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

src/domain/tokens/useInfoTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { USD_DECIMALS } from "config/factors";
1212
import { expandDecimals } from "lib/numbers";
1313
import { PRICES_UPDATE_INTERVAL } from "lib/timeConstants";
1414

15-
import { InfoTokens, Token, TokenInfo } from "./types";
15+
import { InfoTokens, Token, TokenInfo } from "sdk/types/tokens";
1616
import { getSpread } from "./utils";
1717

1818
import VaultReader from "sdk/abis/VaultReader.json";

src/domain/tokens/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from "lib/legacy";
1414
import { USD_DECIMALS } from "config/factors";
1515
import { expandDecimals, PRECISION } from "lib/numbers";
16-
import { InfoTokens, Token, TokenInfo, TokenPrices } from "./types";
16+
import { InfoTokens, Token, TokenInfo, TokenPrices } from "sdk/types/tokens";
1717
import { convertToTokenAmount } from "domain/synthetics/tokens/utils";
1818

1919
const { ZeroAddress } = ethers;

0 commit comments

Comments
 (0)