#Fz J            !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO P Q R S T!U!V!W X"Y"Z"["\"]"^"_"`"a"b"c"d"e"f"g"h"i"j"k"l"m"n"o"p"qrstuvwxyz{|}~###############$%&&                                    ''''''''''''''''''''''' ' '                      ! " # $ % & ' ( ) *(+(,(-(.(/(0(1(2(3(4(5(6(7(8(9(:(;(<(=(>(?(@(A(B(C(D(E(F(G(H(I(J(K)L)M)N)O)P)Q)R)S)T)U)V)W)X)Y)Z)[)\)])^)_)`)a)b)c)d)e)f)g)h)i)j)k)l)m)n)o)p)q)r)s)t*u*v*w*x*y*z*{*|*}*~*****************************+++++++++++++++++++++++++++++++++++++++++++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, , , , , ,,,---------------- -!-"-#-$-%-&-'-(-)-*-+-,---.-/-0-1-2-3-4-5-6-7-8-9-:-;-<-=->-?-@-A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S.T.U.V.W.X.Y.Z.[.\.].^._.`.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.{.|.}.~......////////////////////////////////////////////////0000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0 0 0 0 0000000000000000000 0!0"0#0$0%0&0'0(0)0*0+0,0-0.1/101122232425262728292:2;2<2=3>3?3@4A5B5C5D5E5F5G5H5I5J5K5L5M5N5O5P5Q5R5S5T5U5V5W5X5Y5Z5[\]^_`abcd6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6w6x6y6z6{6|6}6~6666666666666666677777888888888888888888888888888888888888888888888888888888888888888888888888888888888888889999999999999999999999999999999 9 9 9 9 9999999999999999999 9!9"9#9$9%9&9'9(9)9*9+9,9-9.9/909192939495969798999:9;9<9=9>9?9@9A9B9C9D9E9F9G9H9I9J9K9L9M9N9O9P9Q9R9S9T9U9V9W:X:Y:Z:[:\:]:^:_:`:a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:}:~:::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< < < < < <<<<<<<<<<<<<<<<<<< <!<"<#<$<%<&<'<(<)<*<+<,<-<.</<0<1<2<3<4<5<6<7<8<9<:<;<<<=<><?<@<A<B<C<D<E=F=G=H=I=J=K=L=M=N=O=P=Q=R=S=T=U=V=W=X=Y=Z=[=\=]=^=_=`=a=b=c=d=e=f=g=h=i=j=k=l=m=n=o=p=q=r=s=t=u=v=w=x=y=z={=|=}=~======================================================================================================>>>>>>>????@@@@@@@@@@@@@@@@@@@      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijAkAlAmAnAoApAqArAsAtAuAvAwAxAyAzA{A|A}A~AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D !D "D #E $E %E &E 'E (E )F *F +F ,F -F .F /F 0F 1F 2F 3F 4F 5F 6F 7F 8F 9F :F ;F <F =F >F ?F @F AF BF CF DF EF FF GF HF IG JG KG LG MG NG OG PG QG RG SG TG UG VG WG XG YG ZG [G \G ]G ^G _G `G aG bG cG dG eG fG gG hG iG jG kG lG mG nG oG pG qG rG sG tG uG vG wG xG yG zG {G |G }G ~G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G H H H H H H H H H H H H H H H H H I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I J K L L L L L M M M M M M M M M M M M N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N !N "N #N $N %N &N 'N (N )N *O +O ,O -O .O /O 0P 1P 2P 3P 4P 5P 6P 7P 8P 9P :P ;P <P =P >P ?P @P AP BP CP DP EP FP GP HP IP JP KP LP MP NP OP PP QP RP SP TP UP VP WP XP YP ZP [P \P ]P ^P _P `P aP bP cP dP eP fP gP hP iP jP kP lP mP nP oP pP qP rP sP tP uP vP wP xP yP zP {P |P }P ~P P P P P P P P P P P P P P P P P P P P P Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q R R R R R R R R R R S S S S S S S S S S S S S S T T T T T T U U U U U V V V V V V V V V V V V W W W X X X Y Y Y Y Y Y Z Z Z Z Z Z [ [ [ \ \ ] ] ] ] ] ] ] ] ] ] ] ^ ^ ^ ^ ^ ^ ^ _ _ _ _ _ _ _ _ _ _ _ ` ` ` ` ` ` ` ` ` ` ` ` a a a a a a a !a "a #a $a %a &a 'a (a )a *b +b ,b -b .b /b 0b 1b 2b 3b 4b 5b 6b 7b 8b 9b :b ;b <b =b >b ?b @b Ab Bb Cb Db Eb Fb Gb Hb Ib Jb Kb Lb Mb Nb Ob Pb Qb Rb Sb Tb Ub Vb Wb Xb Yb Zb [b \b ]b ^b _b `b ab bb cb db eb fb gb hb ib jb kb lb mb nb ob pb qb rb sb tb ub vb wc xc yc zc {d |d }d ~d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d e e e e e e e e e e e e e f f f f f f f f f g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g h h h h h h h h h h h h h h h h h h h i i i i i i j j j j j j j j j j j k k k k k k k k k k k k !k "k #k $k %k &k 'k (k )l *l +l ,l -l .l /l 0l 1l 2l 3l 4l 5l 6l 7l 8l 9l :l ;l <l =l >l ?l @l Al Bl Cl Dl El Fl Gl Hl IltNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm&morleyA new type that can wrap values so that the RenderDoc instances of the combined value can have a different behavior for the pretty printer.(morleyGeneralize converting a type into a Text.PrettyPrint.Leijen.Text.Doc. Used to pretty print Michelson code and define Fmt.Buildable instances.*morleyWhether a value can be represented in Michelson code. Normally either all values of some type are renderable or not renderable. However, in case of instructions we have extra instructions which should not be rendered. Note: it's not suficcient to just return  J for such instructions, because sometimes we want to print lists of instructions and we need to ignore them complete (to avoid putting redundant separators).+morley/Environment carried during recursive rendering. KmorleyzWhether the current expression is going to be used as part of top-level expression or in a similar context. When set to  LB, you may need to wrap your rendered expression into parentheses.,morleyConvert  M to  N with a line width of 80.-morleyConvert  M to  O in the same maner as ,..morleyConvert  M to  P in the same maner as ,./morleyLGeneric way to render the different op types that get passed to a contract.1morley#Create a specific number of spaces.2morleyCWrap documents in parentheses if there are two or more in the list.3morley#Turn something that is instance of ( into a  O". It's formatted the same way as , formats docs. Qmorley9Here using a page width of 80 and a ribbon width of 1.0 Uhttps://hackage.haskell.org/package/wl-pprint-1.2.1/docs/Text-PrettyPrint-Leijen.html4morley ParensNeeded constant.5morley ParensNeeded constant.6morleyAdd parentheses if needed.7morleygEnsure parentheses are not required, for case when you cannot sensibly wrap your expression into them.&'()*+,-./01234567()*&',-./0123+4567None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm::morleyA  R' that always failes with given message.;morleyA  R that always succeeds.<morleyThe  R holds on `Left a`.=morleyThe  R holds on `Right b`.>morleyThis  S: contains a property based test for conversion from some x to some y and back to x- (it should successfully return the initial x).89:;<=>89:;<=>None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmΦ?morleyJPath to a leaf (some field or constructor) in generic tree representation.@morleyQWhich branch to choose in generic tree representation: left, straight or right. BP is used when there is one constructor with one field (something newtype-like).The reason why we need B can be explained by this example: data A = A1 B | A2 Integer data B = B Bool Now we may search for A1 constructor or B constructor. Without B, in both cases path will be the same ([L]).?@CBA@CBA?mNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmЬ T U V W X Y Z [None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmDmorleyCompute a cryptographic hash of a bytestring using the Blake2b_256 cryptographic hash function. It's used by the BLAKE2B instruction in Michelson.Emorley`Compute a cryptographic hash of a bytestring using the Blake2b_160 cryptographic hash function.Fmorley[Compute a cryptographic hash of a bytestring using the Sha256 cryptographic hash function.Gmorley[Compute a cryptographic hash of a bytestring using the Sha512 cryptographic hash function.DEFGDEFGNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmQKmorleyFError that can happen during parsing of cryptographic primitive types.Pmorley*Encode a bytestring in Base58Check format.Qmorley,Decode a bytestring from Base58Check format.RmorleyParse a base58check encoded value expecting some prefix. If the actual prefix matches the expected one, it's stripped of and the resulting payload is returned.Smorley!Template for 'format*' functions.Tmorley Template for 'parse*' functions.UmorleyReturns first encountered  \2 in a list. If there are none, returns arbitrary  ]%. It is useful to implement parsing.Vmorley*Do randomized action using specified seed.HIJKLMNOPQRSTUVKLMNOPQHIJRSTUVNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm\morleyOptions that we use in morley-based packages (including morley ) by default.\\None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm]morleyRoot annotation was added in the Babylon, it looks the same as field annotation, but has slightly different semantic and can be used only in parameter  ParameterType.dmorleyAn d contains all the typefield variable es , with each group in order, associated with an entity. Note that in its rendering/show instances the unnecessary annotations will be omitted, as well as in some of the functions operating with it. Necessary eds are the ones strictly required for a consistent representation. In particular, for each group (tf v): - if all annotations are p* they are all omitted - if one or more p follow a non-empty q', they are omitted - if one or more p precede a non-empty q%, they are kept - every non-empty qp is obviously kept This is why order for each group is important as well as separation of different groups of es.emorley Generic TypeFieldVariable Annotation|As per Michelson documentation, this type has an invariant: (except for the first character, here parametrized in the type tagH) the allowed character set is the one matching the following regexp: %|%%|%|[:%][_a-zA-Z][_0-9a-zA-Z.%@]*jmorleyAn d without any e.kmorleyAn d with only a single e (of any kind).lmorleyAn d with several es of the same kind.mmorleyAn d built from all 3 kinds of e.nmorleyReturns  L if all es in the Set are unnecessaryemptyp. False otherwise.omorleyReturns the amount of e;s that are necessary for a consistent representation. See d. ^morleyRemoves all unnecessary es. See d. _morleyRemoves all unnecessary es from a list of the same type `morleyRenders a single eZ, this is used in every rendering instance of it. Note that this also renders empty ones/ps because a single eA does not have enough context to know if it can be omitted, use k! if you want to hide it instead. amorleyRenders a list of e#s, omitting unnecessary empty ones/p'. This is used (3 times) to render an d.qmorley Makes an e" from its textual value, prefix (%@*:) excluded Throws an error if the given  N contains invalid charactersrmorley Makes an e" from its textual value, prefix (%@:) excluded Returns a  N error message if the given  N contains invalid characterssmorley>List of all the special Variable Annotations, only allowed in CAR and CDRH instructions, prefix (@) excluded. These do not respect the rules of u and v.tmorley3The only special Field Annotation, only allowed in PAIR, LEFT and RIGHTH instructions, prefix (%) excluded. This does not respect the rules of u and v.umorley Checks if a  b6 is valid to be the first of an annotation, prefix (%@8:) excluded, the ones following should be checked with vB instead. Note that this does not check Special Annotations, see s and tvmorley Checks if a  bO is valid to be part of an annotation, following a valid first character (see u) and the prefix (%@<:). Note that this does not check Special Annotations, see s and t]^_`abcdefghijklmnopqrstuvwxyzefgihdjmnoklbca`_^]pqrstuvwxyzNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley>Since Babylon parameter type can have special root annotation.morleyKFor implicit account, which type its parameter seems to have from outside.>>None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm4 morley8A stack function that expresses the type signature of a LetMacromorleyA stack pattern-matchmorley"A type-variable or a type-constantmorleyA reference into the stack. morley3Implementation-specific instructions embedded in a NOPW primitive, which mark a specific point during a contract's typechecking or execution.These instructions are not allowed to modify the contract's stack, but may impose additional constraints that can cause a contract to report errors in type-checking or testing.VAdditionaly, some implementation-specific language features such as type-checking of LetMacro6s are implemented using this mechanism (specifically FN and FN_END). morley,Matches current stack against a type-pattern morley'A typed stack function (push and pop a  TcExtFrame) morley8Copy the current stack and run an inline assertion on itmorley'Print a comment with optional embedded StackRefsmorleyA comment in Michelson codemorleyConvert # to a list of types. Also returns  c which is  L. if the pattern is a fixed list of types and  d2 if it's a pattern match on the head of the stack.morley+Get the set of variables in a stack pattern            None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm7VWXYZ[[VWXYZNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm;fmorley6Michelson language type with annotations stripped off.~morleyConverts from f to no.morley"Format type stack in a pretty way.fuvwyz{|x}ghijnklmopqrst~fuvwyz{|x}ghijnklmopqrst~None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmH( emorley Version of  f with  g' constraint, specialized for use with f kind.morleyInstance of data family  h for f5. Custom instance is implemented in order to inject  g& constraint for some of constructors.morley Version of  withSomeSing with  g- constraint provided to processing function.]Required for not to erase these useful constraints when doing conversion from value of type f! to its singleton representation.morley Version of  i specialized for use with data instance Sing :: T -> Type which requires  g) constraint for some of its constructors jmorley Version of  k which creates  e.None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmz"morley$Should be present for common scopes.morley,Check that constraint hold for a given type.morley6Alias for constraints which are required for printing.morleyAAlias for constraints which Michelson applies to unpacked values.It is different from , e.g. contract- type cannot appear in a value we unpack to.morley?Alias for constraints which Michelson applies to packed values.morleyBAlias for constraints which Michelson applies to pushed constants.morleyBAlias for constraints which Michelson applies to contract storage.morley;Alias for constraints which Michelson applies to parameter.morleyWhether the type contains n , with proof.morley This is like ., it raises a more human-readable error when t[ type is concrete, but GHC cannot make any conclusions from such constraint as it can for (. Though, hopefully, it will someday:  /https://gitlab.haskell.org/ghc/ghc/issues/11503#11503. Use this constraint in our eDSL.morley#Report a human-readable error that t contains another tmorley$Report a human-readable error about t at a wrong place. lmorley$Report a human-readable error about o at a wrong place.morley$Report a human-readable error about n at a wrong place.morley:Constraint which ensures that there are no nested bigmaps.morleyEConstraint which ensures that bigmap does not appear in a given type.morleyLConstraint which ensures that contract type does not appear in a given type.morleyMConstraint which ensures that operation type does not appear in a given type.JNot just a type alias in order to be able to partially apply it (e.g. in  m).morley.Whether this type contains a type with nested ts .Nested big_maps (i.e. big_map which contains another big_map inside of it's value type). Are prohibited in all contexts. Some context such as PUSH, APPLY, PACK/UNPACK instructions are more strict because they doesn't work with big_map at all.morleyWhether this type contains t type. nmorleyWhether this type contains o type.In some scopes (constants, storage) appearing for contract type is prohibited. Contracts in input/output of lambdas are allowed without limits though. omorleyWhether this type contains n type.In some scopes (constants, parameters, storage) appearing for operation type is prohibited. Operations in input/output of lambdas are allowed without limits though. pmorleyEvidence of that  is deducable from .morleyReify  contraint from . Left for backward compatibility. qmorleyReify  contraint from .morleyReify  contraint from .morley1Check at runtime whether the given type contains n.morley1Check at runtime whether the given type contains o.morley1Check at runtime whether the given type contains t.morley1Check at runtime whether the given type contains t.morley6Check at runtime that the given type does not contain n.morley6Check at runtime that the given type does not contain o.morley7Check at runtime that the given type does not containt tmorley=Check at runtime that the given type does not contain nested tD! D! None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm~            None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmd8morleyThis function is the same as  r except that it returns  s , because  rI is guaranteed to return non-empty list, but it's not captured in types.88None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm9morley]Newtype wrapper for ByteString which uses hexadecimal representation for JSON serialization.9:;9:;None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm>?>?None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmBmorleyeCustomise default uncaught exception handling. The problem with the default handler is that it uses  t& to display uncaught exceptions, but  u may provide more reasonable output. We do not modify uncaught exception handler, but simply wrap uncaught exceptions (only synchronous ones) into  v.0Some exceptions (currently we are aware only of  wN) are handled specially by default exception handler, so we don't wrap them.@AB@ABNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmImorley Similar to  x, but compares types via  DefaultEq& used in singletons comparisons (see Data.Singletons.Prelude.Eq module).HIJKKJIHNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmLmorley5Extract datatype name via its Generic representation.:For polymorphic types this throws away all type arguments.MmorleyBRebuild a list into a binary tree of exactly the same form which pq uses to represent datatypes.Along with the original list you have to provide constructor for intermediate nodes - it accepts zero-based index of the leftmost element of the right tree and merged trees themselves.LMNMNL None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmSmorleyChange the character encoding of the given Handle to transliterate on unsupported characters instead of throwing an exception.OPQRSOPQRS!None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmWmorley?For datatype with "myNyan" field it will create "myNyanL" lens.WW"None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmXmorley"Picking anchor for various things.ZmorleyAnchor with given text.]morley!Level of header, starting from 1._morleyA piece of markdown document.This is opposed to  NA type, which in turn is not supposed to contain markup elements. ymorley@Turn text into valid anchor. Human-readability is not preserved.kmorley#Text which is hidden until clicked.mmorleyQuasi quoter for Markdown. This supports interpolation via  #{expression} syntax.XYZ[\]^_`abcdefghijklm_]^Z[\XY`acbdefghijklmNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmχ qmorleyWe can have `RequireLongerOrSameLength = (RequireLongerOrSameLength' l a, LongerOrSameLength l a)`, but apparently the printed error message can be caused by s rather than qu`. We do not know for sure how it all works, but we think that if we require constraint X before Y (using multiple `=>`)s) then X will always be evaluated first. zmorleytW in form of constraint that produces good error message. Should be used together with u because u gives GHC more information. We use it in combination, so that it gives enough information to GHC and also producess good error messages. {morley[Comparison of type-level naturals, raises human-readable compile error when does not hold.%Here we use the same approach as for q , this type family is internal. |morleyEvaluates list length.kThis type family is a best-effort attempt to display neat error messages when list is known only partially.For instance, when called on Int ': Int ': s, the result will be OfLengthWithTail 2 s! - compare with result of simple z - 1 + 1 + Length s.5For concrete types this will be identical to calling FromPeano (Length l).smorleyt; in form of constraint that gives most information to GHC.tmorley Similar to v, but returns  L/ when list length equals to the passed number.umorley3Comparison of type-level naturals, as a constraint.vmorley1Comparison of type-level naturals, as a function.It is as lazy on the list argument as possible - there is no need to know the whole list if the natural argument is small enough. This property is important if we want to be able to extract reusable parts of code which are aware only of relevant part of stack.morleyA convenient alias.We are going to use . numbers for type-dependent logic and normal $0s in user API, need to distinguish them somehow.morley!Get runtime value from singleton.$#"qrstuvwxyz{|}~$#"~{|}zyxwvurtsq#None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm֙morleyInteger values starting from 1.,We define our own datatype in order to have  }_ instance for it, which can not be derived for third-party types without exported constructor.morleyCount length of non-empty list.morley7Produce a non empty list consisting of the given value.$None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley)Generates an NFData instance for a GADT. Note:` This will not generate additional constraints to the generated instance if those are required.%None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmުmorley:This is the default set of ingredients extended with the  ~. which is used to generate xml reports for CI.&None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley,Leads first character of text to lower case.(For empty text this will throw an error.None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq morley"A value of type parametrized with some type parameter.morleySList analogy for .morley Similar to SingI []C, but does not require individual elements to be also instance of SingI.morley\Bring type-level list at term-level using given function to demote its individual elements.morleyLMake sure given type is evaluated. This type family fits only for types of   kind.morley-Fail with given error if the condition holds.morley5Fail with given error if the condition does not hold.morleyDifference between two lists.morley+Remove all occurences of the given element.morley?A natural conclusion from the fact that error have not occured.morley*Reify type equality from boolean equality.morleySplit a record into two pieces.morleyGHC can't deduce this itself because in general a type family might be not associative, what brings extra difficulties and redundant constraints, especially if you have complex types. But (++) type family is associative, so let's define this small hack.%%None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm5morleyConditional type error. Note that TypeErrorUnless cond err is the same as If cond () (TypeError err)U, but does not produce type-level error when one of its arguments cannot be deduced.morley$Reify the fact that condition under + constraint can be assumed to always hold.   None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmnmorley)Proxy for a label type that includes the  constraintmorleyUtility function to get the  N representation of a   None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley7Isomorphism between named entity and the entity itself. morley\Isomorphism between named entity and the entity itself wrapped into the respective functor.   None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmU morleySupporting typeclass for . It specifies how a value should be parsed from command line. Even though the main purpose of this class is to implement helpers below, feel free to use it for other goals.morley"This string will be passed to the   function, hence we use  P type rather  N (even though we use  N almost everywhere).morleyLMaybe add the default value and make sure it will be shown in help message.morley6Parser for path to a file where output will be writen.morley Create a   for a value using  instance (hence CLe in the name). It uses reader and metavar from that class, the rest should be supplied as arguments.iWe expect some common modifiers to be always provided, a list of extra modifies can be provided as well.morleyA more general version of = which takes a list of extra (not as widely used) modifiers.morleyAkin to (, but for arguments rather than options.morleyAkin to (, but for arguments rather than options.morley Create a  ' for a value using its type-level name.  'None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm&morleyEntrypoint name.Empty if this entrypoint is default one. Cannot be equal to "default", the reference implementation forbids that. Also, set of allowed characters should be the same as in annotations.morleyMake up / from annotation in parameter type declaration.Returns  # if no entrypoint is assigned here.morleyHTurn entrypoint name into annotation for contract parameter declaration.morleyMake up J from annotation which is reference to an entrypoint (e.g. annotation in CONTRACT instruction).Fails if annotation is invalid.morleyETurn entrypoint name into annotation used as reference to entrypoint.morleyGiven an untyped type, extract a map that maps entrypoint names to the their parameter types. If there are duplicate entrypoints in the given Type then the duplicate entrypoints at a deeper nesting level will get overwritten with the ones that are on top.   None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm(      (None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmL *morleyA type error asking to use + instead of  N.+morleyMichelson string value.DThis is basically a mere text with limits imposed by the language:  9https://tezos.gitlab.io/whitedoc/michelson.html#constantsn Although, this document seems to be not fully correct, and thus we applied constraints deduced empirically.CYou construct an item of this type using one of the following ways:6With QuasyQuotes when need to create a string literal.[mt|Some text|]%MTextUnsafe { unMText = "Some text" }With /- when constructing from a runtime text value.With 0 or ,F when absolutelly sure that given string does not violate invariants.With 1] when not sure about text contents and want to make it compliant with Michelson constraints..morley<Constraint on literals appearing in Michelson contract code. morley;Error message indicating bad character in a string literal./morleyWrap a Haskell text into +, performing necessary checks.You can use e.g. 'n'X character directly in supplied argument, but attempt to use other bad characters like 'r' will cause failure.0morley Contruct +T from a Haskell text, failing if provided Haskell text is invalid Michelson string.1morley Construct + from a Haskell text, eliminating all characters which should not appear in Michelson strings. Characters which can be displayed normally via escaping are preserved.2morleyPrint +9 for Michelson code, with all unusual characters escaped.5morley/QuasyQuoter for constructing Michelson strings.:Validity of result will be checked at compile time. Note:slash must be escaped$newline character must appear as 'n'use quotes as is)other special characters are not allowed.6morleyParser used in 5 quasi quoter.7morley Create a + from type-level string.We assume that no unicode characters are used in plain Haskell code, so unless special tricky manipulations are used this should be safe.8morley Create a + from label.We assume that no unicode characters are used in plain Haskell code, so unless special tricky manipulations are used this should be safe.9morley,Leads first character of text to upper case.(For empty text this will throw an error.*+,-./0123456789+,-/01234.65*789)None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmb Kmorley"Secp256k1 cryptographic signature.Nmorley#Secp256k1 secret cryptographic key.Omorley#Secp256k1 public cryptographic key.RmorleyThis is the hack we use to make serialization correct. Decoding is currently not implemented, so when we have to decode bytes we remember these bytes and produce some random public key.TODO (#18) remove it.Smorley1Deterministicaly generate a secret key from seed.Tmorley&Create a public key from a secret key.Umorley Convert a O to raw bytes.FTODO (#18): apparently it uses compressed SEC format as described in  Phttps://www.oreilly.com/library/view/programming-bitcoin/9781492031482/ch04.html However, it is not tested yet.VmorleyMake a O from raw bytes.{TODO (#18): it should decode from compressed SEC format, but it's left for a future task, so for now we return a constant.Xmorley Convert a O to raw bytes.oTODO (#18): apparently a signature always has 64 bytes, so this format might be correct, but it is not tested.YmorleyMake a K from raw bytes.oTODO (#18): apparently a signature always has 64 bytes, so this format might be correct, but it is not tested.amorley$Sign a message using the secret key.bmorley@Check that a sequence of bytes has been signed with a given key.KLMNOPQRSTUVWXYZ[\]^_`abOPQRNKLMSTUVWXYZ[\]^_`ab*None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmm tmorleyP256 cryptographic signature.wmorleyP256 secret cryptographic key.xmorleyP256 public cryptographic key.{morley1Deterministicaly generate a secret key from seed.|morley&Create a public key from a secret key.}morley Convert a x to raw bytes.TODO (#18): implement properly.~morleyMake a x from raw bytes.TODO (#18): implement properly.morley Convert a x to raw bytes.TODO (#18): implement properly.morleyMake a t from raw bytes.TODO (#18): implement properly.morley@Check that a sequence of bytes has been signed with a given key.tuvwxyz{|}~xyzwtuv{|}~+None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmw morley ED25519 cryptographic signature.morley!ED25519 secret cryptographic key.morley!ED25519 public cryptographic key.morley1Deterministicaly generate a secret key from seed.morley&Create a public key from a secret key.morley Convert a  to raw bytes.morleyMake a  from raw bytes.morley Convert a  to raw bytes.morleyMake a  from raw bytes.morley$Sign a message using the secret key.morley@Check that a sequence of bytes has been signed with a given key.,None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley!Blake2b_160 hash of a public key.morley<We store which curve was used because it affects formatting.morley Hash itself.morley6Which curve was used for the hashed public key inside .morleyDCryptographic signatures used by Tezos. Constructors correspond to  constructors.Tezos distinguishes signatures for different curves. For instance, ed25519 signatures and secp256k1 signatures are printed differently (have different prefix). However, signatures are packed without information about the curve. For this purpose there is a generic signature which only stores bytes and doesn't carry information about the curve. Apparently unpacking from bytes always produces such signature. Unpacking from string produces a signature with curve information.morley4Signature that uses the ed25519 cryptographic curve.morley6Siganture that uses the secp256k1 cryptographic curve.morley7Signature that uses the NIST P-256 cryptographic curve.morley-Generic signature for which curve is unknown.morleyDSecret cryptographic key used by Tezos. Constructors correspond to  constructors. morley5Secret key that uses the ed25519 cryptographic curve. morley7Secret key that uses the secp256k1 cryptographic curve. morley8Secret key that uses the NIST P-256 cryptographic curve.morleyvPublic cryptographic key used by Tezos. There are three cryptographic curves each represented by its own constructor.morley5Public key that uses the ed25519 cryptographic curve.morley7Public key that uses the secp256k1 cryptographic curve.morley8Public key that uses the NIST P-256 cryptographic curve.morleyZDeterministicaly generate a secret key from seed. Type of the key depends on seed length.morley&Create a public key from a secret key.morley Convert a  to raw bytes.morleyMake a 4 from raw bytes. Can return only generic signature.morleyuCheck that a sequence of bytes has been signed with a given key. TODO (#18) consider generic signature here as well.morleyPLength of key hash in bytes (only hash itself, no tags, checksums or anything).morley*Compute the b58check of a public key hash.2DEFGHIJKLMNOPQR2KLMNODEFGPQHIJR-None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleynIdentifier of a network (babylonnet, mainnet, test network or other). Evaluated as hash of the genesis block.The only operation supported for this type is packing. Use case: multisig contract, for instance, now includes chain ID into signed data "in order to add extra replay protection between the main chain and the test chain".morley\Time in the real world. Use the functions below to convert it to/from Unix time in seconds.morleyDMutez is a wrapper over integer data type. 1 mutez is 1 token (Tz).morleySafely create  checking for overflow.morleyPartial function for P creation, it's pre-condition is that the argument must not exceed the maximal  value.morleySafely create ."This is recommended way to create Mutez8 from a numeric literal; you can't construct all valid Mutez@ values using this function but for small values it works neat.4Warnings displayed when trying to construct invalid   or  l literal are hardcoded for these types in GHC implementation, so we can only exploit these existing rules.morley Addition of  values. Returns   in case of overflow.morleyPartial addition of >, should be used only if you're sure there'll be no overflow.morleySubtraction of  values. Returns  7 when the subtrahend is greater than the minuend, and   otherwise.morleyPartial subtraction of ?, should be used only if you're sure there'll be no underflow.morleyMultiplication of " and an integral number. Returns   in case of overflow. morleyEuclidian division of two  values.!morleyEuclidian division of  and a number.%morley!Add given amount of seconds to a .&morleyDisplay timestamp in human-readable way as used by Michelson. Uses UTC timezone, though maybe we should take it as an argument.<NB: this will render timestamp with up to seconds precision.'morley Parse textual representation of .(morleyQuote a value of type  in yyyy-mm-ddThh:mm:ss[.sss]Z format.@formatTimestamp [timestampQuote| 2019-02-21T16:54:12.2344523Z |]"2019-02-21T16:54:12Z"!Inspired by 'time-quote' library.)morleyReturn current time as .*morley1Timestamp which is always greater than result of ).+morley.Timestamp which is always less than result of ).,morley"Construct chain ID from raw bytes.-morleyNConstruct chain ID from raw bytes or fail otherwise. Expects exactly 4 bytes..morleyIdentifier of a pseudo network./morley Pretty print  as it is displayed e.g. in ./babylonnet.sh head call.Example of produced value: NetXUdfLh6Gm88t. morleyJIt's a magic constant used by Tezos to encode a chain ID. Corresponds to Net part.# !"#$%&'()*+,-./012# !"#$%&'()*+,-./012.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmTmorley.Errors that can happen during address parsing.Umorley%Address is not in Base58Check format.Vmorley,Both address parsers failed with some error.Wmorley6Data type corresponding to address structure in Tezos.Xmorleytz) address which is a hash of a public key.YmorleyKT2 address which corresponds to a callable contract.Zmorley.Hash of origination command for some contract.\morleySmart constructor for X.]morley$Deterministically generate a random X and discard its secret key.^morleySmart constructor for Y4. Its argument is serialized origination operation. Note: it's quite unsafe to pass  , because we can pass some garbage which is not a serialized origination operation, but this operation includes contract itself and necessary types are defined in rsO. So we have to serialize this data outside this module and pass it here as a  ^. Alternatively we could add some constraint, but it would be almost as unsafe as passing a  . For this reason we add Raw: suffix to this function and provide a safer function in tu. We may reconsider it later._morleyCreate a dummy Z value.bmorleyParse an address from its human-readable textual representation used by Tezos (e. g. "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU"). Or fail if it's invalid.cmorleyPartial version of bB which assumes that the address is correct. Can be used in tests.dmorleyParse a TKG contract address, fail if address does not match the expected format.STUVWXYZ[\]^_`abcdZ[WXY\]^_TUVS`abcd/None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm=morleyByteString does not have an instance for ToJSON and FromJSON, to avoid orphan type class instances, make a new type wrapper around it.morleydA sequence of elements: can be a list or a set. We can't distinguish lists and sets during parsing.0None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley'Data necessary to originate a contract.morleyOriginator of the contract.morleyOptional delegate.morley Initial balance of the contract.morley&Initial storage value of the contract.morleyThe contract itself.morley.Michelson instruction with abstract parameter op. This parameter is necessary, because at different stages of our pipeline it will be different. Initially it can contain macros and non-flattened instructions, but then it contains only vanilla Michelson instructions.morley"DROP n" instruction. Note: reference implementation permits int16 here. Negative numbers are parsed successfully there, but rejected later. Morley is more permissive, so we use  @ here, i. e. permit more positive numbers. We do not permit negative numbers at type level. In practice, probably nobody will ever have numbers greater than "H1000 here, at least due to gas limits. Same reasoning applies to other instructions which have a numeric parameter representing number of elements on stack.morley$ is essentially as special case for 8, but we need both because they are packed differently.morley Flatten all  in . This function is mostly for testing. It returns instructions with the same logic, but they are not strictly equivalent, because they are serialized differently (grouping instructions into sequences affects the way they are PACK'ed).morley=Compute address of a contract from its origination operation.TODO [TM-62] It's certainly imprecise, real Tezos implementation doesn't use JSON, but we don't need precise format yet, so we just use some serialization format (JSON because we have necessary instances already).c     c     1None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm ./0/0.tNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm ]^_`abcdefghijklmnopqrstuvwxyz     VWXYZ[     ./02None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm1morley.Data associated with a particular transaction. 1234569:;< 123456<;:93None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm=morleyBuilding a record from tuple.%It differs from similar typeclass in vwG module in that it allows type inference outside-in - knowing desired Rece you know which tuple should be provided - this improves error messages when constructing concrete Rec objects.=>?=>?4None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm@morleyProduce =( instance for tuple of the given length.@@5None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmxNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm=>?=>?None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq4; [morleyLike  L, casts some container's elements, producing informative error on mismatch.\morley  version of  .]morleySuppose you have a data type X with parameter aX and you have two values: `x1 :: X a1` and `x2 :: X a2`. You can't compare them using  J, because they have different types. However, you can compare them using ]! as long as both parameters are  g.^morley Version of ] for types with 2 parameters._morley Version of ] for types with 3 parameters.`morley2Compare two entries of completely different types.amorley Extension of ` to   function.bmorleyCast to a type with phantom type argument without matching this argument. The phantom type must be the last type argument of the type.Example of use: imagine a type data MyType a = MyType RNormally, if object of this type was hidden under existential quantification with  g/ constraint, then in order to get it back with castb you need to know the exact type of the hidden object, including its phantom type parameter. With bN you get a way to extract this object no matter which phantom argument it had.cmorley)Match given type against another type of * -> *. kind without caring about its type argument.  [\]^_`abc [\]^_`abc 6None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmExdmorley>Data type, holding annotation data for a given Michelson type t.;Each constructor corresponds to exactly one constructor of ff and holds all type and field annotations that can be attributed to a Michelson type corrspoding to t.morleyHForget information about annotations, pick singleton with the same type.!Note: currently we cannot derive  h from d without !U because for comparable types notes do not remember which exact comparable was used.morleyGet term-level type of notes.morley In memory of NStar5 constructor. Generates notes with no annotations.morley%Checks if no annotations are present.morleyCombines two annotations trees a and b into a new one c in such a way that c can be obtained from both a and bD by replacing some empty leaves with type or/and field annotations.morley<Insert the provided type annotation into the provided notes.morley:Converge two type or field notes (which may be wildcards)."defghijklmnopqrstuvwxyz{}~"defghijklmnopqrstuvwxyz{}~7None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmQmorley Similar to , but also gives  h for given type.morley Transparently represent untyped Type as wrapper over Notes t from typed world with SingI t constraint.$As expression this carries logic of , and as pattern it performs ! but may make code a bit cleaner.Note about constraints: pattern signatures usually require two constraints - one they require and another one which they provide. In our case we require nothing (thus first constraint is ()#) and provide some knowledge about t.morleyConvert 7 to the isomorphic set of information from typed world.~~8None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmzsmorleySDescribes how to construct full contract parameter from given entrypoint argument. This could be just wrapper over Value arg -> Value param, but we cannot use Value type in this module easily.morley<Errors specific to parameter type declaration (entrypoints).morley?Coordinates of "arm" in Or tree, used solely in error messages.morley/Annotations for contract parameter declaration.|Following the Michelson specification, this type has the following invariants: 1. No entrypoint name is duplicated. 2. If default@ entrypoint is explicitly assigned, no "arm" remains uncallable.morleyVAddress with optional entrypoint name attached to it. TODO: come up with better name?morleyAddress itselfmorley Entrypoint name (might be empty)morleyvParse an address which can be suffixed with entrypoint name (e.g. "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU%entrypoint").morleyParameter without annotations. morley4Check whether given notes are valid parameter notes.morley Construct ! performing all necessary checks.morley with hidden parameter type."This requires argument to satisfy  constraint. Strictly speaking, entrypoint argument may one day start having different set of constraints comparing to ones applied to parameter, but this seems unlikely.morley4Reference for calling a specific entrypoint of type arg.morleyName of entrypoint.morleyAProxy of parameter, to make parameter type more easily fetchable.morley:How to call this entrypoint in the corresponding contract.morley Construct P which calls no entrypoint and assumes that there is no explicit "default" one.*Validity of such operation is not ensured.morley5Call parameter which has no entrypoints, always safe.morley Construct P which calls no entrypoint and assumes that there is no explicit "default" one.*Validity of such operation is not ensured.morley5Call parameter which has no entrypoints, always safe. morleyBuild .ZHere we accept entrypoint name and type information for the parameter of target contract.Returns  K if entrypoint is not found. Does not treat default entrypoints specially.morleyBuild .ZHere we accept entrypoint name and type information for the parameter of target contract.Returns   if entrypoint is not found.morley Parameter type of implicit account.morleykFlatten a provided list of notes to a map of its entrypoints and its corresponding utype. Please refer to 6 in regards to how duplicate entrypoints are handled.::9None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq morley"Representation of Michelson value.Type parameter instr` stands for Michelson instruction type, i.e. data type to represent an instruction of language. morleyAlias for comparable types. morley#Report a human-readable error that t contains another t morley1Constraint which ensures that type is comparable. morleyWWrapper over instruction which remembers whether this instruction always fails or not.!morleyvData type, representing operation, list of which is returned by Michelson contract (according to calling convention)._These operations are to be further executed against system state after the contract execution.%morleyMerge two execution branches.&morley2Get code disregard whether it always fails or not.'morleyModify inner code.+morleyMake value of contractJ type which refers to the given address and does not call any entrypoint.-morleyTurn  into actual function on Values..morley+Lift entrypoint argument to full parameter.1morleyIIgnoring distinction between constructors here, comparing only semantics.E      !"#$%&'()*+,-.E  !"#$    %&'+,)-*(.:None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmWXYZ[\]^_`abcdefghijklmnopqrstWXYZrstmnopqjklhi`abcdefg[\]^_;None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmSmorley#Marker data type for add operation.morley0Represents an arithmetic error of the operation.morley;Denotes the error type occured in the arithmetic operation.morley&Class for binary arithmetic operation.!Takes binary operation marker as op# parameter, types of left operand n and right operand m.morley Type family ArithRes6 denotes the type resulting from computing operation op from operands of types n and m.uFor instance, adding integer to natural produces integer, which is reflected in following instance of type family: ArithRes Add CNat CInt = CInt.morley0Evaluate arithmetic operation on given operands.""<None6!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm 8morley=Keeps documentation gathered for some piece of contract code..Used for building documentation of a contract.morleyAll inlined doc items.morleyDefinitions used in document.Usually you put some large and repetitive descriptions here. This differs from the document content in that it contains sections which are always at top-level, disregard the nesting.All doc items which define  docItemId method go here, and only they.morleyhWe remember all already declared entries to avoid cyclic dependencies in documentation items discovery.morleyWe remember all already used identifiers. (Documentation naturally should not declare multiple items with the same identifier because that would make references to the respective anchors ambiguous).morley@A part of documentation to be grouped. Essentially incapsulates .morley*A map from positions to document elements.This form effeciently keeps documentation for its incremental building. Doc items here appear close to how they were located in the contract; for instance, ~ is not yet applied at this stage. You only can be sure that items within each group are splitted across sections correctly.morley#Several doc items of the same type.morley:A doc item which we store, along with related information.morleyDoc item itself.morley+Subdocumentation, if given item is a group.morleyDHides some documentation item which is put to "definitions" section.morleyHides some documentation item.morleyHow to render section name.morleySuitable for block name.morley+Suitable for subsection title within block.morleyBDefines an identifier which given doc item can be referenced with.morley!Where do we place given doc item.morley&Placed in the document content itself.morleyAPlaced in dedicated definitions section; can later be referenced. morley'Position of all doc items of some type.morley%Some unique identifier of a doc item.FAll doc items which should be refer-able need to have this identifier.morleyA piece of documentation describing one property of a thing, be it a name or description of a contract, or an error throwable by given endpoint.ZItems of the same type appear close to each other in a rendered documentation and form a section.Doc items are later injected into a contract code via a dedicated nop-like instruction. Normally doc items which belong to one section appear in resulting doc in the same order in which they appeared in the contract.While documentation framework grows, this typeclass acquires more and more methods for fine tuning of existing rendering logic because we don't want to break backward compatibility, hope one day we will make everything concise :( E.g. all rendering and reording stuff could be merged in one method, and we could have several template implementations for it which would allow user to specify only stuff relevant to his case.morleyPosition of this item in the resulting documentation; the smaller the value, the higher the section with this element will be placed.Documentation structure is not necessarily flat. If some doc item consolidates a whole documentation block within it, this block will have its own placement of items independent from outer parts of the doc.morleyDefines where given doc item should be put. There are two options: 1. Inline right here (default behaviour); 2. Put into definitions section.LNote that we require all doc items with "in definitions" placement to have   and   instances which comply the following law: if two documentation items describe the same entity or property, they should be considered equal. morley]When multiple items of the same type belong to one section, how this section will be called.<If not provided, section will contain just untitled content. morleyDescription of a section.qCan be used to mention some common things about all elements of this section. Markdown syntax is permitted here. morleyHow to render section name.)Takes effect only if section name is set. morleyDefines a function which constructs an unique identifier of given doc item, if it has been decided to put the doc item into definitions section.Identifier should be unique both among doc items of the same type and items of other types. Thus, consider using "typeId-contentId" pattern. morleyPRender given doc item to Markdown, preferably one line, optionally with header.Accepts the smallest allowed level of header. (Using smaller value than provided one will interfere with existing headers thus delivering mess).morley,All doc items which this doc item refers to.UThey will automatically be put to definitions as soon as given doc item is detected.morleyThis function accepts doc items put under the same section in the order in which they appeared in the contract and returns their new desired order. It's also fine to use this function for filtering or merging doc items.Default implementation * leaves inlined items as is; * for items put to definitions, lexicographically sorts them by their id.morley$Get doc item position at term-level. morleyARender an item into Markdown block with all required adjustments. morleyOrder items by their  docItemId.morley,Make a reference to doc item in definitions.morleyWhether given  is atomic.Normally, atomic s are ones appearing in DOC_ITEM. instruction, and non-atomic ones are put to DocGroup. morleyRender a documentation block. morleyBLift a doc item to a block, be it atomic doc item or grouping one.morley#Lift an atomic doc item to a block.morley%Find all doc items of the given type.morleyRender documentation for .morleyTo automatically derive #instance Show Michelson.Typed.Instr later.#morleyA hand-made anchor.%morley-Comment in the doc (mostly used for licenses)'morleyRepository settings for *.)morley@By commit sha make up a url to that commit in remote repository. morley"Specify version if given contract.-morleyDescription of something./morleyGive a name to document block.1morleyGeneral (meta-)information about the contract such as git revision, contract's authors, etc. Should be relatively short (not several pages) because it is put somewhere close to the beginning of documentation.3morley:A function which groups a piece of doc under one doc item.8morley9Render given contract documentation to markdown document.9morley2Apply given grouping to documentation being built.;morleyMake *.:t $mkDGitRevisionGitRepoSettings -> DGitRevision=morleyBContract documentation assembly primarily relies on this instance.G     #$%&'()*+,-./0123456789:;G     346758912/0-.*+,'();:%&#$=None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmqB)EmorleyyTyped contract and information about annotations which is not present in the contract code. TODO [#12]: rename this to ContractVmorley-A print format with references into the stackYmorley+A reference into the stack of a given type.Zmorley=Keeps 0-based index to a stack element counting from the top.]morleyERepresentation of Michelson instruction or sequence of instructions.Each Michelson instruction is represented by exactly one constructor of this data type. Sequence of instructions is represented with use of Seq constructor in following way: SWAP; DROP ; DUP; -> SWAP a DROP a DUPO. Special case where there are no instructions is represented by constructor Nop, e.g. IF_NONE {} { SWAP; DROP; } -> IF_NONE Nop (SWAP a DROP).Type parameter inpd states for input stack type. That is, type of the stack that is required for operation to execute.Type parameter out` states for output stack type or type of stack that will be left after instruction's execution.^morley^A wrapper for instruction that also contain annotations for the top type on the result stack.As of now, when converting from untyped representation, we only preserve field annotations and type annotations. Variable annotations are not preserved.PThis can wrap only instructions with at least one non-failing execution branch._morley4A wrapper for instruction with variable annotations.`morley-Execute given instruction on truncated stack.PThis can wrap only instructions with at least one non-failing execution branch.Morley has no such instruction, it is used solely in eDSLs. This instruction is sound because for all Michelson instructions the following property holds: if some code accepts stack i and produces stack o#, when it can also be run on stack i + s producing stack o + s; and also because Michelson never makes implicit assumptions on types, rather you have to express all "yet ambiguous" type information in code. We could make this not an instruction but rather a function which modifies an instruction (this would also automatically prove soundness of used transformation), but it occured to be tricky (in particular for TestAssert and DipN and family), so let's leave this for future work.bmorleyeNop operation. Missing in Michelson spec, added to parse construction like `IF {} { SWAP; DROP; }`.dmorleyNested wrapper is going to wrap a sequence of instructions with { }. It is crucial because serialisation of a contract depends on precise structure of its code.emorley\Places documentation generated for given instruction under some group. This is not part of K! because it does not behave like b?; instead, it inherits behaviour of instruction put within it.fmorleyVariants of CAR/CDR to retain field annotations as they relate to the input stack, and hence won't be available from the annotation notes from the result stack we pack with the instructions during type check.morley[Constraint that is used in DIPN, we want to share it with typechecking code and eDSL code.morleyA wrapper to wrap annotations and corresponding singleton. Apart from packing notes along with the corresponding Singleton, this wrapper type, when included with ] also helps to derive the   instance for ] as `Sing a` does not have a   instance on its own.morley<Create a stack reference, performing checks at compile time.EFGHIJKLMNOPQRSTUVWXYZ[\]adcstuihjklmnopqrvwxyz{|}~^_`befgƂ]adcstuihjklmnopqrvwxyz{|}~^_`befgKLMNOPQRSTUYZVWX[\JEFGHI>None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmKbmorleyConvert a typed Val to an untyped Value.'For full isomorphism type of the given Val should not contain nP - a compile error will be raised otherwise. You can analyse its presence with  function.?None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmMX@None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmz morleyCDescribes how intermediate nodes in instruction tree are accounted.morleyName of this way.morley;This function accepts: 1. Effects gathered after applying stepe to node's children, but before applying it to the node itself. 2. Effects gathered after applying step_ to the given intermediate node. 3. Instruction resulting after all modifications produced by step.morley Options for .morleyWhether { function should go into values which contain other instructions: lambdas and constant contracts (which can be passed to CREATE_CONTRACT).morley8How do we handle intermediate nodes in instruction tree. morley@Gather effects first for children nodes, then for their parents.morley4Traverse a typed instruction in depth-first order.  c is used to concatenate intermediate results. Each instructions can be changed using the supplied stepO function. It does not consider extra instructions (not present in Michelson).morleySpecialization of 9 for case when changing the instruction is not required.morleySpecialization of ' which only modifies given instruction. morley^Check whether instruction fails at each execution path or have at least one non-failing path.This function assumes that given instruction contains no dead code (contract with dead code cannot be valid Michelson contract) and may behave in unexpected way if such is present. Term "dead code" includes instructions which render into empty Michelson, like Morley extensions. On the other hand, this function does not traverse the whole instruction tree; performs fastest on left-growing combs.Often we already have information about instruction failure, use this function only in cases when this info is actually unavailable or hard to use.morleyTThere are many ways to represent a sequence of more than 2 instructions. E. g. for  i1; i2; i3 it can be Seq i1 $ Seq i2 i3 or Seq (Seq i1 i2) i3O. This function enforces a particular structure. Specifically, it makes each  & have a single instruction (i. e. not  ?) in its second argument. This function also erases redundant bs.TPlease note that this function is not recursive, it does not linearize contents of IF and similar instructions.morleyDeep version of G. It recursively linearizes instructions stored in other instructions.morley/If value is a string, return the stored string.morley7If value is a bytestring, return the stored bytestring.morleyTakes a selector which checks whether an atomic value (i. e. that can not contain another value) can be converted to something. Recursively applies it to all atomic values in potentially non-atomic value. Collects extracted values in a list.Perhaps one day we'll have dfsValue.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleyThis class encodes Michelson rules w.r.t where it requires comparable types. Earlier we had a dedicated type for representing comparable types CT,. But then we integreated those types into TW. This meant that some of the types that could be formed with various combinations of T would be illegal as per Michelson typing rule. Using this class, we inductively enforce that a type and all types it contains are well typed as per Michelson's rules.morley?Isomorphism between Michelson stack and its Haskell reflection.morleyOverloaded version of  to work on Haskell and T stacks.morley1Type function to convert a Haskell stack type to T -based one.morleyEWhether Michelson representation of the type is derived via Generics. morley-Implements ADT conversion to Michelson value.wThanks to Generic, Michelson representation will be a balanced tree; this reduces average access time in general case.A drawback of such approach is that, in theory, in new GHC version generified representation may change; however, chances are small and I (martoon) believe that contract versions will change much faster anyway.morleySince Contract@ name is used to designate contract code, lets call analogy of o type as follows.Note that type argument always designates an argument of entrypoint. If a contract has explicit default entrypoint (and no root entrypoint),  ContractRefK referring to it can never have the entire parameter as its type argument.morley6Any Haskell value which can be converted to Michelson .morley4Hides some Haskell value put in line with Michelson .morleyOverloaded version of  to work on Haskell and T types.morley=Isomorphism between Michelson values and plain Haskell types.WDefault implementation of this typeclass converts ADTs to Michelson "pair"s and "or"s.morley:Type function that converts a regular Haskell type into a T type.morley"Converts a Haskell structure into Value representation.morley Converts a Value into Haskell type.morleyReplace type argument of  ContractAddr with isomorphic one.#      !"#      !"ANone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm˚ morleyPTraverse a single contructor and supply its field to instruction in case clause. morleyGeneric traversal for .mmorleyList of p.s required to pattern match on the given type.nmorley*Type information about single case clause.pmorleyuIn what different case branches differ - related constructor name and input stack type which the branch starts with. morleyGeneric traversal for .umorleymExpect referred constructor to have only one field (otherwise compile error is raised) and extract its type.vmorleyaExpect referred constructor to have only one field (in form of constraint) and extract its type.wmorleyRGet type of constructor fields (one or zero) referred by given datatype and name.xmorley8Whether given type represents an atomic Michelson value. morleyForce result of   to be  morley;Transitively find constructor of some sum type by its name.dTransitivity means that if sum type consists of other sum types, they will be searched recursively. morleyEResult of constructor lookup - entry type and path to it in the tree.ymorleyTo use z not only here for f/-based stacks, but also later in Lorentz with  --based stacks we need the following property.zmorleyPush field to stack, if any.{morleyGet  something# as field of the given constructor.|morleyWe support only two scenarious - constructor with one field and without fields. Nonetheless, it's not that sad since for sum types we can't even assign names to fields if there are many (the style guide prohibits partial records).morley Proof of y.morley:Wrap given element into a constructor with the given name./Mentioned constructor must have only one field.Since labels interpretable by OverloadedLabelsm extension cannot start with capital latter, prepend constructor name with letter "c" (see examples below).morley<Wrap a haskell value into a constructor with the given name.This is symmetric to .morley$Pattern-match on the given datatype.morley#Lift an instruction to case clause.\You should write out constructor name corresponding to the clause explicitly. Prefix constructor name with "c" letter, otherwise your label will not be recognized by Haskell parser. Passing constructor name can be circumvented but doing so is not recomended as mentioning contructor name improves readability and allows avoiding some mistakes.morley)Unwrap a constructor with the given name.Rules which apply to / function work here as well. Although, unlike  instrWrap8, this function does not work for nullary constructors.morley0Try to unwrap a constructor with the given name. morleyFailure indicating that we expected value created with one constructor, but got value with different one. The error message is intentionally ugly to keep it relatively short and save on gas.!?@CBAjklmnopqrstuvwxyz{|}~!trjpqnomlk@CBA?|}~{zywvusx8BNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyGeneric traversal for .morleyConstraint for .morley"Types of all fields in a datatype.morley9Way to construct one of the fields in a complex datatype. morleyGeneric traversal for .morleyConstraint for . morleyGeneric traversal for  instrAccess.morleyConstraint for .morley@Get type of field by datatype it is contained in and field name. morleyForce result of   to be  morley,Find field of some product type by its name.2Name might be either field record name, or one in   if field is wrapped using  or . morley>Result of field lookup - its type and path to it in the tree.morleyEMake an instruction which accesses given field of the given datatype.morleyFor given complex type dt and its field fieldTy update the field value.morleyFor given complex type dt and its field fieldTy update the field value.  yNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm?-?@CBAjkkllmnopqrstuvwxyz{|}~CNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley6Pick a field from constructor with zero or one fields. morleyGeneric traversal for  and .morleyConstraint for  hsDecompose and  hsCompose.morleyjPossible outcomes of an attempt to construct a Haskell ADT value from constructor name and relevant data.morleyComposed fine.morleyNo constructor with such name.morleyRFound required constructor, but type of data does not correspond to provided one.morleyhDecompose Haskell type into constructor name and data it carries, converting the latter into Michelson .morley Inverse to .DNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmQ& morley Version of  for comparable types.morley#Constraint, required when deriving R for polymorphic type with the least possible number of methods defined manually. morleyProduct type traversal for .morley<Generic traversal for automatic deriving of some methods in .morley$Require this type to be homomorphic.morley=Require two types to be built from the same type constructor.E.g. 2HaveCommonTypeCtor (Maybe Integer) (Maybe Natural) is defined, while +HaveCmmonTypeCtor (Maybe Integer) [Integer] is not.morley6Doc element with description of contract storage type.morley'Doc element with description of a type. morleyCWhen rendering type's inner representation, this stands for name ofHaving this makes sense for polymorhpic types, when you want to render representation of some concrete instantiation of that type.morley"Data hides some type implementing .morley Signature of  function.As in ', set the first element of the pair to   for primitive types, otherwise it stands as some instantiation of a type, and its Michelson representation is given in the second element of the pair.(Examples of rendered representation: *  pair int nat - for homomorphic type. * !MyError Integer = pair string int( - concrete sample for polymorhpic type.morley Signature of  function.When value is  2, it contains types which this type is built from.hFirst element of provided pair may contain name a concrete type which has the same type constructor as a (or just aX for homomorphic types), and the second element of the pair - its unfolding in Haskell.For example, for some 0newtype MyNewtype = MyNewtype (Integer, Natural)= we would not specify the first element in the pair because  MyNewtype? is already a concrete type, and second element would contain (Integer, Natural). For polymorhpic types like 1newtype MyPolyNewtype a = MyPolyNewtype (Text, a)=, we want to describe its representation on some example of ai, because working with type variables is too non-trivial; so the first element of the pair may be e.g. "MyPolyNewType Integer"/, and the second one shows that it unfolds to (Text, Integer).1When rendered, values of this type look like: * (Integer, Natural) - for homomorphic type. * !MyError Integer = (Text, Integer)( - concrete sample for polymorhpic type.morley:Description for a Haskell type appearing in documentation.morley2Name of type as it appears in definitions section.^Each type must have its own unique name because it will be used in identifier for references.Default definition derives name from Generics. If it does not fit, consider defining this function manually. (We tried using ppR for this, but it produces names including module names which is not do we want).morley6Explanation of a type. Markdown formatting is allowed.morley4How reference to this type is rendered, in Markdown. Examples: *  #type-integerInteger, *  #type-MaybeMaybe #type-unit().Consider using one of the following functions as default implementation; which one to use depends on number of type arguments in your type: *  *  * >If none of them fits your purposes precisely, consider using .morley,All types which this type directly contains."Used in automatic types discovery.morley;For complex types - their immediate Haskell representation. For primitive types set this to  .For homomorphic types use  implementation.%For polymorhpic types consider using  as implementation. Modifier ? can be used to hide names of fields, beneficial for newtypes.Another modifier called Q can be used for datatypes to leave only meaningful part of name in every field.morley)Final michelson representation of a type.For homomorphic types use  implementation.%For polymorhpic types consider using  as implementation.morleySWhether given text should be rendered grouped in parentheses (if they make sense).morley`Stands for representation of some Haskell ADT corresponding to Michelson value. Type parameter a\ is what you put in place of each field of the datatype, e.g. information about field type.Outer list layer corresponds to union, and the inner one corresponds to products within constructors. Constructors and fields names are present.morley Show given  in a neat way. morleyRemove fields names from .JSometimes there is no sense in showing them in the doc. Example: newtypes. morley$How field names should be displayed.UResult of this function call should appear right before rendered type of that field.morleyLike : but returns values of more common type which is used in .morleyRender a reference to a type which consists of type constructor (you have to provide name of this type constructor and documentation for the whole type) and zero or more type arguments.morleyDerive , for homomorphic types only.morleyDerive 5, for polymorphic type with one type argument, like  Maybe Integer.morleyDerive 6, for polymorphic type with two type arguments, like Lambda Integer Natural.morley Implement 1 via getting all immediate fields of a datatype.lNote: this will not include phantom types, I'm not sure yet how this scenario should be handled (@martoon).morley Implement  for a homomorphic type.1Note that it does not require your type to be of  instance, which can be useful for some polymorhpic types which, for documentation purposes, we want to consider homomorphic. Example: [ is in fact polymorhpic, but we don't want this fact to be reflected in the documentation.morley Implement # on example of given concrete type.+This is a best effort attempt to implement  for polymorhpic types, as soon as there is no simple way to preserve type variables when automatically deriving Haskell representation of a type.morley Version of  which does not ensure whether the type for which representation is built is any similar to the original type which you implement a  instance for.morley2Erase fields from Haskell datatype representation.2Use this when rendering fields names is undesired.morley>Cut fields prefixes which we use according to the style guide.E.g.  cmMyField field will be transformed to myField.morley Implement  for homomorphic type.morley Implement # on example of given concrete type.,This function exists for the same reason as .morley Version of  which does not ensure whether the type for which representation is built is any similar to the original type which you implement a  instance for.&&zNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmT|?@CBA    !"jkkllmnopqrstuvwxyz{|}~{?@CBA    !"jkkllmnopqrstuvwxyz{|}~ENone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmc #morleyPut a document item. $morleyBAssemble contract documentation with the revision of the contract. %morley Assemble contract documentation. &morley+Modify all documentation items recursively. 'morleyWRecursevly traverse an instruction and modify documentation items matching given type.If mapper returns  ", doc item will remain unmodified. (morley1Leave only instructions related to documentation.Generated documentation for resulting instruction remains the same, but semantics of instruction itself gets lost. We have to pass optimizer here as an argument to avoid cyclic dependencies. # $ % & ' ( % $ ' & ( #{None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkme! ?@CBAfuvwyz{|x}ghijnklmopqrst~defghijklmnopqrstuvwxyz{}~      !"#$%&'()*+,-.WXYZXY[\]^_`abcabdefgefhijklkmnopqnorstsEFGHIJKLMNOPQRSTUVWXYZ[\]adcstuihjklmnopqrvwxyz{|}~^_`befg    !"jkkllmnopqrstuvwxyz{|}~ # $ % & ' (FNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmE )morleyState for type checking nop *morley(Set of variables defined in a let-block. .morleywData type keeping the whole type check result: instruction and type representations of instruction's input and output. 0morley]This data type keeps part of type check result - instruction and corresponding output stack. 1morley?Type-check result with concrete output stack, most common case.1Output stack type is wrapped inside the type and Typeable8 constraint is provided to allow convenient unwrapping. 2morley}Type-check result which matches against arbitrary output stack. Information about annotations in the output stack is absent.HThis case is only possible when the corresponding code terminates with FAILWITH instruction in all possible executions. The opposite may be not true though (example: you push always-failing lambda and immediatelly execute it - stack type is known). 3morleyNo-argument type wrapper for HST data type. 5morleyHData type holding type information for stack (Heterogeneous Stack Type).8This data type is used along with instruction data type Instr> to carry information about its input and output stack types.That is, if there is value instr :: Instr inp out, along with this instr one may carry inpHST :: HST inp and outHST :: HST outN which will contain whole information about input and output stack types for instr. Data type HST is very similar to Data.Vinyl.RecN, but is specialized for a particular purpose. In particular, definition of HST (t1 ': t2 ': ... tn ': '[]) requires constraints ,(Typeable t1, Typeable t2, ..., Typeable tn) as well as constraints -(Typeable '[ t1 ], Typeable '[ t1, t2 ], ...). These applications of Typeable= class are required for convenient usage of type encoded by HST ts with some functions from  Data.Typeable. Data type HST (Heterogeneous Stack Type) is a heterogenuous list of tuples. First element of tuple is a structure, holding field and type annotations for a given type. Second element of tuple is an optional variable annotation for the stack element. Additionally constructor keeps !! constraint for the current type. 8morleyExtended pattern-match - adds Sing x argument. 9morleyAppend a type to  5A, assuming that notes and annotations for this type are unknown. <morleyGiven a type, provide evidence that it is well typed w.r.t to the Michelson rules regarding where comparable types are required. =morleyGiven a type and an action that requires evidence that the type is well typed, generate the evidence and execute the action, or else fail with an error. ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = 5 6 7 9 8 3 4 0 1 2 . / , - * + ) < = : ; /8 19  77 87 97GNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm ImorleyDVarious type errors possible when checking Morley extension commands SmorleyType check error YmorleyData type that represents various errors which are related to type system. These errors are used to specify info about type check errors in TCError data type. ZmorleyAnnotation unify error [morleyType equality error \morleyStacks equality error ]morleyError that happens when type cannot be used in the corresponding scope. Argument of this constructor carries type which violates the restriction, e.g. big_map in UNPACK4, and a concrete reason why the type is unsuported. ^morleyVArithmetic operation is applied to types, at least one of which is not numeric (e.g.  timestamp and  timestamp passed to MUL instruction). _morley=Some instruction can not be used in a specific context, like SELF in LAMBDA. `morleyError that happens when a 0. is never a valid source for this type (e.g.  timestamp cannot be obtained from a ) amorleyEThere are not enough items on stack to perform a certain instruction. bmorley Invalid entrypoint name provided cmorley.Contract with given address is not originated. dmorley Given entrypoint is not present. emorleyFIncorrect parameter declaration (with respect to entrypoints feature). fmorley"Natural numbers cannot be negative gmorleyExceeds the maximal mutez value hmorley:Address couldn't be parsed from its textual representation imorley:KeyHash couldn't be parsed from its textual representation jmorley!Timestamp is not RFC339 compliant kmorley1Code always fails, but shouldn't, like ITER body. lmorley$Empty block of code, like ITER body. mmorleyAGeneric error when instruction does not match something sensible. nmorley$Contexts where type error can occur. morleyWDescription of the instruction which wants more items on stack than currently present.; I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n { x o p q r s t u v w y z | } ~  ;  n { x o p q r s t u v w y z | } ~ Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m S T U V W X I J K L M N O P Q RHNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm% morleyThe typechecking state morleyzRun type checker as if it worked isolated from other world - no access to environment of the current contract is allowed.&Use this function for test purposes only or for some utilities when environment does not matter. In particular, it is assumed that whatever we typecheck does not depend on the parameter type of the contract which is being typechecked (because there is no contract that we are typechecking). morley Similar to  , but for 'TypeCheckInstr.' morleyRun  0 and modify thrown errors using given functions.  INone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyAFunction which derives special annotations for PAIR instruction.+Namely, it does following transformation:  PAIR % % [  p.a int : p.b int : .. ] ~ [ "p (pair (int %a) (int %b) : .. ] All relevant cases (e.g.  PAIR %myf % 3) are handled as they should be according to spec. morleyGFunction which derives special annotations for CDR / CAR instructions. morley8Append suffix to variable annotation (if it's not empty) morley(Function which extracts annotations for or" type (for left and right parts).It extracts field/type annotations and also auto-generates variable annotations if variable annotation is not provided as second argument. morley(Function which extracts annotations for option t type.TIt extracts field/type annotations and also auto-generates variable annotation for Some/ case if it is not provided as second argument. morley.Combine annotations from two given stack types morley:Extract singleton for each single type of the given stack. morley.Check whether the given stack types are equal. morleyCheck whether the given stack has size 1 and its only element matches the given type. This function is a specialized version of  . morleyCheck whether elements go in strictly ascending order and return the original list (to keep only one pass on the original list). morley Function eqType is a simple wrapper around Data.Typeable.eqT suited for use within Either TCTypeError a applicative. morleyJCheck whether given types are structurally equal and annotations converge. morley%Generic implementation for MEMeration morleyLHelper function to construct instructions for binary arithmetic operations. morleyLHelper function to construct instructions for binary arithmetic operations.# # JNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmc morley Function typeCheckValImplA converts a single Michelson value given in representation from Michelson.Type2 module to representation in strictly typed GADT.typeCheckValImpl. is polymorphic in the expected type of value.VType checking algorithm pattern-matches on parse value representation, expected type t and constructs Val t value.If there was no match on a given pair of value and expected type, that is interpreted as input of wrong type and type check finishes with error. morley Function typeCheckMapVal typechecks given list of Elt5s and ensures, that its keys are in ascending order.YIt return list of pairs (key, value) with keys in ascending order so it is safe to call fromDistinctAscList on returned list  KNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyDCheck that the optional "forall" variables are consistent if present morley Executes function body, pushing ExtFrame+ onto the state and checks the pattern in FN. morley Check that a StackTypePattern& matches the type of the current stack morley<Create stack reference accessing element with a given index.2Fails when index is too large for the given stack.  LNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmn morley Function  typeCheckListG converts list of Michelson instructions given in representation from Michelson.Type2 module to representation in strictly typed GADT.YTypes are checked along the way which is neccessary to construct a strictly typed value.As a second argument,  typeCheckList) accepts input stack type representation. morley Function typeCheckValueA converts a single Michelson value given in representation from Michelson.Untyped< module hierarchy to representation in strictly typed GADT.typeCheckValue. is polymorphic in the expected type of value.VType checking algorithm pattern-matches on parse value representation, expected type t and constructs Val t value.If there was no match on a given pair of value and expected type, that is interpreted as input of wrong type and type check finishes with error. morley Function typeCheckInstrG converts a single Michelson instruction given in representation from Michelson.Type2 module to representation in strictly typed GADT.As a second argument, typeCheckInstr) accepts input stack type representation.Type checking algorithm pattern-matches on given instruction, input stack type and constructs strictly typed GADT value, checking necessary type equalities when neccessary.If there was no match on a given pair of instruction and input stack, that is interpreted as input of wrong type and type check finishes with error. morleyMHelper function for two-branch if where each branch is given a single value.  |None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmli ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n { x o p q r s t u v w y z | } ~   MNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmL morley&Minimal (earliest) timestamp used for Arbitrary (CValue 'CTimestamp) morley$Maximal (latest) timestamp used for Arbitrary (CValue 'CTimestamp) morley Median of   and  \. Useful for testing (exactly half of generated dates will be before and after this date).  NNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm= morleyState of an arbitrary address. morley5For contracts without code we store only its balance. morley<For contracts with code we store more state represented by  . morleyState of a contract with code. morley'Amount of mutez owned by this contract. morley,Storage value associated with this contract. morleyContract itself (untyped). morleyWe keep typed representation of contract code and storage in form, that hides their actual type in order to simplify the rest of the code (e.g. avoid type parameters for  c and so on). They are made optional in order to perform safe parsing from JSON (we simply return   in this parser and use   or  6 that optionally typecheck storage or contract code). morleyaPersistent data passed to Morley contracts which can be updated as result of contract execution. morleyIdentifier of chain. morley$All known addresses and their state. morleyExtract balance from  . morleyUpdates that can be applied to  . morleyNumber of genesis addresses. morley6Secrets from which genesis addresses are derived from. morleyKeyHash of genesis address. morley.Initially these addresses have a lot of money. morleyOne of genesis key hashes. morleyOne of genesis addresses. morleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !! morleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !! morleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !! morleyInitial  !. It's supposed to be used if no  ? is provided. It puts plenty of money on each genesis address. morleyRead   from a file. morleyWrite   to a file. morleyApply   to  . morleyApply a list of  s to  . morley.Add an address if it hasn't been added before. morley3Updare storage value associated with given address. morley3Updare storage value associated with given address. !morley&Retrive all contracts stored in GState0                           !0                           !ONone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmK *morleypConvert an untyped contract into a textual representation which will be accepted by the OCaml reference client. +morleymConvert a typed contract into a textual representation which will be accepted by the OCaml reference client. ,morleykConvert typed contract into a textual representation which will be accepted by the OCaml reference client. -morleyhConvert typed value into a textual representation which will be accepted by the OCaml reference client. .morleyjConvert untyped value into a textual representation which will be accepted by the OCaml reference client. /morleyConvert  ,U into a textual representation which will be accepted by the OCaml reference client. ()*, * + , - . / ()*, * + , / - .PNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmU 0morley6Built-in Michelson Macros defined by the specification Omorley1Unexpanded instructions produced directly by the ops[ parser, which contains primitive Michelson Instructions, inline-able macros and sequences PmorleyPrimitive Michelson instruction Qmorley5Built-in Michelson macro defined by the specification Rmorley2User-defined macro with instructions to be inlined SmorleyA sequence of instructions ZmorleyA programmer-defined macro `morley%Expand all macros in parsed contract.: 0 = 1 2 3 4 5 6 7 8 9 : ; < > ? @ A B C D E F G H I J K L M N O S P Q R T V U W X Y Z [ \ ] ^ _ ` a b c d e f g h i: T V U W X Y 0 = 1 2 3 4 5 6 7 8 9 : ; < > ? @ A B C D E F G H I J K Z [ \ ] ^ L M O S P Q R N ` a i b _ c d e f g hQNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmZ morley!A programmer-defined type-synonym morleyA programmer-defined constant RNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm] morley2The environment containing lets from the let-block  SNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm_  TNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmf. morley endBy2 p sep# parses two or more occurrences of p, separated by sep. morleyMake a parser from a string morley8Apply given parser and return default value if it fails. morleyParse a positive number. morley5Parse expression which can be wrapped in parentheses.  UNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmj< morleyParse untyped  Li. Take instruction parser as argument to avoid cyclic dependencies between modules, hence ' in its name.  VNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmS morley General TV2F Annotation parser, including Special Annotations>?  >?WNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmo  XNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq  YNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmuU morleyFParser for primitive Michelson instruction (no macros and extensions). morley!Parse a sequence of instructions.  ZNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmw[  [None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm| morleyElement of a let block morleylet block parser morley'Incrementally build the let environment morley1add a Let to the environment in the correct place morley7build a let name parser from a leading character parser  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  morleyParse with empty environment morley'Michelson contract with let definitions morleyMichelson contract morleyParse untyped value from text which comes from something that is not a file (which is often the case). So we assume it does not need any parsing environment. morleyLike  , but also expands macros. morley5Parses code block after "code" keyword of a contract.IThis function is part of the module API, its semantics should not change. morleyCreates  by its Morley representation.[utypeQ| (int :a | nat :b) |]8Type (TOr % % (Type (Tc CInt) :a) (Type (Tc CNat) :b)) :         \None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq morleyTransform all strings in a typed instructions using given function. The first argument specifies whether we should go into arguments that contain instructions. morley Similar to  + but for bytes. TODO [TM-375]: deduplicate  ]None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmb morleyDescribes how  G should decode tag-dependent data. We expect bytes of such structure:  5 followed by a bytestring which will be parsed with  . morleyAny decoding error. morleyAlias for label attaching. morleydGet a bytestring of the given length leaving no references to the original data in serialized form. morleyGet remaining available bytes.Note that reading all remaining decoded input may be expensive and is thus discouraged, use can use this function only when you know that amount of data to be consumed is limited, e.g. within  decodeAsBytes call. morley-Read a byte and match it against given value. morleyFail with "unknown tag" error. morleynRead a byte describing the primitive going further and match it against expected tag in the given conditions.Aside of context description, you have to specify number of arguments which given instruction accepts when written in Michelson. For instance, PUSH) accepts two arguments - type and value. morleyLike  a, but doesn't backtrack if next entry failed to parse yet there are some bytes to consume ahead.9This function exists primarily for better error messages. morley Alias for   constructor. morley6Deserialize bytes into the given value. Suitable for UNPACK operation only. morleyLike  , for strict byte array. morley0Deserialize an instruction into the given value. morleyITurn composable decoder into a final decoder which will be run over data. morley-Read length of something (list, string, ...). morley9Given decoder for list content, get a whole list decoder. morleyRead a numeric value. morley-Type check instruction occured from a lambda. morley?Utility function to fill a constructor with an empty annotation morley5Decodes an annotations' string and uses the provided   to parse untyped annotations from it. This has to produce at least one annotation (Annotations' String parsing will fail otherwise)   0 0^None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmW morleySerialize a value given to PACK instruction. morleySame as  , for strict bytestring. morleyGeneric serializer.We don't require  HasNoBigMapH constraint here since the big_map serialization is only prohibited in PACK instructions, however, we still want to be able to serialize big_map e.g. in order to transform typed value to low-level Micheline representation. TODO: Serialize chain operations properly as well since they actually also have byte representation. morley4Lift encoded list content to an entire encoded list. morleyEncode a list-like structure. morleyEncode a text. morleyEncode some raw data. morleyEncode some map. morley"Encode contents of a given number. morleyEncode an int-like value. morleyEncode a code block. morleyEncode an instruction. morleygIff there are non-empty annotations it increments the value's tag and appends the encoded annotations. morley/Encode an instruction with variable annotations morley&Encode an instruction with Annotations    _None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmM morleyWType class that provides the ability to convert something from a Micheline Expression. morleyRType class that provides an ability to convert something to Micheline Expression.        `None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm3 morleyOptimize a typed instruction by replacing some sequences of instructions with smaller equivalent sequences. Applies default set of rewrite rules. morley9Optimize a typed instruction using a custom set of rules. morleyWe do not enable   rule by default because it is potentially dangerous. There are various code processing functions that may depend on constants, e. g. string transformations. morleyAppend LHS of  k to RHS and re-run pointwise ruleset at each point. That might cause reinvocation of this function (see  3), but productivity ensures it will flatten any  E-tree right-to-left, while evaling no more than once on each node.dThe reason this function invokes ruleset is when you append an instr to already-optimised RHS of  $, you might get an optimisable tree.<The argument is a local, non-structurally-recursive ruleset. morleyCombine two rule fixpoints. morley*Combine a rule fixpoint and a simple rule. morleyTurn rule fixpoint into rule. morleyDApply the rule once, if it fails, return the instruction unmodified. morleyAn adapter for . morley.Apply a rule to the same code, until it fails.                      aNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmC morleyOperation size in bytes.}We use newtype wrapper because there are different units of measure (another one is gas, and we don't want to confuse them). morley9Maximal operation size allowed by Tezos production nodes. morleyRBase cost of any transfer of 0 mutez with no extra parameters. (Add 'valueOpSize  param5' to it to get assessment of actual transfer op size) morleyAccepts an arbitrary number of a ` and/or _H that belong to the same entity and returns their total operation size.MNote that annotations which belong to the same entity (type or instruction) must be\ considered in aggregate using one call of this function and to be specified in order. See d for details.       !       !bNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm 5morley"Morley logs for interpreter state. 7morleyLogs in reverse order. BmorleyfRepresents `[FAILED]` state of a Michelson program. Contains value that was on top of the stack when  was called. Hmorley#Environment for contract execution. JmorleyTimestamp returned by the  instruction. KmorleyANumber of steps after which execution unconditionally terminates. Lmorley0Current amount of mutez of the current contract. MmorleyOMapping from existing contracts' addresses to their executable representation. Nmorley$Address of the interpreted contract. Omorley4The contract that initiated the current transaction. Pmorley=The contract that initiated the current internal transaction. Qmorley"Amount of the current transaction. Rmorley Identifier of the current chain. TmorleyInterpret a contract without performing any side effects. This function uses untyped representation of contract, parameter and storage. Mostly used for testing. ZmorleyRInterpret an instruction in vacuum, putting no extra contraints on its execution.Mostly for testing purposes. [morleyBFunction to change amount of remaining steps stored in State monad ]morleyCFunction to interpret Michelson instruction(s) against given stack. morley?Evaluates an arithmetic operation and either fails or proceeds. ^morley*Unpacks given raw data into a typed value. morley,Access given stack reference (in CPS style).5 * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^5 H I J K L M N O P Q R , - . / B C D E F G 0 1 2 3 5 6 7 S X Z 4 V W T = > ? @ A 8 9 : ; < + * [ \ ^ Y U ]cNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  wmorley0Dummy timestamp, can be used to specify current  value or maybe something else. xmorleyDummy value for maximal number of steps a contract can make. Intentionally quite large, because most likely if you use dummy value you don't want the interpreter to stop due to gas exhaustion. On the other hand, it probably still prevents the interpreter from working for eternity. ymorleyDummy  Hs with some reasonable hardcoded values. You can override values you are interested in using record update syntax. zmorley with most data hardcoded to some reasonable values. Contract and initial values must be passed explicitly, because otherwise it hardly makes sense. w x y z w x y zdNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm5! {morley,Result of a single execution of interpreter. }morleyNew  . ~morley7List of operations to be added to the operations queue. morleyUpdates applied to  . morleyDuring execution a contract can print logs and in the end it returns a pair. All logs and returned values are kept until all called contracts are executed. In the end they are printed. morleyPAs soon as transfer operation is encountered, this address is set to its input. morley2Now much gas all remaining executions can consume. morleyMOperations executed by interpreter. In our model one Michelson's operation ( operationA type in Michelson) corresponds to 0 or 1 interpreter operation.Note: W is not part of 1 , because 10 is supposed to be provided by the user, while W can be computed by our code. morleyOriginate a contract. morleybSend a transaction to given address which is assumed to be the address of an originated contract. morleyEErrors that can happen during contract interpreting. Type parameter aE determines how contracts will be represented in these errors, e.g. Address morley0The interpreted contract hasn't been originated. morley,Interpretation of Michelson contract failed. morley!A contract is already originated. morleySender address is unknown. morleyManager address is unknown. morley!Sender doesn't have enough funds. morleySending 0tz towards an address. morley"Failed to apply updates to GState. morleyA contract is ill-typed. morleyContract storage is ill-typed. morley Contract parameter is ill-typed. morley)Specified entrypoint to run is not found. morleyParse a contract from  N. morleyParse a contract from  N and expand macros. morley,Read and parse a contract from give path or   (if the argument is   ). The contract is not expanded. morleyRead a contract using  8, expand and flatten. The contract is not type checked. morleyFOriginate a contract. Returns the address of the originated contract. morley}Run a contract. The contract is originated first (if it's not already) and then we pretend that we send a transaction to it. morley:Send a transaction to given address with given parameters. morleycExecute a contract on some global state (read from file) and transaction data (passed explicitly). morley#Implementation of executor outside  . It reads operations, executes them one by one and updates state accordingly. Each operation from the passed list is fully executed before the next one is considered. morley&Execute only one operation and update   accordingly.4123456 { | } ~  4 123456 { | } ~  eNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmBS morley#Parser for path to a contract code. morley Parser for the time returned by NOW instruction. morley+Parser for gas limit on contract execution. morley.Parser for path to database with Morley state. morley"Parser for transaction parameters. morley$Generic parser to read an option of  type. morley$Generic parser to read an option of 0 type. morley$Generic parser to read an option of  type. morley$Generic parser to read an option of W type. morley --oneline flag. morley$Generic parser to read an option of  type. morley$Generic parser to read an option of + type. fNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmX: morley'Type for contract execution validation.oIt's a function which is supplied with contract execution output (failure or new storage with operation list).FFunction returns a property which type is designated by type variable prop and might be }~ or  or anything else relevant. morleyContractCode's property tester against given input. Takes contract environment, initial storage and parameter, interprets contract on this input and invokes validation function. morley Version of   which takes Val1 as arguments instead of regular Haskell values.This function assumes that contract has no explicit default entrypoints and you always have to construct parameter manually; if you need to test contract calling specific entrypoints, use integrational testing defined by Michelson.Test.Integrational module. morley"Check if entrypoint is present in . morleyBCheck whether the given set of entrypoints is present in contract. morleykMatch the given contract with provided set of entrypoints, return left if some entrypoints were not found. morley ' that expects a successful termination. morley _ that expects contract execution to succeed and update storage to a particular constant value. morley  that expects a given failure.  4 4  gNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmu. morley5Store result of interpreted operations as they added. morley7Store the most recent result of interpreted operations. morley4Map from contracts addresses to humanreadable names. morleyRIf set, all following transfers will be executed on behalf of the given contract. morley"A result of an executed operation. morley.Overall information about test scenario error. morley$A dummy data type that ensures that  J is called in the end of each scenario. It is intentionally not exported. morleyMA monad inside which integrational tests can be described using do-notation. morleyFValidator for integrational testing that expects successful execution. morleyLValidator for integrational testing. If an error is expected, it should be  ]Z with validator for errors. Otherwise it should check final global state and its updates. morley When using branchS function for building test scenarios - names of branches we are currently within. morleyoIntegrational test that executes given operations and validates them using given validator. It can fail using   capability. It starts with   and some reasonable dummy values for gas limit and current timestamp. You can update blockchain state by performing some operations. morleyIntegrational test similar to  . It can fail using  R/ capability. It can be used with QuickCheck's forAll4 to make a property-based test with arbitrary data. morleyCHelper function which provides the results of the given operations. morleyInterprets provided list of operations only if previous interpretation succeeded which allows for engine return the earliest error possible. morleyVOriginate a contract with given initial storage and balance. Its address is returned. morleyLike  #, but for typed contract and value. morley#Transfer tokens to a given address. morley Similar to  5, for typed values. Note that it works with untyped W and does not check that entrypoint with given name is present and has the expected type. Passed value must correspond to the entrypoint argument type, not the parameter type of the contract (and must be unit for implicit accounts). morleyValidate the execution result. morleyJust fail with given error. morley@Make all further interpreter calls (which are triggered by the  5 function) use modified timestamp as the current one. morley@Make all further interpreter calls (which are triggered by the  2 function) use given timestamp as the current one. morley5Increase current time by the given number of seconds. morley@Make all further interpreter calls (which are triggered by the   function) use given gas limit. morleyTPretend that given address initiates all the transfers within the code block (i.e. SENDER' instruction will return this address). morley@Make all further interpreter calls (which are triggered by the   function) use given chain id. morley+Put an interpreted result to InternalState. morley?Make branch names for a case when we are not within any branch. morley4Add a new branch element to names provided by inner branch calls. morleyaExecute multiple testing scenarios independently, basing them on scenario built till this point./The following property holds for this function:G pre >> branchout [a, b, c] = branchout [pre >> a, pre >> b, pre >> c] .TIn case of property failure in one of the branches no following branch is executed.TProviding empty list of scenarios to this function causes error; we do not require  s here though for convenience. morley5Make a tuple with name without extra syntactic noise. morleyvTest given scenario with the state gathered till this moment; if this scenario passes, go on as if it never happened. morley  that always passes. morley!Check that there were no updates. morley)Check that there were no storage updates. morley7Check that storage value satisfies the given predicate. morleyjCheck that storage value is updated for given address. Takes a predicate that is used to check the value.YIt works even if updates are not filtered (i. e. a value can be updated more than once). morleyLike  , but expects a constant. morley@Check that eventually address has some particular storage value. morley Similar to  , for typed stuff. morley:Check that eventually address has some particular balance. morleyCompose two success validators. For example:expectBalance bal addr  * expectStorageUpdateConst addr2 ValueUnit morley%Compose a list of success validators. morley4Check that interpreter failed due to gas exhaustion. morleyOExpect that interpretation of contract with given address ended with [FAILED].:123456        :123456         0hNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyError type for   function. morleyImport contract and use to create test trees. Both versions of contract are passed to the callback function (untyped and typed).If contract's import fails, a tree with single failing test will be generated (so test tree will likely be generated unexceptionally, but a failing result will notify about problem). morleyLike  $ but supplies only untyped contract. morleyLike  " but supplies only typed contract. morley{Import contract and use it in the spec. Both versions of contract are passed to the callback function (untyped and typed).If contract's import fails, a spec with single failing expectation will be generated (so tests will likely run unexceptionally, but a failing result will notify about problem). morley A version of  = which passes only the typed representation of the contract. morley'Import contract from a given file path.This function reads file, parses and type checks a contract. Within the typechecking we assume that no contracts are originated, otherwise a type checking error will be caused.This function may throw   and  .  iNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley,This data type captures typical ways to use ? instruction. Each constructor corresponds to a usage pattern. morley(Push a constant string and fail with it. morleytPush a constant pair where the first item is a string and the second one is an arbitrary constant. Fail afterwards. morley%Push a constant string and apply the s instruction, then fail. morley!We need this class to pass it to . ' is needed because we push a value and  g is needed for . morleyExtract error tag out of  . morley4Check whether given instruction ends with a typical ^ usage. It does not recursively check instructions that can be passed to other instructions.4The instruction MUST be linearized to the left (see ). morley)If given instruction ends with a typical { usage, modify the tag used there using given transformation function. It can return any value, not necessarily a string.          jNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmJ morley5All string constants and number of their occurrences. morley4All bytes constants and number of their occurrences. morley Which strings are used as error tags and how many times. There is no notion of "error tag" in Michelson, so we use a heuristic to find out whether a string is an error tag. Specifically, we consider three patterns: 1. A constant string is pushed and then there is ; immediately. 2. A constant string is pushed, followed by s instruction and then ^. 3. A constant pair is pushed where the first item is a string and then there is `FAILWITH. morleyStatically analyze an instruction. Typed representation is used because it's easier to analyze. It means that we can't analyze ill-typed contracts, but hopefully it's not a serious limitation.    kNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley%Test case for contract documentation. morley`Declaration location, used to distinguish different test predicates. This is primarily used in  . morley+Description of predicate, which you put to  . morley Test itself. morley Construct  .dNote: you should not declare helpers with this function rather use it directly in every test suite. morleyExclude given test suite. morleyCalling excludeDocTests tests toExclude returns all test suites from tests which are not present in  toExclude. morleyFinalize test suites. morley Ensure that  > check fires on given contract. Used in tests on this module. morley1Apply given function to each group (created with DocGroupd instruction) recursively. This function will accept grouping doc item itself and its subcontents. morley1Apply given function to each group (created with DocGroup instruction) within a contract recursively. This function will accept grouping doc item itself (unless we are at root) and its subcontents. morley8Apply given function to each doc item within a contract. !morley2Check that contract documentation is wrapped with  contractName. "morleyqCheck that contracts themselves do not set the git revision. It is supposed to be filled only in the executable. #morley7Check that there is at least one non-grouping doc item.{If there is no such, rendered documentation will be empty which signals about most of the documentation pieces being lost. $morley!Check that no group contains two - items.Normally such behaviour is allowed and can be exploited, but often it is not and multiple descriptions appearence under the same group signals about missing grouping wrapper (e.g. use of caseT instead of  entryCase). morley'Check that all descriptions are proper. %morley;Base properties which should comply for all documentations.            ! " # $ %           % ! " # $  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm`B:;<=123456  4 y   %B 4 123456 :;<=  %  y lNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmn morley getRareT k generates ! producing anything big once per  1 / (k + 1) invocation. morley getRareT k generates ! producing anything big once per  1 / (k + 1) invocation.#Useful to avoid exponensial growth. )morley&Run given generator deterministically. ) )       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEEooFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~-./0123456789:;<=>?@ABCDihstv      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{||}~     !!! """""""""""""""""""""""""############## # $ % & & !"#$%&'()*+,-./012234567 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ['\']'^'_'`'a'b'c'd'e'f'g'h'i'j'k'l'm'n'o'p'q'r's't u u v w x y z { | } ~                    ((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))***************************************+++++++++++++++++++++++++++++++++++++++++++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--- - - - - - ------------------- -!-"-#-$-%-&-'-(-)-*-+-,---.-/-0-1-2-3-4-5-6-7-8-9-:-;-<-=->-?-@-A-B-C-D-E-F-G-H.I.J.K.L.M.N.O.P.P.Q.R.S.T.U.V.W.X.Y.Z.[.\.].^._.`.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x/y/y/z/z/{/|/}/~////////////////////////////////////////0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0 0 0 0 0000000000000000001 11!2"2"2#2$2%2&2'2(2)2*2+2,3-3.3/405152535455565758595:5;5<5=5>5?5@5A5B5C5D5E5F5G5H5I5JKLMNOPQRS6T6U6V6W6X6Y6Z6[6\6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6m6n6o6p6q6r6s6t6u6v6w6x6y6z6{6|6}7~7777888888888888888888888888888888888888888888888888888888888888888888888888888Z8888888888899999{9999999999999999999999999999999999999999999999999999 9 9 9 9 9999999999999999999 9!9"9#9$9%9&9'9(9)9*9+9p9,9-9.9/90919293949995969798999:::;:<:=:>:?:@:A:B:C:D:E:F:G:H:I:J:K:L:M:N:O:P:Q:R:S:T:U:V:W:X:Y:Z:[:\:]:^:_:`:a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s;t;u;v;w;x;y;z;{;|;};~;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< < < < < <<<<<<<<<<<========= =!="=#=$=%=&='=(===)=====u=*=+=,=-=.=/=0=1=2=3==========================================4=========================================5=6=7=8=9=:=;=;=<=====>=?=@=A=B====C==D=E=F==G=H====I=J=K=L=M=N=O=P==Q=R>S>T>U>V>>>W?X???!@Y@Y@Z@[@\@\@]@^@_@`@a@b@c@d@e@f@g@h@ijklmnopqrsstuuvwxyz{{||}~AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBB B B B B BBBBBBBBBBBBBCCCCCC C!C"C#C$C%C&C'C(C)C*C+C,D-D.D/D0D1D1D2D2D3D3D4D5D6D7D8D9D:D;D<D=D=D>D?D@DADBDCDDDEDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZD[D\D]D^D_D`DaDbDcDdDeDfDgDhDiDjDkDlDmDnDoDpDqDrDsDtDuDvDwDxDyDzD{D|D}D~EEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGHHHHHHHHHH H H H H H H H I I I I I I I I I I I I I I I I I I I I I I I I I I !I "I #I $I %I &I 'I (I )I *J +K ,L -L .L /L 0L 1M 2M 3M 4M 5M 6M 7M 8M 9M :M ;M <M =N >N ?N @N AN AN BN CN DN EN FN GN HN IN JN KN LN MN NN NN ON PN QN RN SN TN UN VN WN XN YN ZN [N \N ]N ^N _N _N `N aN bN cN dN eN fN gN hN iN jN kN lN mN nN oN pN qN rN sN tN uN vN wN xN yN zN {N |O }O ~O O O O P P P P P P P P P P P P P P<P P P P P P P P P P P P P P P P P P P P P P-P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q R R R R R R R R R R S S S S S S S S S S S S S S T T T T T T U U U U U V V V V V V V V V V V V W W !W "X #X $X %Y &Y 'Y (Y )Y *Y +Z ,Z -Z .Z /Z 0Z 1[ 2[ 3[ 4 5 6 7 8 9 : ;\ <\ =] >] >] ?] @] A] B] C] D] E] F] G^ H^ I^ J^ K^ L^ M^ N_ O_ P_ Q_ R_ S_ T_ U_ V_ W_ X_ Y` Z` [` [` \` ]` ^` _` `` a` b` c` da ea ea fa ga ha ia ja ka la ma na oa pa qa ra sb tb ub vb vb wb xb yb yb zb zb {b |b |b }b ~b ~b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b c c c c d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d e e e e e e e e e e e e e f f f f f f f f f g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g !g "g #g $g %g &g 'g (g )g *g +g ,g -g .g /g 0g 1g 2h 3h 4h 5h 6h 7h 8h 9h :h ;h <h =h >h ?h @h Ah Bh Ch Dh Ei Fi Gi Hi Ii Ji Kj Lj Lj Mj Nj Oj Pj Qj Rj Sj Tj Uk Vk Vk Wk Xk Yk Zk [k \k ]k ^k _k `k ak bk ck dk ek fk gk hl il jl kl ll ml nl ol pl ql 7l rl sl tl ul vl wl xl yl zl {l |l }l ~l l l l l l l l l l        ~  m m m m m m m m                         "    p o   ( , , ,    -   8 8 9 9 <   < < < < <  @ @ -A A A A A A A A B B B B B B  B C C D D D D D J K K K K L L N N N N N [ [ [ [  ] ] ] ] ] ] !] "] #] $] %] & '] (] )] *] +] ,] -] .] /^ 0^ 1^ 2^ 3^ 4^ 5^ 6^ 7^ 8^ 9^ :^ ;` <` =` >` ?` @` Aa Bb Cb D E Fd G Hd Ig Jg Kg Lg Mg Ng Og Pg Q R Sg g Tg Ug Vg W  Xi Yi Zi [ \ ] ^k _k `l al b c#morley-1.2.0-GFTR6HhJxtXGRHqcKAr6TU Util.TypeLits Util.Label Util.Typeable Util.TypeMichelson.Typed.ScopeMichelson.Typed.Haskell.Value Util.DefaultUtil.Fcf Util.LensMichelson.ParserMichelson.Parser.Error Util.NamedUtil.CLI Util.PeanoMichelson.Printer.UtilMichelson.Test.Util%Michelson.Typed.Haskell.Instr.HelpersTezos.Crypto.HashTezos.Crypto.Util Util.AesonMichelson.Untyped.AnnotationMichelson.Untyped.TypeMichelson.Untyped.ExtMichelson.Untyped.ContractMichelson.Typed.TMichelson.Typed.SingMichelson.ErrorPosUtil.AlternativeUtil.ByteStringUtil.Exception Util.GenericUtil.IOUtil.Instances Util.Markdown Util.PositiveUtil.THUtil.Test.Ingredients Util.TextMichelson.Untyped.EntryPointsMichelson.TextTezos.Crypto.Secp256k1Tezos.Crypto.P256Tezos.Crypto.Ed25519 Tezos.Crypto Tezos.Core Tezos.AddressMichelson.Untyped.ValueMichelson.Untyped.InstrMichelson.Untyped.AliasesMichelson.Runtime.TxDataUtil.TypeTuple.ClassUtil.TypeTuple.THUtil.TypeTuple.InstancesMichelson.Typed.AnnotationMichelson.Typed.ExtractMichelson.Typed.EntryPointsMichelson.Typed.ValueMichelson.Typed.PolymorphicMichelson.Typed.Arith Michelson.DocMichelson.Typed.InstrMichelson.Typed.ConvertMichelson.Typed.AliasesMichelson.Typed.Util!Michelson.Typed.Haskell.Instr.Sum%Michelson.Typed.Haskell.Instr.Product Michelson.Typed.Haskell.LooseSumMichelson.Typed.Haskell.DocMichelson.Typed.DocMichelson.TypeCheck.TypesMichelson.TypeCheck.ErrorMichelson.TypeCheck.TypeCheckMichelson.TypeCheck.HelpersMichelson.TypeCheck.ValueMichelson.TypeCheck.ExtMichelson.TypeCheck.InstrMichelson.Test.GenMichelson.Runtime.GStateMichelson.PrinterMichelson.Macro Michelson.LetMichelson.Parser.TypesMichelson.Parser.LexerMichelson.Parser.HelpersMichelson.Parser.ValueMichelson.Parser.AnnotationsMichelson.Parser.TypeMichelson.Parser.ExtMichelson.Parser.InstrMichelson.Parser.MacroMichelson.Parser.LetMichelson.PreprocessMichelson.Interpret.UnpackMichelson.Interpret.PackMorley.MichelineMichelson.OptimizerMichelson.OpSizeMichelson.InterpretMichelson.Test.DummyMichelson.Runtime Morley.CLIMichelson.Test.UnitMichelson.Test.IntegrationalMichelson.Test.ImportMichelson.FailPatternMichelson.AnalyzerMichelson.Doc.TestUtil.Test.Arbitrary Paths_morleyMichelson.TypeTypeDataGeneric Michelson*Michelson.UntypedInstr Data.Vinyl FromTupleUtil.TypeTupleMichelson.Typed.Haskell.InstrMichelson.Typed.HaskellMichelson.TypedMichelson.TypeCheckTest.QuickCheckProperty Test.Hspec ExpectationMichelson.Testbase GHC.TypeLits KnownSymbolGHC.OverloadedLabelsIsLabelghc-prim GHC.TypesSymbol TypeError AppendSymbolText:<>::$$:ShowType fromLabel Data.TypeableeqT symbolVal ErrorMessageData.Type.EqualityRefl:~:==Data.Type.BoolIf)constraints-0.11.2-8EHfvWmM9iq8fMaw1jmWHKData.ConstraintwithDictDictSub:-1data-default-class-0.1.2.0-Hn6rbGElvv4B4VdN5m2X0WData.Default.ClassDefaultdef3first-class-families-0.7.0.0-AKoF280Rgrd8XPTqX36onkFcf.CoreEval"lens-4.18.1-6qW7qxI5Hz7CTf2DAYQ95wControl.Lens.THmakeLensesWith'megaparsec-8.0.0-3X2yLQVMnQV9YEPuTbc7UCText.Megaparsec.ErrorerrorBundlePrettyParseErrorBundle$named-0.3.0.1-KR6CzcWiesR2FBWuXAfEa6Named.Internal:!:?3optparse-applicative-0.15.1.0-8lufb1qPLmfiWdRsJZ50SOptions.Applicative.Builder eitherReaderOptions.Applicative.Types readerError%singletons-2.6-8HaHZGUf8l7ErZBDUigN7kData.Singletons.InternalsingSingI#vinyl-0.12.1-5AwmFwPZtvbFH6BYFlWmMmData.Vinyl.TypeLevelSZNat++Prettier RenderDoc renderDoc isRenderable RenderContextprintDoc printDocB printDocS renderOps renderOpsListspaces wrapInParensbuildRenderDoc needsParensdoesntNeedParens addParensassertParensNotNeededleftToShowPanicleftToPrettyPanic failedProp succeededPropqcIsLeft qcIsRight roundtripTestPathBranchLRblake2b blake2b160sha256sha512B58CheckWithPrefixErrorB58CheckWithPrefixWrongPrefixB58CheckWithPrefixWrongEncodingCryptoParseErrorCryptoParseWrongBase58CheckCryptoParseWrongTagCryptoParseCryptoErrorCryptoParseUnexpectedLengthencodeBase58CheckdecodeBase58CheckdecodeBase58CheckWithPrefix formatImpl parseImpl firstRight deterministic$fBuildableCryptoParseError$fNFDataCryptoParseError$fShowCryptoParseError$fEqCryptoParseError$fShowB58CheckWithPrefixErrormorleyAesonOptionsRootAnnSomeAnnVarAnnFieldAnnTypeAnn KnownAnnTag annPrefix AnnotationSet AnnotationAnnotationUnsafe unAnnotationWithAnn emptyAnnSet singleAnnSetsingleGroupAnnSet fullAnnSet isNoAnnSet minAnnSetSizenoAnnann mkAnnotationspecialVarAnnsspecialFieldAnnisValidAnnStartisValidAnnBodyCharunifyAnn ifAnnUnified disjoinVnconvAnn$fDefaultAnnotation$fNFDataAnnotation$fBuildableAnnotation$fRenderDocAnnotation$fShowAnnotation$fKnownAnnTagTypeTag$fKnownAnnTagFieldTag$fKnownAnnTagVarTag$fKnownAnnTagRootTag$fMonoidAnnotation$fSemigroupAnnotation$fBuildableAnnotationSet$fRenderDocAnnotationSet$fShowAnnotationSet$fMonoidAnnotationSet$fSemigroupAnnotationSet$fEqAnnotation$fDataAnnotation$fFunctorAnnotation$fGenericAnnotation$fIsStringAnnotation$fEqAnnotationSet$fFromJSONAnnotation$fToJSONAnnotation$fLiftAnnotationTTKeyTUnit TSignatureTChainIdTOptionTListTSet TOperation TContractTPairTOrTLambdaTMapTBigMapTIntTNatTStringTBytesTMutezTBoolTKeyHash TTimestampTAddress ParameterTypeunwrapT renderTypetinttnattstringtbytestmuteztbooltkeyHash ttimestamptaddresstoptiontpairtortyinttynattyunittybooltypairtyortyImplicitAccountParam isAtomicTypeisKey isSignature isComparableisMutez isTimestamp isKeyHashisBoolisString isIntegerisNatisIntisBytes $fNFDataT $fBuildableT$fBuildableType $fRenderDocT$fRenderDocType$fRenderDocPrettier $fNFDataType$fBuildableParameterType$fRenderDocParameterType$fRenderDocPrettier0$fNFDataParameterType$fEqT$fShowT$fDataT $fGenericT$fEqType $fShowType $fDataType $fGenericType$fEqParameterType$fShowParameterType$fDataParameterType$fGenericParameterType$fFromJSONType $fToJSONType $fFromJSONT $fToJSONT$fFromJSONParameterType$fToJSONParameterType $fLiftType$fLiftT$fLiftParameterType TestAsserttassName tassComment tassInstrs PrintCommentunUPrintCommentStackFnquantifiedVars inPattern outPatternStackTypePatternStkEmptyStkRestStkConsTyVarVarIDTyConVarStackRefExtInstrAbstract STACKTYPEFN UTEST_ASSERTUPRINTUCOMMENTstackTypePatternToListvarSet$fBuildableStackRef$fNFDataStackRef$fBuildableVar $fNFDataVar$fBuildableTyVar $fNFDataTyVar$fBuildableStackTypePattern$fNFDataStackTypePattern$fBuildableStackFn$fNFDataStackFn$fBuildablePrintComment$fNFDataPrintComment$fBuildableTestAssert$fNFDataTestAssert$fBuildableExtInstrAbstract$fRenderDocExtInstrAbstract$fNFDataExtInstrAbstract $fEqStackRef$fShowStackRef$fDataStackRef$fGenericStackRef$fEqVar $fShowVar$fOrdVar $fDataVar $fGenericVar $fEqTyVar $fShowTyVar $fDataTyVar$fGenericTyVar$fEqStackTypePattern$fShowStackTypePattern$fDataStackTypePattern$fGenericStackTypePattern $fEqStackFn $fShowStackFn $fDataStackFn$fGenericStackFn$fEqPrintComment$fShowPrintComment$fDataPrintComment$fGenericPrintComment$fEqTestAssert$fShowTestAssert$fFunctorTestAssert$fDataTestAssert$fGenericTestAssert$fEqExtInstrAbstract$fShowExtInstrAbstract$fDataExtInstrAbstract$fGenericExtInstrAbstract$fFunctorExtInstrAbstract$fFromJSONExtInstrAbstract$fToJSONExtInstrAbstract$fFromJSONPrintComment$fToJSONPrintComment$fFromJSONStackTypePattern$fToJSONStackTypePattern$fFromJSONStackRef$fToJSONStackRef$fFromJSONStackFn$fToJSONStackFn $fFromJSONVar $fToJSONVar$fFromJSONTyVar $fToJSONTyVar$fFromJSONTestAssert$fToJSONTestAssert Contract'ContractcontractParametercontractStorage contractCodeStorage$fBuildableContract'$fRenderDocContract'$fNFDataContract' $fEqContract'$fShowContract'$fFunctorContract'$fDataContract'$fGenericContract'$fFromJSONContract'$fToJSONContract'toUType buildStackSingTSTKeySTUnit STSignature STChainIdSTOptionSTListSTSet STOperation STContractSTPairSTOrSTLambdaSTMapSTBigMapSTIntSTNatSTStringSTBytesSTMutezSTBool STKeyHash STTimestamp STAddress withSomeSingT fromSingT$fSingITTAddress$fSingITTTimestamp$fSingITTKeyHash $fSingITTBool$fSingITTMutez$fSingITTBytes$fSingITTString $fSingITTNat $fSingITTInt$fSingITTBigMap $fSingITTMap$fSingITTLambda $fSingITTOr $fSingITTPair$fSingITTContract$fSingITTOperation $fSingITTSet $fSingITTList$fSingITTOption$fSingITTChainId$fSingITTSignature $fSingITTUnit $fSingITTKey $fSingKindTProperPrintedValBetterErrorsProperUnpackedValBetterErrorsProperPackedValBetterErrorsProperConstantBetterErrorsProperStorageBetterErrorsProperParameterBetterErrors CheckScope checkScopePrintedValScopeUnpackedValScopePackedValScope ConstantScope StorageScopeParameterScopeBadTypeForScopeBtNotComparable BtIsOperation BtHasBigMapBtHasNestedBigMap BtHasContractNestedBigMapsPresenceNestedBigMapsPresentNestedBigMapsAbsentBigMapPresence BigMapPresent BigMapAbsentContractPresenceContractPresentContractAbsent OpPresence OpPresentOpAbsentForbidNestedBigMaps ForbidBigMapForbidContractForbidOpFailOnNestedBigMapsFoundFailOnBigMapFoundFailOnOperationFoundHasNoNestedBigMaps HasNoBigMap HasNoContractHasNoOpContainsNestedBigMapsContainsBigMap forbiddenOpforbiddenBigMapforbiddenNestedBigMapsforbiddenContractTypecheckOpPresencecheckContractTypePresencecheckBigMapPresencecheckNestedBigMapsPresence opAbsensecontractTypeAbsense bigMapAbsensenestedBigMapsAbsenseproperParameterEviproperStorageEviproperConstantEviproperPackedValEviproperUnpackedValEviproperPrintedValEvi $fHasNoOpt$fHasNoContractt$fHasNoBigMapt$fHasNoNestedBigMapst$fBuildableBadTypeForScope$fCheckScope(%,%)$fCheckScope(%,,%)$fCheckScope(%,,,%)$fCheckScope(%,,,,%)$fCheckScope(%,,,%)0$fCheckScopeHasNoContract$fCheckScopeHasNoNestedBigMaps$fCheckScopeHasNoBigMap$fCheckScopeHasNoOp$fShowBadTypeForScope$fEqBadTypeForScope$fGenericBadTypeForScope$fNFDataBadTypeForScopeInstrCallStack icsCallStack icsSrcPos LetCallStackLetNameSrcPosPosmkPossrcPos $fDefaultPos $fNFDataPos$fDefaultSrcPos$fNFDataSrcPos$fNFDataLetName$fDefaultInstrCallStack$fNFDataInstrCallStack$fEqPos$fOrdPos $fShowPos $fGenericPos $fDataPos $fEqSrcPos $fOrdSrcPos $fShowSrcPos$fGenericSrcPos $fDataSrcPos $fEqLetName $fOrdLetName $fShowLetName $fDataLetName$fGenericLetName$fEqInstrCallStack$fOrdInstrCallStack$fShowInstrCallStack$fGenericInstrCallStack$fDataInstrCallStack $fFromJSONPos $fToJSONPos$fFromJSONSrcPos$fToJSONSrcPos$fFromJSONLetName$fToJSONLetName$fFromJSONInstrCallStack$fToJSONInstrCallStacksomeNEHexJSONByteStringunHexJSONByteString$fFromJSONHexJSONByteString$fToJSONHexJSONByteString permute2Def permute3Def TextExceptiondisplayUncaughtException$fShowTextException$fBuildableTextException$fExceptionTextException!$fExceptionDisplayExceptionInShow$fShowDisplayExceptionInShowApplyConstraintsTyEqSing<|>Over2GenericTypeName mkGenericTreemkGenericTreeVec readFileUtf8 writeFileUtf8appendFileUtf8 withEncoding hSetTranslit$fBuildableIdentity$fBuildableNatural$fDefaultNaturalpostfixLFieldsToAnchortoAnchorAnchorunAnchor HeaderLevelMarkdownnextHeaderLevelmdHeadermdSubsectionTitle mdSubsectionmdBoldmdItalicmdTickedmdRef mdLocalRefmdAnchor mdSeparator mdSpoiler mdCommentmd$fIsStringAnchor$fToAnchorText$fToAnchorAnchorRequireLongerOrSameLengthRequireLongerThanLongerOrSameLengthIsLongerOrSameLength LongerThan IsLongerThanTakeDropAtLengthSingNatSZSS KnownPeanopeanoVal FromPeanoToPeanoPeano peanoVal' peanoValSingrequireLongerThanrequireLongerOrSameLength $fKnownPeanoS $fKnownPeanoZ $fSingINatS $fSingINatZ$fNFDataSingNat$fRequireLongerThankla$fRequireLongerOrSameLengthkla $fEqSingNat $fShowSingNatPositivePositiveUnsafe unPositive mkPositivelengthNE replicateNE$fNFDataPositive $fEqPositive $fOrdPositive$fDataPositive$fGenericPositive$fShowPositive$fBuildablePositive$fToJSONPositive$fFromJSONPositivederiveGADTNFDataourIngredients headToLowersurroundConcatListOfTypesAssociativitySome1RSplitKListKNilKCons KnownListklist ReifyList reifyList PatternMatchL PatternMatchRequireAllUnique AllUniqueFailWhen FailUnlessGuard///IsElem failUnlessEvi failWhenEvireifyTypeEqualityrsplitrecordToSomeList#listOfTypesConcatAssociativityAxiom$fReifyListac:$fReifyListkc[] $fKnownListk:$fKnownListk[] $fShowSome1TypeErrorUnless symbolValT symbolValT'inTypeErrorUnlessLabel labelToText$fBuildableLabel$fIsLabelsLabel $fShowLabel $fEqLabelKnownNamedFunctornamedL NamedInnerApplyNamedFunctor.!.?<.!><.?>$fBuildableNamedF $fShowNamedF$fWrappedNamedF$fWrappedNamedF0$fKnownNamedFunctorMaybe$fKnownNamedFunctorIdentity$fFromJSONNamedF$fFromJSONNamedF0$fToJSONNamedF$fToJSONNamedF0 $fDataNamedF $fOrdNamedF $fEqNamedF HasCLReader getReader getMetavarmaybeAddDefault outputOptionmkCLOptionParsermkCLOptionParserExtmkCLArgumentParsermkCLArgumentParserExt namedParser$fHasCLReaderText$fHasCLReaderInt$fHasCLReaderInteger$fHasCLReaderWord64$fHasCLReaderNaturalEpNameFromRefAnnErrorInEpNameBadAnnotationEpName EpNameUnsafeunEpName DefEpNameepNameFromParamAnnepNameToParamAnnepNameFromRefAnnepNameToRefAnnmkEntrypointsMap$fHasCLReaderEpName$fArbitraryEpName$fDefaultEpName$fBuildableEpName$fNFDataEpName $fBuildableEpNameFromRefAnnError$fNFDataEpNameFromRefAnnError $fShowEpName $fEqEpName $fOrdEpName$fGenericEpName$fShowEpNameFromRefAnnError$fEqEpNameFromRefAnnError$fGenericEpNameFromRefAnnErrorParserExceptionStringLiteralParserExceptionInvalidEscapeSequence InvalidCharCustomParserExceptionUnknownTypeExceptionStringLiteralExceptionOddNumberBytesException WrongTagArgsWrongAccessArgs WrongSetArgsExcessFieldAnnotation0$fShowErrorComponentStringLiteralParserException$$fNFDataStringLiteralParserException)$fShowErrorComponentCustomParserException$fNFDataCustomParserException$fBuildableParserException$fExceptionParserException$fShowParserException $fEqStringLiteralParserException"$fDataStringLiteralParserException!$fOrdStringLiteralParserException"$fShowStringLiteralParserException%$fGenericStringLiteralParserException$fEqCustomParserException$fDataCustomParserException$fOrdCustomParserException$fShowCustomParserException$fGenericCustomParserException$fEqParserExceptionDoNotUseTextErrorMText MTextUnsafeunMTextisMCharmkMText mkMTextUnsafe mkMTextCut writeMText takeMText dropMTextmtqqMText symbolToMText labelToMTextmtextHeadToUpper$fIsStringMText$fHasCLReaderMText$fFromJSONMText $fToJSONMText$fArbitraryMText $fToTextMText $fNFDataMText $fShowMText $fEqMText $fOrdMText $fDataMText$fGenericMText$fSemigroupMText $fMonoidMText$fContainerMText$fBuildableMText$fHashableMText Signature unSignature SecretKey PublicKey unPublicKeypkBytes detSecretKeytoPublicpublicKeyToBytes mkPublicKeypublicKeyLengthBytessignatureToBytes mkSignaturesignatureLengthBytesformatPublicKeymformatPublicKeyparsePublicKeyformatSignaturemformatSignatureparseSignaturesigncheckSignature$fBuildablePublicKey$fNFDataPublicKey$fArbitraryPublicKey $fEqPublicKey$fArbitrarySecretKey$fNFDataSecretKey$fBuildableSignature$fNFDataSignature$fArbitrarySignature$fShowPublicKey$fGenericPublicKey$fShowSecretKey $fEqSecretKey$fGenericSecretKey$fShowSignature $fEqSignature$fGenericSignatureformatSecretKeyparseSecretKey$fBuildableSecretKeyKeyHashkhTagkhBytes KeyHashTagKeyHashEd25519KeyHashSecp256k1 KeyHashP256SignatureEd25519SignatureSecp256k1 SignatureP256SignatureGenericPublicKeyEd25519PublicKeySecp256k1 PublicKeyP256keyHashLengthByteshashKey formatKeyHashmformatKeyHash parseKeyHash$fFromJSONPublicKey$fToJSONPublicKey$fFromJSONSignature$fToJSONSignature$fNFDataKeyHashTag$fArbitraryKeyHashTag$fHasCLReaderKeyHash$fBuildableKeyHash$fArbitraryKeyHash$fNFDataKeyHash$fFromJSONKeyHash$fToJSONKeyHash$fShowKeyHashTag$fEqKeyHashTag$fOrdKeyHashTag$fBoundedKeyHashTag$fEnumKeyHashTag$fGenericKeyHashTag $fShowKeyHash $fEqKeyHash $fOrdKeyHash$fGenericKeyHashChainId ChainIdUnsafe unChainId Timestamp unTimestampMutezunMutezmkMutez unsafeMkMuteztoMutezaddMutezunsafeAddMutezsubMutezunsafeSubMutezmulMutez divModMutezdivModMutezInttimestampToSecondstimestampFromSecondstimestampFromUTCTimetimestampPlusSecondsformatTimestampparseTimestamptimestampQuotegetCurrentTime farFuturefarPast mkChainIdmkChainIdUnsafe dummyChainId formatChainIdmformatChainId parseChainId chainIdLength $fNFDataMutez$fHasCLReaderMutez$fBoundedMutez$fBuildableTimestamp$fNFDataTimestamp$fArbitraryChainId$fBuildableChainId$fNFDataChainId$fBuildableParseChainIdError $fShowMutez $fEqMutez $fOrdMutez $fDataMutez$fGenericMutez $fEnumMutez$fBuildableMutez$fShowTimestamp $fEqTimestamp$fOrdTimestamp$fDataTimestamp$fGenericTimestamp $fShowChainId $fEqChainId$fGenericChainId$fShowParseChainIdError$fEqParseChainIdError$fFromJSONMutez $fToJSONMutez$fFromJSONChainId$fToJSONChainId$fFromJSONTimestamp$fToJSONTimestampParseContractAddressErrorParseAddressErrorParseAddressWrongBase58CheckParseAddressBothFailedAddress KeyAddressContractAddress ContractHash mkKeyAddressdetGenKeyAddressmkContractAddressRawmkContractHashRaw formatAddressmformatAddress parseAddressunsafeParseAddressunsafeParseContractHash$fFromJSONKeyContractHash$fFromJSONContractHash$fToJSONKeyContractHash$fToJSONContractHash$fNFDataContractHash$fArbitraryAddress$fFromJSONKeyAddress$fFromJSONAddress$fToJSONKeyAddress$fToJSONAddress$fHasCLReaderAddress$fBuildableAddress$fNFDataAddress$$fBuildableParseContractAddressError!$fNFDataParseContractAddressError$fBuildableParseAddressError$fNFDataParseAddressError$fShowContractHash$fEqContractHash$fOrdContractHash$fGenericContractHash $fShowAddress $fEqAddress $fOrdAddress$fGenericAddress$fShowParseContractAddressError$fEqParseContractAddressError"$fGenericParseContractAddressError$fShowParseAddressError$fEqParseAddressError$fGenericParseAddressErrorInternalByteStringEltValue'ValueInt ValueString ValueBytes ValueUnit ValueTrue ValueFalse ValuePair ValueLeft ValueRight ValueSome ValueNoneValueNilValueSeqValueMap ValueLambdaunInternalByteString$fFromJSONInternalByteString$fToJSONInternalByteString$fNFDataInternalByteString$fBuildableElt$fBuildableValue'$fRenderDocElt$fRenderDocValue' $fNFDataElt$fNFDataValue'$fDataInternalByteString$fEqInternalByteString$fShowInternalByteString$fGenericInternalByteString $fEqValue' $fShowValue'$fFunctorValue' $fDataValue'$fGenericValue'$fEqElt $fShowElt $fFunctorElt $fDataElt $fGenericElt$fFromJSONValue'$fToJSONValue' $fFromJSONElt $fToJSONEltOriginationOperation ooOriginator ooDelegate ooBalance ooStorage ooContract InstrAbstractEXTDROPNDROPDUPSWAPDIGDUGPUSHSOMENONEUNITIF_NONEPAIRCARCDRLEFTRIGHTIF_LEFTNILCONSIF_CONSSIZE EMPTY_SET EMPTY_MAP EMPTY_BIG_MAPMAPITERMEMGETUPDATEIFLOOP LOOP_LEFTLAMBDAEXECAPPLYDIPDIPNFAILWITHCASTRENAMEPACKUNPACKCONCATSLICEISNATADDSUBMULEDIVABSNEGLSLLSRORANDXORNOTCOMPAREEQNEQLTGTLEGEINTSELFCONTRACTTRANSFER_TOKENS SET_DELEGATECREATE_CONTRACTIMPLICIT_ACCOUNTNOWAMOUNTBALANCECHECK_SIGNATURESHA256SHA512BLAKE2BHASH_KEYSOURCESENDERADDRESSCHAIN_ID ExpandedOpPrimExSeqEx WithSrcEx ExpandedInstrflattenExpandedOpmkContractAddress$fBuildableInstrAbstract$fRenderDocInstrAbstract$fNFDataInstrAbstract$fShowInstrAbstract$fBuildableExpandedOp$fRenderDocExpandedOp$fNFDataExpandedOp$fEqInstrAbstract$fFunctorInstrAbstract$fDataInstrAbstract$fGenericInstrAbstract$fShowExpandedOp$fEqExpandedOp$fDataExpandedOp$fGenericExpandedOp$fShowOriginationOperation$fGenericOriginationOperation$fFromJSONExpandedOp$fToJSONExpandedOp$fFromJSONInstrAbstract$fToJSONInstrAbstract$fFromJSONOriginationOperation$fToJSONOriginationOperationExpandedExtInstrValueTxDatatdSenderAddress tdParameter tdEntrypointtdAmount $fShowTxData $fEqTxData tdAmountL tdEntrypointL tdParameterLtdSenderAddressL RecFromTuple IsoRecTuple recFromTuplederiveRecFromTuple$fRecFromTupleRec$fRecFromTupleRec0$fRecFromTupleRec1$fRecFromTupleRec2$fRecFromTupleRec3$fRecFromTupleRec4$fRecFromTupleRec5$fRecFromTupleRec6$fRecFromTupleRec7$fRecFromTupleRec8$fRecFromTupleRec9$fRecFromTupleRec10$fRecFromTupleRec11$fRecFromTupleRec12$fRecFromTupleRec13$fRecFromTupleRec14$fRecFromTupleRec15$fRecFromTupleRec16$fRecFromTupleRec17$fRecFromTupleRec18$fRecFromTupleRec19$fRecFromTupleRec20$fRecFromTupleRec21$fRecFromTupleRec22$fRecFromTupleRec23$fRecFromTupleRec24gcastEeqPeqParam1eqParam2eqParam3eqExt compareExtcastIgnoringPhantomeqTypeIgnoringPhantomNotesNTKeyNTUnit NTSignature NTChainIdNTOptionNTListNTSet NTOperation NTContractNTPairNTOrNTLambdaNTMapNTBigMapNTIntNTNatNTStringNTBytesNTMutezNTBool NTKeyHash NTTimestamp NTAddress $fEqNotesAnnConvergeError notesSingnotesT starNotesisStarorAnnconverge insertTypeAnn convergeAnns$fRenderDocNotes$fBuildableNotes $fShowNotes $fNFDataNotes$fBuildableAnnConvergeError$fEqAnnConvergeError$fShowAnnConvergeError$fNFDataAnnConvergeError AsUTypeExtAsUType fromUTypemkUType withUTypeEpLiftSequence EplArgHere EplWrapLeft EplWrapRight ParamEpErrorParamEpDuplicatedNamesParamEpUncallableArmArmCoordAcLeftAcRight ArmCoords ParamNotesParamNotesUnsafepnNotes pnRootAnnParseEpAddressErrorParseEpAddressBadAddressParseEpAddressBadRefAnnParseEpAddressRefAnnError EpAddress eaAddress eaEntryPointformatEpAddressmformatEpAddressparseEpAddressunsafeParseEpAddressstarParamNotes mkParamNotes$fArbitraryEpAddress$fNFDataEpAddress$fBuildableEpAddress$fBuildableParseEpAddressError$fNFDataParseEpAddressError$fBuildableArmCoord$fNFDataArmCoord$fBuildableParamEpError$fNFDataParamEpError$fShowEpAddress $fEqEpAddress$fOrdEpAddress$fGenericEpAddress$fShowParseEpAddressError$fEqParseEpAddressError$fGenericParseEpAddressError$fShowParamNotes$fEqParamNotes$fGenericParamNotes$fNFDataParamNotes$fShowArmCoord $fEqArmCoord$fGenericArmCoord$fShowParamEpError$fEqParamEpError$fGenericParamEpError$fShowEpLiftSequence$fEqEpLiftSequenceMkEntryPointCallResSomeEntryPointCallTSomeEpcForbidOrEntryPointCallTEntryPointCallepcName epcParamProxyepcLiftSequenceepcCallRootUnsafe epcPrimitivesepcCallRootUnsafe sepcPrimitivesepcNamemkEntryPointCallflattenEntryPoints$fBuildableEpLiftSequence$fNFDataEpLiftSequence$fBuildableEntryPointCallT$fNFDataEntryPointCallT$fBuildableSomeEntryPointCallT$fNFDataSomeEntryPointCallT$fEqSomeEntryPointCallT$fShowSomeEntryPointCallT$fShowEntryPointCallT$fEqEntryPointCallTSomeConstrainedValue'SomeConstrainedValue SomeValue' SomeValueVKeyVUnit VSignatureVChainIdVOptionVListVSetVOp VContractVPairVOrVLamVMapVBigMapVIntVNatVStringVBytesVMutezVBoolVKeyHash VTimestampVAddress Comparability CanBeComparedCannotBeComparedComparabilityScope ComparableRemFailRfNormal RfAlwaysFails ContractOut ContractOut1 ContractInp ContractInp1CreateContract ccOriginator ccDelegate ccBalance ccStorageValccContractCode SetDelegate sdMbKeyHashTransferTokensttTransferArgumentttAmount ttContract Operation'OpTransferTokens OpSetDelegateOpCreateContractrfMerge rfAnyInstr rfMapAnyInstrgetComparableProofScheckComparabilitycomparabilityPresenceaddressToVContractbuildVContractcompileEpLiftSequence liftCallArg$fBuildableSetDelegate$fNFDataSetDelegate $fEqRemFail$fNFDataRemFail$fCheckScopeComparable $fOrdValue'$fComparableTAddress$fComparableTTimestamp$fComparableTKeyHash$fComparableTBool$fComparableTMutez$fComparableTBytes$fComparableTString$fComparableTNat$fComparableTInt$fComparableTPair$fBuildableCreateContract$fNFDataCreateContract$fBuildableTransferTokens$fNFDataTransferTokens$fEqOperation'$fBuildableOperation'$fEqSomeValue'$fShowSetDelegate$fEqSetDelegate$fGenericSetDelegate$fShowTransferTokens$fEqTransferTokens$fGenericTransferTokens$fShowSomeConstrainedValue'$fShowSomeValue' $fShowRemFail$fEqCreateContract$fShowCreateContract$fShowOperation'$fNFDataOperation'EDivOp EDivOpRes EModOpRes evalEDivOpSliceOp evalSliceConcatOp evalConcat evalConcat'GetOpGetOpKeyGetOpValevalGetUpdOpUpdOpKey UpdOpParamsevalUpdSizeOpevalSizeIterOpIterOpEliterOpDetachOneMapOpMapOpInpMapOpRes mapOpToList mapOpFromListMemOpMemOpKeyevalMem$fMemOpTBigMap $fMemOpTMap $fMemOpTSet $fMapOpTList $fMapOpTMap $fIterOpTSet $fIterOpTList $fIterOpTMap $fSizeOpTMap $fSizeOpTList $fSizeOpTSet$fSizeOpTBytes$fSizeOpTString $fUpdOpTSet$fUpdOpTBigMap $fUpdOpTMap $fGetOpTMap$fGetOpTBigMap$fConcatOpTBytes$fConcatOpTString$fSliceOpTBytes$fSliceOpTString$fEDivOpTMutezTNat$fEDivOpTMutezTMutez$fEDivOpTNatTNat$fEDivOpTNatTInt$fEDivOpTIntTNat$fEDivOpTIntTIntGeLeGtLtNeqEq'CompareLsrLslNotXorAndOrNegAbsMulAdd UnaryArithOp UnaryArithResevalUnaryArithOp ArithErrorMutezArithErrorShiftArithErrorArithErrorType AddOverflow MulOverflow SubUnderflow LslOverflow LsrUnderflowArithOpArithResevalOp compareOp$fBuildableArithErrorType$fNFDataArithErrorType$fBuildableArithError$fNFDataArithError$fArithOpTYPEAddTMutezTMutez$fArithOpTYPEAddTIntTTimestamp$fArithOpTYPEAddTTimestampTInt$fArithOpTYPEAddTIntTInt$fArithOpTYPEAddTNatTNat$fArithOpTYPEAddTIntTNat$fArithOpTYPEAddTNatTInt$fArithOpTYPESubTMutezTMutez$$fArithOpTYPESubTTimestampTTimestamp$fArithOpTYPESubTTimestampTInt$fArithOpTYPESubTIntTInt$fArithOpTYPESubTNatTNat$fArithOpTYPESubTIntTNat$fArithOpTYPESubTNatTInt$fArithOpTYPEMulTMutezTNat$fArithOpTYPEMulTNatTMutez$fArithOpTYPEMulTIntTInt$fArithOpTYPEMulTNatTNat$fArithOpTYPEMulTIntTNat$fArithOpTYPEMulTNatTInt$fUnaryArithOpTYPEAbsTInt$fUnaryArithOpTYPENegTNat$fUnaryArithOpTYPENegTInt$fArithOpTYPEOrTBoolTBool$fArithOpTYPEOrTNatTNat$fArithOpTYPEAndTBoolTBool$fArithOpTYPEAndTNatTNat$fArithOpTYPEAndTIntTNat$fArithOpTYPEXorTBoolTBool$fArithOpTYPEXorTNatTNat$fUnaryArithOpTYPENotTBool$fUnaryArithOpTYPENotTNat$fUnaryArithOpTYPENotTInt$fArithOpTYPELslTNatTNat$fArithOpTYPELsrTNatTNat$fUnaryArithOpTYPEEq'TInt$fUnaryArithOpTYPENeqTInt$fUnaryArithOpTYPELtTInt$fUnaryArithOpTYPEGtTInt$fUnaryArithOpTYPELeTInt$fUnaryArithOpTYPEGeTInt$fShowArithErrorType$fEqArithErrorType$fOrdArithErrorType$fGenericArithErrorType$fShowArithError$fEqArithError$fOrdArithError$fGenericArithError ContractDoc cdContents cdDefinitionscdDefinitionsSetcdDefinitionIdsSubDocDocBlock DocSectionDocElemdeItemdeSubSomeDocDefinitionItem SomeDocItemDocSectionNameStyleDocSectionNameBigDocSectionNameSmall DocItemRef DocItemNoRefDocItemPlacementKindDocItemInlinedDocItemInDefinitions DocItemIdDocItemDocItemPositionDocItemPlacementdocItemSectionNamedocItemSectionDescriptiondocItemSectionNameStyle docItemRefdocItemToMarkdowndocItemDependencies docItemsOrderdocItemPositiondocDefinitionRef deIsAtomicdocItemToBlocklookupDocBlockSectionsubDocToMarkdown$fOrdSomeDocDefinitionItem$fEqSomeDocDefinitionItem$fShowSomeDocItem$fNFDataSomeDocItem$fShowDocSection $fEqDocItemId$fOrdDocItemId$fShowDocItemId$fToAnchorDocItemId$fEqDocItemPos$fOrdDocItemPos$fShowDocItemPos$fBuildableDocItemPosDAnchorDCommentGitRepoSettingsgrsMkGitRevision DGitRevisionDGitRevisionKnownDGitRevisionUnknown DDescriptionDNameDGeneralInfoSection DocGrouping cdContentsLcdDefinitionIdsLcdDefinitionsLcdDefinitionsSetLcontractDocToMarkdowndocGroupContentmorleyRepoSettingsmkDGitRevision$fMonoidContractDoc$fSemigroupContractDoc$fShow->$fDocItemDGeneralInfoSection$fDocItemDName$fDocItemDDescription$fDocItemDGitRevision$fDocItemDComment$fDocItemDAnchor FullContractfcCode fcParamNotes fcStoreNotes ContractCodeExtInstr TEST_ASSERTPRINTDOC_ITEM COMMENT_ITEM CommentTypeFunctionStarts FunctionEndsStatementStarts StatementEnds JustCommentunPrintCommentInstrWithNotesInstrWithVarNotes FrameInstrSeqNopExtNestedDocGroupAnnCARAnnCDRCONCAT' ConstraintDUGConstraintDUG' ConstraintDIGConstraintDIG'ConstraintDIPNConstraintDIPN' PackedNotesUNPAIR mkStackRefmapFullContractCode$fRenderDocPackedNotes$fBuildablePackedNotes$fShowPackedNotes$fNFDataPackedNotes$fIsStringPrintComment$fNFDataCommentType$fNFDataFullContract$fNFDataExtInstr $fMonoidInstr$fSemigroupInstr$fSemigroupPrintComment$fMonoidPrintComment$fShowCommentType$fGenericCommentType$fShowExtInstr$fGenericExtInstr$fEqFullContract$fShowFullContract $fShowInstr $fNFDataInstrconvertContractCodeconvertFullContract untypeValue instrToOps $fEqInstr OperationCtorEffectsAppceaNameceaApplyEffects DfsSettings dsGoToValuesdsCtorEffectsAppdfsInstr dfsFoldInstrdfsModifyInstr linearizeLeftlinearizeLeftDeep isStringValue isBytesValueallAtomicValues$fShowCtorEffectsApp$fDefaultDfsSettings$fShowDfsSettings WellTypedIsoValuesStack toValStack fromValStackToTs'ToTsGenericIsoValue GIsoValue GValueTypeBigMapunBigMap ContractRef crAddress crEntryPointWellTypedIsoValue WellTypedToTSomeEntryPointCall AnyIsoValue SomeIsoValueToT'IsoValueToTtoValfromValcoerceContractRefcontractRefToAddrtotsKnownLemmatotsAppendLemma $fGIsoValueU1$fGIsoValue:*:$fGIsoValue:+: $fGIsoValueM1$fWellTypedTAddress$fWellTypedTTimestamp$fWellTypedTKeyHash$fWellTypedTBool$fWellTypedTMutez$fWellTypedTBytes$fWellTypedTString$fWellTypedTNat$fWellTypedTInt$fWellTypedTBigMap$fWellTypedTMap$fWellTypedTLambda$fWellTypedTOr$fWellTypedTPair$fWellTypedTContract$fWellTypedTOperation$fWellTypedTSet$fWellTypedTList$fWellTypedTOption$fWellTypedTChainId$fWellTypedTSignature$fWellTypedTUnit$fWellTypedTKey $fGIsoValueK1$fArbitraryBigMap$fIsoValueBigMap$fIsoValue(,,,,,,)$fIsoValue(,,,,,)$fIsoValue(,,,,)$fIsoValue(,,,)$fIsoValue(,,)$fIsoValueOperation' $fIsoValueMap $fIsoValueSet $fIsoValue(,)$fIsoValueEither$fIsoValueMaybe $fIsoValue[] $fIsoValue()$fIsoValueChainId$fIsoValueSignature$fIsoValuePublicKey$fIsoValueEpAddress$fIsoValueAddress$fIsoValueTimestamp$fIsoValueKeyHash$fIsoValueMutez$fIsoValueByteString$fIsoValueBool$fIsoValueText$fIsoValueMText$fIsoValueNatural$fIsoValueInteger$fIsoValuesStack:$fIsoValuesStack[]$fIsoValueContractRef$fBuildableContractRef $fEqBigMap $fShowBigMap$fDefaultBigMap$fSemigroupBigMap$fMonoidBigMap$fEqContractRef$fShowContractRef$fIsoValueNamedF$fIsoValueNamedF0$fIsoValueIdentity InstrUnwrapCGCaseBranchInput GCaseClauses CaseClauses CaseClauseCaseClauseParam InstrCaseCMyCompoundType InstrWrapC CtorOnlyFieldCtorHasOnlyField GetCtorFieldIsPrimitiveValueAppendCtorFieldAxiomAppendCtorFieldExtractCtorField CtorFieldOneFieldNoFieldsappendCtorFieldAxiom instrWraphsWrap instrCase//->instrUnwrapUnsafehsUnwrap$fGInstrWrapM1:NoFields$fGInstrWrapM1:e$fGInstrWrapM1:OneField$fGInstrWrap:+::e$fGInstrWrap:+::e0$fGInstrWrapM1pathe$fGInstrCase:+:$fGInstrCaseM1$fGInstrCaseBranchctorU1$fGInstrCaseBranchctorK1$fGInstrCaseBranchctorM1$fGInstrCaseBranchctor:*:$fGInstrCaseM10$fGInstrUnwrapM1:e$fGInstrUnwrapM1:e0$fGInstrUnwrap:+::e$fGInstrUnwrap:+::e0$fGInstrUnwrapM1pathe$fGenericMyType$fIsoValueMyType$fGenericMyType'$fIsoValueMyType'$fGenericMyCompoundType$fIsoValueMyCompoundType$fGenericMyEnum$fIsoValueMyEnum$fGenericMyTypeWithNamedField$fIsoValueMyTypeWithNamedFieldInstrConstructCConstructorFieldTypesFieldConstructorInstrSetFieldCInstrGetFieldC GetFieldType instrGetField instrSetFieldinstrConstruct$fGInstrGetname:*::f$fGInstrGetname:*::f0$fGInstrGetnameK1[]f'$fGInstrGetnameM1pathf$fGInstrSetFieldname:*::f$fGInstrSetFieldname:*::f0$fGInstrSetFieldnameK1[]f'$fGInstrSetFieldnameM1pathf$fGInstrConstructK1$fGInstrConstruct:+:$fGInstrConstructU1$fGInstrConstruct:*:$fGInstrConstructM1$fGenericMyType2$fIsoValueMyType2 LooseSumC ComposeResult ComposeOkComposeCtorNotFoundComposeFieldTypeMismatch toTaggedVal fromTaggedVal$fMonoidComposeResult$fSemigroupComposeResult $fGLooseSumV1$fGLooseSum:+: $fGLooseSumM1$fGAccessField:*:$fGAccessFieldU1$fGAccessFieldK1$fGAccessFieldM1$fGLooseSumM10$fFunctorComposeResultPolyTypeHasDocC GTypeHasDoc IsHomomorphicHaveCommonTypeCtor DStorageTypeDTypeSomeTypeWithDocTypeDocMichelsonRepTypeDocHaskellRep TypeHasDoc typeDocNametypeDocMdDescriptiontypeDocMdReferencetypeDocDependenciestypeDocHaskellReptypeDocMichelsonRep WithinParensADTRep buildADTRepapplyWithinParenstypeDocDependencies'customTypeDocMdReferencehomomorphicTypeDocMdReferencepoly1TypeDocMdReferencepoly2TypeDocMdReferencegenericTypeDocDependencieshomomorphicTypeDocHaskellRepconcreteTypeDocHaskellRepconcreteTypeDocHaskellRepUnsafehaskellRepNoFieldshaskellRepStripFieldPrefixhomomorphicTypeDocMichelsonRepconcreteTypeDocMichelsonRep!concreteTypeDocMichelsonRepUnsafe$fHaveCommonTypeCtorkkaa$fHaveCommonTypeCtorkkacbc$fIsHomomorphicka$fIsHomomorphicka0$fTypeHasDocNamedF$fTypeHasDoc()$fTypeHasDocSignature$fTypeHasDocPublicKey$fTypeHasDocEpAddress$fTypeHasDocAddress$fTypeHasDocTimestamp$fTypeHasDocKeyHash$fTypeHasDocMutez$fTypeHasDocByteString$fTypeHasDocBool$fTypeHasDocNatural$fTypeHasDocInteger$fGTypeHasDocV1$fGTypeHasDoc:+:$fGTypeHasDocM1$fTypeHasDocOperation'$fTypeHasDocMText$fDocItemDType $fOrdDType $fEqDType $fShowDType$fDocItemDStorageType$fGProductHasDocU1$fGProductHasDocM1$fGProductHasDocM10$fGProductHasDoc:*:$fGTypeHasDocM10$fTypeHasDoc(,,,,,,)$fTypeHasDoc(,,,,,)$fTypeHasDoc(,,,,)$fTypeHasDoc(,,,)$fTypeHasDoc(,,)$fTypeHasDocContractRef$fTypeHasDoc(,)$fTypeHasDocEither$fTypeHasDocMaybe$fTypeHasDoc[]$fTypeHasDocBigMap$fTypeHasDocMap$fTypeHasDocSet$fIsStringDocTypeRepLHS$fBuildableDocTypeRepLHS$fGenericDStorageTypedocInstrbuildInstrDocWithGitRev buildInstrDocmodifyInstrAllDocmodifyInstrDoccutInstrNonDoc TcExtFrames BoundVars SomeContract SomeInstr:/ SomeInstrOut::: AnyOutInstrSomeHSTHSTSNil::&::&+-:&mapSomeContract noBoundVarsgetWTPwithWTPm$fEqHST$fBuildableHST $fShowHST $fNFDataHST $fEqSomeHST$fNFDataSomeHST$fShowSomeInstrOut$fShowSomeInstr$fNFDataSomeContract$fShowSomeContract $fShowSomeHSTExtErrorLengthMismatchVarError TypeMismatch TyVarMismatchStkRestMismatchTestAssertErrorInvalidStackReference StackSizeTCErrorTCFailedOnInstrTCFailedOnValueTCContractErrorTCUnreachableCode TCExtError TCTypeErrorAnnError TypeEqError StackEqErrorUnsupportedTypeForScopeNotNumericTypesInvalidInstructionInvalidValueTypeNotEnoughItemsOnStackIllegalEntryPointUnknownContractEntryPointNotFoundIllegalParamDecl NegativeNat MutezOverflowInvalidAddressInvalidKeyHashInvalidTimestampCodeAlwaysFails EmptyCodeAnyError TypeContextLambdaArgument LambdaCodeDipCode ConsArgumentComparisonArgumentsContractParameterContractStorageArithmeticOperation IterationCast CarArgument CdrArgumentConcatArgumentContainerKeyTypeContainerValueTypeNotEnoughItemsInstr NotEnoughDrop NotEnoughDip NotEnoughDig NotEnoughDug$fBuildableNotEnoughItemsInstr$fNFDataNotEnoughItemsInstr$fBuildableTypeContext$fBuildableTCTypeError$fNFDataStackSize$fBuildableExtError$fNFDataExtError$fExceptionTCError $fShowTCError$fBuildableTCError$fNFDataTCError$fShowNotEnoughItemsInstr$fEqNotEnoughItemsInstr$fGenericNotEnoughItemsInstr$fShowTypeContext$fEqTypeContext$fGenericTypeContext$fNFDataTypeContext$fShowTCTypeError$fEqTCTypeError$fGenericTCTypeError$fNFDataTCTypeError$fShowStackSize $fEqStackSize$fGenericStackSize $fEqExtError$fGenericExtError $fEqTCError$fGenericTCError TypeCheckEnv tcExtFramestcContractParam tcContractsTcOriginatedContracts TypeCheckTcInstrHandlerTypeCheckInstrTcResulttcContractParamL tcContractsL tcExtFramesL runTypeCheckrunTypeCheckIsolatedrunTypeCheckInstrIsolated mapTCErrorderiveSpecialFNsderiveSpecialVNderiveVN deriveNsOrderiveNsOption convergeHSTEl convergeHSTonLefthstToTseqHSTeqHST1 lengthHSTensureDistinctAsceqTypeonTypeCheckInstrErronScopeCheckInstrErrtypeCheckInstrErrtypeCheckInstrErr'onTypeCheckInstrAnnErrwithCompareableCheck typeCheckImpl matchTypesmemImplgetImplupdImplsizeImpl sliceImpl concatImpl' concatImpl arithImpladdImpledivImplsubImplmulImplunaryArithImpltypeCheckValImpl typeCheckExttypeCheckContract typeCheckListtypeCheckValuetypeVerifyTopLevelTypetypeCheckTopLevelType minTimestamp maxTimestamp midTimestamp$fArbitraryTimestamp$fArbitraryMutez$fArbitraryValue'$fArbitraryValue'0$fArbitraryValue'1$fArbitraryValue'2$fArbitraryValue'3$fArbitraryValue'4$fArbitraryValue'5 AddressStateASSimple ASContract ContractState csBalance csStorage csContractcsTypedContractcsTypedStorage$fBuildableContractState$fFromJSONContractState$fToJSONContractState$fBuildableAddressState$fShowAddressState$fGenericAddressState$fShowContractStateGState gsChainId gsAddresses asBalance$fFromJSONAddressState$fToJSONAddressState $fShowGState gsAddressesL gsChainIdLGStateUpdateErrorGStateAddressExistsGStateUnknownAddressGStateNotContract GStateUpdate GSAddAddressGSSetStorageValue GSSetBalanceSomeContractAndStorage scsContract scsStoragegetTypedContractgetTypedStoragegetTypedContractAndStoragegenesisKeyHashesgenesisAddressesgenesisKeyHashgenesisAddressgenesisAddress1genesisAddress2genesisAddress3genesisAddress4genesisAddress5genesisAddress6 initGState readGState writeGState applyUpdate applyUpdatesextractAllContracts$fFromJSONGState$fToJSONGState$fExceptionGStateParseError$fBuildableGStateUpdate$fBuildableGStateUpdateError$fShowGStateParseError$fShowGStateUpdate$fShowGStateUpdateErrorprintUntypedContractprintTypedContractCodeprintTypedFullContractprintTypedValueprintUntypedValueprintSomeContractMacroCASETAGACCESSSET CONSTRUCTVIEWVOIDCMPIFXIFCMPFAILPAPAIRCADRSET_CADRMAP_CADRDIIPDUUPASSERTASSERTX ASSERT_CMP ASSERT_NONE ASSERT_SOME ASSERT_LEFT ASSERT_RIGHTIF_SOMEIF_RIGHT ParsedValue ParsedInstrParsedUExtInstrParsedOpPrimMacLMac CadrStructAD PairStructFPLetMacrolmNamelmSiglmExpr expandListexpandContract expandValueexpand expandMacro expandPapairexpandUnpapair expandCadr expandSetCadr expandMapCadr mapLeaves$fBuildablePairStruct$fNFDataPairStruct$fBuildableCadrStruct$fNFDataCadrStruct $fNFDataMacro$fBuildableMacro$fNFDataParsedOp$fBuildableParsedOp$fRenderDocParsedOp$fNFDataLetMacro$fBuildableLetMacro$fEqPairStruct$fShowPairStruct$fDataPairStruct$fGenericPairStruct$fEqCadrStruct$fShowCadrStruct$fDataCadrStruct$fGenericCadrStruct $fEqMacro $fShowMacro $fDataMacro$fGenericMacro $fEqParsedOp$fShowParsedOp$fDataParsedOp$fGenericParsedOp $fEqLetMacro$fShowLetMacro$fDataLetMacro$fGenericLetMacro$fFromJSONParsedOp$fToJSONParsedOp$fFromJSONLetMacro$fToJSONLetMacro$fFromJSONPairStruct$fToJSONPairStruct$fFromJSONCadrStruct$fToJSONCadrStruct$fFromJSONMacro $fToJSONMacroLetTypeltNameltSigLetValuelvNamelvSiglvVal $fEqLetValue$fShowLetValue $fEqLetType $fShowLetType$fFromJSONLetValue$fToJSONLetValue$fFromJSONLetType$fToJSONLetTypeLetEnv letMacros letValuesletTypesParsernoLetEnv$fDefaultReaderT $fShowLetEnv $fEqLetEnvlexememSpacesymbolsymbol'wordword'string'parensbracesbrackets brackets' semicoloncommavarID sepEndBy1sepBy2mkParserparseDefpositivemparensvalue' stringLiteral bytesLiteral intLiteralmkLetValnotenoteVnoteDefnoteF noteV2DefnotesTVF notesTVF2 notesTVF2DefnotesVFnotesTVnotesTF fieldTypetype_field typeWithParenextInstr printComment stackType primInstrops'dupOpcmpOppairOpmapOpmacrodupNMacduupMacpairMac mapCadrMacifCmpMacletBlockletTypemkLetMac parseNoEnvprogramvalue parseValueparseExpandValue codeEntryutypeQtransformStringstransformBytes UnpackError unUnpackError unpackValue unpackValue' unpackInstr'decodeContract$fExceptionUnpackError$fBuildableUnpackError$fShowUnpackError$fEqUnpackError packValue packValue' encodeValue'packT' packCode'encodeIntPayload packNotedT'FromExpressionfromExpression ToExpression toExpression$fToExpressionFullContract$fToExpressionValue'$fToExpressionNotes$fToExpressionT$fToExpressionInstr$fFromExpression[]$fFromExpressionValue'Rule OptimizerConf gotoValuesrulesetoptimizeoptimizeWithConf defaultRulesdefaultRulesAndPushPackorRule orSimpleRule$fDefaultOptimizerConfOpSizeunOpSizeopSizeHardLimitsmallTransferOpSize instrOpSizeexpandedInstrsOpSize valueOpSize$fMonoidOpSize$fSemigroupOpSize$fAnnsOpSizeVarargOpSize$fAnnsOpSizeVararg->$fAnnsOpSizeVararg->0 $fShowOpSize $fEqOpSize $fOrdOpSize InstrRunnerEvalMInterpreterState isMorleyLogsisRemainingStepsRemainingSteps SomeItStackContractReturn MorleyLogs unMorleyLogsInterpretResultiurOps iurNewStorage iurNewStateInterpretErrorRuntimeFailureIllTypedContract IllTypedParamIllTypedStorageMichelsonFailedMichelsonFailedWithMichelsonArithErrorMichelsonGasExhaustionMichelsonFailedTestAssertMichelsonAmbigousEpRef ContractEnvceNow ceMaxSteps ceBalance ceContractsceSelfceSourceceSenderceAmount ceChainId noMorleyLogsinterpretUntypedhandleContractReturn mkInitStackfromFinalStack interpretinitInterpreterStateinterpretInstrrunInstr runInstrNoGas runInstrImpl runUnpack$fBuildableMichelsonFailed$fEqMichelsonFailed$fNFDataMorleyLogs$fBuildableInterpretError$fNFDataRemainingSteps$fNFDataInterpreterState$fEqMorleyLogs$fShowMorleyLogs$fGenericMorleyLogs$fDefaultMorleyLogs$fBuildableMorleyLogs$fGenericInterpretError$fShowRemainingSteps$fGenericRemainingSteps$fEqRemainingSteps$fOrdRemainingSteps$fBuildableRemainingSteps$fNumRemainingSteps$fShowInterpreterState$fGenericInterpreterState$fShowInterpretResult$fShowInterpretError$fShowMichelsonFailed$fNFDataMichelsonFaileddummyNow dummyMaxStepsdummyContractEnvdummyOrigination ExecutorRes _erGState _erOperations _erUpdates_erInterpretResults_erSourceAddress_erRemainingSteps ExecutorOp OriginateOp TransferOp$fShowExecutorOp$fShowExecutorRes ExecutorErrorExecutorError'EEUnknownContractEEInterpreterFailedEEAlreadyOriginatedEEUnknownSenderEEUnknownManagerEENotEnoughFundsEEZeroTransactionEEFailedToApplyUpdatesEEIllTypedContractEEIllTypedStorageEEIllTypedParameterEEUnknownEntrypointerInterpretResults erUpdates parseContractparseExpandContractreadAndParseContractprepareContractoriginateContract runContracttransfer executorPuretypeCheckWithDb$fSemigroupExecutorRes$fExceptionExecutorError'$fBuildableExecutorError'$fShowExecutorError'contractFileOption nowOptionmaxStepsOption dbPathOption txDataOption keyHashOption valueOption mutezOption addressOption onelineOptionentrypointOption mTextOption$fHasCLReaderValue'ContractPropValidator contractPropcontractPropValhasEpcontractHasEntryPointsmatchContractEntryPointsvalidateSuccessvalidateStorageIsvalidateMichelsonFailsWithValidationErrorUnexpectedExecutorErrorUnexpectedTypeCheckErrorExpectingInterpreterToFailIncorrectUpdatesIncorrectStorageUpdateInvalidStorageStoragePredicateMismatchInvalidBalanceUnexpectedUpdatesCustomValidationErrorIntegrationalScenarioIntegrationalScenarioMSuccessValidatorIntegrationalValidator$fBuildableScenarioBranchName$fBuildableAddressName$fExceptionValidationError$fBuildableValidationError$fShowExpectedStorage$fShowExpectedBalance$fShowAddressName$fShowValidationErrorintegrationalTestExpectationintegrationalTestProperty originate tOriginate tTransfervalidateintegrationalFail modifyNowsetNow rewindTime setMaxSteps withSender setChainId branchout?-offshootexpectAnySuccessexpectNoUpdatesexpectNoStorageUpdates expectStorageexpectStorageUpdateexpectStorageUpdateConstexpectStorageConsttExpectStorageConst expectBalancecomposeValidatorscomposeValidatorsListexpectGasExhaustionexpectMichelsonFailed$fBuildableScenarioErrorImportContractErrorICEUnexpectedParamTypeICEUnexpectedStorageTypeICEParse ICETypeChecktestTreesWithContracttestTreesWithUntypedContracttestTreesWithTypedContractconcatTestTreesspecWithContractspecWithTypedContractspecWithUntypedContract readContractimportContractimportUntypedContract$fExceptionImportContractError$fBuildableImportContractError$fShowImportContractError$fEqImportContractErrorTypicalFailWithConstantScope'typicalFailWithTagisTypicalFailWithmodifyTypicalFailWith$fConstantScope'a AnalyzerResarConstStrings arConstBytes arErrorTagsanalyze$fMonoidAnalyzerRes$fSemigroupAnalyzerRes$fBuildableAnalyzerRes$fShowAnalyzerRes$fEqAnalyzerResDocTest dtDeclLocdtDescdtSuite mkDocTestexcludeDocTestexcludeDocTests runDocTestsexpectDocTestFailureforEachContractLayerforEachContractDocItemtestContractNameAtTop testNoGitInfotestDocNotEmptytestNoAdjacentDescriptions testDocBasic$fBuildableDocTest $fShowDocTest $fEqDocTestrunGen $fArbitraryT$fToADTArbitraryT$fArbitraryParameterType$fToADTArbitraryParameterType$fArbitraryType$fToADTArbitraryType$fArbitraryElt$fToADTArbitraryElt$fToADTArbitraryValue'$fArbitraryInstrAbstract$fToADTArbitraryInstrAbstract$fArbitraryContract'$fToADTArbitraryContract'$fArbitraryAnnotation$fToADTArbitraryAnnotation$fToADTArbitraryMutez$fArbitraryExpandedOp$fToADTArbitraryExpandedOp$fArbitraryInstrCallStack$fToADTArbitraryInstrCallStack$fArbitraryLetName$fToADTArbitraryLetName$fArbitrarySrcPos$fToADTArbitrarySrcPos$fArbitraryPos$fToADTArbitraryPos$fArbitraryExtInstrAbstract$fArbitraryStackTypePattern$fArbitraryTyVar$fArbitraryVar$fArbitraryInternalByteStringGHC.Basemempty_rcWillNeedParensTrue-wl-pprint-text-1.2.0.1-AxzKpy0I2kpFvGv4YvKJ4sText.PrettyPrint.Leijen.TextDoc text-1.2.4.0Data.Text.InternalData.Text.Internal.BuilderBuilderStringdoRender(QuickCheck-2.13.2-IFlQsVhepoXHrDkLASCyShTest.QuickCheck.Property"tasty-1.2.3-LtPeLd2EnbBKYZJAnJoZU2Test.Tasty.CoreTestTreeversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName Data.EitherRightLeftminimizeAnnSet trimEndNoAnn renderAnnrenderAnnGroupCharBoolFalse SomeSingTSomeSingData.Typeable.InternalTypeableSingfromSingtoSingTtoSingFailOnContractFound&universum-1.6.1-9S3REjxS97oDtyplhqPK9gUniversum.TypeOpsEachContainsContract ContainsOpforbiddenOpEviforbiddenContractTypeEvisomeNonEmptyUniversum.String.ConversionshowGHC.Exception.TypedisplayExceptionDisplayExceptionInShowGHC.IO.ExceptionExitCode Fcf.UtilsTyEqmdEscapeAnchorRequireLongerOrSameLength'RequireLongerThan'OfLengthWithTail Data.Data)tasty-ant-xml-1.1.6-JvRUlCjVrGYaHSgUUf5IuTest.Tasty.Runners.AntXML antXMLRunnernamedFLmetavar GHC.MaybeNothinginvalidMCharErrorSecretKeyEd25519SecretKeySecp256k1 SecretKeyP256 GHC.NaturalNaturalWordJust chainIdPrefixbytestring-0.10.10.0Data.ByteString.Internal ByteStringgcast Data.ProxyProxy GHC.ClassescompareverifyParamNoteswithEpLiftSequenceFailOnNonComparable IsComparable DocItemPosEqOrddocItemToMarkdownFulldocItemsOrderByIddocBlockToMarkdowndocItemToBlockGeneralDGitRevisionInfoGHC.ShowShowceaBottomToTop<>analyzeInstrFailurecontainers-0.6.2.1Data.Sequence.InternalGInstrCaseBranch GInstrCase GInstrWrapLNRequireFound GLookupNamedGetNamedLookupNamedResultfailWithWrongCtorGInstrConstructGInstrSetField GInstrGetNamedF GAccessField GLooseSumPolyCTypeHasDocCGProductHasDoc DocTypeRepLHSmapADTRepFieldsbuildFieldNametypeCheckMapVal checkVarscheckFncheckStackTypecreateStackReftypeCheckInstr genericIfgenesisAddressesNumgenesisSecrets addAddresssetStorageValue setBalanceLetletInneraddLetletNamecontract TaggedDecoder decodeWithTagtdTag tdDecoder?getByteStringCopygetRemainingByteStringCopy expectTag unknownTag expectDescTag manyForcedmany#:finalizeDecoder decodeLength decodeAsList decodeIntdecodeTypeCheckLam decodeNoAnn decodeAnns encodeValue encodeAsList encodeList encodeString encodeBytes encodeMap encodeNumeric encodeInstrs encodeInstrencodeWithAnnsencodeVarNotedInstrencodeNotedInstrpushPacklinearizeAndReapplyfixpoint applyOnceadapter whileApplies annsOpSize runArithOp withStackElemGHC.IO.Handle.FDstdinexecutorIO executeOneOp_isInterpreterLog_isExecutorResult_isContractsNames _isSenderExecutorResOrError ScenarioError ValidatedScenarioBranchName/hspec-expectations-0.8.2-Gyxpw5RZvqV2WiQLfU4YHYTest.Hspec.ExpectationsregisterInterpretationIfNeeded putResultemptyScenarioBranchappendScenarioBranch IOExceptionFailWithStringFailWithConstantPairFailWithStackValue-tasty-hunit-compat-0.2-EkS49E6GeCc2tkEfRGgiK4Test.Tasty.HUnittestCase forEachLayer testDescriptionsAreWellFormatted genRareTypegenRareT