Commit graph

18 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
Logical Mechanism
e2aa8139fc feat(txbuilder): allow cloning of relevant structs (#558)
Co-authored-by: logicalmechanism <logicalmechanism@protonmail.com>
2024-12-13 07:57:36 -03:00
Logical Mechanism
f70a4b41c9 fix(txbuilder): support adding signatures to Conway transactions (#553)
Co-authored-by: logicalmechanism <logicalmechanism@protonmail.com>
Co-authored-by: logicalmechanism <logicalmechanism@proton.mail>
2024-12-11 21:54:09 -03:00
Joshua Marchand (JSHy)
b580f1caab fix(txbuilder): don't include empty redeemers in Conway txs (#532) 2024-10-25 19:06:25 -03:00
Santiago Carmuega
3adc16b798 fix(txbuilder): sign transactions using Conway era (#531) 2024-10-24 16:17:34 -03:00
Santiago Carmuega
a29a6cf50f feat(txbuilder): compute ScriptDataHash including edge cases (#525)
Co-authored-by: kalomaaan <kalomaaan@gmail.com>
2024-10-22 22:20:58 -03:00
Santiago Carmuega
3b5dcef195 refactor: support roundtrip encoding for script data hash components (#526) 2024-10-22 10:09:37 -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
33b076ad23 feat(txbuilder): expose independent output builder (#522) 2024-10-17 13:36:33 -03:00
Joshua Marchand (JSHy)
b7c6144b4d chore(txbuilder): export ExUnits to make them accessible from outside (#497) 2024-08-02 14:39:49 -03:00
Santiago Carmuega
ab8bd49701 fix: relax CBOR decoding of Conway protocol params update (#473) 2024-06-18 13:03:07 -03:00
Alex Pozhylenkov
50af4e0a75 feat(hardano): implement search for the immutabledb reader (#372) 2024-01-04 08:46:19 -03:00
Harper
b9ed5431d1 fix: correct datum kind for set_datum_hash (#350) 2024-01-02 07:18:12 -03:00
Harper
c2bba68531 fix: return witness objects for conway era multieratx (#346) 2024-01-02 07:17:40 -03:00
Harper
d9224eb780 feat(wallet): implement HD private keys & encrypted wrapper (#358) 2023-12-23 13:24:32 -03:00
Santiago Carmuega
fe5018120f fix: fix unable to build and sign txs (#345) 2023-12-04 09:22:56 -03:00
Santiago Carmuega
f9ea2c4790 chore(txbuilder): fix lint warnings (#343) 2023-12-03 10:29:27 -03:00
Harper
1582883dc6 feat: introduce transaction builder crate (#338) 2023-12-03 09:51:06 -03:00