Skip to content

Commit

Permalink
format + comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ttl33 committed Jan 24, 2024
1 parent a20f3ba commit 8a1805d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion v4-client-js/examples/gov_add_new_market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,6 @@ function getSummary(
return `Add the x/prices, x/perpetuals and x/clob parameters needed for a ${ticker} perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after ${delayBlocks} blocks.`;
}

test();
test().catch((error) => {
console.error(error);
});
1 change: 1 addition & 0 deletions v4-client-js/src/clients/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const TYPE_URL_MSG_WITHDRAW_FROM_SUBACCOUNT = '/dydxprotocol.sending.MsgW
export const TYPE_URL_MSG_DEPOSIT_TO_SUBACCOUNT = '/dydxprotocol.sending.MsgDepositToSubaccount';

// ------------ Chain Constants ------------
// The following are same across different networks / deployments.
export const GOV_MODULE_ADDRESS = 'dydx10d07y265gmmuvt4z0w9aw880jnsr700jnmapky';
export const DELAYMSG_MODULE_ADDRESS = 'dydx1mkkvp26dngu6n8rmalaxyp3gwkjuzztq5zx6tr';

Expand Down
5 changes: 2 additions & 3 deletions v4-client-js/src/clients/lib/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import {
MsgWithdrawFromSubaccount,
MsgDepositToSubaccount,
} from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/sending/transfer';
import {
MsgCreateTransfer,
} from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/sending/tx';
import { MsgCreateTransfer } from '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/sending/tx';

import {
TYPE_URL_MSG_PLACE_ORDER,
TYPE_URL_MSG_CANCEL_ORDER,
Expand Down

0 comments on commit 8a1805d

Please sign in to comment.