If I would like to get different data type with different application call, what's the best practice?

I see in the examples that we can get simple data type like u64, Amount from application call response. But I think normally we’ll need to return different data structure in different application. What’s the best practice to define the Response of ContractAbi ?

Per discussion with @afck on discord, I think a possible way is to define a enum for Response, is there some other guys who already experience that ?

4 Likes