Skip to content

Commit

Permalink
Merge branch 'master' into reuse-ledger-code-in-conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdemeo authored Dec 4, 2024
2 parents 3a6db9e + c59a4e3 commit 914f50f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Ledger/Address.lagda
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ We define credentials and various types of addresses here. A
credential contains a hash, either of a verifying (public) key
(\isVKey) or of a (\isScript).

N.B.~in the Shelley era the type of the \stake field of the
\BaseAddr record was \CredentialType; to specify an address with
no stake, we would use an ``enterprise'' address. In contrast,
the type of \stake in the Conway era is \Maybe~\CredentialType,
so we can now use \BaseAddr to specify an address with no stake
by setting \stake to \nothing.

\begin{figure*}[h!]
\begin{AgdaMultiCode}
\emph{Abstract types}
Expand Down
4 changes: 4 additions & 0 deletions src/latex/agda-latex-macros.sty
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@
\newcommand{\Anchor}{\AgdaRecord{Anchor}\xspace}
\newcommand{\as}{\AgdaSymbol{as}\xspace}


\newcommand{\BaseAddr}{\AgdaRecord{BaseAddr}\xspace}
\newcommand{\beginstrict}{\AgdaFunction{begin-strict}\xspace}
\newcommand{\Bool}{\AgdaDatatype{Bool}\xspace}

Expand All @@ -169,6 +171,7 @@
\newcommand{\Coin}{\AgdaFunction{Coin}\xspace}
\newcommand{\Computational}{\AgdaRecord{Computational}\xspace}
\newcommand{\Credential}{\AgdaFunction{Credential}\xspace}
\newcommand{\CredentialType}{\AgdaDatatype{Credential}\xspace}
\newcommand{\Crypto}{\AgdaRecord{Crypto}\xspace}
\newcommand{\canVote}{\AgdaFunction{canVote}\xspace}
\newcommand{\case}{\AgdaFunction{case}\xspace}
Expand Down Expand Up @@ -463,6 +466,7 @@
\newcommand{\specProperty}{\AgdaFunction{specProperty}\xspace}
\newcommand{\sprime}{\AgdaGeneralizable{s'}\xspace}
\newcommand{\spring}{\AgdaFunction{sp-∘}\xspace}
\newcommand{\stake}{\AgdaField{stake}\xspace}
\newcommand{\stakeDistrs}{\AgdaField{stakeDistrs}\xspace}
\newcommand{\stakeDistr}{\AgdaField{stakeDistr}\xspace}
\newcommand{\subst}{\AgdaFunction{subst}\xspace}
Expand Down

0 comments on commit 914f50f

Please sign in to comment.