Skip to content

Commit 99cafa5

Browse files
committed
Reexports
1 parent ef32296 commit 99cafa5

File tree

5 files changed

+38
-16
lines changed

5 files changed

+38
-16
lines changed

plutus-ledger-api/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ Changelog](https://keepachangelog.com/en/1.1.0).
77

88
## 4.0.0
99

10+
### Added
11+
12+
- reexporting all types and functions from submodules (e.g.:
13+
`v2::transaction::TransactionHash` can now be reached from
14+
`v2::TransactionHash` as well)
15+
1016
### Changed
1117

1218
- `serde` serialization format improvements:

plutus-ledger-api/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plutus-ledger-api/src/v1/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ pub mod redeemer;
88
pub mod script;
99
pub mod transaction;
1010
pub mod value;
11+
12+
pub use address::*;
13+
pub use assoc_map::*;
14+
pub use crypto::*;
15+
pub use datum::*;
16+
pub use interval::*;
17+
pub use redeemer::*;
18+
pub use script::*;
19+
pub use transaction::*;
20+
pub use value::*;

plutus-ledger-api/src/v2/mod.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
pub mod datum;
55
pub mod transaction;
66

7+
pub use datum::*;
8+
pub use transaction::*;
9+
710
// Inherited from v1
8-
pub use crate::v1::address;
9-
pub use crate::v1::assoc_map;
10-
pub use crate::v1::crypto;
11-
pub use crate::v1::interval;
12-
pub use crate::v1::redeemer;
13-
pub use crate::v1::script;
14-
pub use crate::v1::value;
11+
pub use crate::v1::address::{self, *};
12+
pub use crate::v1::assoc_map::{self, *};
13+
pub use crate::v1::crypto::{self, *};
14+
pub use crate::v1::interval::{self, *};
15+
pub use crate::v1::redeemer::{self, *};
16+
pub use crate::v1::script::{self, *};
17+
pub use crate::v1::value::{self, *};

plutus-ledger-api/src/v3/mod.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
pub mod ratio;
55
pub mod transaction;
66

7+
pub use ratio::*;
8+
pub use transaction::*;
9+
710
// Inherited from v2
8-
pub use crate::v2::address;
9-
pub use crate::v2::assoc_map;
10-
pub use crate::v2::crypto;
11-
pub use crate::v2::datum;
12-
pub use crate::v2::interval;
13-
pub use crate::v2::redeemer;
14-
pub use crate::v2::script;
15-
pub use crate::v2::value;
11+
pub use crate::v2::address::{self, *};
12+
pub use crate::v2::assoc_map::{self, *};
13+
pub use crate::v2::crypto::{self, *};
14+
pub use crate::v2::datum::{self, *};
15+
pub use crate::v2::interval::{self, *};
16+
pub use crate::v2::redeemer::{self, *};
17+
pub use crate::v2::script::{self, *};
18+
pub use crate::v2::value::{self, *};

0 commit comments

Comments
 (0)