Skip to content
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

Rename onCrossChainCall to onCall and zContext to messageContext #345

Closed
fadeev opened this issue Sep 5, 2024 · 0 comments · Fixed by #349
Closed

Rename onCrossChainCall to onCall and zContext to messageContext #345

fadeev opened this issue Sep 5, 2024 · 0 comments · Fixed by #349
Assignees

Comments

@fadeev
Copy link
Member

fadeev commented Sep 5, 2024

https://github.com/zeta-chain/protocol-contracts/blob/2cf7ef24509bbf245d0821ffedf90007885d2d8e/v2/contracts/zevm/interfaces/UniversalContract.sol

interface UniversalContract {
    function onCall(
        messageContext calldata context,
        address zrc20,
        uint256 amount,
        bytes calldata message
    )
        external;

    function onRevert(RevertContext calldata revertContext) external;
}

Then we can have a similar interface on connected chains for "authenticated calls":

function onCall(
    messageContext calldata context,
    bytes calldata message
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants