-
Notifications
You must be signed in to change notification settings - Fork 21
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
refactor: changes to dips to better support payment collection in indexer-agent #608
Conversation
pcarranzav
commented
Feb 7, 2025
•
edited
Loading
edited
- add last_allocation_id and last_payment_collected_at to the indexing_agreements table
- improve the dips store to allow getting all the fields from the db (not needed now, but leaving it anyways as it's a nicer interface if we need it later)
- move the dips database store to the dips crate
- rename the grpc services to IndexerDipsService (indexer side) and DipperService (gateway side)
- configure the tonic build to build both server and client for each service, and bump the npm package accordingly
Pull Request Test Coverage Report for Build 13208353292Details
💛 - Coveralls |
d8b88eb
to
cfb8358
Compare
8b139f7
to
845f6f3
Compare
845f6f3
to
ecd0185
Compare
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.
LGTM ✅
@@ -2,7 +2,7 @@ syntax = "proto3"; | |||
|
|||
package graphprotocol.indexer.dips; | |||
|
|||
service DipsService { | |||
service IndexerDipsService { |
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 would suggest naming it GatewayDipsService.
service IndexerDipsService { | |
service GatewayDipsService { |
I want to rename the "Dipper" to DIPs Gateway at some point in the future.
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 imagine you mean in DipperService, rather than here, right?
@@ -2,7 +2,6 @@ | |||
// SPDX-License-Identifier: Apache-2.0 | |||
|
|||
pub mod cost_model; | |||
pub mod dips; |
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.
You removed dips from the modules but didn't remove dips.rs
file. Is there any reason?
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 moved it to database.rs on the dips crate, so it shows in git as moved rather than removed
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.
You are right! Github tricked me
ecd0185
to
fa1c479
Compare
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.
This PR affects directly DIPs with no changes in the rest of the application. LGTM