Commit 953126a
committed
types: deduplicate identical Move types between hashi-types and onchain::types
Previously, 10 types (UpgradeCap, ConfigValue, WithdrawalStatus,
WithdrawalRequest, PendingWithdrawal, OutputUtxo, DepositRequest,
Utxo, UtxoId, UtxoRecord) were defined identically in both
hashi-types::move_types and hashi::onchain::types, with trivial
field-by-field conversion functions bridging them.
Now `onchain::types` re-exports these from `hashi_types::move_types`
and the conversion functions are removed. The hashi-types versions
gain the additional derives (Clone, PartialEq, Hash, Serialize) that
the onchain versions previously carried, along with the small helper
methods (`WithdrawalStatus::is_approved`, `is_requested`,
`PendingWithdrawal::all_outputs`).1 parent 60e18ed commit 953126a
5 files changed
Lines changed: 99 additions & 349 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
261 | 273 | | |
262 | | - | |
| 274 | + | |
263 | 275 | | |
264 | 276 | | |
265 | 277 | | |
| |||
281 | 293 | | |
282 | 294 | | |
283 | 295 | | |
284 | | - | |
| 296 | + | |
285 | 297 | | |
286 | 298 | | |
287 | 299 | | |
| |||
296 | 308 | | |
297 | 309 | | |
298 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
299 | 321 | | |
300 | | - | |
| 322 | + | |
301 | 323 | | |
302 | 324 | | |
303 | 325 | | |
304 | 326 | | |
305 | 327 | | |
306 | 328 | | |
307 | 329 | | |
308 | | - | |
| 330 | + | |
309 | 331 | | |
310 | 332 | | |
311 | 333 | | |
| |||
314 | 336 | | |
315 | 337 | | |
316 | 338 | | |
317 | | - | |
| 339 | + | |
318 | 340 | | |
319 | 341 | | |
320 | 342 | | |
| |||
323 | 345 | | |
324 | 346 | | |
325 | 347 | | |
326 | | - | |
| 348 | + | |
327 | 349 | | |
328 | 350 | | |
329 | 351 | | |
330 | 352 | | |
331 | 353 | | |
332 | 354 | | |
333 | 355 | | |
334 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
335 | 368 | | |
336 | 369 | | |
337 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
1805 | 1805 | | |
1806 | 1806 | | |
1807 | 1807 | | |
1808 | | - | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
1823 | 1821 | | |
1824 | 1822 | | |
1825 | 1823 | | |
| |||
0 commit comments