-
Notifications
You must be signed in to change notification settings - Fork 55
Dispatching requests to contracts: requirements and semantics! #550
Comments
For reference, here is the current behavior of
What should happen if one sends a
What should happen if one sends a
What should happen if one sends a
What should happen if one send a
|
The semantics that was agreed (as a starting point):
|
This is completed in PR #555 |
Regarding the routing, what about this ? the logic here is to add a routing directive in the clause declaration to indicate what clause to invoke. the syntax would be something like this (EBNF):
Here's an example
if the route directive is not mentioned, the route matches the "clause" 's name. In the example, for clause3 the equivalent form would be: In this case I used a route id. It could be something else like an attribute/decorator if easier. |
What should the semantics be for dispatching requests to their corresponding smart clause?
Currently most of this logic is in Cicero and checks for requests types using simple equality, but this does not take into account a couple of important aspects:
For instance, consider the following contract model:
and the logic:
What should happen if one sends a
Request1
to the contract?What should happen if one sends a
Request2
to the contract?What should happen if one sends a
Request3
to the contract?What should happen if one send a
Request4
to the contract?The text was updated successfully, but these errors were encountered: