-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Remove failure reasons and states from mercury and use encoding #11523
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
9f32d83
to
9a347dd
Compare
cc4947a
to
f0dc63f
Compare
14ceb5e
to
7b9a760
Compare
@@ -149,7 +149,7 @@ func (p *abiPacker) DecodeStreamsLookupRequest(data []byte) (*StreamsLookupError | |||
}, nil | |||
} | |||
|
|||
func (p *abiPacker) UnpackCheckCallbackResult(callbackResp []byte) (uint8, bool, []byte, uint8, *big.Int, error) { | |||
func (p *abiPacker) UnpackCheckCallbackResult(callbackResp []byte) (encoding.PipelineExecutionState, bool, []byte, uint8, *big.Int, error) { |
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.
other uint8 can be converted back to failure reason
@@ -1,17 +0,0 @@ | |||
package mercury | |||
|
|||
type MercuryUpkeepFailureReason uint8 |
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.
<3
@@ -1,16 +0,0 @@ | |||
package mercury | |||
|
|||
type MercuryUpkeepState uint8 |
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.
<3
8f0708e
to
daed5a1
Compare
daed5a1
to
307d52d
Compare
AUTO-8161
Have failure reasons and pipeline states in a centralized place, in encoding package. Remove the states and failure reasons in mercury package.
Change back the Strong type, get rid of uint8.
Test Plan:
No logic change, all unit tests, smoke tests should pass.
I didnt add new tests, let me know if new coverage needed.