The API for featured apps to record their activity.Documentation Index
Fetch the complete documentation index at: https://cantonfoundation-issue-365-details-history.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Interfaces
interface FeaturedAppActivityMarker
A marker created by a featured application for activity generated from that app. This is used to record activity other than amulet transfers, which have built-in support for recording featured app activity. viewtype FeaturedAppActivityMarkerView
- Choice Archive Controller: Signatories of implementing template Returns: () (no fields)
interface FeaturedAppRight
An interface for contracts allowing application providers to record their featured activity. Note that most instances of amulet will likely define some fair usage constraints. viewtype FeaturedAppRightView
- Choice Archive Controller: Signatories of implementing template Returns: () (no fields)
Choice FeaturedAppRight_CreateActivityMarkerRecord activity due to a featured app. Controller: (DA.Internal.Record.getField @“provider” (view this)) Returns: FeaturedAppRight_CreateActivityMarkerResult
Field Type Description beneficiaries [AppRewardBeneficiary] The set of beneficiaries and weights that define how the rewards should be split up between the beneficiary parties. Implementations SHOULD check that the weights are positive and add up to 1.0. Implementations MAY also impose a limit on the maximum number of beneficiaries. - Method featuredAppRight_CreateActivityMarkerImpl : ContractId FeaturedAppRight -> FeaturedAppRight_CreateActivityMarker -> Update FeaturedAppRight_CreateActivityMarkerResult
Data Types
data AppRewardBeneficiary
Specification of a beneficiary of featured app rewards.AppRewardBeneficiaryinstance Eq AppRewardBeneficiary instance Ord AppRewardBeneficiary instance Show AppRewardBeneficiary instance GetField “beneficiaries” FeaturedAppRight_CreateActivityMarker [AppRewardBeneficiary] instance GetField “beneficiary” AppRewardBeneficiary Party instance GetField “weight” AppRewardBeneficiary Decimal instance SetField “beneficiaries” FeaturedAppRight_CreateActivityMarker [AppRewardBeneficiary] instance SetField “beneficiary” AppRewardBeneficiary Party instance SetField “weight” AppRewardBeneficiary Decimal
data FeaturedAppActivityMarkerView
FeaturedAppActivityMarkerViewinstance Eq FeaturedAppActivityMarkerView instance Show FeaturedAppActivityMarkerView instance HasFromAnyView FeaturedAppActivityMarker FeaturedAppActivityMarkerView instance HasInterfaceView FeaturedAppActivityMarker FeaturedAppActivityMarkerView instance GetField “beneficiary” FeaturedAppActivityMarkerView Party instance GetField “dso” FeaturedAppActivityMarkerView Party instance GetField “provider” FeaturedAppActivityMarkerView Party instance GetField “weight” FeaturedAppActivityMarkerView Decimal instance SetField “beneficiary” FeaturedAppActivityMarkerView Party instance SetField “dso” FeaturedAppActivityMarkerView Party instance SetField “provider” FeaturedAppActivityMarkerView Party instance SetField “weight” FeaturedAppActivityMarkerView Decimal
data FeaturedAppRightView
FeaturedAppRightViewinstance Eq FeaturedAppRightView instance Show FeaturedAppRightView instance HasFromAnyView FeaturedAppRight FeaturedAppRightView instance HasInterfaceView FeaturedAppRight FeaturedAppRightView instance GetField “dso” FeaturedAppRightView Party instance GetField “provider” FeaturedAppRightView Party instance SetField “dso” FeaturedAppRightView Party instance SetField “provider” FeaturedAppRightView Party
data FeaturedAppRight_CreateActivityMarkerResult
Result of calling theFeaturedAppRight_CreateActivityMarkerchoice.FeaturedAppRight_CreateActivityMarkerResultinstance HasMethod FeaturedAppRight “featuredAppRight_CreateActivityMarkerImpl” (ContractId FeaturedAppRight -> FeaturedAppRight_CreateActivityMarker -> Update FeaturedAppRight_CreateActivityMarkerResult) instance GetField “activityMarkerCids” FeaturedAppRight_CreateActivityMarkerResult [ContractId FeaturedAppActivityMarker] instance SetField “activityMarkerCids” FeaturedAppRight_CreateActivityMarkerResult [ContractId FeaturedAppActivityMarker] instance HasExercise FeaturedAppRight FeaturedAppRight_CreateActivityMarker FeaturedAppRight_CreateActivityMarkerResult instance HasExerciseGuarded FeaturedAppRight FeaturedAppRight_CreateActivityMarker FeaturedAppRight_CreateActivityMarkerResult instance HasFromAnyChoice FeaturedAppRight FeaturedAppRight_CreateActivityMarker FeaturedAppRight_CreateActivityMarkerResult instance HasToAnyChoice FeaturedAppRight FeaturedAppRight_CreateActivityMarker FeaturedAppRight_CreateActivityMarkerResult
Field Type Description activityMarkerCids [ContractId FeaturedAppActivityMarker] The set of activity markers created by the choice.
Functions
featuredAppRight_CreateActivityMarkerImpl
: FeaturedAppRight -> ContractId FeaturedAppRight -> FeaturedAppRight_CreateActivityMarker -> Update FeaturedAppRight_CreateActivityMarkerResult