diff --git a/scripts/build.sh b/scripts/build.sh index 3e1f9cb3..9289b06f 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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 diff --git a/src/sdk/msg/perp.ts b/src/sdk/msg/perp.ts index 80d4dfda..f4a410ba 100644 --- a/src/sdk/msg/perp.ts +++ b/src/sdk/msg/perp.ts @@ -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" diff --git a/src/sdk/msg/spot.ts b/src/sdk/msg/spot.ts index da51cdf6..990d13ea 100644 --- a/src/sdk/msg/spot.ts +++ b/src/sdk/msg/spot.ts @@ -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" diff --git a/src/sdk/query/epochs.ts b/src/sdk/query/epochs.ts index 8af9b342..8d88aac9 100644 --- a/src/sdk/query/epochs.ts +++ b/src/sdk/query/epochs.ts @@ -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<{ diff --git a/src/sdk/query/inflation.ts b/src/sdk/query/inflation.ts index 449b4a09..b7816c09 100644 --- a/src/sdk/query/inflation.ts +++ b/src/sdk/query/inflation.ts @@ -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<{ diff --git a/src/sdk/query/oracle.ts b/src/sdk/query/oracle.ts index 73b6a22c..c01012e2 100644 --- a/src/sdk/query/oracle.ts +++ b/src/sdk/query/oracle.ts @@ -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 { diff --git a/src/sdk/query/perp.ts b/src/sdk/query/perp.ts index 81fe91da..0ac5f36e 100644 --- a/src/sdk/query/perp.ts +++ b/src/sdk/query/perp.ts @@ -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 { diff --git a/src/sdk/query/spot.ts b/src/sdk/query/spot.ts index c233f008..a040f58b 100644 --- a/src/sdk/query/spot.ts +++ b/src/sdk/query/spot.ts @@ -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, @@ -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) => { diff --git a/src/sdk/query/sudo.ts b/src/sdk/query/sudo.ts index 6fbd2481..84cf2571 100644 --- a/src/sdk/query/sudo.ts +++ b/src/sdk/query/sudo.ts @@ -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<{