Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plutus-ledger-api V2 #55

Merged
merged 41 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2b7d884
Implement extra golden tests for external use
szg251 Aug 28, 2024
fb8cc8e
Update golden tests
szg251 Sep 24, 2024
e9adfe8
Custom serde serialization for Value
szg251 Oct 3, 2024
fcbf520
Add Display implementations
szg251 Aug 8, 2024
bf30fbc
Reorganise modules
szg251 Oct 4, 2024
c60e631
Apply clippy suggestions
szg251 Oct 4, 2024
7864eb2
Update csl
szg251 Oct 4, 2024
9274576
Changelog and version bump
szg251 Oct 4, 2024
87e07ef
implement procedural derive macro for `IsPlutusData`
chfanghr Oct 14, 2024
21efc52
separate `PlutusData` and `IsPlutusData` from plutus-ledger-api
chfanghr Oct 17, 2024
1a7c261
lower version requirement of proc-macro2
chfanghr Oct 17, 2024
167395f
`plutus_data_derive_strategy` -> `is_plutus_data_derive_strategy`
chfanghr Oct 17, 2024
4d5a08b
fix `parse_fixed_len_plutus_data_list` not in scope
chfanghr Oct 17, 2024
001c558
attribute value can only be literal
chfanghr Oct 17, 2024
c7812dd
derive the shit out of it
chfanghr Oct 17, 2024
b4351b7
explicitly mark derive strategies
chfanghr Oct 18, 2024
3e64281
move plutus-data back to where it was
chfanghr Oct 21, 2024
84f92b6
remove plutus-data
chfanghr Oct 21, 2024
e84bbb0
fogot to commit .envrc
chfanghr Oct 21, 2024
32b00e6
update changelog
chfanghr Oct 21, 2024
2fd89e1
add v3 types
chfanghr Oct 18, 2024
9895366
implement generators for v3 types
chfanghr Oct 18, 2024
688be1c
add property tests for v3 types
chfanghr Oct 18, 2024
6864a9a
explicitly mark derive strategies
chfanghr Oct 18, 2024
e727987
remove true from dependencies
chfanghr Oct 21, 2024
2d51d1c
doc strings
chfanghr Oct 21, 2024
e96c707
more doc strings
chfanghr Oct 21, 2024
cf119ba
even more doc strings
chfanghr Oct 21, 2024
413e2e7
update changelog
chfanghr Oct 21, 2024
62a1ce5
Merge pull request #56 from mlabs-haskell/connor/is_plutus_data_derive
szg251 Nov 4, 2024
11e130d
Merge pull request #57 from mlabs-haskell/connor/v3-types
szg251 Nov 4, 2024
0f7507c
Reexport v2 types in v3 module
szg251 Nov 5, 2024
71cf096
Implement golden tests for Display implementations
szg251 Nov 5, 2024
ae25646
Update goldens
szg251 Nov 5, 2024
4899696
Update deps
szg251 Nov 5, 2024
d09a731
Update CHANGELOG
szg251 Nov 5, 2024
c35f7f3
Merge pull request #53 from mlabs-haskell/szg251/extra-goldens
szg251 Nov 5, 2024
1acaa8b
Add FromStr parsers
szg251 Nov 5, 2024
36c4133
Final touches before v2
szg251 Nov 7, 2024
c21d9ec
Migrate over csl roundtrip tests
szg251 Nov 7, 2024
1210948
Address PR comments
szg251 Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ result
.direnv
.pre-commit-config.yaml
.DS_Store
target
.extras
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
./hercules-ci.nix

./plutus-ledger-api/build.nix
./is-plutus-data-derive/build.nix
];
debug = true;
systems = [ "x86_64-linux" "x86_64-darwin" ];
Expand Down
1 change: 1 addition & 0 deletions is-plutus-data-derive/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake ../#dev-is-plutus-data-derive-rust
68 changes: 68 additions & 0 deletions is-plutus-data-derive/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions is-plutus-data-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "is-plutus-data-derive"
version = "0.1.0"
edition = "2021"

[dependencies]
proc-macro2 = "^1.0.66"
quote = "1.0.37"
syn = { version = "2.0.79", features = ["full", "extra-traits"]}
thiserror = "1.0.64"

[lib]
proc-macro = true
18 changes: 18 additions & 0 deletions is-plutus-data-derive/build.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ inputs, ... }: {
perSystem = { config, system, ... }:
let
rustFlake =
inputs.flake-lang.lib.${system}.rustFlake {
src = ./.;
version = "0";
crateName = "is-plutus-data-derive";
devShellHook = config.settings.shell.hook;
cargoNextestExtraArgs = "--all-features";
generateDocs = false;
};

in
{
inherit (rustFlake) packages checks devShells;
};
}
Loading