Closed dwasse closed 2 weeks ago
The changes introduce a new bulk quote upsertion feature in the RFQ system. An enhanced API now allows relayers to submit multiple quotes in a single request. Adopting this new functionality, the RFQ service has expanded its client, handler, and database interfaces, updated endpoint documentation, altered setup configurations, and introduced new request models.
Files | Change Summary |
---|---|
services/rfq/api/client/client.go |
Added PutBulkQuotes method to AuthenticatedClient and clientImpl . |
.../suite_test.go |
Moved variables and assignments from SetupSuite to SetupTest . |
.../api_db.go |
Added UpsertQuotes to APIDBWriter . |
.../store.go |
Added UpsertQuotes to Store struct. |
.../request.go |
Added new struct PutBulkQuotesRequest . |
.../handler.go |
Refactored ModifyQuote and added ModifyBulkQuotes function. |
.../server.go |
Added new route and handling for /bulk_quotes . |
.../docs/docs.go |
Documented new /bulk_quotes endpoint and model. |
.../swagger.json , .../swagger.yaml |
Added /bulk_quotes endpoint and request model. |
.../quoter.go |
Added bulk quotes submission and configuration flag SubmitSingleQuotes . |
.../relconfig/config.go |
Added SubmitSingleQuotes to Config struct. |
docs/bridge/docs/rfq/API/upsert-quotes.api.mdx |
Documented new bulk quotes upsertion API. |
sequenceDiagram
participant Relayer
participant API
participant Handler
participant DB
Relayer->>API: PUT /bulk_quotes
API->>Handler: HandleBulkQuotes
Handler->>DB: UpsertQuotes
DB-->>Handler: Success/Error
Handler-->>API: Status Response
API-->>Relayer: HTTP Response
In the realm of quotes so vast,
Bulk submissions arrive at last,
A single stroke, multiple prints,
Setting prices without a hint.
Database now swiftly adapts,
Relayers smile, applause perhaps.
Bulk quotes, a job now simplified,
Efficiency has amplified.
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 25.90211%. Comparing base (
9916a14
) to head (c2c7b6f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
c2c7b6f
|
Status: | ✅ Deploy successful! |
Preview URL: | https://8b09a3a8.sanguine-fe.pages.dev |
Branch Preview URL: | https://feat-bulk-quote.sanguine-fe.pages.dev |
Changes will increase total bundle size by 13.18MB :arrow_up:
Bundle name | Size | Change |
---|---|---|
docs-bridge-client-array-push | 7.88MB | 7.88MB :arrow_up: |
docs-bridge-server-cjs | 14.75MB | 14.75MB :arrow_up: |
sdk-router-@synapsecns/sdk-router-esm | (removed) | 252.08kB :arrow_down: |
sdk-router-@synapsecns/sdk-router-cjs | (removed) | 116.91kB :arrow_down: |
synapse-interface-client-array-push | (removed) | 7.44MB :arrow_down: |
synapse-interface-server-cjs | (removed) | 1.37MB :arrow_down: |
synapse-interface-edge-server-array-push | (removed) | 83 bytes :arrow_down: |
widget-esm-cjs | (removed) | 272.4kB :arrow_down: |
Summary by CodeRabbit
/bulk_quotes
for upserting bulk quotes from a relayer.9fbfc1672451c2517c27080bac894c19072d1a86: docs preview link f026953e071b02bc4a5abf66dc5f7f761c7d1775: docs preview link