Skip to content

Define onCall interface for ZETA token CCTX #520

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

Open
lumtis opened this issue May 29, 2025 · 1 comment
Open

Define onCall interface for ZETA token CCTX #520

lumtis opened this issue May 29, 2025 · 1 comment

Comments

@lumtis
Copy link
Member

lumtis commented May 29, 2025

Define the interface used for ZETA

Currently for ZRC20:

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

Solution considered:

  • Keep the same interface and using wzeta for zrc20, the argument name should be change, the behavior on ZetaChain might also be unexpected for the dev where they would preferable handle the native token directly
  • Skipping the address zrc20 when calling onCall, the dev need to overload the function to support ZETA token receive
  • The zero address is used for address zrc20, dev need to make a check to determine ZETA tokens are being deposited
@lumtis
Copy link
Member Author

lumtis commented Jun 3, 2025

We will implement with

Skipping the address zrc20 when calling onCall, the dev need to overload the function to support ZETA token receive

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

No branches or pull requests

1 participant