T3216
All alias related utilities are being consolidated in aliasUtils, hence moving getAliasRegistrationFee and it's helper function getAliasByteSize (only used in getAliasRegistrationFee).
Associated unit tests migrated accordingly.
Differential D14239
[Cashtab][Alias] Move getAliasRegistrationFee into aliasUtils emack on Jul 10 2023, 05:54. Authored by
Details
T3216 All alias related utilities are being consolidated in aliasUtils, hence moving getAliasRegistrationFee and it's helper function getAliasByteSize (only used in getAliasRegistrationFee). grep -r getAliasRegistrationFee src/ and ensure references are to aliasUtils.js
Diff Detail
Event TimelineComment Actions OK with the function move, but the registration fees should not be hardcoded in cashtab. A much better strategy is to gather them from the alias server via some endpoint so maintenance happens at a single place and the price is publicly accessible to anybody without having to dig into the spec. It also can be changed much more easily if somebody else decides to build another registration app. Comment Actions yup agreed, Joey's got the price endpoint going now so there'll be an upcoming diff to use that as the single source of truth. |