Skip to content

Commit cb80f34

Browse files
committed
Added Dijkstra era
1 parent c377787 commit cb80f34

File tree

6 files changed

+126
-0
lines changed

6 files changed

+126
-0
lines changed

cabal.project

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ packages:
3838
eras/babbage/test-suite
3939
eras/conway/impl
4040
eras/conway/test-suite
41+
eras/dijkstra
4142
eras/mary/impl
4243
eras/shelley/impl
4344
eras/shelley/test-suite

eras/dijkstra/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Revision history for cardano-ledger-dijkstra
2+
3+
## 0.1.0.0 -- YYYY-mm-dd
4+
5+
* First version. Released on an unsuspecting world.

eras/dijkstra/LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Copyright (c) 2025, IOG
2+
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above
11+
copyright notice, this list of conditions and the following
12+
disclaimer in the documentation and/or other materials provided
13+
with the distribution.
14+
15+
* Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived
17+
from this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
cabal-version: 3.0
2+
name: cardano-ledger-dijkstra
3+
version: 0.1.0.0
4+
license: Apache-2.0
5+
maintainer: [email protected]
6+
author: IOHK
7+
bug-reports: https://github.com/intersectmbo/cardano-ledger/issues
8+
synopsis: Cardano ledger with nested transactions
9+
description:
10+
This package builds upon the Conway ledger with a nested transactions system.
11+
12+
category: Network
13+
build-type: Simple
14+
extra-source-files: CHANGELOG.md
15+
16+
source-repository head
17+
type: git
18+
location: https://github.com/intersectmbo/cardano-ledger
19+
subdir: eras/dijkstra
20+
21+
flag asserts
22+
description: Enable assertions
23+
default: False
24+
25+
library
26+
exposed-modules:
27+
Cardano.Ledger.Dijkstra
28+
hs-source-dirs: src
29+
30+
default-language: Haskell2010
31+
ghc-options:
32+
-Wall
33+
-Wcompat
34+
-Wincomplete-record-updates
35+
-Wincomplete-uni-patterns
36+
-Wpartial-fields
37+
-Wredundant-constraints
38+
-Wunused-packages
39+
40+
build-depends:
41+
base >=4.14 && <5,
42+
if flag(asserts)
43+
ghc-options: -fno-ignore-asserts
44+
45+
library testlib
46+
exposed-modules:
47+
visibility: public
48+
hs-source-dirs: testlib
49+
other-modules: Paths_cardano_ledger_dijkstra
50+
default-language: Haskell2010
51+
ghc-options:
52+
-Wall
53+
-Wcompat
54+
-Wincomplete-record-updates
55+
-Wincomplete-uni-patterns
56+
-Wpartial-fields
57+
-Wredundant-constraints
58+
-Wunused-packages
59+
60+
build-depends:
61+
base,
62+
63+
test-suite tests
64+
type: exitcode-stdio-1.0
65+
main-is: Main.hs
66+
hs-source-dirs: test
67+
other-modules:
68+
Paths_cardano_ledger_dijkstra
69+
70+
default-language: Haskell2010
71+
ghc-options:
72+
-Wall
73+
-Wcompat
74+
-Wincomplete-record-updates
75+
-Wincomplete-uni-patterns
76+
-Wredundant-constraints
77+
-Wpartial-fields
78+
-Wunused-packages
79+
-threaded
80+
-rtsopts
81+
-with-rtsopts=-N
82+
83+
build-depends:
84+
base,
85+
testlib,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module Cardano.Ledger.Dijkstra () where

eras/dijkstra/test/Main.hs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Main where
2+
3+
main :: IO ()
4+
main = putStrLn "TODO add a test suite"
5+

0 commit comments

Comments
 (0)