Splice.Wallet.Install

Templates

template WalletAppInstall

Signatory: endUserParty, validatorParty

Field

Type

Description

dsoParty

Party

validatorParty

Party

endUserName

Text

endUserParty

Party

Data Types

data AmuletOperation

CO_AppPayment (ContractId AppPaymentRequest)

CO_CompleteAcceptedTransfer (ContractId AcceptedTransferOffer)

CO_SubscriptionAcceptAndMakeInitialPayment (ContractId SubscriptionRequest)

CO_SubscriptionMakePayment (ContractId SubscriptionIdleState)

CO_MergeTransferInputs

CO_BuyMemberTraffic

Field

Type

Description

trafficAmount

Int

memberId

Text

synchronizerId

Text

migrationId

Int

minTopupInterval

RelTime

topupStateCid

Optional (ContractId ValidatorTopUpState)

CO_CompleteBuyTrafficRequest

Field

Type

Description

trafficRequestCid

ContractId BuyTrafficRequest

CO_Tap

Field

Type

Description

tapAmount

Decimal

ExtAmuletOperation

Field

Type

Description

dummyUnitField

()

Extension constructor (and field) to work around the current lack of upgrading for variants in Daml 3.0

CO_CreateExternalPartySetupProposal

Field

Type

Description

externalParty

Party

preapprovalExpiresAt

Time

CO_AcceptTransferPreapprovalProposal

Field

Type

Description

preapprovalProposalCid

ContractId TransferPreapprovalProposal

expiresAt

Time

CO_RenewTransferPreapproval

Field

Type

Description

previousApprovalCid

ContractId TransferPreapproval

newExpiresAt

Time

CO_TransferPreapprovalSend

Field

Type

Description

transferPreapprovalCid

ContractId TransferPreapproval

providerFeaturedAppRightCid

Optional (ContractId FeaturedAppRight)

amount

Decimal

instance Eq AmuletOperation

instance Show AmuletOperation

instance GetField "amount" AmuletOperation Decimal

instance GetField "dummyUnitField" AmuletOperation ()

instance GetField "expiresAt" AmuletOperation Time

instance GetField "externalParty" AmuletOperation Party

instance GetField "memberId" AmuletOperation Text

instance GetField "migrationId" AmuletOperation Int

instance GetField "minTopupInterval" AmuletOperation RelTime

instance GetField "newExpiresAt" AmuletOperation Time

instance GetField "operations" WalletAppInstall_ExecuteBatch [AmuletOperation]

instance GetField "preapprovalExpiresAt" AmuletOperation Time

instance GetField "preapprovalProposalCid" AmuletOperation (ContractId TransferPreapprovalProposal)

instance GetField "previousApprovalCid" AmuletOperation (ContractId TransferPreapproval)

instance GetField "providerFeaturedAppRightCid" AmuletOperation (Optional (ContractId FeaturedAppRight))

instance GetField "synchronizerId" AmuletOperation Text

instance GetField "tapAmount" AmuletOperation Decimal

instance GetField "topupStateCid" AmuletOperation (Optional (ContractId ValidatorTopUpState))

instance GetField "trafficAmount" AmuletOperation Int

instance GetField "trafficRequestCid" AmuletOperation (ContractId BuyTrafficRequest)

instance GetField "transferPreapprovalCid" AmuletOperation (ContractId TransferPreapproval)

instance SetField "amount" AmuletOperation Decimal

instance SetField "dummyUnitField" AmuletOperation ()

instance SetField "expiresAt" AmuletOperation Time

instance SetField "externalParty" AmuletOperation Party

instance SetField "memberId" AmuletOperation Text

instance SetField "migrationId" AmuletOperation Int

instance SetField "minTopupInterval" AmuletOperation RelTime

instance SetField "newExpiresAt" AmuletOperation Time

instance SetField "operations" WalletAppInstall_ExecuteBatch [AmuletOperation]

instance SetField "preapprovalExpiresAt" AmuletOperation Time

instance SetField "preapprovalProposalCid" AmuletOperation (ContractId TransferPreapprovalProposal)

instance SetField "previousApprovalCid" AmuletOperation (ContractId TransferPreapproval)

instance SetField "providerFeaturedAppRightCid" AmuletOperation (Optional (ContractId FeaturedAppRight))

instance SetField "synchronizerId" AmuletOperation Text

instance SetField "tapAmount" AmuletOperation Decimal

instance SetField "topupStateCid" AmuletOperation (Optional (ContractId ValidatorTopUpState))

instance SetField "trafficAmount" AmuletOperation Int

instance SetField "trafficRequestCid" AmuletOperation (ContractId BuyTrafficRequest)

instance SetField "transferPreapprovalCid" AmuletOperation (ContractId TransferPreapproval)

data AmuletOperationOutcome

COO_AcceptedAppPayment (ContractId AcceptedAppPayment)

COO_CompleteAcceptedTransfer (TransferResult, TransferOfferTrackingInfo)

COO_SubscriptionInitialPayment (ContractId SubscriptionInitialPayment)

COO_SubscriptionPayment (ContractId SubscriptionPayment)

COO_MergeTransferInputs (Optional (ContractId Amulet))

COO_BuyMemberTraffic (ContractId MemberTraffic)

