-
Notifications
You must be signed in to change notification settings - Fork 73
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
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
package.json
Outdated
@@ -60,7 +60,6 @@ | |||
"@dydxprotocol/v4-localization": "^1.1.257", | |||
"@dydxprotocol/v4-proto": "^7.0.0-dev.0", | |||
"@emotion/is-prop-valid": "^1.3.0", | |||
"@ethersproject/providers": "^5.7.2", |
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.
was this on purpose?
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.
oop I thought tina removed it
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.
yeah it's not on main i think
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.
nice!
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).