Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: ../.. instead of src #296

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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