Does anyone know how to parse
'outputs': [{'components': [{'internalType': 'uint256', 'name': 'playerId', 'type': 'uint256'}, {'internalType': 'address', 'name': 'owner', 'type': 'address'}, {'internalType': 'string', 'name': 'name', 'type': 'string'}, {'internalType': 'uint256', 'name': 'experience', 'type': 'uint256'}, {'internalType': 'uint256[5]', 'name': 'stats', 'type': 'uint256[5]'}, {'internalType': 'uint256[7]', 'name': 'equipedItems', 'type': 'uint256[7]'}], 'internalType': 'struct Player', 'name': '', 'type': 'tuple'}], 'stateMutability': 'view', 'type': 'function'}
into an output object[] such as:
outputParams[0] = new { internalType = "uint256", name = "playerId", type = "uint256" };
what confuses me is that it is a nested class, and i have no idea how to get it working with web3 native RunContractFunction.