Skip to content

Commit

Permalink
refactor: ../.. instead of src (#296)
Browse files Browse the repository at this point in the history
refactor: ../.. instead of src (#296)
  • Loading branch information
cgilbe27 authored Jan 23, 2024
2 parents 21ca732 + 462bbe8 commit 7cfdf7a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ dist_folder="./dist"
# Go through all ts and js files in the dist folder
find "$dist_folder" -type f \( -name "*.ts" -o -name "*.js" \) -exec sed -i 's|require("@/|require("src/|g' {} +


# yarn docgen
4 changes: 2 additions & 2 deletions src/sdk/msg/perp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
MsgMarketOrder,
MsgRemoveMargin,
MsgPartialClose,
} from "@/protojs/nibiru/perp/v2/tx"
import { Direction } from "@/protojs/nibiru/perp/v2/state"
} from "../../protojs/nibiru/perp/v2/tx"
import { Direction } from "../../protojs/nibiru/perp/v2/state"
import { toSdkDec, toSdkInt } from "../chain"
import { TxMessage } from "./encode-types"

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/msg/spot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
MsgExitPool,
MsgJoinPool,
MsgSwapAssets,
} from "@/protojs/nibiru/spot/v1/tx"
} from "../../protojs/nibiru/spot/v1/tx"
import { TxMessage } from "./encode-types"
import { toSdkDec } from "../chain"

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/query/epochs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
QueryCurrentEpochResponse,
QueryEpochsInfoRequest,
QueryEpochsInfoResponse,
} from "@/protojs/nibiru/epochs/v1/query"
} from "../../protojs/nibiru/epochs/v1/query"

export interface EpochsExtension {
readonly epochs: Readonly<{
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/query/inflation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
QueryPeriodResponse,
QuerySkippedEpochsRequest,
QuerySkippedEpochsResponse,
} from "@/protojs/nibiru/inflation/v1/query"
} from "../../protojs/nibiru/inflation/v1/query"

export interface InflationExtension {
readonly inflation: Readonly<{
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/query/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import {
QueryParamsResponse,
QueryVoteTargetsRequest,
QueryVoteTargetsResponse,
} from "@/protojs/nibiru/oracle/v1/query"
} from "../../protojs/nibiru/oracle/v1/query"
import {
AggregateExchangeRatePrevote,
AggregateExchangeRateVote,
} from "@/protojs/nibiru/oracle/v1/oracle"
} from "../../protojs/nibiru/oracle/v1/oracle"
import { fromSdkDec } from "../chain"

export interface OracleExtension {
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/query/perp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
QueryPositionResponse,
QueryPositionsRequest,
QueryPositionsResponse,
} from "@/protojs/nibiru/perp/v2/query"
} from "../../protojs/nibiru/perp/v2/query"
import { fromSdkDec } from "../chain"

function transformPosition(resp: QueryPositionResponse): QueryPositionResponse {
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/query/spot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createProtobufRpcClient, QueryClient } from "@cosmjs/stargate"
import { Coin } from "@cosmjs/proto-signing"
import { Pool, PoolParams } from "@/protojs/nibiru/spot/v1/pool"
import { Pool, PoolParams } from "../../protojs/nibiru/spot/v1/pool"
import {
QueryClientImpl as SpotQueryClientImpl,
QueryExitExactAmountInRequest,
Expand Down Expand Up @@ -35,7 +35,7 @@ import {
QueryTotalPoolLiquidityResponse,
QueryTotalSharesRequest,
QueryTotalSharesResponse,
} from "@/protojs/nibiru/spot/v1/query"
} from "../../protojs/nibiru/spot/v1/query"
import { fromSdkDec } from "../chain"

export const transformPoolParams = (pp?: PoolParams) => {
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/query/sudo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
QueryClientImpl,
QuerySudoersRequest,
QuerySudoersResponse,
} from "@/protojs/nibiru/sudo/v1/query"
} from "../../protojs/nibiru/sudo/v1/query"

export interface SudoExtension {
readonly sudo: Readonly<{
Expand Down

1 comment on commit 7cfdf7a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 96%
96.81% (6018/6216) 98.26% (679/691) 84.93% (186/219)

Please sign in to comment.