Skip to main content

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 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
FieldTypeDescription
publisherParty
dsoParty
nextUpdateAfterOptional TimeThe earliest time after which the publisher is allowed to update this feed.
amuletConversionRateDecimalconversion rate in USD/Amulet
  • Choice AmuletConversionRateFeed_ArchiveAsDso
    Controller: dso Returns: AmuletConversionRateFeed_ArchiveAsDsoResult
    FieldTypeDescription
    reasonText
  • Choice AmuletConversionRateFeed_Update
    Controller: publisher Returns: AmuletConversionRateFeed_UpdateResult
    FieldTypeDescription
    amuletConversionRateDecimal
    amuletRulesCidContractId AmuletRules
    markerContextOOptional MarkerContext
    newNextUpdateAfterTimeMust be set to at least now + 0.5 tickDuration
  • 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
FieldTypeDescription
cidContractId AmuletConversionRateFeed
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
FieldTypeDescription
featuredAppRightCidContractId FeaturedAppRight
beneficiaries[AppRewardBeneficiary]
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)