We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ValidateOutbound
crosschain
Describe the Issue Depends on #2276
As per the specs, implement ValidateOutbound
This must be the only entrypoint that finalizes the state of a CCTX
Considered pseudocode:
func ValidateOutbound(outbound, success bool) { // retrieve the cctx from store cctx := GetCCTXFromOutbound(outbound) isRevert := isRevertOutbound(outbound) switch { case success && !isRevert: cctxToOutboundMined(cctx) case success && isRevert: cctxToReverted(cctx) case !success && !isRevert: cctxToPendingRevert(cctx) revertOutbound := cctx.GetRevertOutbound(cctx) initiateOutbound(revertOutbound) case !success && isRevert: cctxToAborted(cctx) } }
Then use it in every location where we finalize outbound:
evm_deposit.go
The text was updated successfully, but these errors were encountered:
ValidateInbound
skosito
Successfully merging a pull request may close this issue.
Describe the Issue
Depends on #2276
As per the specs, implement
ValidateOutbound
This must be the only entrypoint that finalizes the state of a CCTX
Considered pseudocode:
Then use it in every location where we finalize outbound:
evm_deposit.go
for ZEVMThe text was updated successfully, but these errors were encountered: