Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
johnqh committed Mar 26, 2024
1 parent 9b2fc12 commit 58bec50
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
4 changes: 3 additions & 1 deletion v4-client-js/examples/composite_example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { BECH32_PREFIX, OrderExecution, OrderSide, OrderTimeInForce, OrderType } from '../src';
import {
BECH32_PREFIX, OrderExecution, OrderSide, OrderTimeInForce, OrderType,
} from '../src';
import { CompositeClient } from '../src/clients/composite-client';
import {
Network,
Expand Down
4 changes: 3 additions & 1 deletion v4-client-js/examples/long_term_order_cancel_example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { BECH32_PREFIX, OrderExecution, OrderFlags, OrderSide, OrderTimeInForce, OrderType } from '../src';
import {
BECH32_PREFIX, OrderExecution, OrderFlags, OrderSide, OrderTimeInForce, OrderType,
} from '../src';
import { CompositeClient } from '../src/clients/composite-client';
import {
Network,
Expand Down
4 changes: 3 additions & 1 deletion v4-client-js/examples/short_term_order_cancel_example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { BECH32_PREFIX, OrderFlags, OrderSide, Order_TimeInForce } from '../src';
import {
BECH32_PREFIX, OrderFlags, OrderSide, Order_TimeInForce,
} from '../src';
import { CompositeClient } from '../src/clients/composite-client';
import {
Network,
Expand Down
4 changes: 3 additions & 1 deletion v4-client-js/examples/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { BECH32_PREFIX, OrderExecution, OrderSide, OrderTimeInForce, OrderType } from '../src';
import {
BECH32_PREFIX, OrderExecution, OrderSide, OrderTimeInForce, OrderType,
} from '../src';
import { CompositeClient } from '../src/clients/composite-client';
import {
Network,
Expand Down
2 changes: 1 addition & 1 deletion v4-client-js/examples/transfer_example_withdraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Long from 'long';
import { BECH32_PREFIX, IWithdraw } from '../src';
import { Network } from '../src/clients/constants';
import LocalWallet from '../src/clients/modules/local-wallet';
import { TransactionMsg, TransactionType } from '../src/clients/modules/post';
import { SubaccountInfo } from '../src/clients/subaccount';
import { ValidatorClient } from '../src/clients/validator-client';
import { DYDX_TEST_MNEMONIC } from './constants';
import { TransactionMsg, TransactionType } from '../src/clients/modules/post';

// TODO: Test after testnet deploy latest transfer contracts.

Expand Down
4 changes: 3 additions & 1 deletion v4-client-js/src/clients/helpers/chain-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Long from 'long';

import { Order_ConditionType, Order_Side, Order_TimeInForce } from '../modules/proto-includes';
import { OrderExecution, OrderFlags, OrderSide, OrderTimeInForce, OrderType } from '../types';
import {
OrderExecution, OrderFlags, OrderSide, OrderTimeInForce, OrderType,
} from '../types';

export function round(input: number, base: number): number {
return Math.floor(input / base) * base;
Expand Down
4 changes: 3 additions & 1 deletion v4-client-js/src/clients/modules/account.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Data, OrderSide, OrderStatus, OrderType, PositionStatus, TickerType } from '../types';
import {
Data, OrderSide, OrderStatus, OrderType, PositionStatus, TickerType,
} from '../types';
import RestClient from './rest';

/**
Expand Down

0 comments on commit 58bec50

Please sign in to comment.