Rule sets / Exchange
rule set · composite
Rulealize.RuleSet.Exchange
Two parties, each offering something, and neither committed until both are. A Rulealize rule set, shipped with the half it is built from.
What 1.0.0 is made of
this documentExchange1.0.0
uses
as ours · ^1.0SideRulealize.RuleSet.Exchange.Side
as theirs · ^1.0SideRulealize.RuleSet.Exchange.Side
Hold it
A document that holds this one writes, in its uses:
"uses": [
{ "ruleSet": "Rulealize.RuleSet.Exchange",
"version": "^1.0", "as": "exchange" }
]as is not optional here. The identifier is the package identifier, so nothing has to look it up; as is the short name the holding document calls it by, and it is what qualifies this rule set's inputs inside that one. An alias defaults to the identifier and may not contain a ., so leaving it out is refused with a message about a key you did not write.
Inputs a composite could constrain
| Input | Comes from |
|---|---|
ours.confirm | Rulealize.RuleSet.Exchange.Side · as ours |
ours.offer | Rulealize.RuleSet.Exchange.Side · as ours |
ours.withdraw | Rulealize.RuleSet.Exchange.Side · as ours |
theirs.confirm | Rulealize.RuleSet.Exchange.Side · as theirs |
theirs.offer | Rulealize.RuleSet.Exchange.Side · as theirs |
theirs.withdraw | Rulealize.RuleSet.Exchange.Side · as theirs |
Releases
1.0.0latestholds
Rulealize.RuleSet.Exchange.Side ^1.0asoursRulealize.RuleSet.Exchange.Side ^1.0astheirs
requires