Splice.Ans

Templates

template AnsEntry

A ans entry that needs to be renewed continuously. Renewal recreates this contract with an updated expiresAt field.

Signatory: user, dso

Field

Type

Description

user

Party

dso

Party

name

Text

url

Text

description

Text

expiresAt

Time

template AnsEntryContext

Signatory: dso, user

Field

Type

Description

dso

Party

user

Party

name

Text

url

Text

description

Text

reference

ContractId SubscriptionRequest

Reference to the corresponding subscription, note that the contract may already be archived. This is just a tracking id.

template AnsRules

The rules governing how users can pay to use the Amulet Name service.

Signatory: dso

Field

Type

Description

dso

Party

config

AnsRulesConfig

Data Types

data AnsEntryContext_CollectEntryRenewalPaymentResult

AnsEntryContext_CollectEntryRenewalPaymentResult

Field

Type

Description

entryCid

ContractId AnsEntry

subscriptionStateCid

ContractId SubscriptionIdleState

instance GetField "entryCid" AnsEntryContext_CollectEntryRenewalPaymentResult (ContractId AnsEntry)

instance GetField "subscriptionStateCid" AnsEntryContext_CollectEntryRenewalPaymentResult (ContractId SubscriptionIdleState)

instance SetField "entryCid" AnsEntryContext_CollectEntryRenewalPaymentResult (ContractId AnsEntry)

instance SetField "subscriptionStateCid" AnsEntryContext_CollectEntryRenewalPaymentResult (ContractId SubscriptionIdleState)

instance HasExercise AnsEntryContext AnsEntryContext_CollectEntryRenewalPayment AnsEntryContext_CollectEntryRenewalPaymentResult

instance HasFromAnyChoice AnsEntryContext AnsEntryContext_CollectEntryRenewalPayment AnsEntryContext_CollectEntryRenewalPaymentResult

instance HasToAnyChoice AnsEntryContext AnsEntryContext_CollectEntryRenewalPayment AnsEntryContext_CollectEntryRenewalPaymentResult

data AnsEntryContext_CollectInitialEntryPaymentResult

AnsEntryContext_CollectInitialEntryPaymentResult

Field

Type

Description

entryCid

ContractId AnsEntry

subscriptionStateCid

ContractId SubscriptionIdleState

instance GetField "entryCid" AnsEntryContext_CollectInitialEntryPaymentResult (ContractId AnsEntry)

instance GetField "subscriptionStateCid" AnsEntryContext_CollectInitialEntryPaymentResult (ContractId SubscriptionIdleState)

instance SetField "entryCid" AnsEntryContext_CollectInitialEntryPaymentResult (ContractId AnsEntry)

instance SetField "subscriptionStateCid" AnsEntryContext_CollectInitialEntryPaymentResult (ContractId SubscriptionIdleState)

instance HasExercise AnsEntryContext AnsEntryContext_CollectInitialEntryPayment AnsEntryContext_CollectInitialEntryPaymentResult

instance HasFromAnyChoice AnsEntryContext AnsEntryContext_CollectInitialEntryPayment AnsEntryContext_CollectInitialEntryPaymentResult

instance HasToAnyChoice AnsEntryContext AnsEntryContext_CollectInitialEntryPayment AnsEntryContext_CollectInitialEntryPaymentResult

data AnsEntryContext_RejectEntryInitialPaymentResult

data AnsEntryContext_TerminateResult

data AnsEntry_ExpireResult

data AnsEntry_RenewResult

data AnsRulesConfig

AnsRulesConfig

Field

Type

Description

renewalDuration

RelTime

entryLifetime

RelTime

entryFee

Decimal

descriptionPrefix

Text

instance Eq AnsRulesConfig

instance Show AnsRulesConfig

instance GetField "config" AnsRules AnsRulesConfig

instance GetField "descriptionPrefix" AnsRulesConfig Text

instance GetField "entryFee" AnsRulesConfig Decimal

instance GetField "entryLifetime" AnsRulesConfig RelTime

instance GetField "renewalDuration" AnsRulesConfig RelTime

instance SetField "config" AnsRules AnsRulesConfig

instance SetField "descriptionPrefix" AnsRulesConfig Text

instance SetField "entryFee" AnsRulesConfig Decimal

instance SetField "entryLifetime" AnsRulesConfig RelTime

instance SetField "renewalDuration" AnsRulesConfig RelTime

data AnsRules_CollectEntryRenewalPaymentResult

AnsRules_CollectEntryRenewalPaymentResult

Field

Type

Description

entryCid

ContractId AnsEntry

subscriptionStateCid

ContractId SubscriptionIdleState

instance GetField "entryCid" AnsRules_CollectEntryRenewalPaymentResult (ContractId AnsEntry)

instance GetField "subscriptionStateCid" AnsRules_CollectEntryRenewalPaymentResult (ContractId SubscriptionIdleState)

instance SetField "entryCid" AnsRules_CollectEntryRenewalPaymentResult (ContractId AnsEntry)

instance SetField "subscriptionStateCid" AnsRules_CollectEntryRenewalPaymentResult (ContractId SubscriptionIdleState)

instance HasExercise AnsRules AnsRules_CollectEntryRenewalPayment AnsRules_CollectEntryRenewalPaymentResult

instance HasFromAnyChoice AnsRules AnsRules_CollectEntryRenewalPayment AnsRules_CollectEntryRenewalPaymentResult

instance HasToAnyChoice AnsRules AnsRules_CollectEntryRenewalPayment AnsRules_CollectEntryRenewalPaymentResult

data AnsRules_CollectInitialEntryPaymentResult

AnsRules_CollectInitialEntryPaymentResult

Field

Type

Description

entryCid

ContractId AnsEntry

subscriptionStateCid

ContractId SubscriptionIdleState

instance GetField "entryCid" AnsRules_CollectInitialEntryPaymentResult (ContractId AnsEntry)

instance GetField "subscriptionStateCid" AnsRules_CollectInitialEntryPaymentResult (ContractId SubscriptionIdleState)

instance SetField "entryCid" AnsRules_CollectInitialEntryPaymentResult (ContractId AnsEntry)

instance SetField "subscriptionStateCid" AnsRules_CollectInitialEntryPaymentResult (ContractId SubscriptionIdleState)

instance HasExercise AnsRules AnsRules_CollectInitialEntryPayment AnsRules_CollectInitialEntryPaymentResult

instance HasFromAnyChoice AnsRules AnsRules_CollectInitialEntryPayment AnsRules_CollectInitialEntryPaymentResult

instance HasToAnyChoice AnsRules AnsRules_CollectInitialEntryPayment AnsRules_CollectInitialEntryPaymentResult

data AnsRules_RejectEntryInitialPaymentResult

data AnsRules_RequestEntryResult

data ExpectedEntryContext

ExpectedEntryContext

Field

Type

Description

dso

Party

user

Party

reference

ContractId SubscriptionRequest

instance Eq ExpectedEntryContext

instance Show ExpectedEntryContext

instance GetField "dso" ExpectedEntryContext Party

instance GetField "reference" ExpectedEntryContext (ContractId SubscriptionRequest)

instance GetField "user" ExpectedEntryContext Party

instance SetField "dso" ExpectedEntryContext Party

instance SetField "reference" ExpectedEntryContext (ContractId SubscriptionRequest)

instance SetField "user" ExpectedEntryContext Party

data ExpectedPayment

ExpectedPayment

Field

Type

Description

dso

Party

sender

Party

instance Eq ExpectedPayment

instance Show ExpectedPayment

instance GetField "dso" ExpectedPayment Party

instance GetField "sender" ExpectedPayment Party

instance SetField "dso" ExpectedPayment Party

instance SetField "sender" ExpectedPayment Party

Functions

fetchAndValidateInitialPayment

: ContractId SubscriptionInitialPayment -> ExpectedPayment -> Update SubscriptionInitialPayment

fetchAndValidatePayment

: ContractId SubscriptionPayment -> ExpectedPayment -> Update SubscriptionPayment

fetchAndValidateEntryContext

: ContractId AnsEntryContext -> ExpectedEntryContext -> Update AnsEntryContext

validAnsConfig

: AnsRulesConfig -> Bool