Commit graph

27 commits

Author SHA1 Message Date
Santiago Carmuega
b483b3a17a chore: apply new lint warnings from latest clippy (#561) 2024-12-14 17:37:33 -03:00
Santiago Carmuega
ac66eb9473 chore(utxorpc): update spec to v0.14 and update redeemer mapper (#559)
Co-authored-by: ricomiles <ricoquiblat@gmail.com>
2024-12-14 16:16:42 -03:00
Rico Miles Quiblat
9c45be76b1 feat(utxorpc): add execution cost prices to parameter mapper (#555) 2024-12-11 21:55:16 -03:00
Matthias Benkort
6b667c78a3 refactor: Re-organize and clean-up pallas-primitives (#523)
* Re-organize and clean-up pallas-primitives

  Namely:

  - Move _common_ (i.e. era-independent) types and structures up to the
    `lib` module; to be shared across all eras. If any of those deviate
    in a subsequent era, it is easy to bring them down and define new
    types from the point of divergence onward. This simplifies the scope
    of each era-specific module and make them slightly easier to
    navigate.

    Note that, each era module still re-export all of the common types
    that's relevant to that particular era. So technically, this
    reorganization doesn't really change anything for callers/users of
    the library.

  - Rename `Scripthash` to `ScriptHash`. Before this commit, both
    actually existed as `ScriptHash` was introduced with the Conway era.
    Yet, they refer to the same thing, so the duplication is simply
    confusing.

  - Rename `One` / `Two` constructors for `NetworkId` to `Testnet` and
    `Mainnet` respectively. Also defined idiomatic `From` & `TryFrom`
    implementation for conversion to and from `u8`. This is a lot let
    confusing!

  - Generalize `PlutusScript` with a constant generic, to avoid
    repetition for each plutus script generated for specific version.
    Note that a distinction is still _necessary_ if we want to provie
    out-of-the-box serialisers for Plutus scripts, which are serialised
    with a tag prefix depending on the language. All else apart, they
    are strictly similar types.

  - Rename `CostMdls` to `CostModels`. Because, common.

  - Rename `plutus_script` to `plutus_v1_script` in the Alonzo's witness
    set, for consistency with other eras.

* Fix ordering of ScriptHash variants.

  This is an odd one. See the note.

* Bump minicbor to v0.25.1

* Add aliases with deprecation warnings to various fields and types.

* revert renaming plutus_script to plutus_v1_script in Alonzo witness

  See https://github.com/txpipe/pallas/pull/523#discussion_r1807329742
2024-10-22 08:57:21 -03:00
Santiago Carmuega
3b5c1ba7ab feat(traverse): introduce MultiEraValue (#516) 2024-10-01 09:46:58 -03:00
Santiago Carmuega
6a3d8df216 feat(interop): map u5c Conway structs (#511) 2024-09-06 21:12:27 -03:00
Santiago Carmuega
510ce8e4ee fix(interop): support Conway pparams mapping to u5c (#509) 2024-08-25 13:23:31 -03:00
Santiago Carmuega
78627d0d2a feat(interop): implement u5c pparams mapping (#504) 2024-08-15 16:01:10 -03:00
Santiago Carmuega
27c4967824 feat(interop): introduce field-mask context for u5c (#502) 2024-08-15 10:35:58 -03:00
Santiago Carmuega
2758cc5a2c fix(interop): skip conway certs in u5c (#498) 2024-08-03 10:46:14 -03:00
Santiago Carmuega
46dff24c3e chore(interop): update u5c spec to v0.8.0 (#493) 2024-07-28 19:48:43 -03:00
Lucas
60e07e2f00 fix(interop): map missing u5c redeemers (#490) 2024-07-15 21:47:25 -03:00
Santiago Carmuega
8f74238dc5 chore(interop): update u5c spec to v0.7.0 (#489) 2024-07-15 18:25:40 -03:00
Santiago Carmuega
9f9e088091 fix(interop): use correct input order to match redeemers (#487) 2024-07-14 13:48:05 -03:00
Santiago Carmuega
9b16a98fb1 fix(interop): check for spend purpose when matching redeemers (#486) 2024-07-13 14:43:52 -03:00
Santiago Carmuega
12b83111ee refactor(interop): use batching for utxorpc ledger interface (#472) 2024-06-09 21:01:59 -03:00
Santiago Carmuega
37cad70f9c refactor(interop): use stateful mapper for u5 (#460) 2024-05-17 20:54:33 -03:00
Santiago Carmuega
3fabbb2504 chore: apply lint recommendations (#458) 2024-05-14 21:14:19 -03:00
aleksandar
5a299ce049 feat(interop): add ledger context for utxorpc mapping logic (#450)
Co-authored-by: Aleksandar Djuric <aleksandardjuric@alethea.io>
2024-05-14 07:19:04 -03:00
Santiago Carmuega
df202c27c3 feat(interop): re-export utxorpc spec to unify downstream versions (#448) 2024-04-18 22:40:40 -03:00
Harper
0c84dc4983 feat: add Conway 2024-03 CDDL conformity (#424) 2024-04-01 14:02:52 -03:00
Santiago Carmuega
ae796b4a01 chore: update utxorpc-spec to 0.3.0 (#399) 2024-02-11 14:38:26 -03:00
Clark Alesna
d565260ce5 fix(utxorpc): map missing struct values (#387)
Tx hash and block height are now correctly mapped into the corresponding utxorpc structures.
2024-02-11 13:19:13 -03:00
Harper
c2bba68531 fix: return witness objects for conway era multieratx (#346) 2024-01-02 07:17:40 -03:00
Santiago Carmuega
65331e8346 chore: fix clippy warnings (#262) 2023-06-11 21:41:23 -03:00
Santiago Carmuega
efd82c72e1 feat(interop): add block mapping to u5c (#261) 2023-06-11 21:31:39 -03:00
Santiago Carmuega
4a849eec25 feat: introduce UTxO RPC interop (#260) 2023-06-10 22:52:48 -03:00