@lumenwipe/verify 0.5.0 → 0.7.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,89 @@ release is cut.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.7.0] - 2026-11-23
11
+
12
+ ### Added
13
+
14
+ - The `mediator_forward_balance_unknown` verification code.
15
+ - Classic liquidity pool withdrawals. `verify()` accepts a `liquidityPoolWithdraw` only for a pool
16
+ in the new optional `poolWithdrawals` expectation, for exactly the shares held, with each
17
+ minimum at least 98% and at most 101% of what the expected reserves give (exactly 0 for a side
18
+ they give nothing of). A pool share trustline removal is accepted only for one of those pools,
19
+ with the pool id derived from the asset pair and fee the operation carries. Without
20
+ `poolWithdrawals` both are refused. Build it with the new `poolWithdrawalExpectations` from the
21
+ account read. New codes: `pool_not_held`, `pool_withdraw_duplicate`,
22
+ `pool_withdraw_amount_mismatch`, `pool_withdraw_min_missing`, `pool_withdraw_min_below_floor`,
23
+ `pool_withdraw_min_above_reserves` and `pool_line_mismatch`. A new accepted vector withdraws
24
+ from a pool, with rejected mutations for a swapped pool, a changed share amount, a zero, a low
25
+ and an inflated minimum, and the removal of another pool's share line.
26
+ - Sponsorship revokes of a liquidity pool share trustline, alongside every other kind (see
27
+ Changed). A new accepted vector revokes one sponsorship of each kind before the merge: an
28
+ account, an asset trustline, a pool share trustline, an offer, a data entry, and an ed25519, a
29
+ pre-authorized transaction and a hash signer. Its rejected mutations name the same entry on
30
+ another account and the same entry twice, for each kind, then another asset, pool, offer, data
31
+ name and signer of the same account.
32
+ - `SponsoredEntry` is exported, the type of an account read's `sponsoredEntries`.
33
+
34
+ ### Changed
35
+
36
+ - **Breaking:** `verify()` accepts a sponsorship revoke of any kind only for an entry in the new
37
+ optional `sponsoredEntries` expectation, matched by kind, owner and key (the asset, the pool id,
38
+ the offer id, the data name, the signer's strkey), at most once per transaction. Without
39
+ `sponsoredEntries` every sponsorship revoke is refused, where 0.6.0 accepted every one. A data name that is not valid UTF-8 names no entry. New codes:
40
+ `sponsorship_revoke_unknown` and `sponsorship_revoke_duplicate`. To migrate, pass the account
41
+ read's list as is: `sponsoredEntries: account.sponsoredEntries`.
42
+ - `verify()` refuses the mediator hand-off when the observed native balance is not above the
43
+ 0.01 XLM tolerance (`mediator_forward_balance_unknown`). Below it the forward floor was zero or
44
+ negative, so a check run with no balance read (`nativeBalance: "0"`) accepted any forward. A new
45
+ accepted vector verifies a round ahead of the merge with no balance read, and its rejected
46
+ mutation adds the hand-off to it.
47
+ - The bundled list of networks now comes from one module that the web app's routing also reads.
48
+ The networks themselves (`mainnet`, `testnet`) and what `verify()` accepts are unchanged.
49
+ - The bundled contract registry (version `2026-11-23`) re-pins the mainnet Soroswap aggregator
50
+ (`CARVQXFP4JF5ELLXUMQ6DALR346YVGBMQOHB4ENA7SSVXAYABXLBDDC4`) to the code it runs since its
51
+ upstream upgrade on 2026-11-23. The previous code is no longer recognized. The aggregator's
52
+ address, its `swap_exact_in` interface and the contracts a close may call are unchanged, and so
53
+ is verification.
54
+
55
+ ## [0.6.0] - 2026-11-19
56
+
57
+ ### Added
58
+
59
+ - The `exit_arguments_unexpected` verification code.
60
+
61
+ ### Changed
62
+
63
+ - `verify()` checks the arguments of a Phoenix `withdraw_liquidity`: the sender must be the
64
+ account being closed (`exit_argument_party_mismatch`), and there must be exactly the six
65
+ arguments every registered pool code takes, with integer amounts and the deadline and the
66
+ `auto_unstake` argument unset (`exit_arguments_unexpected`). The real testnet Phoenix
67
+ withdrawal vector is recaptured from the new testnet pool, so it is a six-argument call with a
68
+ new envelope, source and share token, and three vectors mutate it: without `auto_unstake`, with
69
+ an `auto_unstake`, and with another sender.
70
+ - The bundled contract registry lists two more mainnet Phoenix pools, both from the Phoenix
71
+ factory's own pool list. PHO/USDC `CCPPPTDW…` runs a later build of the v2 pool code, and its
72
+ stake contract `CBUS3GWD…` a build of the v2 stake code, so a withdrawal from that pool and an
73
+ `unbond` on that stake now pass. XLM/USDC `CBENABXP…` runs Phoenix's blended pool code under a
74
+ new version, `blended`. It has no stake contract of its own, so only its `withdraw_liquidity`
75
+ passes, and an `unbond` on it is still refused.
76
+ - The bundled contract registry's testnet Phoenix pool and stake are replaced: pool `CA4V7YVU…`
77
+ runs the mainnet v1 pool code and stake `CBYFZPJ2…` the mainnet v1 stake code, both version
78
+ `v1`, in place of `CCVEHSVG…` and `CCELNFRX…`, whose older pool build took a five-argument
79
+ `withdraw_liquidity`. The pool's tokens are a new test token `CBQP4F36…` and XLM, and its share
80
+ token is `CDZPFQQU…`. A withdrawal or `unbond` on the old testnet contracts is now refused.
81
+
82
+ - The bundled exchange and contract registries are re-verified and restamped: `lastVerified`
83
+ 2026-11-17 and `validUntil` 2027-02-15. No entry is added, removed or re-pinned; contract
84
+ entries record the day their live code was re-read. The two vectors that run past the bundled
85
+ expiry now take their clock and snapshot dates from the bundled registry, so their
86
+ `nowSeconds`, descriptions and dates move with it; their names and expected results are
87
+ unchanged.
88
+ - The bundled contract registry's Phoenix stake entry `CDOXQONP…` records new evidence: its
89
+ `unbond` pays the token under its `NEWLP` storage key, which is its pool's share token, so its
90
+ `verifiedBy` and `verifiedAt` change. Its address, code hash and version are unchanged, and so
91
+ is verification.
92
+
10
93
  ## [0.5.0] - 2026-11-17
11
94
 
12
95
  ### Added
@@ -134,7 +217,9 @@ The bundled exchange and contract registries are unchanged.
134
217
  is optional, and a rejection may mutate the snapshot instead of, or with, the transaction.
135
218
  - The package ships its `LICENSE` and this `CHANGELOG.md`.
136
219
 
137
- [Unreleased]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.5.0...HEAD
220
+ [Unreleased]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.7.0...HEAD
221
+ [0.7.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.6.0...verify-v0.7.0
222
+ [0.6.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.5.0...verify-v0.6.0
138
223
  [0.5.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.4.0...verify-v0.5.0
139
224
  [0.4.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.3.0...verify-v0.4.0
140
225
  [0.3.0]: https://github.com/LumenWipe/lumenwipe/compare/verify-v0.2.0...verify-v0.3.0
package/README.md CHANGED
@@ -52,6 +52,7 @@ await runClose({
52
52
  tokenTransfers: {},
53
53
  classicConversions: {},
54
54
  tokenConversions: {},
55
+ sponsoredEntries: account.sponsoredEntries,
55
56
  ...exitExpectations(account, "testnet"),
56
57
  },
57
58
  servedRegistry,
@@ -70,6 +71,7 @@ Never from the transaction under verification, and never from the API's `intent`
70
71
  | `claimTrustlineAssets` | The `CODE:ISSUER` of each claimable balance the user chose to claim. |
71
72
  | `source`, `nativeBalance`, `accountSigners`, `accountThresholds` | The account read the user reviewed (`client.getAccount`, or a round's `sourceAccount`). Empty signers fail closed. |
72
73
  | The DeFi fields (`exitContracts` and the rest) | `exitExpectations(account, network)`: the same read plus the contract registry bundled here. |
74
+ | `sponsoredEntries` | The same read's `sponsoredEntries`, as is. Omitted, every sponsorship revoke is refused. |
73
75
 
74
76
  Whether a destination is a listed exchange, whether it needs a memo and of which type, and
75
77
  whether the merge must go through the shared intermediary are not inputs. The verifier derives