@hyperscale0/hsx 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -1
- package/README.md +1 -1
- package/dist/src/archetypes.d.ts +17 -0
- package/dist/src/archetypes.d.ts.map +1 -0
- package/dist/src/archetypes.js +327 -0
- package/dist/src/archetypes.js.map +1 -0
- package/dist/src/ast.d.ts +2 -3
- package/dist/src/ast.d.ts.map +1 -1
- package/dist/src/check.d.ts +1 -2
- package/dist/src/check.d.ts.map +1 -1
- package/dist/src/check.js +805 -109
- package/dist/src/check.js.map +1 -1
- package/dist/src/entry-overrides.d.ts +44 -0
- package/dist/src/entry-overrides.d.ts.map +1 -0
- package/dist/src/entry-overrides.js +139 -0
- package/dist/src/entry-overrides.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lower.d.ts +57 -4
- package/dist/src/lower.d.ts.map +1 -1
- package/dist/src/lower.js +2587 -98
- package/dist/src/lower.js.map +1 -1
- package/dist/src/model.d.ts +167 -7
- package/dist/src/model.d.ts.map +1 -1
- package/dist/src/model.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- package/spec/hsx-ir.schema.json +406 -8
- package/src/archetypes.ts +340 -0
- package/src/ast.ts +2 -3
- package/src/check.ts +1363 -124
- package/src/entry-overrides.ts +213 -0
- package/src/index.ts +7 -0
- package/src/lower.ts +2922 -125
- package/src/model.ts +187 -8
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,91 @@ listed here.
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [1.0.0-alpha.6] - 2026-08-29
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Alpha.6 carries a `held_payment` or `premium_forward` release port's actor
|
|
19
|
+
allowlist and declared input fields into the generated release verb. Alpha.5
|
|
20
|
+
kept those constraints in the checked program and Business Frame but dropped
|
|
21
|
+
them from HSX-JSON IR, so a runtime consuming the IR could admit the release
|
|
22
|
+
without the declared actor or evidence. Recompile affected programs with
|
|
23
|
+
alpha.6.
|
|
24
|
+
|
|
25
|
+
## [1.0.0-alpha.5] - 2026-08-29
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Six settlement archetypes now compile and lower. `funding_round` caps locked
|
|
30
|
+
commitments and contributor count, then collects or refunds each commitment
|
|
31
|
+
whole. `weighted_distribution` freezes evidence-backed weights and pays by
|
|
32
|
+
deterministic largest remainder. `credit_facility` owns draw capacity while
|
|
33
|
+
a referenced `scheduled` obligation owns repayment. `recurring_collection`
|
|
34
|
+
adds mandate evidence and explicit attempts to that obligation.
|
|
35
|
+
`conditional_disbursement` stores one evidence-approved amount under a cap.
|
|
36
|
+
`rotating_pool` fixes its roster, contribution, due anchors, and payout order
|
|
37
|
+
before activation. Import the required archetype from `"settlement"` and
|
|
38
|
+
supply every policy entry that its reference table marks as required.
|
|
39
|
+
- Any settlement may declare one `derived_amount` block. The runtime computes
|
|
40
|
+
`floor(source * bps / 10000)` from a stored money field and callers omit the
|
|
41
|
+
target field. Version 1 accepts percentage rules from 1 through 9,999 basis
|
|
42
|
+
points. The checker refuses fixed rules, tiered rules, missing source fields,
|
|
43
|
+
non-money source fields, and target fields that already exist.
|
|
44
|
+
- `captured_payment` reserves a payer amount for strict partial captures before
|
|
45
|
+
a stored deadline. The payee may settle the remainder, void before capture,
|
|
46
|
+
or use separate full-only correction and externally decided reversal ports.
|
|
47
|
+
Declare the required capture, correction, negative-position, and timeout
|
|
48
|
+
policies explicitly. Compose another settlement when capture fees are
|
|
49
|
+
needed, because this archetype refuses `fees`.
|
|
50
|
+
- `settlement_batch` freezes capture lineage and signed adjustments at a stored
|
|
51
|
+
close date, persists gross, credit, debit, and net subtotals, and instructs
|
|
52
|
+
one payout from the frozen net. Supply lineage field names, the payout
|
|
53
|
+
destination and beneficiary reference, and an acknowledgement port. Apply a
|
|
54
|
+
correction to a later open batch instead of changing a closed batch.
|
|
55
|
+
- `overrideProgramEntries()`, `Program`, and the typed override and issue shapes
|
|
56
|
+
are public package exports. The function replaces existing integer or
|
|
57
|
+
basis-point literals in a parsed `Program`, then callers run the checker and
|
|
58
|
+
lowerer again. Every
|
|
59
|
+
override declares inclusive integer bounds. Negative, fractional, `NaN`,
|
|
60
|
+
infinite, out-of-range, missing, ambiguous, and non-literal targets return
|
|
61
|
+
coded issues, and one bad override prevents every replacement from being
|
|
62
|
+
returned.
|
|
63
|
+
- `premium_forward` accepts an optional stored policy reference, one non-money
|
|
64
|
+
endorsement port, a renewal due condition, and explicit-new-forward renewal.
|
|
65
|
+
Supply `policy_ref`, `renewal_due`, `renewal_policy`, `endorsement`,
|
|
66
|
+
`endorsement_policy`, and `lapse_policy` together when the forward needs
|
|
67
|
+
endorsement, lapse, or renewal behavior. The original forwarding shape
|
|
68
|
+
remains valid.
|
|
69
|
+
|
|
70
|
+
### Changed
|
|
71
|
+
|
|
72
|
+
- `scheduled` accepts `mode: obligation` for installment obligations. It emits
|
|
73
|
+
one payment noun per anchor, binds each payment to its obligation and anchor,
|
|
74
|
+
allows partial and early payments, and refunds one stored paid row whole.
|
|
75
|
+
Obligation mode accepts 2 through 7 anchors and refuses rescheduling. Use the
|
|
76
|
+
original transfer schedule without `mode`, or declare the debtor and every
|
|
77
|
+
obligation policy explicitly.
|
|
78
|
+
- The program money-event budget is 20 instead of 14, and every settlement has
|
|
79
|
+
its own event cap. Advance carves now validate their amount field, currency,
|
|
80
|
+
recourse, and fee rules. Settlement references resolve through
|
|
81
|
+
archetype-declared exits, and lowering binds referenced noun identity,
|
|
82
|
+
statuses, amounts, and currency before movement. Recompile programs that
|
|
83
|
+
previously sat near the budget or used an advance carve. The stricter checker
|
|
84
|
+
may refuse a carve or reference that alpha.4 accepted.
|
|
85
|
+
- HSX-JSON IR version 1 grew new noun fields for generated-child prefixes,
|
|
86
|
+
aggregate invariants, derived amounts, typed references, beneficiary IDs,
|
|
87
|
+
currency, text, counts, and constants. Verbs gained public intents, reference
|
|
88
|
+
bindings, captured input, payout instructions, signed sums, deterministic
|
|
89
|
+
distribution, aggregate and exposure checks, and durable-settlement gates.
|
|
90
|
+
Money events gained fixed, remaining-balance, and runtime-bounded amount
|
|
91
|
+
modes with dependency lists. Consumers that validate or interpret IR version
|
|
92
|
+
1 must adopt alpha.5's schema before accepting alpha.5 output.
|
|
93
|
+
- `settlement_batch` now requires `payout_beneficiary_ref`. Instruct emits a
|
|
94
|
+
payout intent and captures `payoutId` instead of emitting an internal
|
|
95
|
+
transfer. A system-only reconcile transition records `settlementEvidenceId`
|
|
96
|
+
after durable evidence matches that payout. The tenant acknowledgement port
|
|
97
|
+
remains a separate claim.
|
|
98
|
+
|
|
14
99
|
## [1.0.0-alpha.4] - 2026-08-26
|
|
15
100
|
|
|
16
101
|
### Removed
|
|
@@ -110,7 +195,9 @@ This is the first version published as a package anyone can install.
|
|
|
110
195
|
program that needs more is refused with a diagnostic saying so.
|
|
111
196
|
- **`party` takes no attribute block yet**, though the grammar parses one.
|
|
112
197
|
|
|
113
|
-
[Unreleased]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.
|
|
198
|
+
[Unreleased]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.6...HEAD
|
|
199
|
+
[1.0.0-alpha.6]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.5...v1.0.0-alpha.6
|
|
200
|
+
[1.0.0-alpha.5]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.4...v1.0.0-alpha.5
|
|
114
201
|
[1.0.0-alpha.4]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.3...v1.0.0-alpha.4
|
|
115
202
|
[1.0.0-alpha.3]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.2...v1.0.0-alpha.3
|
|
116
203
|
[1.0.0-alpha.2]: https://github.com/hyperscale0/hyperscale-hsx/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
|
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ the literal to `2`.
|
|
|
144
144
|
|
|
145
145
|
## Status
|
|
146
146
|
|
|
147
|
-
Alpha.
|
|
147
|
+
Alpha. Eleven settlement archetypes ship and all eleven lower. The compiler is in
|
|
148
148
|
production use; the surface is settled enough to build on and the version
|
|
149
149
|
number is honest about the rest. What is most likely to move: diagnostic
|
|
150
150
|
wording (there are no stable diagnostic codes yet), and the archetype
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settlement declarations shared by checking and lowering. A local event cap
|
|
3
|
+
* limits one settlement before the whole-program budget applies.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SETTLEMENT_ARCHETYPES: readonly ["advance", "captured_payment", "conditional_disbursement", "credit_facility", "deposit", "funding_round", "held_payment", "instant_transfer", "metered", "pooled_split", "premium_forward", "recurring_collection", "rotating_pool", "scheduled", "settlement_batch", "swap", "weighted_distribution"];
|
|
6
|
+
export type ArchetypeName = (typeof SETTLEMENT_ARCHETYPES)[number];
|
|
7
|
+
interface ArchetypeDefinition {
|
|
8
|
+
readonly eventCap: number;
|
|
9
|
+
readonly keys: readonly string[];
|
|
10
|
+
readonly maxRates?: number;
|
|
11
|
+
readonly maxRecipients?: number;
|
|
12
|
+
readonly referenceableExits: readonly string[];
|
|
13
|
+
readonly required: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
export declare const ARCHETYPE_DEFINITIONS: Record<ArchetypeName, ArchetypeDefinition>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=archetypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archetypes.d.ts","sourceRoot":"","sources":["../../src/archetypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,qBAAqB,kTAkBxB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,mBAAmB,CA+S1E,CAAC"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settlement declarations shared by checking and lowering. A local event cap
|
|
3
|
+
* limits one settlement before the whole-program budget applies.
|
|
4
|
+
*/
|
|
5
|
+
export const SETTLEMENT_ARCHETYPES = [
|
|
6
|
+
"advance",
|
|
7
|
+
"captured_payment",
|
|
8
|
+
"conditional_disbursement",
|
|
9
|
+
"credit_facility",
|
|
10
|
+
"deposit",
|
|
11
|
+
"funding_round",
|
|
12
|
+
"held_payment",
|
|
13
|
+
"instant_transfer",
|
|
14
|
+
"metered",
|
|
15
|
+
"pooled_split",
|
|
16
|
+
"premium_forward",
|
|
17
|
+
"recurring_collection",
|
|
18
|
+
"rotating_pool",
|
|
19
|
+
"scheduled",
|
|
20
|
+
"settlement_batch",
|
|
21
|
+
"swap",
|
|
22
|
+
"weighted_distribution",
|
|
23
|
+
];
|
|
24
|
+
export const ARCHETYPE_DEFINITIONS = {
|
|
25
|
+
advance: {
|
|
26
|
+
eventCap: 2,
|
|
27
|
+
keys: [
|
|
28
|
+
"against",
|
|
29
|
+
"amount",
|
|
30
|
+
"count",
|
|
31
|
+
"every",
|
|
32
|
+
"fee",
|
|
33
|
+
"first_due",
|
|
34
|
+
"funder",
|
|
35
|
+
"to",
|
|
36
|
+
],
|
|
37
|
+
referenceableExits: [],
|
|
38
|
+
// The repayment source is one of two shapes, so the advance checker states
|
|
39
|
+
// that requirement instead of listing either shape's keys as required.
|
|
40
|
+
required: ["funder", "to", "amount"],
|
|
41
|
+
},
|
|
42
|
+
captured_payment: {
|
|
43
|
+
eventCap: 4,
|
|
44
|
+
keys: [
|
|
45
|
+
"amount",
|
|
46
|
+
"capture_mode",
|
|
47
|
+
"correction",
|
|
48
|
+
"correction_mode",
|
|
49
|
+
"external_reversal",
|
|
50
|
+
"fees",
|
|
51
|
+
"negative_position",
|
|
52
|
+
"payee",
|
|
53
|
+
"payer",
|
|
54
|
+
"reserve_until",
|
|
55
|
+
"timeout",
|
|
56
|
+
],
|
|
57
|
+
referenceableExits: [],
|
|
58
|
+
required: [
|
|
59
|
+
"payer",
|
|
60
|
+
"payee",
|
|
61
|
+
"amount",
|
|
62
|
+
"capture_mode",
|
|
63
|
+
"reserve_until",
|
|
64
|
+
"correction",
|
|
65
|
+
"external_reversal",
|
|
66
|
+
"correction_mode",
|
|
67
|
+
"negative_position",
|
|
68
|
+
"timeout",
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
conditional_disbursement: {
|
|
72
|
+
eventCap: 1,
|
|
73
|
+
keys: [
|
|
74
|
+
"amount",
|
|
75
|
+
"cap",
|
|
76
|
+
"decision",
|
|
77
|
+
"destination",
|
|
78
|
+
"recovery_policy",
|
|
79
|
+
"reopen_policy",
|
|
80
|
+
"source",
|
|
81
|
+
],
|
|
82
|
+
referenceableExits: [],
|
|
83
|
+
required: [
|
|
84
|
+
"source",
|
|
85
|
+
"destination",
|
|
86
|
+
"cap",
|
|
87
|
+
"amount",
|
|
88
|
+
"decision",
|
|
89
|
+
"reopen_policy",
|
|
90
|
+
"recovery_policy",
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
credit_facility: {
|
|
94
|
+
eventCap: 1,
|
|
95
|
+
keys: [
|
|
96
|
+
"availability_policy",
|
|
97
|
+
"borrower",
|
|
98
|
+
"close_policy",
|
|
99
|
+
"draw_destination",
|
|
100
|
+
"expires_at",
|
|
101
|
+
"expiry_policy",
|
|
102
|
+
"lender",
|
|
103
|
+
"limit",
|
|
104
|
+
"obligation",
|
|
105
|
+
],
|
|
106
|
+
referenceableExits: [],
|
|
107
|
+
required: [
|
|
108
|
+
"lender",
|
|
109
|
+
"borrower",
|
|
110
|
+
"draw_destination",
|
|
111
|
+
"limit",
|
|
112
|
+
"expires_at",
|
|
113
|
+
"obligation",
|
|
114
|
+
"availability_policy",
|
|
115
|
+
"expiry_policy",
|
|
116
|
+
"close_policy",
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
deposit: {
|
|
120
|
+
eventCap: 1,
|
|
121
|
+
keys: ["amount", "claim", "holder", "payer", "return"],
|
|
122
|
+
referenceableExits: [],
|
|
123
|
+
required: ["payer", "holder", "amount", "claim", "return"],
|
|
124
|
+
},
|
|
125
|
+
funding_round: {
|
|
126
|
+
eventCap: 4,
|
|
127
|
+
keys: [
|
|
128
|
+
"beneficiary",
|
|
129
|
+
"cancel_policy",
|
|
130
|
+
"close_by",
|
|
131
|
+
"close_policy",
|
|
132
|
+
"commitment",
|
|
133
|
+
"contributor",
|
|
134
|
+
"fail_policy",
|
|
135
|
+
"max_contributors",
|
|
136
|
+
"overfund_policy",
|
|
137
|
+
"target",
|
|
138
|
+
],
|
|
139
|
+
referenceableExits: [],
|
|
140
|
+
required: [
|
|
141
|
+
"contributor",
|
|
142
|
+
"beneficiary",
|
|
143
|
+
"target",
|
|
144
|
+
"commitment",
|
|
145
|
+
"max_contributors",
|
|
146
|
+
"close_by",
|
|
147
|
+
"close_policy",
|
|
148
|
+
"overfund_policy",
|
|
149
|
+
"cancel_policy",
|
|
150
|
+
"fail_policy",
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
held_payment: {
|
|
154
|
+
eventCap: 7,
|
|
155
|
+
keys: ["amount", "fees", "on_cancel", "payer", "payee", "release"],
|
|
156
|
+
referenceableExits: ["release"],
|
|
157
|
+
required: ["payer", "payee", "amount", "release"],
|
|
158
|
+
},
|
|
159
|
+
instant_transfer: {
|
|
160
|
+
eventCap: 3,
|
|
161
|
+
keys: ["amount", "fees", "payer", "payee"],
|
|
162
|
+
referenceableExits: [],
|
|
163
|
+
required: ["payer", "payee", "amount"],
|
|
164
|
+
},
|
|
165
|
+
metered: {
|
|
166
|
+
eventCap: 14,
|
|
167
|
+
keys: ["close_by", "payer", "payee", "rates"],
|
|
168
|
+
maxRates: 14,
|
|
169
|
+
referenceableExits: [],
|
|
170
|
+
required: ["payer", "payee", "rates", "close_by"],
|
|
171
|
+
},
|
|
172
|
+
pooled_split: {
|
|
173
|
+
eventCap: 14,
|
|
174
|
+
keys: ["amount", "payer", "payout_due", "split"],
|
|
175
|
+
maxRecipients: 7,
|
|
176
|
+
referenceableExits: [],
|
|
177
|
+
required: ["payer", "amount", "split", "payout_due"],
|
|
178
|
+
},
|
|
179
|
+
premium_forward: {
|
|
180
|
+
eventCap: 6,
|
|
181
|
+
keys: [
|
|
182
|
+
"amount",
|
|
183
|
+
"bind",
|
|
184
|
+
"carrier",
|
|
185
|
+
"commission",
|
|
186
|
+
"endorsement",
|
|
187
|
+
"endorsement_policy",
|
|
188
|
+
"lapse_policy",
|
|
189
|
+
"on_cancel",
|
|
190
|
+
"payer",
|
|
191
|
+
"policy_ref",
|
|
192
|
+
"renewal_due",
|
|
193
|
+
"renewal_policy",
|
|
194
|
+
],
|
|
195
|
+
referenceableExits: [],
|
|
196
|
+
required: ["payer", "carrier", "amount", "bind"],
|
|
197
|
+
},
|
|
198
|
+
recurring_collection: {
|
|
199
|
+
eventCap: 0,
|
|
200
|
+
keys: [
|
|
201
|
+
"attempt_policy",
|
|
202
|
+
"failure_policy",
|
|
203
|
+
"mandate",
|
|
204
|
+
"obligation",
|
|
205
|
+
"period_idempotency",
|
|
206
|
+
"retry_policy",
|
|
207
|
+
],
|
|
208
|
+
referenceableExits: [],
|
|
209
|
+
required: [
|
|
210
|
+
"obligation",
|
|
211
|
+
"mandate",
|
|
212
|
+
"attempt_policy",
|
|
213
|
+
"period_idempotency",
|
|
214
|
+
"retry_policy",
|
|
215
|
+
"failure_policy",
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
rotating_pool: {
|
|
219
|
+
eventCap: 3,
|
|
220
|
+
keys: [
|
|
221
|
+
"contribution",
|
|
222
|
+
"count",
|
|
223
|
+
"default_policy",
|
|
224
|
+
"every",
|
|
225
|
+
"exit_policy",
|
|
226
|
+
"first_due",
|
|
227
|
+
"guarantee_policy",
|
|
228
|
+
"guarantor",
|
|
229
|
+
"members",
|
|
230
|
+
"payout_order",
|
|
231
|
+
],
|
|
232
|
+
referenceableExits: [],
|
|
233
|
+
required: [
|
|
234
|
+
"members",
|
|
235
|
+
"contribution",
|
|
236
|
+
"count",
|
|
237
|
+
"every",
|
|
238
|
+
"first_due",
|
|
239
|
+
"payout_order",
|
|
240
|
+
"default_policy",
|
|
241
|
+
"guarantee_policy",
|
|
242
|
+
"exit_policy",
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
scheduled: {
|
|
246
|
+
eventCap: 3,
|
|
247
|
+
keys: [
|
|
248
|
+
"advance_to",
|
|
249
|
+
"amount",
|
|
250
|
+
"count",
|
|
251
|
+
"debtor",
|
|
252
|
+
"delinquency_policy",
|
|
253
|
+
"every",
|
|
254
|
+
"first_due",
|
|
255
|
+
"mode",
|
|
256
|
+
"partial_payment",
|
|
257
|
+
"payer",
|
|
258
|
+
"payee",
|
|
259
|
+
"refund_policy",
|
|
260
|
+
"repayment_matching",
|
|
261
|
+
"reschedule_policy",
|
|
262
|
+
],
|
|
263
|
+
referenceableExits: ["obligation"],
|
|
264
|
+
required: ["payer", "payee", "amount", "count", "every", "first_due"],
|
|
265
|
+
},
|
|
266
|
+
settlement_batch: {
|
|
267
|
+
eventCap: 1,
|
|
268
|
+
keys: [
|
|
269
|
+
"close_trigger",
|
|
270
|
+
"external_reversal_offsets",
|
|
271
|
+
"fee_entries",
|
|
272
|
+
"negative_position",
|
|
273
|
+
"payout_destination",
|
|
274
|
+
"payout_acknowledgement",
|
|
275
|
+
"payout_beneficiary_ref",
|
|
276
|
+
"settlement_account",
|
|
277
|
+
"source_capture_refs",
|
|
278
|
+
],
|
|
279
|
+
referenceableExits: [],
|
|
280
|
+
required: [
|
|
281
|
+
"settlement_account",
|
|
282
|
+
"source_capture_refs",
|
|
283
|
+
"fee_entries",
|
|
284
|
+
"external_reversal_offsets",
|
|
285
|
+
"close_trigger",
|
|
286
|
+
"payout_destination",
|
|
287
|
+
"negative_position",
|
|
288
|
+
"payout_acknowledgement",
|
|
289
|
+
"payout_beneficiary_ref",
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
swap: {
|
|
293
|
+
eventCap: 10,
|
|
294
|
+
keys: ["amounts", "between", "dispute", "fees", "release"],
|
|
295
|
+
referenceableExits: [],
|
|
296
|
+
required: ["between", "amounts", "release"],
|
|
297
|
+
},
|
|
298
|
+
weighted_distribution: {
|
|
299
|
+
eventCap: 1,
|
|
300
|
+
keys: [
|
|
301
|
+
"amount",
|
|
302
|
+
"correction_policy",
|
|
303
|
+
"max_recipients",
|
|
304
|
+
"recipient",
|
|
305
|
+
"record_at",
|
|
306
|
+
"rounding_policy",
|
|
307
|
+
"snapshot",
|
|
308
|
+
"source",
|
|
309
|
+
"weight",
|
|
310
|
+
"withholding_policy",
|
|
311
|
+
],
|
|
312
|
+
referenceableExits: [],
|
|
313
|
+
required: [
|
|
314
|
+
"source",
|
|
315
|
+
"recipient",
|
|
316
|
+
"amount",
|
|
317
|
+
"weight",
|
|
318
|
+
"max_recipients",
|
|
319
|
+
"record_at",
|
|
320
|
+
"snapshot",
|
|
321
|
+
"rounding_policy",
|
|
322
|
+
"withholding_policy",
|
|
323
|
+
"correction_policy",
|
|
324
|
+
],
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
//# sourceMappingURL=archetypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archetypes.js","sourceRoot":"","sources":["../../src/archetypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,SAAS;IACT,kBAAkB;IAClB,0BAA0B;IAC1B,iBAAiB;IACjB,SAAS;IACT,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,SAAS;IACT,cAAc;IACd,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,WAAW;IACX,kBAAkB;IAClB,MAAM;IACN,uBAAuB;CACf,CAAC;AAaX,MAAM,CAAC,MAAM,qBAAqB,GAChC;IACE,OAAO,EAAE;QACP,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE;YACJ,SAAS;YACT,QAAQ;YACR,OAAO;YACP,OAAO;YACP,KAAK;YACL,WAAW;YACX,QAAQ;YACR,IAAI;SACL;QACD,kBAAkB,EAAE,EAAE;QACtB,2EAA2E;QAC3E,uEAAuE;QACvE,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC;KACrC;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE;YACJ,QAAQ;YACR,cAAc;YACd,YAAY;YACZ,iBAAiB;YACjB,mBAAmB;YACnB,MAAM;YACN,mBAAmB;YACnB,OAAO;YACP,OAAO;YACP,eAAe;YACf,SAAS;SACV;QACD,kBAAkB,EAAE,EAAE;QACtB,QAAQ,EAAE;YACR,OAAO;YACP,OAAO;YACP,QAAQ;YACR,cAAc;YACd,eAAe;YACf,YAAY;YACZ,mBAAmB;YACnB,iBAAiB;YACjB,mBAAmB;YACnB,SAAS;SACV;KACF;IACD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E;QACtB,QAAQ,EAAE;YACR,oBAAoB;YACpB,qBAAqB;YACrB,aAAa;YACb,2BAA2B;YAC3B,eAAe;YACf,oBAAoB;YACpB,mBAAmB;YACnB,wBAAwB;YACxB,wBAAwB;SACzB;KACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC;QAC1D,kBAAkB,EAAE,EAAE;QACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;KAC5C;IACD,qBAAqB,EAAE;QACrB,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE;YACJ,QAAQ;YACR,mBAAmB;YACnB,gBAAgB;YAChB,WAAW;YACX,WAAW;YACX,iBAAiB;YACjB,UAAU;YACV,QAAQ;YACR,QAAQ;YACR,oBAAoB;SACrB;QACD,kBAAkB,EAAE,EAAE;QACtB,QAAQ,EAAE;YACR,QAAQ;YACR,WAAW;YACX,QAAQ;YACR,QAAQ;YACR,gBAAgB;YAChB,WAAW;YACX,UAAU;YACV,iBAAiB;YACjB,oBAAoB;YACpB,mBAAmB;SACpB;KACF;CACF,CAAC"}
|
package/dist/src/ast.d.ts
CHANGED
|
@@ -83,9 +83,8 @@ export interface PortRefExpr {
|
|
|
83
83
|
readonly within?: IdentExpr;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* `retention.release`, one settlement naming another settlement's
|
|
87
|
-
*
|
|
88
|
-
* check time, never by a caller at runtime.
|
|
86
|
+
* `retention.release`, one settlement naming another settlement's declared
|
|
87
|
+
* referenceable exit. The checker resolves it wholly before lowering.
|
|
89
88
|
*/
|
|
90
89
|
export interface SettlementRefExpr {
|
|
91
90
|
readonly kind: "settlement_ref";
|
package/dist/src/ast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/ast.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AAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB;AAED,yDAAyD;AACzD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,IAAI,GACZ,SAAS,GACT,UAAU,GACV,SAAS,GACT,QAAQ,GACR,WAAW,GACX,cAAc,CAAC;AAInB,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB;AAID;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB"}
|
package/dist/src/check.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Program } from "./ast.ts";
|
|
9
9
|
import { type CheckResult } from "./model.ts";
|
|
10
|
-
|
|
11
|
-
export declare const SETTLEMENT_ARCHETYPES: readonly ["advance", "deposit", "held_payment", "instant_transfer", "metered", "pooled_split", "premium_forward", "scheduled", "swap"];
|
|
10
|
+
export { SETTLEMENT_ARCHETYPES } from "./archetypes.ts";
|
|
12
11
|
export declare function checkProgram(program: Program): CheckResult;
|
|
13
12
|
//# sourceMappingURL=check.d.ts.map
|
package/dist/src/check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAKV,OAAO,EAER,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAKV,OAAO,EAER,MAAM,UAAU,CAAC;AAMlB,OAAO,EAOL,KAAK,WAAW,EAyBjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAWxD,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAiyF1D"}
|