Skip to content

Commit

Permalink
fix: use generic proof record type
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Oct 16, 2024
1 parent 311f737 commit a1146c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Anoma/State/ResourceMachine.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Anoma.Transaction.Object as Transaction open using {Transaction; mkTransa
import Anoma.State.CommitmentTree as CommitmentTree open using {Root};
import Anoma.Transaction.Action as Action open;
import Anoma.Delta as Delta open using {Delta};
import Anoma.Proving.DeltaProof as DeltaProof;
import Anoma.Proving.ProofRecord as GenericProofRecord;

--- The resource machine interface.
trait
Expand All @@ -16,7 +16,7 @@ type ResourceMachine :=
create : (roots : Set CommitmentTree.Root)
-> (actions : Set Action)
-> (delta : Delta)
-> (deltaProof : DeltaProof.ProofRecord)
-> (deltaProof : GenericProofRecord.ProofRecord)
-> Transaction;

--- Composes two ;Transaction;s with the transa
Expand Down
4 changes: 2 additions & 2 deletions Anoma/Transaction/Object.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Anoma.Resource.Types as Resource;
import Anoma.State.CommitmentTree as CommitmentTree;
import Anoma.Transaction.Action open using {Action};
import Anoma.Delta as Delta open using {Delta};
import Anoma.Proving.DeltaProof as DeltaProof;
import Anoma.Proving.ProofRecord as GenericProofRecord;
import Anoma.Utils open;

--- A record describing a transaction object, the entity constituting a state transition in Anoma.
Expand All @@ -16,7 +16,7 @@ type Transaction :=
roots : Set CommitmentTree.Root;
actions : Set Action;
delta : Delta;
deltaProof : DeltaProof.ProofRecord
deltaProof : GenericProofRecord.ProofRecord
};

--- Composes two ;Transaction; objects.
Expand Down

0 comments on commit a1146c2

Please sign in to comment.