> ## 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.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Splice.Ans.AmuletConversionRateFeed

> Documentation for Splice.Ans.AmuletConversionRateFeed

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
>
> | Field | Type | Description |
> | - | - | - |
> | publisher | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | nextUpdateAfter | [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) [Time](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-time-63886) | The earliest time after which the publisher is allowed to update this feed. |
> | amuletConversionRate | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | conversion rate in USD/Amulet |
>
> * **Choice** AmuletConversionRateFeed\_ArchiveAsDso
>
>   Controller: dso
>
>   Returns: AmuletConversionRateFeed\_ArchiveAsDsoResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | reason | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | |
>
> * **Choice** AmuletConversionRateFeed\_Update
>
>   Controller: publisher
>
>   Returns: AmuletConversionRateFeed\_UpdateResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | amuletConversionRate | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | |
>   | amuletRulesCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletRules | |
>   | markerContextO | [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) MarkerContext | |
>   | newNextUpdateAfter | [Time](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-time-63886) | Must 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](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AmuletConversionRateFeed AmuletConversionRateFeed\_ArchiveAsDso AmuletConversionRateFeed\_ArchiveAsDsoResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AmuletConversionRateFeed AmuletConversionRateFeed\_ArchiveAsDso AmuletConversionRateFeed\_ArchiveAsDsoResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AmuletConversionRateFeed AmuletConversionRateFeed\_ArchiveAsDso AmuletConversionRateFeed\_ArchiveAsDsoResult

**data** AmuletConversionRateFeed\_UpdateResult

> AmuletConversionRateFeed\_UpdateResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletConversionRateFeed | |
>
> **instance** GetField "cid" AmuletConversionRateFeed\_UpdateResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletConversionRateFeed)
>
> **instance** SetField "cid" AmuletConversionRateFeed\_UpdateResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletConversionRateFeed)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AmuletConversionRateFeed AmuletConversionRateFeed\_Update AmuletConversionRateFeed\_UpdateResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AmuletConversionRateFeed AmuletConversionRateFeed\_Update AmuletConversionRateFeed\_UpdateResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AmuletConversionRateFeed AmuletConversionRateFeed\_Update AmuletConversionRateFeed\_UpdateResult

**data** MarkerContext

> MarkerContext
>
> > | Field | Type | Description |
> > | - | - | - |
> > | featuredAppRightCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight | |
> > | beneficiaries | \[AppRewardBeneficiary] | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) MarkerContext
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) MarkerContext
>
> **instance** GetField "beneficiaries" MarkerContext \[AppRewardBeneficiary]
>
> **instance** GetField "featuredAppRightCid" MarkerContext ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight)
>
> **instance** GetField "markerContextO" AmuletConversionRateFeed\_Update ([Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) MarkerContext)
>
> **instance** SetField "beneficiaries" MarkerContext \[AppRewardBeneficiary]
>
> **instance** SetField "featuredAppRightCid" MarkerContext ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight)
>
> **instance** SetField "markerContextO" AmuletConversionRateFeed\_Update ([Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) MarkerContext)
