Templates to communicate amulet conversion rates. This does not fit a narrow interpretation of “Amulet Name Service”, but it fits very well if we widen the role of the ANS to serve as a store for public data of high-value to network participants. Evolving ANS in this direction is a long-standing plan.Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
Templates
template AmuletConversionRateFeed
Amulet conversion rate feed published by a given ‘publisher’. Publisher must only create one feed per publisher. The feed can only be updated every 0.5 tickDuration as the SVs also only change the price on round boundaries and this avoids unnecessary load. Signatory: publisher
Choice AmuletConversionRateFeed_ArchiveAsDsoController: dso Returns: AmuletConversionRateFeed_ArchiveAsDsoResult
Field Type Description reason Text Choice AmuletConversionRateFeed_UpdateController: publisher Returns: AmuletConversionRateFeed_UpdateResult
Field Type Description amuletConversionRate Decimal amuletRulesCid ContractId AmuletRules markerContextO Optional MarkerContext newNextUpdateAfter Time Must be set to at least now + 0.5 tickDuration - Choice Archive Controller: publisher Returns: () (no fields)
Orphan Typeclass Instances
instance HasCheckedFetch FeaturedAppRightView ForOwnerData Types
data AmuletConversionRateFeed_ArchiveAsDsoResult
AmuletConversionRateFeed_ArchiveAsDsoResultinstance HasExercise AmuletConversionRateFeed AmuletConversionRateFeed_ArchiveAsDso AmuletConversionRateFeed_ArchiveAsDsoResult instance HasFromAnyChoice AmuletConversionRateFeed AmuletConversionRateFeed_ArchiveAsDso AmuletConversionRateFeed_ArchiveAsDsoResult instance HasToAnyChoice AmuletConversionRateFeed AmuletConversionRateFeed_ArchiveAsDso AmuletConversionRateFeed_ArchiveAsDsoResult
data AmuletConversionRateFeed_UpdateResult
AmuletConversionRateFeed_UpdateResultinstance GetField “cid” AmuletConversionRateFeed_UpdateResult (ContractId AmuletConversionRateFeed) instance SetField “cid” AmuletConversionRateFeed_UpdateResult (ContractId AmuletConversionRateFeed) instance HasExercise AmuletConversionRateFeed AmuletConversionRateFeed_Update AmuletConversionRateFeed_UpdateResult instance HasFromAnyChoice AmuletConversionRateFeed AmuletConversionRateFeed_Update AmuletConversionRateFeed_UpdateResult instance HasToAnyChoice AmuletConversionRateFeed AmuletConversionRateFeed_Update AmuletConversionRateFeed_UpdateResult
Field Type Description cid ContractId AmuletConversionRateFeed
data MarkerContext
MarkerContextinstance Eq MarkerContext instance Show MarkerContext instance GetField “beneficiaries” MarkerContext [AppRewardBeneficiary] instance GetField “featuredAppRightCid” MarkerContext (ContractId FeaturedAppRight) instance GetField “markerContextO” AmuletConversionRateFeed_Update (Optional MarkerContext) instance SetField “beneficiaries” MarkerContext [AppRewardBeneficiary] instance SetField “featuredAppRightCid” MarkerContext (ContractId FeaturedAppRight) instance SetField “markerContextO” AmuletConversionRateFeed_Update (Optional MarkerContext)
Field Type Description featuredAppRightCid ContractId FeaturedAppRight beneficiaries [AppRewardBeneficiary]