Skip to content

Commit

Permalink
(wip) update sol libs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtality committed Aug 21, 2024
1 parent ea8dc47 commit 7ff8704
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 543 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
"@cosmjs/proto-signing": "^0.31.1",
"@cosmjs/stargate": "^0.31.1",
"@cosmjs/tendermint-rpc": "^0.32.2",
"@blockworks-foundation/mango-v4": "^0.19.27",
"@coral-xyz/anchor": "^0.28.1-beta.2",
"@crocswap/sdk": "^2.4.5",
"@ethersproject/abstract-provider": "5.7.0",
"@ethersproject/address": "5.7.0",
Expand All @@ -52,7 +50,11 @@
"@pancakeswap/v3-sdk": "^3.7.0",
"@pangolindex/sdk": "^1.1.0",
"@perp/sdk-curie": "^1.16.0",
"@solana/spl-token": "^0.3.8",
"@orca-so/whirlpools-sdk": "^0.13.0",
"@orca-so/common-sdk": "^0.6.0",
"@coral-xyz/anchor": "^0.29.0",
"@solana/web3.js": "^1.92.3",
"@solana/spl-token": "0.4.1",
"@solana/spl-token-registry": "^0.2.4574",
"@sushiswap/sdk": "^5.0.0-canary.116",
"@taquito/rpc": "^17.0.0",
Expand Down Expand Up @@ -121,7 +123,6 @@
"@babel/runtime": "^7.0",
"@connectis/diff-test-coverage": "^1.5.1",
"@improbable-eng/grpc-web": "^0.13.0",
"@solana/web3.js": "^1.58.0",
"@types/app-root-path": "^1.2.4",
"@types/big.js": "^6.1.3",
"@types/bs58": "^4.0.1",
Expand Down
6 changes: 0 additions & 6 deletions src/connectors/orca/orca.lp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ export class Orca implements OrcaLPish {
}

async getPositions(): Promise<PositionInfo> {
if (!this.ready()) {
throw new InitializationError(
SERVICE_UNITIALIZED_ERROR_MESSAGE('Orca'),
SERVICE_UNITIALIZED_ERROR_CODE
);
}

return {
token0: "SOL",
Expand Down
2 changes: 0 additions & 2 deletions src/services/common-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ import { CurveTrade } from '../connectors/curve/curve';
import { SerializableExtendedPool as CosmosSerializableExtendedPool } from '../chains/osmosis/osmosis.types';
import { CarbonTrade } from '../connectors/carbon/carbonAMM';
import { BalancerTrade } from '../connectors/balancer/balancer';
import { Token as TokenMango } from '@blockworks-foundation/mango-v4';

// TODO Check the possibility to have clob/solana/serum equivalents here
// Check this link https://hummingbot.org/developers/gateway/building-gateway-connectors/#5-add-sdk-classes-to-uniswapish-interface
Expand All @@ -132,7 +131,6 @@ export type Tokenish =
| MMFToken
| VVSToken
| TokenXsswap
| TokenMango
| CosmosAsset;

export type TokenAmountish = MMFTokenAmount | VVSTokenAmount;
Expand Down
Loading

0 comments on commit 7ff8704

Please sign in to comment.