@lumenwipe/verify 0.3.0 → 0.5.0

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 CHANGED
@@ -7,6 +7,61 @@ release is cut.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.5.0] - 2026-11-17
11
+
12
+ ### Added
13
+
14
+ - The bundled contract registry module gains `exitCapableProtocols(network)`, which names the
15
+ protocols with at least one contract an exit may touch on that network, by the same rule the
16
+ verifier applies. It is not exported from the package entry point, and verification is
17
+ unchanged.
18
+ - The bundled contract registry module gains an internal export of the registry's
19
+ `lastVerified` and `validUntil` dates, and the bundled exchange registry module splits its
20
+ fetch-and-merge step out of the function that adopts the served copy. Neither is exported from
21
+ the package entry point, and verification and the bundled registry are unchanged.
22
+
23
+ ### Changed
24
+
25
+ - The bundled contract registry re-pins the Aquarius testnet router and its constant-product,
26
+ stableswap and concentrated pool code after the upstream upgrade. The testnet pools now take
27
+ their code from a CAP-85 external reference, so their entries record the owner contract and tag
28
+ next to the hash, and the owner is registered as a new entry kind, `executable-owner`, which is
29
+ never treated as a contract a close may call. On testnet, `exitExpectations` lists the same
30
+ contract addresses as before. Mainnet entries are unchanged.
31
+ - The bundled contract registry (version `2026-11-16`) records each mainnet entry's provenance:
32
+ how its hash was verified (`verifiedBy`), where its address is published (`source`) and the day
33
+ it was last verified (`verifiedAt`). Testnet contracts LumenWipe deployed itself are marked
34
+ `ownDeployment`. No address, hash, version or `verifiedLive` value changed, and the contracts a
35
+ close may call, `validUntil` and verification are unchanged.
36
+ - The bundled contract registry (version `2026-11-17`) re-pins the mainnet xBull router
37
+ (`CCKXBE5GKJOCE7IKL64HLYKW3IJSUPVOLC4CS77GQT5QQHDZLDYV3DFT`) to the code it runs since its
38
+ upstream upgrade on 2026-11-16. The previous code is no longer recognized. The router's address,
39
+ its `strict_send` interface and the contracts a close may call are unchanged, and so is
40
+ verification.
41
+
42
+ ## [0.4.0] - 2026-11-10
43
+
44
+ ### Changed
45
+
46
+ - **Breaking:** `requiresMediator(address)` is now `requiresMediator(address, network)`. The
47
+ network is required: a call without it is a type error, and the answer is for that network
48
+ only. Pass the network the close runs on, the same value you pass `verifyCloseTransaction`.
49
+
50
+ ### Added
51
+
52
+ - An exchange registry entry may carry `network: "testnet"` (`ExchangeRegistryEntry.network`).
53
+ Such an entry applies on testnet only. On mainnet its address is not listed: `requiresMediator`
54
+ answers false, and `verifyCloseTransaction` checks a close to it as a close to a plain wallet,
55
+ so the mediated hand-off to it is refused. A served snapshot cannot change the network a
56
+ bundled entry applies on, and an entry it adds with any other `network` value is dropped.
57
+ - The bundled exchange registry gains one testnet-only entry, "LumenWipe testnet exchange"
58
+ (`GB4VXLVR2DDIJUPVVY74QVPEIHINBMMXO6WUY67JUEYO42LQSDS5IMKW`), which needs the intermediary and
59
+ an id memo. The mainnet entries are unchanged.
60
+ - Three vectors in `vectors/close-v1.json`: `testnet-stand-in-close-through-intermediary`,
61
+ accepted on testnet; `testnet-stand-in-is-a-wallet-on-mainnet`, accepted on mainnet; and its
62
+ rejected mutation `testnet-stand-in-through-intermediary-on-mainnet`. These are the first
63
+ vectors whose `input.network` is `mainnet`.
64
+
10
65
  ## [0.3.0] - 2026-11-10
11
66
 
12
67
  ### Added
@@ -79,7 +134,9 @@ The bundled exchange and contract registries are unchanged.
79
134
  is optional, and a rejection may mutate the snapshot instead of, or with, the transaction.
80
135
  - The package ships its `LICENSE` and this `CHANGELOG.md`.
81
136
 
82
- [Unreleased]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.3.0...HEAD
137
+ [Unreleased]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.5.0...HEAD
138
+ [0.5.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.4.0...verify-v0.5.0
139
+ [0.4.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.3.0...verify-v0.4.0
83
140
  [0.3.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.2.0...verify-v0.3.0
84
141
  [0.2.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.1.0...verify-v0.2.0
85
142
  [0.1.0]: https://github.com/LumenWipe/lumenwipe/tree/verify-v0.1.0
package/README.md CHANGED
@@ -76,10 +76,16 @@ whether the merge must go through the shared intermediary are not inputs. The ve
76
76
  them from the exchange registry bundled in this package, tightened by `servedRegistry` when you
77
77
  pass one.
78
78
 
79
- `requiresMediator(address)` exposes that same decision. An exchange close is one transaction
80
- holding the merge into the intermediary and the intermediary's forward, which the API co-signs
81
- (`mediatorSign`). Decide whether to ask for that co-signature with `requiresMediator(destination)`
82
- on the address the user typed, never from the API's response.
79
+ `requiresMediator(address, network)` exposes that same decision. An exchange close is one
80
+ transaction holding the merge into the intermediary and the intermediary's forward, which the API
81
+ co-signs (`mediatorSign`). Decide whether to ask for that co-signature with
82
+ `requiresMediator(destination, network)` on the address the user typed and the network the close
83
+ runs on, never from the API's response.
84
+
85
+ A registry entry may carry `"network": "testnet"`. Such an entry applies on testnet only: on
86
+ mainnet its address is not listed, so `requiresMediator` answers false there and the verifier
87
+ checks a close to it as a close to a plain wallet. An entry without the field applies on every
88
+ network.
83
89
 
84
90
  ## The bundled registries
85
91
 
@@ -103,8 +109,11 @@ because it can only make verification stricter:
103
109
  intermediary refuses both a direct merge and the hand-off until you upgrade. Accepting the
104
110
  hand-off on served data would let the API, which also builds the transaction and reports the
105
111
  balance the forward is checked against, choose which closes go through an intermediary.
112
+ - It never changes the network a bundled exchange applies on: a testnet-only entry stays
113
+ unlisted on mainnet, and an entry listed on every network stays listed on both. An address it
114
+ adds with `"network": "testnet"` applies on testnet only.
106
115
  - Its `validUntil` may move the bundled expiry later, by at most 120 days, and never earlier.
107
- - An entry that is not well formed is dropped. A snapshot that is not a registry at all (no
116
+ - An entry that is not well formed (a `network` other than `"testnet"` included) is dropped. A snapshot that is not a registry at all (no
108
117
  `entries` list, or no `lastVerified` or `validUntil` string) is refused with
109
118
  `registry_snapshot_invalid` rather than ignored.
110
119