-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat: abacus-ts raw data loading #1341
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
sed -i '' '/markets: { \[key: string\]: PerpetualMarketResponseObject; };/s/;$//' generated/api.ts | ||
sed -i '' 's/openPerpetualPositions: PerpetualPositionsMap;/openPerpetualPositions: { [market: string]: PerpetualPositionResponseObject };/' generated/api.ts | ||
sed -i '' 's/assetPositions: AssetPositionsMap;/assetPositions: { [symbol: string]: AssetPositionResponseObject };/' generated/api.ts | ||
sed -i '' 's/= <any>/=/' generated/api.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a note to top of file that it's generated
@@ -42,7 +42,7 @@ | |||
"test": "vitest run", | |||
"tsc": "tsc", | |||
"postinstall": "tar -xzC public -f tradingview/tradingview.tgz", | |||
"prepare": "husky", | |||
"prepare": "ts-patch install && typia patch && husky", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly don't know what this is for, the typia installer helper did this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
----------------------------------------
Typia Setup Wizard
----------------------------------------
Since TypeScript v5.3 update, "tsc" no more parses JSDoc comments.
Therefore, "typia" revives the JSDoc parsing feature by patching "tsc".
This is a temporary feature of "typia", and it would be removed when "ts-patch" being updated.
This is the message I got from installing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the grammar is great
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lmao I have no clue what that even means
New Library
Core Library Files
loadable.ts
: Defines a type system for representing loading states that is compatible with react query.createStoreEffect.ts
: Creates Redux store effects with cleanup handling. Like useEffect but with no react.resourceCacheManager.ts
: A generic resource management system with reference counting. Give it a constructor and destructor for a resource and it manages a cache of them.signal.ts
: Provides a simple event emitting system for cross-component communication.Websocket Library Files
reconnectingWebsocket.ts
: Implements a WebSocket connection with automatic reconnection and exponential backoff.indexerWebsocket.ts
: Manages channel subscriptions and message handling for the indexer WebSocket connection.indexerWebsocketManager.ts
: Provides resource management for Indexer WebSocket connections with reference counting.websocketDerivedValue.ts
: Provides a wrapper class for managing derived state from WebSocket data with change notifications.Websocket Files
parentSubaccount.ts
: Manages real-time state of current wallet parent/child subaccount data through WebSocket connection.markets.ts
: Handles market data through websocket.orderbook.ts
: Maintains current market orderbook state through websocket.REST Library Files
indexerQueryStoreEffect.ts
: Provides a framework for creating store effects tied to indexer REST API queries.indexerClientManager.ts
: Manages indexer client instances with resource sharing and cleanup.REST Files
fills.ts
: Manages REST API queries for trade fill data.orders.ts
: Handles REST API queries for order data.transfers.ts
: Manages REST API queries for transfer data.blockTradingRewards.ts
: Handles REST API queries for block trading rewards.Root Files
accountRefreshSignal.ts
: Manages signals for account data refresh events. This ensures that any time the socket gets reset we fetch the latest REST data too (if it's stale).