Skip to content

Commit

Permalink
Remove the custom inputs data structure from the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mariari committed Dec 18, 2024
1 parent 15a07cc commit 1793a69
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 76 deletions.
1 change: 0 additions & 1 deletion Anoma/Transaction.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ module Anoma.Transaction;

import Anoma.Transaction.Action open public;
import Anoma.Transaction.AppData open public;
import Anoma.Transaction.CustomInputs open public;
import Anoma.Transaction.Object open public;
50 changes: 0 additions & 50 deletions Anoma/Transaction/CustomInputs.juvix

This file was deleted.

25 changes: 0 additions & 25 deletions Applib/Helpers.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ isNullifierPresent
(nullifier : Nullifier) (nullifierSet : Set Nullifier) : Bool :=
Set.isMember nullifier nullifierSet;

lookupResource {A} (key : A) (customInputs : CustomInputs) : Maybe Resource :=
lookupCustomInputs@{
key;
customInputs;
};

toAppDataEntry
{Key Data : Type}
(key : Key)
Expand All @@ -67,19 +61,6 @@ toAppDataEntry
data := anomaEncode data;
deletionCriterion;
};

toCustomInputsEntry
{Key Value : Type}
(key : Key)
(value : Value)
: Pair CustomInputsKey CustomInputsValue :=
mkCustomInputsKey@{
unCustomInputsKey := anomaEncode key;
}
, mkCustomInputsValue@{
unCustomInputsValue := anomaEncode value;
};

--- Standard inputs to for transaction functions.
--- NOTE: In the future, this will include more settings such as the information flow control flag.
type StandardInputs :=
Expand All @@ -89,12 +70,6 @@ type StandardInputs :=
randSeed : RandSeed;
};

type TagsAndCustomInputs :=
mkTagsAndCustomInputs@{
tags : List Tag;
customInputs : CustomInputs;
};

mkActionHelper
(consumed created : List Resource) {app-data : Nat := 0} : Action :=
let
Expand Down

0 comments on commit 1793a69

Please sign in to comment.