Documentation

FMMidgard.Cardano.DataStructures.UTxO

def UTxO.UTxOMap (α : Type) :

UTxOMap is a map Nat -> α where elements can be:

  • minted and burn once
  • modify data arbitrarily
Equations
Instances For
    Equations
    Instances For
      def UTxO.UTxOMap.get {α : Type} (m : UTxOMap α) (id : Nat) :

      Main get operation. This get does not diff between burnt and not-minted utxos. This is similar to Cardano and that's why in the spec Anastasia went on and wrote staking credentials scripts.

      Equations
      Instances For
        Equations
        def UTxO.UTxOMap.mint {α : Type} (m : UTxOMap α) (v : α) :

        Mint is always possible just concat it at the end.

        Equations
        Instances For
          Equations
          Instances For
            def UTxO.UTxOMap.last_id' {α : Type} (m : UTxOMap α) (_mnz : 0 < List.length m) :
            Equations
            Instances For