"Open Role" integration with the Runtime #711
Replies: 4 comments 3 replies
-
We'll need a safety check that the role token name isn't already used in the contract. |
Beta Was this translation helpful? Give feedback.
-
Is this strictly necessary, or just nice to have? Adding an index might be quite a bit of extra work, especially at this stage where open roles are somewhat experimental. |
Beta Was this translation helpful? Give feedback.
-
I suggest we omit the CLI from the MVP. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking of forward and future backward compatibility.
|
Beta Was this translation helpful? Give feedback.
-
Requirements:
Core Feature
We have to add "Open Role" validator to the script registry.
During transaction creation we have to create an UTxO with role token and min ADA. Inline datum should contain the name of the "thread token" - we can use by default
""
.During the transaction creation we should output thread token to the Marlowe UTxO. We could do this with
IDeposit
and initial input application or we can add this token to the account system manually like we do when we handle min ADA deposit. We should deposit this token to the tx creator account.We should index these UTxOs by role token so we can quickly find them when we miss the token from the
WalletContext
.When we detect that the role token should be released we provide this input + reference input to the "Open Role" validator to the transaction.
User facing API changes:
We should change the REST API schema for the
/contracts/create
request so the user can either specify a destination address or indicate usage of open role validator.We should add similar change to the
marlowe-runtime-cli
.Beta Was this translation helpful? Give feedback.
All reactions