zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
166 stars 107 forks source link

Setup table to map chain IDs with supported functionalites #2753

Open lumtis opened 2 months ago

lumtis commented 2 months ago

Describe the Issue

CCTX types supported varies around chains:

We should setup list of the different functionality and a table mapping the chain ID with list of supported functionalities.

enum CCTXFunctionalities
- nativeDepositWithdraw // should be supported for all
- nativeDepositAndCall // generally supported for all, might not be if memo not supported for example
- nativeWithdrawAndCall
- fungible // erc20, SPL, BRC20
- noAssetCal
- ....l
ethereum:
- nativeDepositWithdraw
- ...
bitcoin:
- nativeDepositWithdraw
lumtis commented 1 month ago

Adding for October release for now, might be pushed back but will be important as we add new chain integrations which will not directly be feature complete