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

dso

Party

nextUpdateAfter

Optional Time

The earliest time after which the publisher is allowed to update this feed.

amuletConversionRate

Decimal

conversion rate in USD/Amulet

Orphan Typeclass Instances

instance HasCheckedFetch FeaturedAppRightView ForOwner

Data Types

data AmuletConversionRateFeed_ArchiveAsDsoResult

data AmuletConversionRateFeed_UpdateResult

data MarkerContext

MarkerContext

Field

Type

Description

featuredAppRightCid

ContractId 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)

Comments