getVestingDelegations method directly calls node. It goes against our principle to put all the node calls into Wax. The logic of changing nodes, validation and types is there. Please change the method to use it similar way to getRewardFunds, getDynamicGlobalProperties and getCurrentPriceFeed. Consender api is a part of Wax interfaces.
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
hey @jlachor , not sure why, but below condenser calls via wax appear to be returning empty results for both delegations (vesting and RC), could this be wax issue?
Trying out with account @actifit.funds for example which has both RC and vesting delegations, both returning empty sets. Trying with incorrect user names returns a non-existing user error so the params should be fine i believe.
Everything works fine. I checked network in browser and all calls are properly sent and the response is correct.
The difference is, that Wax cut all unnecessary stuff, which means you don't need to use result in hook or component. After cutting that part from AccountRcDelegationCard everything should be fine. Just get the direct data, not const delegations = rcDelegationsData?.result || []; this.
I have two more comments about that:
I want to have all the response types, not in any type. Please check what the usual response is and add it as new type to types/Hive file. If you have any troubles with fitting that into our system, just write to me and I'll help you.
Don't sort the data in component. Use select in React Query hooks instead. That is the proper place for it. You can check how selector is done in other hooks. We didn't had sorting there, but it should be really easy to expand it that way.
Thank you for your help and I hope this will be enough for you to finish this.