Commit graph

87 commits

Author SHA1 Message Date
Santiago Carmuega
dfbe307e6c feat(traverse): prioritize Conway for tx decoding heuristics (#527) 2024-10-22 10:27:56 -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
Andrew Westberg
7d79407163 feat(crypto): Add Key Evolving Signatures (KES) 2024-10-17 15:12:33 -04:00
Santiago Carmuega
19b0ac3072 feat: add support for Conway config and params traverse (#521)
Co-authored-by: Clark Alesna <clark_alesna@hotmail.com>
Co-authored-by: johnquinnvictaboada <quinnvictaboada@gmail.com>
2024-10-16 21:43:23 -03:00
Andrew Westberg
de923dc004 feat(crypto): add extra types and conversions (#517) 2024-10-04 08:37:36 -03:00
Santiago Carmuega
3b5c1ba7ab feat(traverse): introduce MultiEraValue (#516) 2024-10-01 09:46:58 -03:00
Matthias Benkort
afc93b2c3c fix(traverse): use Conway types in places they are meant to (#499) 2024-08-08 08:33:10 -03:00
Lucas
60e07e2f00 fix(interop): map missing u5c redeemers (#490) 2024-07-15 21:47:25 -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
0f30012d75 chore: fix lint warnings (#470) 2024-06-01 08:05:47 -03:00
Andrew Westberg
f4fd2600f1 feat(traverse): Decode Conway block headers properly (#466) 2024-05-24 17:25:24 -03:00
Santiago Carmuega
3a83c1fdad chore(traverse): make era enum serializable (#467) 2024-05-24 17:21:17 -03:00
Santiago Carmuega
0b82bb702a feat(traverse): track original era for tx outputs (#447) 2024-04-18 22:36:19 -03:00
Harper
0c84dc4983 feat: add Conway 2024-03 CDDL conformity (#424) 2024-04-01 14:02:52 -03:00
Santiago Carmuega
90432bf556 chore: fix new lint warnings (#400) 2024-02-11 17:56:22 -03:00
Ale Gadea
7c287296ee fix(traverse): add missing tx field getters for Conway (#392) 2024-02-11 12:53:33 -03:00
Santiago Carmuega
5cf77c1c7b fix: favor Babbage over Conway for tx decoding (#389) 2024-01-28 16:26:23 -03:00
Santiago Carmuega
25bbb925b2 fix(traverse): fix conway txs not returning reference inputs (#388) 2024-01-28 16:11:26 -03:00
Harper
c2bba68531 fix: return witness objects for conway era multieratx (#346) 2024-01-02 07:17:40 -03:00
Santiago Carmuega
6175a53fec feat(traverse): improve protocol update access (#360) 2023-12-14 18:54:01 -03:00
Harper
90c66047c5 feat: introduce wallet crate for ed25519-bip32 key management (#342)
Co-authored-by: Santiago Carmuega <santiago@carmuega.me>
2023-12-03 11:31:27 -03:00
Santiago Carmuega
fdbdcc3a4f chore: fix lint warnings (#330) 2023-11-13 17:00:00 -03:00
Harper
bf973dff3c feat: introduce conway primitives (#290)
Co-authored-by: lisicky <lisicky@inbox.ru>
2023-11-03 12:22:06 -03:00
Harper
eace470b4f feat(traverse): expose tx update field (#313) 2023-10-24 09:59:36 +00:00
Maico Leberle
5391a037d6 feat: scaffold Byron phase-1 validations (#300)
Co-authored-by: Santiago Carmuega <santiago@carmuega.me>
2023-10-10 17:16:26 -03:00
Santiago Carmuega
08d83d1d9c fix(traverse): fix well-known genesis values for preprod / preview (#284) 2023-09-09 10:18:35 -03:00
Santiago Carmuega
f515a6115c chore: fix lint warning (#283) 2023-09-07 09:39:18 -03:00
Cainã Costa
faa11a5bfd feat(traverse): add network id to genesis values (#272) 2023-09-01 09:18:51 -03:00
Olof Blomqvist
d1f61a3992 fix: fix builds on windows platform (#263) 2023-06-21 13:39:43 -03:00
Santiago Carmuega
65331e8346 chore: fix clippy warnings (#262) 2023-06-11 21:41:23 -03:00
Santiago Carmuega
4a849eec25 feat: introduce UTxO RPC interop (#260) 2023-06-10 22:52:48 -03:00
Santiago Carmuega
fb22d1b0e2 feat(traverse): improve native asset access (#259) 2023-06-03 20:46:41 -03:00
Harper
a0cc1a5e47 fix: ignore duplicate consumed inputs (#257) 2023-05-12 09:01:44 -03:00
Santiago Carmuega
ae7e1f5c82 chore: Fix lint warnings for all targets (#240) 2023-03-24 06:59:49 -03:00
Santiago Carmuega
44465369be feat(upstream): Make output generic by adapter (#236) 2023-03-16 16:21:06 -03:00
Santiago Carmuega
7b3708ac46 feat(traverse): Introduce time helpers (#234) 2023-03-13 18:55:44 -03:00
Santiago Carmuega
c1446ebea5 chore(traverse): Improve API ergonomics (#233) 2023-03-13 15:19:40 -03:00
Santiago Carmuega
8fa662b4de feat(traverse): Expose aux data scripts (#232) 2023-03-11 18:07:09 -03:00
Santiago Carmuega
4a7afe94f0 refactor(traverse): Unify mint and output asset artifacts (#231) 2023-03-11 14:12:31 -03:00
Pi Lanningham
f9263a0eba feat: Add constants for known miniprotocols
* Add constants for known miniprotocols

Now consumers of the crate don't have to memorize what channel number means what

* Add myself to the crate authors
2023-02-05 06:13:55 -05:00
Santiago Carmuega
6a3679dcda feat(miniprotocols): Implement tx submission client (#220)
* feat(miniprotocols): Implement tx submission client

* Match CDDL specs

* Fix build errors

* Add server implementation for txsubmission

Also includes some documentation for how to use both the client and the server

* cargo fmt

* clippy suggestions

clippy pls

* Fail explicitly on missing n2c unix socket

---------

Co-authored-by: Pi Lanningham <pi@sundaeswap.finance>
2023-02-03 20:38:12 -05:00
Santiago Carmuega
cd0212e5dc fix: Provide original hash for inline datum (#221) 2023-02-03 14:58:39 -03:00
Santiago Carmuega
d7a414c3af chore: Fix lint issues (#222) 2023-02-02 21:07:14 -03:00
Santiago Carmuega
4813ae02bf chore: Fix lint warnings (#205) 2022-11-13 10:53:19 -03:00
Harper
722df84fd5 feat(traverse): produces_at method for MultiEraTx (#200) 2022-11-03 20:12:39 +00:00
Santiago Carmuega
cabe9714ca feat(traverse): Add helper methods to Asset data (#195) 2022-09-28 11:45:37 -03:00
Santiago Carmuega
4264a9739a chore: Fix linter warnings (#194) 2022-09-21 18:44:03 -03:00
Harper
7246ef52da feat: return indexes along with outputs returned by produces() (#193) 2022-09-20 19:39:44 -03:00
Lucas
32c05c6ff7 feat: Provide access to all assets at a tx out (#180) 2022-09-16 17:53:45 -03:00