Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
005a7d8
markdown migration (#776)
williamdemeo May 22, 2025
e7f4084
Add Conway modules to be processed by hldiff and vv (#787)
carlostome May 22, 2025
657e03c
Add invariants to `RewardUpdate` (#781)
HeinrichApfelmus Jun 9, 2025
47dd918
Add agda-fls backend to generate VV in html output (#794)
carlostome Jun 11, 2025
b1cb2cb
Fix script path for CI (#798)
carlostome Jun 11, 2025
582388e
Change PP parameter refScriptCostStride to use positive naturals (#796)
carlostome Jun 12, 2025
f4eed8b
Generic tex-to-md migration (#795)
williamdemeo Jun 18, 2025
3b360f1
Add option to fls-shake to watch the Agda source folder (#799)
carlostome Jun 18, 2025
08ae273
Modify 'refScripts' to return a set (#800)
carlostome Jun 23, 2025
1abdb4a
Improve ci (#807)
carlostome Jun 29, 2025
61b90c3
Rearrange module structure (#803)
carlostome Jun 30, 2025
6bd4ffa
Improve migration pipeline and begin migration (#805)
williamdemeo Jul 7, 2025
96beece
Refactor `feesOK` (#816)
carlostome Jul 10, 2025
db2f02f
Move `txsize` from `TxBody` to `Tx` (#818)
williamdemeo Jul 11, 2025
c201c2e
Add type class instance for setminus (#817)
williamdemeo Jul 11, 2025
309dd5a
Consolidate Script related functionality (#814)
carlostome Jul 14, 2025
c58bed8
Use html comments for hidden agda code (#824)
carlostome Jul 14, 2025
8f4442f
Consolidate governance modules (#823)
carlostome Jul 16, 2025
0538c40
Cleanup script verification (#822)
carlostome Jul 17, 2025
7338c85
first pass at README updates and new setup guide
williamdemeo Jul 9, 2025
c96b316
updates and improvements
williamdemeo Jul 9, 2025
76e8849
major update of CONTRIBUTING.md
williamdemeo Jul 9, 2025
0e864c8
Update README.md
williamdemeo Jul 14, 2025
9e24ca5
incorporate suggestions from PR review
williamdemeo Jul 14, 2025
a0d94c9
major update CONTRIBUTING; minor update README
williamdemeo Jul 14, 2025
24684b1
Add support for lagda.md files in generating raw html
carlostome Jul 14, 2025
1552cfb
Add back html generation to CI
carlostome Jul 14, 2025
c4b2ecc
Polish: cleanup formatting, link fixes, and doc structure
williamdemeo Jul 14, 2025
91b88c8
renaming Fees.lagda -> Fees.lagda.md and fixing it
williamdemeo Jul 15, 2025
430471b
Fix broken or outdated links across documentation
williamdemeo Jul 16, 2025
00662e5
General improvements to documentation and frontend
williamdemeo Jul 16, 2025
d259a93
explain how to use `fls-shake --watch`
williamdemeo Jul 16, 2025
6d7f0f8
Refactor: consolidate final cleanup of Fees.lagda.md
williamdemeo Jul 17, 2025
021feec
fix button and improve console logs
williamdemeo Jul 18, 2025
636e5a1
adjust code font size
williamdemeo Jul 18, 2025
90b59dd
remove out-dated conformance ex from CONTRIBUTING
williamdemeo Jul 18, 2025
3d392f8
fix static nav.yml
williamdemeo Jul 18, 2025
b022bf4
add aggregate hydra jobs (#831)
dermetfan Jul 18, 2025
d000515
Fix build on Mac (#835)
vrom911 Jul 22, 2025
7ba3a62
Update link to Agda style guide (#833)
facundominguez Jul 22, 2025
2ccd6ca
fix circular dep in build of fls-shake (#828)
williamdemeo Jul 23, 2025
660f547
Reorganize era-independent modules (#804)
carlostome Jul 24, 2025
6ea1fa4
Fix cardano-ledger-conformance (#841)
carlostome Jul 24, 2025
f5649a5
Add `agda-mode` to `fls-agda.nix` (#843)
williamdemeo Jul 26, 2025
6f730a7
More readable color scheme in dark mode (#844)
williamdemeo Jul 29, 2025
bb2feae
Complete implementation of `stakeDistr` (#802)
HeinrichApfelmus Aug 1, 2025
6348a1a
Markdown migration: fix mkdocs site problems (#836)
williamdemeo Aug 5, 2025
86919b8
Disable upload-artifacts on external branches (#860)
carlostome Aug 20, 2025
7a2a317
Change condition on push-artifacts-to-branch step (#863)
carlostome Aug 21, 2025
3f38fa0
Move if fork condition into the if expression (#867)
carlostome Aug 21, 2025
ffa2797
rename PoolParams to StakePoolParams (#853)
tzw3 Aug 21, 2025
201d6f3
Fix VV issue with line breaks inbetween unicode brackets (#862)
carlostome Aug 22, 2025
fdb687d
Implement the POOLREAP STS and hook it in the EPOCH transition
facundominguez Jul 21, 2025
3dcb9e9
Duplicate let bindings of EPOCH in another module to be used for proofs
facundominguez Jul 29, 2025
52a94fd
Update EPOCH-deterministic
facundominguez Aug 5, 2025
5971093
Open module with update bindings in the EPOCH transition
facundominguez Jul 30, 2025
2e52499
use type classes to remove some imports
williamdemeo Jul 30, 2025
7d01f15
Complete EPOCH-deterministic prove
facundominguez Aug 5, 2025
1dac302
Update proof of govDepsMatch
facundominguez Jul 31, 2025
00d53de
Apply suggestion from @williamdemeo
facundominguez Aug 14, 2025
d03c2cd
Apply suggestion from @williamdemeo
facundominguez Aug 14, 2025
64a0baf
Apply suggestion from @williamdemeo
facundominguez Aug 14, 2025
e0354a6
Apply suggestion from @williamdemeo
facundominguez Aug 14, 2025
cefa074
Apply suggestion from @williamdemeo
facundominguez Aug 14, 2025
6405dfc
Remove duplicate explanation of PState and PoolParams
facundominguez Aug 15, 2025
c76c6dc
Note the need to put ~/ledger-agda/bin in the PATH
facundominguez Aug 15, 2025
f9e4b38
Explain performance differences to generate documentation
facundominguez Aug 15, 2025
e6fb1e5
Remove redundant open declaration
facundominguez Aug 15, 2025
b65ae7d
Remove trailing space
facundominguez Aug 18, 2025
509ddc6
Move EPOCH updates to top level functions
facundominguez Aug 19, 2025
db3a3f9
Add a caption to figure with EPOCH update functions
facundominguez Aug 20, 2025
cf438e7
documentation edits
facundominguez Aug 22, 2025
969afe3
Remove parenthesis
facundominguez Aug 22, 2025
a4e9b66
Remove parenthesis
facundominguez Aug 22, 2025
e4a15dc
Adjust for renaming to StakePoolParams
facundominguez Aug 22, 2025
6b6a8bf
Integrate reward calculation in Conformance (#874)
carlostome Aug 25, 2025
26512fe
Fix table rendering in Gov.Actions module (#871)
williamdemeo Aug 25, 2025
7ae2504
Merge branch 'master' into fd/poolreap2
williamdemeo Aug 25, 2025
93023d2
Merge pull request #852 from IntersectMBO/fd/poolreap2
facundominguez Aug 26, 2025
d57f2a2
Update and regenerate tikz diagram
williamdemeo Aug 21, 2025
8b88e36
add svg version of Heinrich's diagram
williamdemeo Aug 25, 2025
18fe323
add Rewards module to mkdocs nav
williamdemeo Aug 25, 2025
9f648c3
prepare for migration of Rewards module
williamdemeo Aug 25, 2025
4ca40f7
partial completion of migration of Rewards
williamdemeo Aug 25, 2025
c759d96
+ add Heinrich's second diagram
williamdemeo Aug 26, 2025
21716c8
+ add luatex and dvisvgm programs to nix config
williamdemeo Aug 27, 2025
34e7e70
+ Update build-tools/static/md/mkdocs/includes/links.md
williamdemeo Aug 27, 2025
d36a66f
inline tikz in standalone tex files
williamdemeo Aug 27, 2025
9b8786a
+ improvements and prepare to migrate Utxo module
williamdemeo Aug 27, 2025
d8eb89d
Update agda to 2.8.0 (#875)
carlostome Sep 2, 2025
f50f499
Add a global constant MaxLovelaceSupplyᶜ
facundominguez Aug 26, 2025
024e753
Add bprev and bcur to NewEpochState
facundominguez Aug 21, 2025
cbcbcbf
Add RandomnessStabilisationWindow
facundominguez Sep 2, 2025
c4e5b05
Implement RUPD and TICK transition systems
facundominguez Aug 18, 2025
7de083a
Call TICK from the CHAIN transition relation
facundominguez Aug 22, 2025
55835b4
Update CHAIN-govDepsMatch
facundominguez Aug 22, 2025
2f7da6c
Make createRUpd opaque
facundominguez Aug 27, 2025
f9a6f2b
Implement Computational for RUPD and TICK
facundominguez Aug 27, 2025
da9a5e7
Update Computational-CHAIN
facundominguez Aug 27, 2025
c57aa05
Update CHANGELOG.md
facundominguez Sep 2, 2025
7dae333
Implement calculatePoolDistr (#854)
facundominguez Sep 3, 2025
77a3650
Refactor field names and type class instances
williamdemeo Aug 15, 2025
f7172ba
renaming Base.agda in preparation for migration
williamdemeo Aug 20, 2025
9fa9177
major refactoring
williamdemeo Aug 22, 2025
e405e61
update macros
williamdemeo Aug 22, 2025
18c645e
+ fix problems introduced by merge of master
williamdemeo Aug 26, 2025
da6d8b8
+ rename two constructors of `GovActionType`
williamdemeo Sep 3, 2025
f65e328
reorganize types in Certs module
williamdemeo Sep 4, 2025
70840e5
fix minor bug in pipeline script
williamdemeo Sep 4, 2025
bc2fb45
Add the BBODY transition system
facundominguez Sep 3, 2025
7ab0b1a
Update changelog
facundominguez Sep 4, 2025
3be50eb
Use BlockBody.Block instead of Chain.Block
facundominguez Sep 4, 2025
d6c0637
Add Computational properties for BlockBody
facundominguez Sep 5, 2025
ef5d6dd
Hook BBODY in CHAIN
facundominguez Sep 5, 2025
0a119ed
Merge branch 'master' into fd/rupd
williamdemeo Sep 9, 2025
4171f09
fix bug introduced by merge
williamdemeo Sep 9, 2025
73ef3a0
Merge branch 'fd/rupd' into fd/bbody
williamdemeo Sep 9, 2025
c41c02a
add `RewardsUpdate` and its `../Properties` to nav
williamdemeo Sep 9, 2025
7fb6967
Documentation style RewardUpdate.lagda.md
facundominguez Sep 9, 2025
4eefb7e
Edit documentation style in BlockBody.lagda.md
facundominguez Sep 9, 2025
ee9edc9
Edit style of local definitions of createRUpd
facundominguez Sep 9, 2025
07c6528
Merge remote-tracking branch 'origin/fd/rupd' into HEAD
facundominguez Sep 9, 2025
bde86e9
Merge pull request #884 from IntersectMBO/fd/bbody
facundominguez Sep 9, 2025
97e4416
move sub-toc to right and make gh links file-specific (#883)
williamdemeo Sep 9, 2025
55695e4
Merge branch 'master' into fd/rupd
williamdemeo Sep 9, 2025
7c847b3
remove file that was accidentally added
williamdemeo Sep 9, 2025
9bd7847
Refactor VDeleg, Voter, votes and acceptedBy (#877)
carlostome Sep 10, 2025
5fe9ae9
Merge branch 'master' into fd/rupd
williamdemeo Sep 10, 2025
f9a661e
Final cleanup.
williamdemeo Sep 10, 2025
6abb452
fix bullet lists and add to nav/toc
williamdemeo Sep 10, 2025
a7f4add
Merge pull request #869 from IntersectMBO/fd/rupd
facundominguez Sep 10, 2025
442488b
Rename Epoch.lagda to Epoch.lagda.md
carlostome Sep 10, 2025
d0151b0
Migrate contents of Epoch.lagda to md
carlostome Sep 10, 2025
3898a9e
Fix layout
carlostome Sep 11, 2025
a953c97
Rename Ledger.lagda to Ledger.lagda.md
carlostome Sep 10, 2025
df7e1e7
Migrate contents of Ledger.lagda to md
carlostome Sep 10, 2025
61b8672
Add explanation of rmOrphanDRepVotes
carlostome Sep 11, 2025
7254af1
Add prefix to disambiguate fields in DelegEnv for conf. test
carlostome Sep 11, 2025
c83872f
Migrate documentation of properties to mkdocs site (#890)
williamdemeo Sep 11, 2025
d6521af
add `?plain=1` to url for .md and .lagda.md files. (#892)
williamdemeo Sep 12, 2025
85b65b5
Build the extracted Haskell in a CI job
facundominguez Sep 11, 2025
eb2720d
Merge pull request #896 from IntersectMBO/fd/build-hs-ci
facundominguez Sep 12, 2025
2ffbcf6
Removed redundant static Notation.tex file (#900)
williamdemeo Sep 15, 2025
bf144c6
Migrate Definitions.tex to Definitions.md
williamdemeo Sep 12, 2025
2a039da
Conformance test fixes (#906)
carlostome Sep 17, 2025
41567eb
Fix broken link in Fees module doc (#901)
williamdemeo Sep 19, 2025
548bc6f
Migrate Enact to md
williamdemeo Sep 12, 2025
3853b41
migrate Gov.lagda to Gov.lagda.md and clean up module
williamdemeo Sep 12, 2025
f66ada7
Update src/Ledger/Conway/Specification/Enact.lagda.md
williamdemeo Sep 24, 2025
a7f1324
Update src/Ledger/Conway/Specification/Gov.lagda.md
williamdemeo Sep 24, 2025
cc84787
incorporate Carlos's suggestions
williamdemeo Sep 24, 2025
1642e39
Add deposits to stake of SPOs for counting votes (#931)
carlostome Sep 25, 2025
3005faa
making room for old Gov module
williamdemeo Sep 25, 2025
9501930
migrate Gov.lagda to Gov.lagda.md
williamdemeo Sep 25, 2025
0b29f1e
incorporate changes of last commit of previous PR
williamdemeo Sep 25, 2025
10901c4
remove accidentally added file
williamdemeo Sep 25, 2025
118f298
Remove mdbook (#839)
carlostome Sep 28, 2025
17c08a2
organize Utxo.Properties and Certs.Properties
williamdemeo Sep 25, 2025
3e3033b
major reorganization of Properties modules
williamdemeo Sep 25, 2025
5cb3ce5
add new modules to nav
williamdemeo Sep 25, 2025
d20292c
move computational properties of Utxow
williamdemeo Sep 29, 2025
565e338
incorporate Carlos's change requests
williamdemeo Sep 29, 2025
07fe940
cleanup Specification module
williamdemeo Sep 29, 2025
3ef532e
revert CERTS rule to do CERTBASE last
williamdemeo Sep 19, 2025
d2851d8
prepare to migrate Certs.lagda{,.md}
williamdemeo Sep 26, 2025
54e15cb
migrate Certs.lagda{,.md}
williamdemeo Sep 26, 2025
92137ef
Computational-RunTraceAfterAndThen proof done!
williamdemeo Sep 27, 2025
9694bb7
prepare to migrate STS and ComputationalRelation
williamdemeo Sep 28, 2025
9ef7d76
migrate STS and ComputationalRelation
williamdemeo Sep 28, 2025
2ecec7b
incorporate Carlos's change requests
williamdemeo Sep 30, 2025
1ae6334
fix docs to reflect changes to certs rule
williamdemeo Oct 1, 2025
fd4d0bc
Merge branch 'master' into william/dijkstra-dev
williamdemeo Oct 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/build_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io https://cache.nixos.org/
- name: Build the target ${{ inputs.target }}
- name: Build artifact
run: |
nix-shell --run 'fls-shake --trace -j8 ${{ inputs.target }}'
- name: Upload ${{ inputs.target }} artifact
nix-shell -A devShells.ci --run 'fls-shake --trace -j8 ${{ inputs.target }}'
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.target }}
Expand Down
104 changes: 77 additions & 27 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build and upload artifacts
name: CI
on:
push:
branches:
- master
- legacy-latex # ensure legacy-latex-artifacts branch gets created
pull_request:
branches:
- master
Expand All @@ -24,10 +25,10 @@ jobs:
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io https://cache.nixos.org/
- name: Build formalLedger
id: formalLedger
- name: Build formal-ledger
id: formal-ledger
run: |
nix-build -A formalLedger -o outputs
nix-build -A formal-ledger -o outputs
- name: Upload agda _build artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -45,28 +46,78 @@ jobs:
with:
target: hs

cardano-ledger-pdf:
hs-build:
needs: [hs]
runs-on: ubuntu-latest
steps:
- name: Download extracted Haskell code
uses: actions/download-artifact@v4
with:
name: hs
path: dist
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6c5963357f3c1c840201eda129a99d455074db04.tar.gz
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io https://cache.nixos.org/
- name: Build the extracted Haskell code
run: |
nix-shell -p haskell.compiler.ghc96 cabal-install --run "cd dist/hs; cabal update && cabal build"

html:
needs: [formal-ledger-agda]
uses: ./.github/workflows/build_artifact.yml
with:
target: cardano-ledger.pdf
target: html

conway-ledger-pdf:
mkdocs-site:
needs: [formal-ledger-agda]
uses: ./.github/workflows/build_artifact.yml
# # Should we only run on master branch? If so, uncomment next line.
# if: ${{ github.ref_name == 'master' }}
runs-on: ubuntu-latest
steps:
- name: Checkout main repository
uses: actions/checkout@v4
- name: Download agda _build artifact
uses: actions/download-artifact@v4
with:
name: _build
path: _build
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6c5963357f3c1c840201eda129a99d455074db04.tar.gz
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.iog.io https://cache.nixos.org/
- name: Generate and Build MkDocs site
run: |
nix-build -A mkdocs -o outputs
- name: Upload MkDocs site artifact
uses: actions/upload-artifact@v4
with:
name: mkdocs-site
path: outputs

cardano-ledger-pdf:
needs: [formal-ledger-agda]
uses: ./.github/workflows/copy_legacy_pdf.yml
with:
target: conway-ledger.pdf
pdf_name: cardano-ledger.pdf

html:
conway-ledger-pdf:
needs: [formal-ledger-agda]
uses: ./.github/workflows/build_artifact.yml
uses: ./.github/workflows/copy_legacy_pdf.yml
with:
target: html
pdf_name: conway-ledger.pdf

upload-artifacts:
# This job runs only if the workflow has not been manually dispached
if: ${{ github.event_name != 'workflow_dispatch' }}
needs: [formal-ledger-agda, hs, conway-ledger-pdf, cardano-ledger-pdf, html]
push-artifacts-to-branch:
# This job runs only if the workflow has not been manually dispached,
# and the origininating branch belongs to the repository
if: ${{ github.event_name != 'workflow_dispatch' && ! github.event.pull_request.head.repo.fork }}
needs: [formal-ledger-agda, hs, hs-build, html, conway-ledger-pdf, cardano-ledger-pdf, mkdocs-site]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -81,13 +132,12 @@ jobs:
echo "artifacts_branch=${{ github.event.pull_request.head.ref }}-artifacts" >> $GITHUB_OUTPUT
printf "artifacts_branch: %s\n" "${{ github.event.pull_request.head.ref }}-artifacts"
else
printf "This workflow was triggered by a push event to master\n"
echo "artifacts_branch=master-artifacts" >> $GITHUB_OUTPUT
printf "artifacts_branch: %s\n" "master-artifacts"
printf "This workflow was triggered by a push event to ${{ github.ref_name }}\n"
echo "artifacts_branch=${{ github.ref_name }}-artifacts" >> $GITHUB_OUTPUT
printf "artifacts_branch: %s\n" "${{ github.ref_name }}-artifacts"
fi
# Checkout env.artifacts_branch if it already exists
# otherwise create a new orphan branch.
# Lastly, remove all files from the repo
# Checkout env.artifacts_branch if it already exists otherwise create a new orphan branch.
# Lastly, remove all files from the repo.
- name: Checkout artifacts branch
run: |
if [[ -n "$(git ls-remote --heads origin "${ARTIFACTS_BRANCH}")" ]]; then
Expand Down Expand Up @@ -142,7 +192,7 @@ jobs:
cat << EOF >> index.html
<hr>
<p class="VERSION">
Automatically generated from commit <a href="https://github.com/intersectmbo/formal-ledger-specifications/commit/${{ github.sha }}">${{ github.sha }}</a>
Automatically generated from commit <a href="https://github.com/intersectmbo/formal-ledger-specifications/commit/${{ github.sha }}">${{ github.sha }}</a> on branch ${{ github.ref_name }}
</p>
</body>
</html>
Expand All @@ -153,7 +203,7 @@ jobs:
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Artifacts generated from ${{ github.sha }}"
git commit --allow-empty -m "Artifacts generated from ${{ github.sha }}"
- name: Push ${{ env.artifacts_branch }}
uses: ad-m/[email protected]
with:
Expand All @@ -163,7 +213,7 @@ jobs:

build-cardano-ledger:
needs: [hs]
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v31
Expand All @@ -176,7 +226,7 @@ jobs:
uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/prepare-conf-test.sh
build-tools/scripts/prepare-conf-test.sh
sparse-checkout-cone-mode: false
path: fls

Expand All @@ -195,4 +245,4 @@ jobs:
- name: Build cardano-ledger
run: |
cd cl
nix develop --command bash -c "../fls/scripts/prepare-conf-test.sh . ../hs && cabal update && cabal build cardano-ledger-conformance"
nix develop --command bash -c "../fls/build-tools/scripts/prepare-conf-test.sh . ../hs && cabal update && cabal build cardano-ledger-conformance"
70 changes: 70 additions & 0 deletions .github/workflows/copy_legacy_pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
on:
workflow_call:
inputs:
pdf_name:
required: true
type: string
description: 'Name of the PDF file to copy (e.g., cardano-ledger.pdf)'

jobs:
copy-legacy-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4

- name: Copy PDF from legacy-latex-artifacts branch
run: |
echo "📄 Attempting to copy ${{ inputs.pdf_name }} from legacy-latex-artifacts branch..."

# Check if legacy-latex-artifacts branch exists
if ! git ls-remote --exit-code --heads origin legacy-latex-artifacts > /dev/null 2>&1; then
echo "❌ FATAL: legacy-latex-artifacts branch does not exist"
echo ""
echo "This branch is required to provide legacy PDF files for the documentation."
echo ""
echo "Expected file: ${{ inputs.pdf_name }}"
echo "Expected branch: legacy-latex-artifacts"
echo ""
echo "To resolve this issue:"
echo "1. Ensure the legacy-latex branch exists with the original LaTeX source"
echo "2. Run CI on the legacy-latex branch to generate the artifacts branch"
echo "3. Verify that ${{ inputs.pdf_name }} exists in the legacy-latex-artifacts branch"
exit 1
fi

echo "✅ legacy-latex-artifacts branch found"

# Checkout the legacy artifacts branch
git fetch origin legacy-latex-artifacts:legacy-latex-artifacts
git checkout legacy-latex-artifacts

# Check if the specific PDF exists
if [ ! -f "${{ inputs.pdf_name }}" ]; then
echo "❌ FATAL: ${{ inputs.pdf_name }} not found in legacy-latex-artifacts branch"
echo ""
echo "Expected file: ${{ inputs.pdf_name }}"
echo "Available files in legacy-latex-artifacts:"
ls -la *.pdf 2>/dev/null || echo " No PDF files found"
echo ""
echo "To resolve this issue:"
echo "1. Check that the legacy-latex branch contains the source for ${{ inputs.pdf_name }}"
echo "2. Re-run CI on the legacy-latex branch to regenerate artifacts"
echo "3. Verify that the PDF generation process completed successfully"
exit 1
fi

# Create dist directory and copy PDF
mkdir -p ../dist
cp "${{ inputs.pdf_name }}" ../dist/
echo "✅ Successfully copied ${{ inputs.pdf_name }}"

# Return to original branch and move the dist directory
git checkout -
mv ../dist ./dist

- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.pdf_name }}
path: dist
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
script: |
printf "Checking shellcheck on all scripts.\n"

git ls-files scripts/ \
git ls-files build-tools/scripts/ \
| grep '\.sh' \
| xargs -rd\\n -I {} -- shellcheck {}

Expand Down
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Ignore build products
_build/
dist
latex/.auctex-auto

## Ignore shake folder
.shake/
Expand Down Expand Up @@ -31,3 +30,17 @@ result*
## git-merge conflict resolution artifacts
*.agda.orig
*.lagda.orig

## Python
build-tools/scripts/md/__pycache__/
__pycache__

## LaTeX
latex/.auctex-auto
build-tools/static/latex/*.aux
build-tools/static/latex/*.log
build-tools/static/latex/*-Diagram.pdf
build-tools/static/latex/*-Diagram.svg

## Prevent accidental adding of conflict files!
*.orig
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### WIP

- Add the BBODY transition relation from Shelley
- Add the RUPD and TICK transition relations
- Change two constructor names of `GovActionType` data type
- Change 14 field names of `TxBody` record type
- Implement the POOLREAP state transition relation from Shelley
- Move `txsize` from `TxBody` to `Tx`.
- Change the return type of `refScripts` to a set
- Add `poolParameters` field to `Snapshot` and compute it in `SNAP`.
- Add `treasuryCut` (formerly `tau`) and `monetaryExpansion` (formerly `rho`) to `PParams`
- Change the `DELEG-dereg` transition so that the deposit field can be empty
Expand Down
Loading