agoricNames: managing naming consistency between dApps and chain #4084
Labels
code-style
defensive correctness patterns; readability thru consistency
Dapp & UI Support
enhancement
New feature or request
What is the Problem Being Solved?
In #4026, we're renaming
'autoswap'
to'amm'
inagoricNames
in thetreasury
package. The code uses plain string literals, which suggests it's an arbitrary choice, but it's actually constrained by expectations from the dApp front-end.Description of the Design
Perhaps factor out the string constants into a new package?
The java ecosystem seems to use API jar files for this sort of thing:
Or perhaps triangulate via documentation?
Security Considerations
I can't think of any.
Test Plan
Existing tests are likely to establish that this is working.
cc @Chris-Hibbert @michaelfig
The text was updated successfully, but these errors were encountered: