How can we define struct and enum - in Algorand?
such as :
enum TokenData {
tokenVal,
tokenBalance,
}
struct testInfo {
address sender;
TokenData data; // defining enum into another structure
}
struct testConfig {
address testToken;
testInfo info; // defining struct into another struct
}
// defining mapping based on the structs
mapping(address => testInfo) public testInfo;
mapping(address => testConfig) public testConfig;
How can we achieve the above mentioned in Algorand? I don’t see anything in Algorand?