Open turadg opened 1 month ago
It complicates adding asset types because it's metadata that isn't available on-chain for the Issuer/Brand creation to read from.
https://github.com/Agoric/agoric-sdk/blob/7940ef4c491777cfa333695f71a4767a8e5d4731/packages/orchestration/src/orchestration-api.ts#L109-L121
Related:
Provide a metadata source for UIs to look up decimalPlaces. published.boardAux provides that now but it's only available in chainStorage.
published.boardAux
addAssetToVault needs a source of truth for "unit amounts" to compare different assets by a consistent scale of unit.
addAssetToVault
it's metadata that isn't available on-chain
help me understand that? Seems like it is available, using exactly this API E(brand).getDisplayInfo(). (or E(issuer).getDisplayInfo())
E(brand).getDisplayInfo()
E(issuer).getDisplayInfo()
What is the Problem Being Solved?
It complicates adding asset types because it's metadata that isn't available on-chain for the Issuer/Brand creation to read from.
https://github.com/Agoric/agoric-sdk/blob/7940ef4c491777cfa333695f71a4767a8e5d4731/packages/orchestration/src/orchestration-api.ts#L109-L121
Related:
Description of the Design
Provide a metadata source for UIs to look up decimalPlaces.
published.boardAux
provides that now but it's only available in chainStorage.addAssetToVault
needs a source of truth for "unit amounts" to compare different assets by a consistent scale of unit.Security Considerations
Scaling Considerations
Test Plan
Upgrade Considerations