-
Notifications
You must be signed in to change notification settings - Fork 3
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: Update frontend to handle new registry types #566
Conversation
31d9a9b
to
5d04394
Compare
5d04394
to
655e734
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! Just two questions and a small comment.
HEIGHT: indexerConfig.height | ||
}; | ||
} else if (indexerConfig.startBlock === "startBlockLatest") { | ||
startBlock = "LATEST"; |
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.
How come startBlockHeight sets startBlock to an object whereas latest and continue set it to a string? Is this a quirk of the way the new register function expects it?
<Form.Control | ||
value={contractFilter} | ||
onChange={handleSetContractFilter} | ||
value={startBlock === START_BLOCK.CONTINUE ? indexerDetails.rule.affected_account_id : contractFilter} |
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.
Is it possible to change the filter on LATEST, then check CONTINUE and it publishes new filter IDs anyway?
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.
Nope, when we change to CONTINUE
, the filter gets reset back to the original state :)
This PR updates the frontend to work with the updated registry contract types/methods. There are two parts to this change:
rule
andstartBlock
, and writing these types back during registrationStartBlock::Continue
option, which allows developers to resume the existing block stream.I've attached images of the updated UI for reference. Note that updating the contract filter is disabled with the new "Continue" option.