Commit graph

16 commits

Author SHA1 Message Date
Logical Mechanism
e9b7ec23ee
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)
0dd9bcdd7e
fix(txbuilder): don't include empty redeemers in Conway txs (#532) 2024-10-25 19:06:25 -03:00
Santiago Carmuega
211674d81c
fix(txbuilder): sign transactions using Conway era (#531) 2024-10-24 16:17:34 -03:00
Santiago Carmuega
698d7a4933
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
537cd45c23
refactor: support roundtrip encoding for script data hash components (#526) 2024-10-22 10:09:37 -03:00
Matthias Benkort
969d5612b7
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
05f8b2bd07
feat(txbuilder): expose independent output builder (#522) 2024-10-17 13:36:33 -03:00
Joshua Marchand (JSHy)
be681fed92
chore(txbuilder): export ExUnits to make them accessible from outside (#497) 2024-08-02 14:39:49 -03:00
Santiago Carmuega
ee505a02e6
fix: relax CBOR decoding of Conway protocol params update (#473) 2024-06-18 13:03:07 -03:00
Alex Pozhylenkov
972102aed8
feat(hardano): implement search for the immutabledb reader (#372) 2024-01-04 08:46:19 -03:00
Harper
b78cedaf43
fix: correct datum kind for set_datum_hash (#350) 2024-01-02 07:18:12 -03:00
Harper
afa397f4ea
fix: return witness objects for conway era multieratx (#346) 2024-01-02 07:17:40 -03:00
Harper
550eac147b
feat(wallet): implement HD private keys & encrypted wrapper (#358) 2023-12-23 13:24:32 -03:00
Santiago Carmuega
fcbaf4ed97
fix: fix unable to build and sign txs (#345) 2023-12-04 09:22:56 -03:00
Santiago Carmuega
b13d3b6688
chore(txbuilder): fix lint warnings (#343) 2023-12-03 10:29:27 -03:00
Harper
f3d9719b5d
feat: introduce transaction builder crate (#338) 2023-12-03 09:51:06 -03:00