COO_CompleteBuyTrafficRequest (ContractId MemberTraffic, BuyTrafficRequestTrackingInfo)

COO_Tap (ContractId Amulet)

COO_Error InvalidTransferReason

ExtAmuletOperationOutcome

Field

Type

Description

dummyUnitField

()

Extension constructor (and field) to work around the current lack of upgrading for variants in Daml 3.0

COO_CreateExternalPartySetupProposal (ContractId ExternalPartySetupProposal)

COO_AcceptTransferPreapprovalProposal (ContractId TransferPreapproval)

COO_RenewTransferPreapproval (ContractId TransferPreapproval)

COO_TransferPreapprovalSend (Optional (ContractId Amulet))

instance Eq AmuletOperationOutcome

instance Show AmuletOperationOutcome

instance GetField "dummyUnitField" AmuletOperationOutcome ()

instance GetField "outcomes" WalletAppInstall_ExecuteBatchResult [AmuletOperationOutcome]

instance SetField "dummyUnitField" AmuletOperationOutcome ()

instance SetField "outcomes" WalletAppInstall_ExecuteBatchResult [AmuletOperationOutcome]

data ExecutionContext

ExecutionContext

Field

Type

Description

dso

Party

endUser

Party

validator

Party

paymentContext

PaymentTransferContext

instance GetField "dso" ExecutionContext Party

instance GetField "endUser" ExecutionContext Party

instance GetField "paymentContext" ExecutionContext PaymentTransferContext

instance GetField "validator" ExecutionContext Party

instance SetField "dso" ExecutionContext Party

instance SetField "endUser" ExecutionContext Party

instance SetField "paymentContext" ExecutionContext PaymentTransferContext

instance SetField "validator" ExecutionContext Party

data WalletAppInstall_AcceptedTransferOffer_AbortResult

data WalletAppInstall_AcceptedTransferOffer_ExpireResult

data WalletAppInstall_AcceptedTransferOffer_WithdrawResult

data WalletAppInstall_AppPaymentRequest_ExpireResult

data WalletAppInstall_AppPaymentRequest_RejectResult

data WalletAppInstall_BuyTrafficRequest_CancelResult

data WalletAppInstall_BuyTrafficRequest_ExpireResult

data WalletAppInstall_CreateBuyTrafficRequestResult

data WalletAppInstall_CreateTransferOfferResult

data WalletAppInstall_ExecuteBatchResult

WalletAppInstall_ExecuteBatchResult

Field

Type

Description

endUserName

Text

outcomes

[AmuletOperationOutcome]

optEndUserParty

Optional Party

instance Eq WalletAppInstall_ExecuteBatchResult

instance Show WalletAppInstall_ExecuteBatchResult

instance GetField "endUserName" WalletAppInstall_ExecuteBatchResult Text

instance GetField "optEndUserParty" WalletAppInstall_ExecuteBatchResult (Optional Party)

instance GetField "outcomes" WalletAppInstall_ExecuteBatchResult [AmuletOperationOutcome]

instance SetField "endUserName" WalletAppInstall_ExecuteBatchResult Text

instance SetField "optEndUserParty" WalletAppInstall_ExecuteBatchResult (Optional Party)

instance SetField "outcomes" WalletAppInstall_ExecuteBatchResult [AmuletOperationOutcome]

instance HasExercise WalletAppInstall WalletAppInstall_ExecuteBatch WalletAppInstall_ExecuteBatchResult

instance HasFromAnyChoice WalletAppInstall WalletAppInstall_ExecuteBatch WalletAppInstall_ExecuteBatchResult

instance HasToAnyChoice WalletAppInstall WalletAppInstall_ExecuteBatch WalletAppInstall_ExecuteBatchResult

data WalletAppInstall_FeaturedAppRights_CancelResult

data WalletAppInstall_FeaturedAppRights_SelfGrantResult

data WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult

WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult

Field

Type

Description

terminatedSubscription

ContractId TerminatedSubscription

instance GetField "terminatedSubscription" WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult (ContractId TerminatedSubscription)

instance SetField "terminatedSubscription" WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult (ContractId TerminatedSubscription)

instance HasExercise WalletAppInstall WalletAppInstall_SubscriptionIdleState_CancelSubscription WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult

instance HasFromAnyChoice WalletAppInstall WalletAppInstall_SubscriptionIdleState_CancelSubscription WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult

instance HasToAnyChoice WalletAppInstall WalletAppInstall_SubscriptionIdleState_CancelSubscription WalletAppInstall_SubscriptionIdleState_CancelSubscriptionResult

data WalletAppInstall_SubscriptionRequest_RejectResult

data WalletAppInstall_TransferOffer_AcceptResult

data WalletAppInstall_TransferOffer_ExpireResult

data WalletAppInstall_TransferOffer_RejectResult

data WalletAppInstall_TransferOffer_WithdrawResult

data WalletAppInstall_TransferPreapprovalProposal_CreateResult

Functions

catchAll

: Update a -> Update (Either InvalidTransferReason a)

executeAmuletOperationRec

: ExecutionContext -> [TransferInput] -> [AmuletOperationOutcome] -> [AmuletOperation] -> Update [AmuletOperationOutcome]

mkMergeAmuletAndRewardsTransfer

: Party -> [TransferInput] -> Transfer