Skip to main content
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.

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_ArchiveAsDso
    Controller: dso Returns: AmuletConversionRateFeed_ArchiveAsDsoResult
  • Choice AmuletConversionRateFeed_Update
    Controller: publisher Returns: AmuletConversionRateFeed_UpdateResult
  • Choice Archive Controller: publisher Returns: () (no fields)

Orphan Typeclass Instances

instance HasCheckedFetch FeaturedAppRightView ForOwner

Data Types

data AmuletConversionRateFeed_ArchiveAsDsoResult
AmuletConversionRateFeed_ArchiveAsDsoResult
instance HasExercise AmuletConversionRateFeed AmuletConversionRateFeed_ArchiveAsDso AmuletConversionRateFeed_ArchiveAsDsoResult instance HasFromAnyChoice AmuletConversionRateFeed AmuletConversionRateFeed_ArchiveAsDso AmuletConversionRateFeed_ArchiveAsDsoResult instance HasToAnyChoice AmuletConversionRateFeed AmuletConversionRateFeed_ArchiveAsDso AmuletConversionRateFeed_ArchiveAsDsoResult
data AmuletConversionRateFeed_UpdateResult
AmuletConversionRateFeed_UpdateResult
instance 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
data MarkerContext
MarkerContext
instance 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)