-
Notifications
You must be signed in to change notification settings - Fork 23
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
da interface: add submit options #27
Conversation
WalkthroughA new feature for submitting transactions with custom fee and gas settings has been introduced across various files in the codebase. The Changes
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? TipsChat with CodeRabbit Bot (
|
876a94e
to
1d453a5
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files ignored due to filter (1)
- types/pb/da/da.pb.go
Files selected for processing (6)
- da.go (3 hunks)
- proto/da/da.proto (1 hunks)
- proxy/client.go (1 hunks)
- proxy/server.go (1 hunks)
- test/dummy.go (1 hunks)
- test/test_suite.go (3 hunks)
Files skipped from review due to trivial changes (2)
- da.go
- proto/da/da.proto
Files skipped from review as they are similar to previous changes (3)
- proxy/client.go
- proxy/server.go
- test/dummy.go
Additional comments: 3
test/test_suite.go (3)
49-59: The
Submit
method calls have been correctly updated to includeDefaultSubmitOptions
as per the new feature implementation. Ensure that all tests are updated to reflect this change and that the error handling is consistent with the new method signature.119-119: The
Submit
method call withinGetIDsTest
function is correctly using the newDefaultSubmitOptions
. This change is in line with the PR's objectives and ensures that the test suite remains consistent with the updated codebase.171-171: The
Submit
method call within theConcurrentReadWriteTest
function is correctly using the newDefaultSubmitOptions
. This ensures that the test function is compatible with the updatedSubmit
method signature.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #27 +/- ##
==========================================
- Coverage 79.19% 75.51% -3.69%
==========================================
Files 3 4 +1
Lines 173 196 +23
==========================================
+ Hits 137 148 +11
- Misses 28 39 +11
- Partials 8 9 +1 ☔ View full report in Codecov by Sentry. |
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to filter (1)
- types/pb/da/da.pb.go
Files selected for processing (3)
- proto/da/da.proto (1 hunks)
- proxy/server.go (1 hunks)
- proxy/util.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- proto/da/da.proto
- proxy/server.go
Additional comments: 1
proxy/util.go (1)
- 24-32: The implementation of
optionsPB2DA
correctly checks fornil
and usesda.DefaultSubmitOptions()
if the input isnil
. This is a good practice for handling optional parameters.
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- test/test_suite.go (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- test/test_suite.go
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.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files selected for processing (4)
- da.go (3 hunks)
- proxy/client.go (1 hunks)
- proxy/util.go (1 hunks)
- test/test_suite.go (3 hunks)
Files skipped from review due to trivial changes (1)
- test/test_suite.go
Files skipped from review as they are similar to previous changes (2)
- da.go
- proxy/client.go
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.
Looks good, thanks! We should test out Submit with options in the test suite, can also be done in a follow up issue if you'd like
ae60407
to
d755bc9
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.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files ignored due to filter (1)
- types/pb/da/da.pb.go
Files selected for processing (7)
- da.go (3 hunks)
- proto/da/da.proto (1 hunks)
- proxy/client.go (1 hunks)
- proxy/server.go (1 hunks)
- proxy/util.go (1 hunks)
- test/dummy.go (1 hunks)
- test/test_suite.go (3 hunks)
Files skipped from review due to trivial changes (1)
- test/test_suite.go
Additional comments: 6
da.go (1)
- 3-8: The addition of the
SubmitOptions
struct withFee
andGas
fields is a good encapsulation of transaction parameters.proxy/server.go (1)
- 57-64: The modification of the
Submit
method to accept and passoptions
totarget.Submit
is approved. Ensure consistency in handlingnil
options across the codebase.proxy/client.go (1)
- 92-98: The modification of the
Submit
function to accept an additionaloptions
parameter is approved. Ensure consistency in handlingnil
options across the codebase.proto/da/da.proto (2)
84-88: The addition of the
SubmitOptions
message withfee
andgas
fields is approved.93-93: The modification to include an
options
field of typeSubmitOptions
in theSubmitRequest
message is approved.test/dummy.go (1)
- 102-105: The modification of the
Submit
method to accept an additionaloptions
parameter is approved. Ensure consistency in handlingnil
options across the codebase.
Overview
This PR adds
SubmitOptions
to theSubmit
method which include the fee/gas params.Checklist
Summary by CodeRabbit
New Features
Enhancements
Documentation
SubmitOptions
feature.Tests
SubmitOptions
parameter in transaction submissions.