Skip to content

Commit

Permalink
remove all clob
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtality committed Sep 24, 2024
1 parent 05f7ed7 commit d2912f9
Show file tree
Hide file tree
Showing 33 changed files with 214 additions and 37,671 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"test:scripts": "jest -i --verbose ./test-scripts/*.test.ts"
},
"dependencies": {
"@cosmjs/amino": "^0.32.2",
"@balancer-labs/sdk": "^1.1.5",
"@bancor/carbon-sdk": "^0.0.93-DEV",
"@cosmjs/amino": "^0.32.2",
"@cosmjs/cosmwasm-stargate": "^0.31.1",
"@cosmjs/proto-signing": "^0.31.1",
"@cosmjs/stargate": "^0.31.1",
"@cosmjs/tendermint-rpc": "^0.32.2",
Expand Down Expand Up @@ -87,7 +88,6 @@
"http-status-codes": "2.2.0",
"immutable": "^4.2.4",
"js-yaml": "^4.1.0",
"kujira.js": "0.9.6",
"level": "^8.0.0",
"lodash": "^4.17.21",
"lru-cache": "^7.14.1",
Expand All @@ -106,7 +106,6 @@
"web3": "^1.7.3",
"winston": "^3.3.3",
"winston-daily-rotate-file": "^4.5.5",
"xrpl": "^2.7.0",
"xsswap-sdk": "^1.0.1",
"yarn": "^1.22.17"
},
Expand Down
3 changes: 0 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { ConfigManagerV2 } from './services/config-manager-v2';
import { SwaggerManager } from './services/swagger-manager';
import { ConnectorsRoutes } from './connectors/connectors.routes';
import { AmmRoutes, AmmLiquidityRoutes } from './amm/amm.routes';
import { CLOBRoutes, PerpClobRoutes } from './clob/clob.routes';

import morgan from 'morgan';
import swaggerUi from 'swagger-ui-express';
Expand Down Expand Up @@ -49,8 +48,6 @@ gatewayApp.use('/connectors', ConnectorsRoutes.router);
gatewayApp.use('/amm', AmmRoutes.router);
gatewayApp.use('/amm/liquidity', AmmLiquidityRoutes.router);
gatewayApp.use('/wallet', WalletRoutes.router);
gatewayApp.use('/clob', CLOBRoutes.router);
gatewayApp.use('/clob/perp', PerpClobRoutes.router);

// a simple route to test that the server is running
gatewayApp.get('/', (_req: Request, res: Response) => {
Expand Down
10 changes: 4 additions & 6 deletions src/chains/ethereum/evm.controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
PollRequest,
} from './ethereum.requests';
import {
CLOBish,
Chain as Ethereumish,
UniswapLPish,
Uniswapish,
Expand Down Expand Up @@ -172,8 +171,8 @@ export class EVMController {
// decode logs
if (req.connector) {
try {
const connector: Uniswapish | UniswapLPish | CLOBish =
await getConnector<Uniswapish | UniswapLPish | CLOBish>(
const connector: Uniswapish | UniswapLPish =
await getConnector<Uniswapish | UniswapLPish>(
req.chain,
req.network,
req.connector
Expand Down Expand Up @@ -298,8 +297,8 @@ export class EVMController {
validateBalanceRequest(req);

let wallet: Wallet;
const connector: CLOBish | undefined = req.connector
? ((await getConnector(req.chain, req.network, req.connector)) as CLOBish)
const connector: Uniswapish | undefined = req.connector
? ((await getConnector(req.chain, req.network, req.connector)) as Uniswapish)
: undefined;
const balances: Record<string, string> = {};
let connectorBalances: { [key: string]: string } | undefined;
Expand Down Expand Up @@ -352,7 +351,6 @@ export class EVMController {
);
}
} else {
// CLOB connector or any other connector that has the concept of separation of account has to implement a balance function
connectorBalances = await connector.balances(req);
}

Expand Down
231 changes: 0 additions & 231 deletions src/chains/kujira/kujira.ts

This file was deleted.

Loading

0 comments on commit d2912f9

Please sign in to comment.