Closed TomaszGol closed 1 month ago
The updates introduce new functionality for retrieving and handling margin data within the system. Key changes include the addition of new resolver classes (MarginDataResolver
and MarginResolver
) for GraphQL queries, the creation of utility functions for encoding and conversion tasks, and the implementation of provider classes (MarginDataProvider
and MarginProvider
) for fetching margin data from external sources. These enhancements increase the flexibility and efficiency of margin data management.
Files | Change Summaries |
---|---|
src/server-extension/resolvers/marginDataResolver.ts src/server-extension/resolvers/marginResolver.ts |
Added new resolver classes for handling margin data queries, introduced methods for validation and returning margin data. |
src/utils/marginDataProvider.ts src/utils/marginProvider.ts |
Implemented new provider classes to fetch margin data from external sources, including methods for API communication and error handling. |
src/utils/encodersUtils.ts |
Added utility functions for encoding and converting values, enhancing flexibility in data handling. |
src/server-extension/resolvers/index.ts src/utils/index.ts |
Updated exports to include new resolver and provider classes for margin data functionality. |
sequenceDiagram
participant Client
participant GraphQLServer
participant MarginDataResolver
participant MarginDataProvider
Client->>GraphQLServer: Query getMarginData(marketId, walletAddress)
GraphQLServer->>MarginDataResolver: Resolve getMarginData
MarginDataResolver->>MarginDataProvider: Fetch margin data (marketId, walletAddress)
MarginDataProvider-->>MarginDataResolver: Return margin data
MarginDataResolver-->>GraphQLServer: Return margin data
GraphQLServer-->>Client: Return margin data
In fields of data, margins roam free,
A rabbit hops with glee.
New resolvers and providers weave,
Encoding secrets they perceive.
With graphs and queries, they delight,
Bringing clarity to the night.
🐇✨🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Enhancements
API Integrations
HttpProvider
and handle blockchain interactions.