Utility.Collateral.App.Service.User

Templates

template UserService

User service for the Collateral App.

Signatory: operator, user

Field

Type

Description

operator

Party

The utility operator.

user

Party

The user.

  • Choice Archive

    Controller: operator, user

    Returns: ()

    (no fields)

  • Choice UserService\_TransferCollateral

    Initiate process to transfer collateral to a counterparty.

    Controller: user

    Returns: CollateralAgreement\_TransferCollateral\_Result

    Field

    Type

    Description

    cid

    ContractId CollateralAgreement

    The Collateral Agreement contract.

    positions

    {ref}[InstrumentQuantity <type-utility-collateral-app-types-instrumentquantity-32826>]

    The positions that will be pledged.

    reference

    Text

    Textual reference, used for deduplication. Please, ensure this is unique.

    createdAt

    Time

    Time at which this request is created.

    allocateBefore

    Time

    Until when (exclusive) the senders are given time to allocate their assets.

    settleBefore

    Time

    Until when (exclusive) the executor is given time to execute the settlement. TODO consider if this should be provided via OperatorConfiguration.

template UserServiceRequest

A user service request.

Signatory: user

Field

Type

Description

operator

Party

Service operator.

user

Party

User.

  • Choice Archive

    Controller: user

    Returns: ()

    (no fields)

Data Types

data UserServiceRequest\_Accept\_Result

Result of UserServiceRequest_Accept.

UserServiceRequest\_Accept\_Result

Field

Type

Description

userServiceCid

ContractId UserService

User Service contract id.

data UserServiceRequest\_Cancel\_Result

Result of UserServiceRequest_Cancel.

data UserServiceRequest\_Reject\_Result

Result of UserServiceRequest_Reject.

UserServiceRequest\_Reject\_Result

Field

Type

Description

reason

Text

Rejection reason.

data UserService\_RequestCollateralAgreement\_Result

Result of UserServiceRequest_RequestCollateralAgreement.

UserService\_RequestCollateralAgreement\_Result

Field

Type

Description

collateralAgreementRequestCid

ContractId CollateralAgreementRequest

Collateral agreement request.

data UserService\_Terminate\_Result

Result of UserService_Terminate.