- Overview
- Setup
- Tutorials
- How Tos
- Reference
Utility.Collateral.App.Service.User¶
Templates¶
template UserService
Choice UserService\_AcceptCollateralAgreementChangeRequest
Accept a collateral agreement change request.
Controller: user
Returns: CollateralAgreementChangeRequest\_Accept\_Result
Field
Type
Description
cid
The request cid.
payload
The request payload.
Choice UserService\_AcceptCollateralAgreementRequest
Accept a collateral agreement request.
Controller: user
Returns: CollateralAgreementRequest\_Accept\_Result
Field
Type
Description
cid
The request cid.
payload
The request payload.
Choice UserService\_CancelCollateralAgreementChangeRequest
Cancel a collateral agreement change request.
Controller: user
Returns: CollateralAgreementChangeRequest\_Cancel\_Result
Field
Type
Description
cid
The request cid.
payload
The request payload.
Choice UserService\_CancelCollateralAgreementRequest
Cancel a collateral agreement request.
Controller: user
Returns: CollateralAgreementRequest\_Cancel\_Result
Field
Type
Description
cid
The request cid.
payload
The request payload.
Choice UserService\_CancelInstructedCollateral
Cancel an instructed collateral.
Controller: user
Returns: InstructedCollateral\_Cancel\_Result
Field
Type
Description
cid
The Instructed collateral contract.
allocations
The allocations to settle.
extraArgs
For each allocation, the arguments to
Allocation_Cancelchoice.
Choice UserService\_ExecuteTransfer
Settle an instructed collateral transfer. This choice is compatible with external signing as long as
collateralStateCidis stable (i.e. no other transfer for the same collateral agreement gets settled during the signing window for this choice).Controller: user
Returns: InstructedCollateral\_ExecuteTransfer\_Result
Field
Type
Description
cid
The Instructed Collateral contract.
allocations
The allocations to settle.
executeTransferArgs
For each allocation, the arguments to the
Allocation_ExecuteTransferchoice.collateralStateCid
Collateral State contract to update.
Choice UserService\_ProposeCollateralAgreementChange
Request a modification to an existing collateral agreement.
Controller: user
Returns: CollateralAgreement\_ProposeChange\_Result
Field
Type
Description
cid
The collateral agreement to change.
updatedTerms
Updated terms.
Choice UserService\_RejectCollateralAgreementChangeRequest
Reject a collateral agreement change request.
Controller: user
Returns: CollateralAgreementChangeRequest\_Reject\_Result
Field
Type
Description
cid
The request cid.
payload
The request payload.
Choice UserService\_RejectCollateralAgreementRequest
Reject a collateral agreement request.
Controller: user
Returns: CollateralAgreementRequest\_Reject\_Result
Field
Type
Description
cid
The request cid.
payload
The request payload.
Choice UserService\_RequestCollateralAgreement
Request a collateral agreement.
Controller: user
Returns: UserService\_RequestCollateralAgreement\_Result
Field
Type
Description
counterparty
The counterparty to the request.
id
Agreement id.
requestorIsPartyA
Whether the requestor is
PartyAin the CSA.terms
Terms of the collateral agreement.
Choice UserService\_Terminate
Terminates the user service.
Controller: actor
Returns: UserService\_Terminate\_Result
Field
Type
Description
actor
Party initiating the termination of the
UserServicecontract.
Choice UserService\_TerminateCollateralAgreement
Terminate a collateral agreement.
Controller: user
Returns: CollateralAgreement\_Terminate\_Result
Field
Type
Description
cid
The collateral agreement cid.
payload
The request payload.
Choice UserService\_TransferCollateral
Initiate process to transfer collateral to a counterparty.
Controller: user
Returns: CollateralAgreement\_TransferCollateral\_Result
Field
Type
Description
cid
The Collateral Agreement contract.
positions
{ref}
[InstrumentQuantity <type-utility-collateral-app-types-instrumentquantity-32826>]The positions that will be pledged.
reference
Textual reference, used for deduplication. Please, ensure this is unique.
createdAt
Time at which this request is created.
allocateBefore
Until when (exclusive) the senders are given time to allocate their assets.
settleBefore
Until when (exclusive) the executor is given time to execute the settlement. TODO consider if this should be provided via
OperatorConfiguration.
template UserServiceRequest
Choice UserServiceRequest\_Accept
Accept
UserServicerequest.Controller: operator
Returns: UserServiceRequest\_Accept\_Result
Field
Type
Description
operatorConfigurationCid
Operator configuration.
credentialCids
User credentials.
Choice UserServiceRequest\_Cancel
Cancel
UserServicerequest.Controller: user
Returns: UserServiceRequest\_Cancel\_Result
(no fields)
Choice UserServiceRequest\_Reject
Reject
UserServicerequest.Controller: operator
Returns: UserServiceRequest\_Reject\_Result
Field
Type
Description
reason
Rejection reason.
Data Types¶
data UserServiceRequest\_Accept\_Result
Result of
UserServiceRequest_Accept.
UserServiceRequest\_Accept\_Result
Field
Type
Description
userServiceCid
User Service contract id.
data UserServiceRequest\_Cancel\_Result
Result of
UserServiceRequest_Cancel.
UserServiceRequest\_Cancel\_Result
(no fields)
data UserServiceRequest\_Reject\_Result
Result of
UserServiceRequest_Reject.
UserServiceRequest\_Reject\_Result
Field
Type
Description
reason
Rejection reason.
data UserService\_RequestCollateralAgreement\_Result
Result of
UserServiceRequest_RequestCollateralAgreement.
UserService\_RequestCollateralAgreement\_Result
Field
Type
Description
collateralAgreementRequestCid
Collateral agreement request.
data UserService\_Terminate\_Result
Result of
UserService_Terminate.
UserService\_Terminate\_Result
(no fields)