!  $      !"#$%&'()*+,-./0123456789 : ; < = > ? @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy 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+{+|+}+~++++++++++++++++++++++++++++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------------------------------------------------ - - - - ----------......... .!.".#.$.%.&.'.(.).*.+.,.-.../.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/k0l0m0n0o0p0q0r0s0t0u0v0w0x0y0z0{0|0}0~0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001112222222222223444566666666666666666 6 6 6 6 66666777777 7!7"7#7$7%7&7'7(7)7*7+7,7-7.7/707172737475768788898:9;9<9=9>9?9@9A9B9C9D9E9F9G9H9I9J9K9L9M9N9O9P9Q9R9S9T9U9V9W9X9Y9Z9[9\9]9^9_9`9a9b9c9d9e9f9g9h9i9j9k9l9m9n9o9p9q9r9s9t9u9v9w9x9y9z9{9|9}9~99:::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< < < < < <================== =!="=#=$=%=&='=(=)=*=+=,=-=.=/=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@IAJAKALAMBNBOBPBQBRBSBTBUBVBWBXBYBZB[B\B]B^B_C`CaCbCcCdCeCfCgChCiCjCkClCmCnCoCpCqCrCsCtCuCvCwCxCyCzC{C|C}C~CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEE E E E E FFFFFFFFFFFFFFFFFFG G!G"G#G$G%G&G'G(G)G*G+G,G-G.G/G0G1G2G3G4G5G6G7G8G9G:G;G<G=G>G?G@GAGBGCGDGEGFGGGHGIGJGKGLGMGNGOGPGQGRGSGTGUGVGWGXGYGZG[G\G]G^G_G`GaGbGcGdGeGfGgGhGiGjGkGlGmGnGoGpGqGrGsGtHuHvHwHxHyHzH{H|I}I~IJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM M M M M N N O P P P P P P Q Q Q Q Q Q Q Q Q Q Q Q Q R R R R R R R !R "R #R $R %R &R 'R (R )R *R +R ,R -R .R /R 0R 1R 2R 3R 4R 5R 6R 7R 8R 9R :R ;R <R =R >R ?R @R AR BR CR DR ER FR GR HR IR JR KR LR MR NR OR PR QR RR SR TR UR VR WR XR YR ZR [R \S ]S ^S _S `S aT bT cT dT eT fT gT hT iT jT kT lT mT nT oT pT qT rT sT tT uT vT wT xT yT zT {T |T }T ~T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T U U U U U U U U U U U U U U U U U V V V V V V V V V V W W W W W W W W W W W W W W X X X X X X Y Y Y Y Y Z Z Z Z Z Z Z Z Z Z Z [ [ \ \ \ ] ] ] ] ] ^ ^ ^ ^ _ _ _        ` ` a a a a a a a a a !a "a #b $b %b &b 'b (b )b *c +c ,c -c .c /c 0c 1c 2c 3c 4c 5c 6d 7d 8d 9d :d ;d <d =d >d ?d @d Ad Bd Cd Dd Ed Fe Ge He Ie Je Ke Le Me Ne Oe Pe Qe Re Se Te Ue Ve We Xe Ye Ze [e \e ]e ^e _e `e ae be ce de ee fe ge he ie je ke le me ne oe pe qe re se te ue ve we xe ye ze {e |e }e ~e e e e e e e e e e e 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 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 i i i i i i i i i i i i i i i i j j j j j j k k k k k k k k k k k l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l !l "l #l $l %l &l 'l (l )l *l +l ,l -l .l /l 0l 1m 2m 3m 4m 5m 6m 7m 8m 9m :m ;m <m =m >m ?m @m Am Bm Cm Dm Em Fm Gm Hm Im Jm Kn Ln Mn Nn On Pn Qn Rn Sn Tn Un Vn Wn Xn Yn Zn [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 vo w x y z { | } ~                            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 r r r r r r r r s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s t t t t t t t t t t t u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u v v v v v !v "v #v $v %v &v 'v (v )v *v +v ,w -w .w /w 0w 1w 2w 3w 4w 5x 6x 7y 8y 9y :y ;z <z =z >z ?z @z Az Bz Cz Dz Ez Fz Gz Hz Iz Jz Kz Lz Mz Nz Oz Pz Qz Rz Sz Tz Uz Vz Wz Xz Yz Zz [z \z ]z ^z _z `z az bz cz dz ez fz gz hz iz jz kz lz mz nz oz pz qz rz sz tz uz vz wz xz yz zz {z |z }z ~z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z 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[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmW 0/  21#$*)@AB$B 0/21 #*)A@None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm VWXYZ[\]^_`ab a_`]^bVWXYZ[\None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleyA 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  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.morleyzWhether the current expression is going to be used as part of top-level expression or in a similar context. When set to B, you may need to wrap your rendered expression into parentheses.morleyConvert  to # with a line width of 80.morleyConvert  to  in the same maner as .morleyLGeneric way to render the different op types that get passed to a contract.morley#Create a specific number of spaces.morleyCWrap documents in parentheses if there are two or more in the list.morley#Turn something that is instance of  into a ". It's formatted the same way as  formats docs.morley9Here 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.htmlmorley ParensNeeded constant.morley ParensNeeded constant.morleyAdd parentheses if needed.morleygEnsure parentheses are not required, for case when you cannot sensibly wrap your expression into them.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleyA ' that always failes with given message.morleyA  that always succeeds.morleyThe  holds on `Left a`.morleyThe  holds on `Right b`.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleyJPath to a leaf (some field or constructor) in generic tree representation.morleyQWhich branch to choose in generic tree representation: left, straight or right. P is used when there is one constructor with one field (something newtype-like).The reason why we need  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 , in both cases path will be the same ([L]).None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm3morley 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.%@]*morleyPrints empty prefix in case of noAnn.Such functionality is required in case when instruction has two annotations of the same type, former is empty and the latter is not. So that `PAIR noAnn noAnn noAnn %kek` is printed as `PAIR % %kek`morley Makes an " from its textual value, prefix (%@*:) excluded Throws an error if the given # contains invalid charactersmorley Makes an " from its textual value, prefix (%@:) excluded Returns a # error message if the given # contains invalid charactersmorley>List of all the special Variable Annotations, only allowed in CAR and CDRH instructions, prefix (@) excluded. These do not respect the rules of  and .morley3The only special Field Annotation, only allowed in PAIR, LEFT and RIGHTH instructions, prefix (%) excluded. This does not respect the rules of  and .morley Checks if a 6 is valid to be the first of an annotation, prefix (%@8:) excluded, the ones following should be checked with B instead. Note that this does not check Special Annotations, see  and morley Checks if a O is valid to be part of an annotation, following a valid first character (see ) and the prefix (%@<:). Note that this does not check Special Annotations, see  and 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. None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm*morleyKFor implicit account, which type its parameter seems to have from outside.I      !"I      !"None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm? Smorley8A stack function that expresses the type signature of a LetMacroXmorleyA stack pattern-match\morley"A type-variable or a type-constantamorleyA reference into the stack.cmorley3Implementation-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).dmorley,Matches current stack against a type-patternemorley'A typed stack function (push and pop a  TcExtFrame)fmorley8Copy the current stack and run an inline assertion on itgmorley'Print a comment with optional embedded StackRefshmorleyConvert X# to a list of types. Also returns  which is . if the pattern is a fixed list of types and 2 if it's a pattern match on the head of the stack.imorley+Get the set of variables in a stack patternKLMNOPQRSTVWUXYZ[\^]_`abcdefghicdefgabPQRKLMNO_`\^]XYZ[STVWUihNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmBNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmFmorley6Michelson language type with annotations stripped off.morleyConverts from  to .morley"Format type stack in a pretty way.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmX morley Version of  with ' constraint, specialized for use with  kind.morley Version of  with ' constraint, specialized for use with  kind.morley Version of  withSomeSing with - constraint provided to processing function.[Required for not to erase this useful constraint when doing conversion from value of type ! to its singleton representation.morley Version of  which creates .morley Version of  withSomeSing with - constraint provided to processing function.]Required for not to erase these useful constraints when doing conversion from value of type ! to its singleton representation.morley Version of  specialized for use with data instance Sing :: T -> Type which requires ) constraint for some of its constructorsmorley Version of  which creates .morleyInstance of data family J for 5. Custom instance is implemented in order to inject & constraint for some of constructors.morleyInstance of data family J for .JIHJIHNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm$%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.morleyAlias for comparable types.#morleyWhether the type contains  , with proof.*morley This is like 2., 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 2(. 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  contains another +morley#Report a human-readable error that  contains another ,morley$Report a human-readable error about  at a wrong place.morley$Report a human-readable error about  at a wrong place.-morley$Report a human-readable error about  at a wrong place..morley1Constraint which ensures that type is comparable./morley:Constraint which ensures that there are no nested bigmaps.0morleyEConstraint which ensures that bigmap does not appear in a given type.1morleyLConstraint which ensures that contract type does not appear in a given type.2morleyMConstraint 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 ).3morley.Whether this type contains a type with nested s .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.4morleyWhether this type contains  type.morleyWhether this type contains  type.In some scopes (constants, storage) appearing for contract type is prohibited. Contracts in input/output of lambdas are allowed without limits though. morleyWhether this type contains  type.In some scopes (constants, parameters, storage) appearing for operation type is prohibited. Operations in input/output of lambdas are allowed without limits though. morleyEvidence of that 2 is deducable from *.5morleyReify 2 contraint from *. Left for backward compatibility. morleyReify 1 contraint from ).8morleyReify 1 contraint from ).:morley1Check at runtime whether the given type contains .;morley1Check at runtime whether the given type contains .<morley1Check at runtime whether the given type contains .=morley1Check at runtime whether the given type contains .?morley6Check at runtime that the given type does not contain .@morley6Check at runtime that the given type does not contain .Amorley7Check at runtime that the given type does not containt Bmorley=Check at runtime that the given type does not contain nested M354LK      "!#%$&'()*+,-./0123456789:;<=>?@ABCDEFGHM    CDEFGH54 .0/2143*)(',+-&#%$ "!>9:;<=?@AB58673LKNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmj  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmZmorleyCompute a cryptographic hash of a bytestring using the Blake2b_256 cryptographic hash function. It's used by the BLAKE2B instruction in Michelson.[morley`Compute a cryptographic hash of a bytestring using the Blake2b_160 cryptographic hash function.\morley[Compute a cryptographic hash of a bytestring using the Sha256 cryptographic hash function.]morley[Compute a cryptographic hash of a bytestring using the Sha512 cryptographic hash function.Z[\]Z[\]None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmamorleyFError that can happen during parsing of cryptographic primitive types.fmorley*Encode a bytestring in Base58Check format.gmorley,Decode a bytestring from Base58Check format.hmorleyParse 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.imorley Template for  'format*' functions.jmorley Template for 'parse*' functions.kmorleyReturns first encountered 2 in a list. If there are none, returns arbitrary %. It is useful to implement parsing.lmorley*Do randomized action using specified seed.^_`abcdefghijklabcdefg^_`hijklNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmqmorleyThis function is the same as  except that it returns  , because I is guaranteed to return non-empty list, but it's not captured in types.qqNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm<rmorley]Newtype wrapper for ByteString which uses hexadecimal representation for JSON serialization.rstrstNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm*78wxwx78 None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm yzyz None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley Similar to , but compares types via  DefaultEq& used in singletons comparisons (see Data.Singletons.Prelude.Eq module).9~~9!None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley5Extract datatype name via its Generic representation.:For polymorphic types this throws away all type arguments.morleyBRebuild a list into a binary tree of exactly the same form which  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."None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmÚmorleyChange the character encoding of the given Handle to transliterate on unsupported characters instead of throwing an exception.#None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmŘ None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmȌmorley?For datatype with "myNyan" field it will create "myNyanL" lens.::$None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmemorley!Level of header, starting from 1.morleyA piece of markdown document.This is opposed to #A type, which in turn is not supposed to contain markup elements.morley@Turn text into valid anchor. Human-readability is not preserved.morley#Text which is hidden until clicked.morleyQuasi quoter for Markdown.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmFGFGNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyWe can have `RequireLongerOrSameLength = (RequireLongerOrSameLength' l a, LongerOrSameLength l a)`, but apparently the printed error message can be caused by  rather than t. 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.morleyW in form of constraint that produces good error message. Should be used together with  because  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  , 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  - 1 + 1 + Length s.5For concrete types this will be identical to calling FromPeano (Length l).morley; in form of constraint that gives most information to GHC.morley Similar to , but returns / when list length equals to the passed number.morley3Comparison of type-level naturals, as a constraint.morley1Comparison 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 T0s in user API, need to distinguish them somehow.morley!Get runtime value from singleton.JTSRTSRJ%None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleyInteger 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_`befgkm??&None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley:This is the default set of ingredients extended with the . which is used to generate xml reports for CI.'None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmUmorley,Leads first character of text to lower case.(For empty text this will throw an error.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm 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.-.U  -.U  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm&morleyConditional 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_`befgkm92 morleyA type error asking to use  instead of (.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  or F when absolutelly sure that given string does not violate invariants.With ] 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.morley Contruct T from a Haskell text, failing if provided Haskell text is invalid Michelson string.morley 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.morleyPrint 9 for Michelson code, with all unusual characters escaped.morley/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.morleyParser used in  quasi quoter. morley 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.!morley 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."morley,Leads first character of text to upper case.(For empty text this will throw an error. !" !")None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmN 1morley"Secp256k1 cryptographic signature.4morley#Secp256k1 secret cryptographic key.5morley#Secp256k1 public cryptographic key.8morleyThis 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.9morley1Deterministicaly generate a secret key from seed.:morley&Create a public key from a secret key.;morley Convert a 5 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.<morleyMake a 5 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.>morley Convert a 5 to raw bytes.oTODO (#18): apparently a signature always has 64 bytes, so this format might be correct, but it is not tested.?morleyMake a 1 from raw bytes.oTODO (#18): apparently a signature always has 64 bytes, so this format might be correct, but it is not tested.Gmorley$Sign a message using the secret key.Hmorley@Check that a sequence of bytes has been signed with a given key.123456789:;<=>?@ABCDEFGH567841239:;<=>?@ABCDEFGH*None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmZ) 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.amorleyMake a T from raw bytes.TODO (#18): implement properly.imorley@Check that a sequence of bytes has been signed with a given key.TUVWXYZ[\]^_`abcdefghiXYZWTUV[\]^_`abcdefghi+None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmd5 umorley ED25519 cryptographic signature.xmorley!ED25519 secret cryptographic key.ymorley!ED25519 public cryptographic key.|morley1Deterministicaly generate a secret key from seed.}morley&Create a public key from a secret key.~morley Convert a y to raw bytes.morleyMake a y from raw bytes.morley Convert a u to raw bytes.morleyMake a u 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.uvwxyz{|}~yz{xuvw|}~,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.2Z[\]^_`abcdefgh2abcdeZ[\]fg^_`h-None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmXmorleynIdentifier 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.##.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley.Errors that can happen during address parsing.morley%Address is not in Base58Check format.morley,Both address parsers failed with some error.morley6Data type corresponding to address structure in Tezos.morleytz) address which is a hash of a public key.morleyKT2 address which corresponds to a callable contract.morley.Hash of origination command for some contract. morleySmart constructor for .!morley$Deterministically generate a random  and discard its secret key."morleySmart constructor for 4. 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 O. 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 . We may reconsider it later.#morleyCreate a dummy  value.&morleyParse an address from its human-readable textual representation used by Tezos (e. g. "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU"). Or fail if it's invalid.'morleyPartial version of &B which assumes that the address is correct. Can be used in tests.(morleyParse a TKG contract address, fail if address does not match the expected format. !"#$%&'( !"#$%&'(/None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmr?morleyByteString does not have an instance for ToJSON and FromJSON, to avoid orphan type class instances, make a new type wrapper around it.PmorleydA sequence of elements: can be a list or a set. We can't distinguish lists and sets during parsing.?@ABCDEFGHIJKLMNOPQRSCDEFGHIJKLMNOPQRAB?@S0None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm kmorley'Data necessary to originate a contract.mmorleyOriginator of the contract.nmorleyOptional delegate.omorley Initial balance of the contract.pmorley&Initial storage value of the contract.qmorleyThe contract itself.rmorley.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.tmorley"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.umorleyu$ is essentially as special case for t8, 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).dklmnopqrstuvwxyz{|}~drstuvwxyz{|}~klmnopq1None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm       !"KLMNOPQRSTVWUXYZ[\^]_`abcdefghi?@ABCDEFGHIJKLMNOPQRSklmnopqrstuvwxyz{|}~2None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorley.Data associated with a particular transaction.  3None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm4None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm%morleyBuilding a record from tuple.%It differs from similar typeclass in G 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.5None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyProduce ( instance for tuple of the given length.6None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq 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 .morley Version of  for types with 2 parameters.morley Version of  for types with 3 parameters.morley2Compare two entries of completely different types.morley Extension of  to & function.morleyCast 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 / 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 N you get a way to extract this object no matter which phantom argument it had. ',+ ,+'7None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm,morley>Data type, holding annotation data for a given Michelson type t.;Each constructor corresponds to exactly one constructor of f and holds all type and field annotations that can be attributed to a Michelson type corrspoding to t.,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.0morley:Converge two type or field notes (which may be wildcards). !"#$%&'()*+,-./0 !"#$%&'()*+/0.-,8None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm7[6morley Transparently represent untyped Type as wrapper over (Sing t, Notes t) from typed world.$As expression this carries logic of 8, and as pattern it performs 9! 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.9morleyConvert 7 to the isomorphic set of information from typed world.678978969None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm\<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.AmorleyName of entrypoint.BmorleyAProxy of parameter, to make parameter type more easily fetchable.Cmorley:How to call this entrypoint in the corresponding contract.DmorleySDescribes 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.Hmorley<Errors specific to parameter type declaration (entrypoints).Nmorley?Coordinates of "arm" in Or tree, used solely in error messages.Omorley/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.VmorleyVAddress with optional entrypoint name attached to it. TODO: come up with better name?XmorleyAddress itselfYmorley Entrypoint name (might be empty)]morleyvParse an address which can be suffixed with entrypoint name (e.g. "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU%entrypoint").'morley4Check whether given notes are valid parameter notes._morley Construct O! performing all necessary checks.`morley Construct ?P which calls no entrypoint and assumes that there is no explicit "default" one.*Validity of such operation is not ensured.amorley5Call parameter which has no entrypoints, always safe.bmorley Construct <P which calls no entrypoint and assumes that there is no explicit "default" one.*Validity of such operation is not ensured.cmorley5Call parameter which has no entrypoints, always safe.(morleyBuild D.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.emorleyBuild ?.ZHere we accept entrypoint name and type information for the parameter of target contract.Returns  if entrypoint is not found.fmorley Parameter type of implicit account.7:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef7VWXYRSTU[\]^OPQZKLMNHIJ_DEFG?@ABCa`<=bcd>:;ef:None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmdmorley:Representation of comparable value in Michelson language.By specification, we're allowed to compare only following types: int, nat, string, bytes, mutez, bool, key_hash, timestamp, address.;Only these values can be used as map keys or set elements.  ;None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmqs morley"Representation of Michelson value.Type parameter instr` stands for Michelson instruction type, i.e. data type to represent an instruction of language.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 D into actual function on Values.morleyIIgnoring distinction between constructors here, comparing only semantics.>><None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmw=None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmp morley#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}5amorley=Keeps documentation gathered for some piece of contract code..Used for building documentation of a contract.cmorleyAll inlined doc items.dmorleyDefinitions 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.emorleyhWe remember all already declared entries to avoid cyclic dependencies in documentation items discovery.fmorleyWe 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).gmorley@A part of documentation to be grouped. Essentially incapsulates i.imorley*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.jmorley#Several doc items of the same type.lmorley:A doc item which we store, along with related information.nmorleyDoc item itself.omorley+Subdocumentation, if given item is a group.pmorleyDHides some documentation item which is put to "definitions" section.rmorleyHides some documentation item.tmorleyHow to render section name.umorleySuitable for block name.vmorley+Suitable for subsection title within block.wmorleyBDefines an identifier which given doc item can be referenced with.zmorley!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 l is atomic.Normally, atomic ls 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 g.morleyTo automatically derive #instance Show Michelson.Typed.Instr later.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.morley:A function which groups a piece of doc under one doc item.morley9Render given contract documentation to markdown document.morley2Apply given grouping to documentation being built.morleyMake .:t $mkDGitRevisionGitRepoSettings -> DGitRevisionmorleyBContract documentation assembly primarily relies on this instance.Cabcdefghijklmnopqrstuvwxyz{|}~C}~z{|wxytuvrspqlmnojkighabcdef?None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq"morleyyTyped contract and information about annotations which is not present in the contract code. TODO [#12]: rename this to  and the current  to  ContractCode?morley-A print format with references into the stackmorley+A reference into the stack of a given type.morley=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  DROP  DUPO. Special case where there are no instructions is represented by constructor Nop, e.g. IF_NONE {} { SWAP; DROP; } -> IF_NONE Nop (SWAP  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.morleyeNop operation. Missing in Michelson spec, added to parse construction like `IF {} { SWAP; DROP; }`.morleyNested 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.morley\Places documentation generated for given instruction under some group. This is not part of ! because it does not behave like ?; instead, it inherits behaviour of instruction put within it.morleyVariants 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.|  !    "#$%&'()*+,-./01|  !    "#$/01.-+,)*'(%&@None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm+DmorleyConvert a typed Val to an untyped Value.'For full isomorphism type of the given Val should not contain P - a compile error will be raised otherwise. You can analyse its presence with : function.BCDEBCEDANone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm-IJKLLKJIBNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmW0MmorleyCDescribes how intermediate nodes in instruction tree are accounted.OmorleyName of this way.Pmorley;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.Qmorley Options for U.SmorleyWhether U{ function should go into values which contain other instructions: lambdas and constant contracts (which can be passed to CREATE_CONTRACT).Tmorley8How do we handle intermediate nodes in instruction tree.0morley@Gather effects first for children nodes, then for their parents.Umorley4Traverse 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).VmorleySpecialization of U9 for case when changing the instruction is not required.WmorleySpecialization of U' which only modifies given instruction.1morley^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.XmorleykThere 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 s.Ymorley/If value is a string, return the stored string.Zmorley7If 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.MNOPQRSTUVWXYZ[QRSTMNOPUVWXYZ[CNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm|_morley?Isomorphism between Michelson stack and its Haskell reflection.bmorleyOverloaded version of c to work on Haskell and T stacks.cmorley1Type function to convert a Haskell stack type to T -based one.dmorleyEWhether Michelson representation of the type is derived via Generics.emorley-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.jmorleySince Contract@ name is used to designate contract code, lets call analogy of  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.pmorley&A useful property which holds for all  types.qmorley6Any Haskell value which can be converted to Michelson L.smorley4Hides some Haskell value put in line with Michelson L.umorleyOverloaded version of w to work on Haskell and T types.vmorley=Isomorphism between Michelson values and plain Haskell types.WDefault implementation of this typeclass converts ADTs to Michelson "pair"s and "or"s.wmorley:Type function that converts a regular Haskell type into a T type.xmorley"Converts a Haskell structure into Value representation.ymorley Converts a Value into Haskell type.zmorleyGIsomorphism between Michelson primitive values and plain Haskell types.{morley[Type function that converts a regular Haskell type into a comparable type (which has kind CT).|morley%Converts a single Haskell value into CVal representation.}morley Converts a CVal# value into a single Haskell value.~morleyReplace type argument of  ContractAddr with isomorphic one.morleyQThis instance erases reference to contract entrypoint! If this is an issue, use V instead.sApplications which use addresses just as participants identifiers should not experience problems with using plain .#_`abcdefghijklmnopqrstuvwxyz{|}~#z{|}vwxyefustqrpdonjklm~ghicb_`aDNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm2morleyPTraverse a single contructor and supply its field to instruction in case clause.3morleyGeneric traversal for .morleyList of .s required to pattern match on the given type.morley*Type information about single case clause.morleyuIn what different case branches differ - related constructor name and input stack type which the branch starts with.4morleyGeneric traversal for .morleymExpect referred constructor to have only one field (otherwise compile error is raised) and extract its type.morleyaExpect referred constructor to have only one field (in form of constraint) and extract its type.morleyRGet type of constructor fields (one or zero) referred by given datatype and name.morley8Whether given type represents an atomic Michelson value.5morleyForce result of 6 to be 7morley;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.8morleyEResult of constructor lookup - entry type and path to it in the tree.morleyTo use  not only here for /-based stacks, but also later in Lorentz with --based stacks we need the following property.morleyPush 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 .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.9morleyFailure 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.!!8ENone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm1: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 '(:?)'.Amorley>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.  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmW+FNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmȝ Bmorley6Pick a field from constructor with zero or one fields.CmorleyGeneric 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 L.morley Inverse to .  GNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm0&Dmorley Version of  for comparable types.morley#Constraint, required when deriving +R for polymorphic type with the least possible number of methods defined manually.EmorleyProduct 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.FmorleyCWhen 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 1 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 0 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 R 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: * 9 * : * ;>If none of them fits your purposes precisely, consider using 8./morley,All types which this type directly contains."Used in automatic types discovery.0morley;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 AQ can be used for datatypes to leave only meaningful part of name in every field.1morley)Final michelson representation of a type.For homomorphic types use B implementation.%For polymorhpic types consider using C as implementation.2morleySWhether given text should be rendered grouped in parentheses (if they make sense).4morley`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.5morley Show given 4 in a neat way.GmorleyRemove fields names from 4.JSometimes there is no sense in showing them in the doc. Example: newtypes.Hmorley$How field names should be displayed.UResult of this function call should appear right before rendered type of that field.7morleyLike /: but returns values of more common type which is used in .8morleyRender 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.9morleyDerive ., 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 0 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: I[ is in fact polymorhpic, but we don't want this fact to be reflected in the documentation.>morley Implement 0# on example of given concrete type.+This is a best effort attempt to implement 0 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.Amorley>Cut fields prefixes which we use according to the style guide.E.g.  cmMyField field will be transformed to myField.Bmorley Implement 1 for homomorphic type.Cmorley Implement 1# on example of given concrete type.,This function exists for the same reason as >.Dmorley 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.& !"#$%&'()*+,-./0123456789:;<=>?@ABCD&423+,-./01*)'(7"!<89:;=>?@ABCD%&#$ 56None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm3y_`abcdghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>?@ABCDy_`abcdghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>?@ABCDHNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm@tmorley%Ensure that given type is a sum type.LThis helps to prevent attempts to apply a function to, for instance, a pair.umorleyJUsed to understand whether a type can potentially declare any entrypoints.vmorley[A special type which wraps over a primitive type and states that it has entrypoints (one).Assuming that any type can have entrypoints makes use of Lorentz entrypoints too annoying, so for declaring entrypoints for not sum types we require an explicit wrapper.tuvwxyyuvwxtINone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmI|morley Assemble contract documentation.Imorley+Modify all documentation items recursively.}morleyWRecursevly traverse an instruction and modify documentation items matching given type.~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_`befgkmKg354JIHLK      "!#%$&'()*+,-./0123456789:;<=>?@ABCDEFGH !"#$%&'()*+,-./06789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef !"#$%&'()*+,-./  !    "#$%&'()*+,-./01BCDEIJKLMNOPQRSTUVWXYZ[_`abcdghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>?@ABCD|}~JNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm~p morleyState for type checking nopmorley(Set of variables defined in a let-block.morleyQData type, holding strictly-typed Michelson value along with its type singleton.morleyQData type, holding strictly-typed Michelson value along with its type singleton.morleywData type keeping the whole type check result: instruction and type representations of instruction's input and output.morley]This data type keeps part of type check result - instruction and corresponding output stack.morley?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.morley}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).morleyNo-argument type wrapper for HST data type.morleyHData 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 triples. First element of triple is a type singleton which is due to main motivation behind HST0, namely for it to be used as representation of Instr type data for pattern-matching. Second element of triple is a structure, holding field and type annotations for a given type. Third element of triple is an optional variable annotation for the stack element.morleyAppend a type to A, assuming that notes and annotations for this type are unknown.89 77KNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmmorleyDVarious type errors possible when checking Morley extension commandsmorleyType check errormorleyData 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.morleyAnnotation unify errormorleyType equality errormorleyStacks equality errormorleyError that happens when type cannot be used in the corresponding scope. Argument of this constructor carries types which, in the aggregate, violate the restriction (e.g.  timestamp and  timestamp passed to MUL instruction).morleyError that happens when a . is never a valid source for this type (e.g.  timestamp cannot be obtained from a H)morleyEThere are not enough items on stack to perform a certain instruction.morley Invalid entrypoint name providedmorley.Contract with given address is not originated.morley Given entrypoint is not present.morleyFIncorrect parameter declaration (with respect to entrypoints feature).morley"Natural numbers cannot be negativemorleyExceeds the maximal mutez valuemorley:Address couldn't be parsed from its textual representationmorley:KeyHash couldn't be parsed from its textual representationmorley!Timestamp is not RFC339 compliantmorleyWDescription of the instruction which wants more items on stack than currently present.%%LNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmtmorleyThe typechecking statemorleyzRun 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.MNone4!"#$%&'*,-.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 typesmorley: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 MEMerationmorleyLHelper function to construct instructions for binary arithmetic operations. morleyLHelper function to construct instructions for binary arithmetic operations.#   #   NNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley Function typeCheckValImplA converts a single Michelson value given in representation from Michelson.Type2 module to representation in strictly typed GADT.As a third argument, typeCheckValImpl accepts 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.Jmorley 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    ONone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmփKmorleyDCheck that the optional "forall" variables are consistent if presentLmorley Executes function body, pushing ExtFrame+ onto the state and checks the pattern in FN.Mmorley Check that a StackTypePattern& matches the type of the current stackNmorley<Create stack reference accessing element with a given index.2Fails when index is too large for the given stack.  PNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmOmorleyLike  typeCheck, but for non-empty lists. 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.As a second argument, typeCheckValue accepts 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. morleyLike  &, but returns value of a desired type.Pmorley 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.QmorleyMHelper function for two-branch if where each branch is given a single value.      None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmV        QNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmF 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).    RNone4!"#$%&'*,-.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  B or  A6 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  . 9morleyUpdates that can be applied to  +.RmorleyNumber of genesis addresses.Smorley6Secrets from which genesis addresses are derived from. DmorleyKeyHash of genesis address. Emorley.Initially these addresses have a lot of money. FmorleyOne of genesis key hashes. GmorleyOne of genesis addresses. HmorleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !! ImorleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !! JmorleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !! NmorleyInitial  +!. It's supposed to be used if no  +? is provided. It puts plenty of money on each genesis address. OmorleyRead  + from a file. PmorleyWrite  + to a file. QmorleyApply  9 to  +. RmorleyApply a list of  9s to  +.Tmorley.Add an address if it hasn't been added before.Umorley3Updare storage value associated with given address.Vmorley3Updare storage value associated with given address. Smorley&Retrive all contracts stored in GState0       ! " # + , - . / 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 S0    ! " # A B = > ? @ C    / + , - . 4 3 E D G H I J K L M F N O P 9 : ; < 5 6 7 8 Q R SSNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm" \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. \ ] ^ _ ` \ ] ^ ` _TNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm, amorley6Built-in Michelson Macros defined by the specification morley1Unexpanded instructions produced directly by the ops[ parser, which contains primitive Michelson Instructions, inline-able macros and sequences morleyPrimitive Michelson instruction morley5Built-in Michelson macro defined by the specification morley2User-defined macro with instructions to be inlined morleyA sequence of instructions morleyA programmer-defined macro morley%Expand all macros in parsed contract.: 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 { | } ~  UNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm1s morley!A programmer-defined type-synonym morleyA programmer-defined constant VNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm4{ morley2The environment containing lets from the let-block  WNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm6  XNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm= 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.  YNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmA$ morleyParse untyped  }i. Take instruction parser as argument to avoid cyclic dependencies between modules, hence ' in its name.  ZNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmD; morley General TV2F Annotation parser, including Special Annotations wx wx[None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmFy  \None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmH_    ]None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmL- morleyFParser for primitive Michelson instruction (no macros and extensions). morley!Parse a sequence of instructions.          ^None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmN+    _None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmSWmorleyElement of a let block morleylet block parserXmorley'Incrementally build the let environmentYmorley1add a Let to the environment in the correct placeZmorley7build 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_`befgkme. 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    aNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm\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.amorleydGet a bytestring of the given length leaving no references to the original data in serialized form.bmorleyGet 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.cmorley-Read a byte and match it against given value.dmorleyFail with "unknown tag" error.emorleynRead 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.fmorleyLike ga, 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.hmorley 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.imorleyITurn composable decoder into a final decoder which will be run over data.jmorley-Read length of something (list, string, ...).kmorley9Given decoder for list content, get a whole list decoder.lmorleyRead a numeric value.mmorley-Type check instruction occured from a lambda.nmorley?Utility function to fill a constructor with an empty annotationomorley5Decodes 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)              `0h0bNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  #morleySerialize a value given to PACK instruction. $morleySame as  #, for strict bytestring.pmorleyGeneric 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.qmorley4Lift encoded list content to an entire encoded list.rmorleyEncode a list-like structure.smorleyEncode a text.tmorleyEncode some raw data.umorleyEncode some map. (morley"Encode contents of a given number.vmorleyEncode an int-like value.wmorleyEncode a code block.xmorleyEncode an instruction.ymorleygIff there are non-empty annotations it increments the value's tag and appends the encoded annotations.zmorley/Encode an instruction with variable annotations{morley&Encode an instruction with Annotations # $ % & ' ( ) ' & # $ % ) (cNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm /morleyOptimize a typed instruction by replacing some sequences of instructions with smaller equivalent sequences. Applies default set of rewrite rules. 0morley9Optimize a typed instruction using a custom set of rules. 2morleyWe 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  13), 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. 3morleyCombine two rule fixpoints. 4morley*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 U.morley.Apply a rule to the same code, until it fails. * + , - . / 0 1 2 3 4 / 0 1 2 3 4 * + , - .dNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmy 6morleyOperation 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). 9morley9Maximal 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 arbitrary number of es (maybe of different types) which belong to the same entity and returns their total operation size.MNote that annotations which belong to the same entity (type or instruction) must be9 considered in aggregate using one call of this function. 6 7 8 9 : ; < = 6 7 8 9 : ; < =eNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm PmorleyMorley interpreter state _morleyfRepresents `[FAILED]` state of a Michelson program. Contains value that was on top of the stack when  was called. emorley#Environment for contract execution. gmorleyTimestamp returned by the  instruction. hmorleyANumber of steps after which execution unconditionally terminates. imorley0Current amount of mutez of the current contract. jmorleyOMapping from existing contracts' addresses to their executable representation. kmorley$Address of the interpreted contract. lmorley4The contract that initiated the current transaction. mmorley=The contract that initiated the current internal transaction. nmorley"Amount of the current transaction. omorley Identifier of the current chain. qmorleyInterpret a contract without performing any side effects. This function uses untyped representation of contract, parameter and storage. Mostly used for testing. tmorleyRInterpret an instruction in vacuum, putting no extra contraints on its execution.Mostly for testing purposes. umorleyBFunction to change amount of remaining steps stored in State monadmorleyCFunction to interpret Michelson instruction(s) against given stack.morley?Evaluates an arithmetic operation and either fails or proceeds. wmorley*Unpacks given raw data into a typed value.morley,Access given stack reference (in CPS style).2 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 w2 e f g h i j k l m n o G H I J _ ` a b c d K L M N F P Q R p s t O r q X Y Z [ \ ] ^ S T U V W u v wfNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmy morley0Dummy timestamp, can be used to specify current  value or maybe something else. morleyDummy 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. morleyDummy  es with some reasonable hardcoded values. You can override values you are interested in using record update syntax. morleyk with most data hardcoded to some reasonable values. Contract and initial values must be passed explicitly, because otherwise it hardly makes sense.  gNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm! 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:  is not part of  , because 0 is supposed to be provided by the user, while  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 #. morleyParse a contract from # 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.4       ! " # 4    ! " #    hNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  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. morleyContract'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. O  O iNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm]+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  N 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 / 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. morley#Transfer tokens to a given address. 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  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: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].7 G H I J K L M 7 G H I J K L M  0jNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmn 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  instruction, then fail. morley!We need this class to pass it to J.  ' is needed because we push a value and  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. 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.  kNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm| 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  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.  lNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmq morleyLifted . morleyLifted . morleyLifted . morleyLifted . morleyLifted . morleyLifted .4This could be just a constraint alias, but to avoid W types appearance in error messages we make a full type class with concrete instances. morleyLifted . morleyLifted . morley-A useful property which holds for reasonable  instances.It's a separate thing from   because it mentions b type parameter. morleyLifted .                              mNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm 8morley1Constraint applied to any part of parameter type.ZNote that you don't usually apply this constraint to the whole parameter, consider using o in such case.Using this type is justified e.g. when calling another contract, there you usually supply an entrypoint argument, not the whole parameter. <morley/Ensure given type does not contain "operation". >morley2Gathers constraints, commonly required for values.3 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D 8 7 6 5 4 3 2 1 ? @ A B C D 9 > = < ; :3nNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm" KmorleysNo entrypoints declared, parameter type will serve as argument type of the only existing entrypoint (default one). Lmorley$This wrapper allows to pass untyped F and bypass checking that entrypoint with given name and type exists. Nmorley O. constraint specialized to default entrypoint. OmorleyWhen we call a Lorentz contract we should pass entrypoint name and corresponding argument. Ideally we want to statically check that parameter has entrypoint with given name and argument. Constraint defined by this type class holds for contract with parameter cp that have entrypoint matching name with type arg.^In order to check this property statically, we need to know entrypoint name in compile time,  SI type serves this purpose. If entrypoint name is not known, one can use  LA wrapper to take responsibility for presence of this entrypoint.mIf you want to call a function which has this constraint, you have two options: 1. Pass contract parameter cp using type application, pass  SH as a value and pass entrypoint argument. Type system will check that cp; has an entrypoint with given reference and type. 2. Pass  wrapped into  Lv and entrypoint argument. In this case passing contract parameter is not necessary, you do not even have to know it. Pmorley;Data returned by this method may look somewhat arbitrary.  is obviously needed because name can be  S or  L. Dict is returned because in  S` case we get this evidence for free and don't want to use it. We seem to always need it anyway. QmorleyUniversal entrypoint lookup. Rmorley3Constraint on type-level entrypoint name specifier. SmorleyWhich entrypoint to call.iWe intentionally distinguish default and non-default cases because this makes API more details-agnostic. TmorleyHCall the default entrypoint, or root if no explicit default is assigned. UmorleyCall the given entrypoint; calling default is not treated specially. You have to provide entrypoint name via passing it as type argument.Unfortunatelly, here we cannot accept a label because in most cases our entrypoints begin from capital letter (being derived from constructor name), while labels must start from a lower-case letter, and there is no way to make a conversion at type-level. Vmorley Similar to  Wg, but in a version which the compiler can work with (and which produces errors confusing for users :/) Wmorley6Ensure that there is no explicit "default" entrypoint. Xmorley:Get type of entrypoint with given name, fail if not found. Ymorley:Get type of entrypoint with given name, fail if not found. Zmorley#Lookup for entrypoint type by name.4Does not treat default entrypoints in a special way. [morley+Get all entrypoints declared for parameter. \morley Version of  _e which we actually use in function signatures. When given type is sum type or newtype, we refer to  _9, otherwise we suppose that no entrypoints are declared. ]morley$Parameter declares some entrypoints.This is a version of  ^_ which we actually use in constraints. When given type is a sum type or newtype, we refer to  ^5 instance, otherwise this instance is not necessary. ^morley+Which entrypoints given parameter declares.GNote that usually this function should not be used as constraint, use  ] for this purpose. `morley*Result of entrypoint lookup at term level. cmorley0Ensure that all declared entrypoints are unique. emorleyMDefines a generalized way to declare entrypoints for various parameter types.8When defining instances of this typeclass, set concrete deriv argument and leave variable cp[ argument. Also keep in mind, that in presence of explicit default entrypoint, all other T arms should be callable, though you can put this burden on user if very necessary. fmorleybName and argument of each entrypoint. This may include intermediate ones, even root if necessary.%Touching this type family is costly (O(N^2)), don't use it often. gmorley Get entrypoint argument by name. hmorleyJConstruct parameter annotations corresponding to expected entrypoints set.IThis method is implementation detail, for actual notes construction use  l./TODO [#35]: Should also return field annotation imorleyConstruct entrypoint caller.AThis does not treat calls to default entrypoint in a special way.HThis method is implementation detail, for actual entrypoint lookup use  m. jmorley Version of  ho which we actually use in code. It hides derivations stuff inside, and treats primitive types specially like  \ does. kmorley Version of  io which we actually use in code. It hides derivations stuff inside, and treats primitive types specially like  \ does. lmorley'Derive annotations for given parameter. mmorley!Prepare call to given entrypoint.kThis does not treat calls to default entrypoint in a special way. To call default entrypoint properly use  n. nmorleyCall the default entrypoint. omorleyCall root entrypoint safely. qmorleyUniversal entrypoint calling. rmorleyZFlatten a provided list of notes to a map of its entrypoints and its corresponding utype.TIt is obtained by constructing `insert k1 v1 (insert k2 v2 ... mempty)` pipe using  so that it is more concise rather than stacking composition of monoidal endomorphisms explicitly. Note that here no duplicates can appear in returned map for O' even if they may appear inside passed  tree.)u 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)u e f g h i ` a b c ^ _ ] \ j k [ Z l Y m X n r W V o S T U R p Q L M O P N q K doNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm vmorley-Constraint applied to a whole parameter type. v vNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm|3 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D vNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  wmorleyConvert something from  ContractAddr in Haskell world. ymorleyConvert something to j in Haskell world. {morleyHConvert something referring to a contract (not specific entrypoint) to   in Haskell world. }morleyConvert something to  in Haskell world.]Use this when you want to access state of the contract and are not interested in calling it. morley!Address associated with value of  contract arg type. Places where jJ can appear are now severely limited, this type gives you type-safety of j but still can be used everywhere. This type is not a full-featured one rather a helper; in particular, once pushing it on stack, you cannot return it back to Haskell world.~Note that it refers to an entrypoint of the contract, not just the contract as a whole. In this sense this type differs from  . Unlike with j~, having this type you still cannot be sure that the referred contract exists and need to perform a lookup before calling it. morleyHAddress which remembers the parameter type of the contract it refers to.It differs from Michelson's contract type because it cannot contain entrypoint, and it always refers to entire contract parameter even if this contract has explicit default entrypoint. morleyTurn   to j in Haskell world.This is an analogy of address to contractl convertion in Michelson world, thus you have to supply an entrypoint (or call the default one explicitly). morleySpecification of  callTAddress to call the default entrypoint.R"%678NMVWXYILghijklmnovwxyz{|}~ w x y z { | } ~  RLvwxyz{|}"VWXY6%ghiI jklm  on~ } ~ { | y z w x 78NMpNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm \ morleyLifted  UnaryAithOp. morleyLifted AithOp.  qNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm R  rNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyOWrap parameter into this to locally assign a way to derive entrypoints for it.  sNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm"morley;Errors that can happen during parsing into a Lorentz value. morley Alias for  3, seems to make signatures more readable sometimes.:Let's someday decide which one of these two should remain. morleyAAlias for instruction which hides inner types representation via T. morley4Wrap Lorentz instruction with variable annotations, annotsD list has to be non-empty, otherwise this function raises an error. morley Version of  / which performs some optimizations immediately. morley`Parse textual representation of a Michelson value and turn it into corresponding Haskell value.Note: it won't work in some complex cases, e. g. if there is a lambda which uses an instruction which depends on current contract's type. Obviously it can not work, because we don't have any information about a contract to which this value belongs (there is no such contract at all). morleyLorentz version of  . morleyLorentz version of  .   2 1 1 8tNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm( morley!Require several stacks to comply   constraint. morley"Zipping stack into tuple and back. morley-A type which contains the whole stack zipped. morley#Fold given stack into single value. morley'Unfold given stack from a single value. morley'Flatten both ends of instruction stack. morley)Unflatten both ends of instruction stack. morleyHSuch definition seems the only possible one we can support efficiently.  uNone5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm*  vNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmSmorleyGeneric traversal for .morleyReturns: 1. Notes corresponding to this level; 2. Field annotation for this level (and which should be used one level above).morley6Fetches information about all entrypoints - leaves of  tree.morley6Fetches information about all entrypoints - leaves of  tree.morley"Traverses sum type and constructs 7 which report constructor names via field annotations.morleyBuild  by parameter type.morleyEntrypoints tree - skeleton on  tree later used to distinguish between constructors-entrypoints and constructors which consolidate a whole pack of entrypoints.morley6We are in the intermediate node and need to go deeper.morleyWe reached entrypoint argument.morleyIWe reached complex parameter part and will need to ask how to process it. morley Extension of  : on parameters being defined as several nested datatypes.MIn particular, it will traverse the immediate sum type, and require another  ^ for the inner complex datatypes. Only those inner types are considered which are the only fields in their respective constructors. Inner types should not themselves declare default entrypoint, we enforce this for better modularity. Each top-level constructor will be treated as entrypoint even if it contains a complex datatype within, in such case that would be an entrypoint corresponding to intermediate node in or tree. Comparing to  M this gives you more control over where and how entrypoints will be derived. morley Extension of  : on parameters being defined as several nested datatypes.aIn particular, this will traverse sum types recursively, stopping at Michelson primitives (like =) and constructors with number of fields different from one.2It does not assign names to intermediate nodes of  tree, only to the very leaves.)If some entrypoint arguments have custom vv instance, this derivation way will not work. As a workaround, you can wrap your argument into some primitive (e.g. :!). morleyImplementation of  ^l which fits for case when your contract exposes multiple entrypoints via having sum type as its parameter.In particular, each constructor would produce a homonymous entrypoint with argument type equal to type of constructor field (each constructor should have only one field). Constructor called 7' will designate the default entrypoint.morleyAMakes up notes with proper field annotations for given parameter.morley=Makes up a way to lift entrypoint argument to full parameter.      None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmU)vwx K L M N O P Q S T U V W X Y Z [ ] ^ _ c e f g h i l m n o p q r   ) e f g h i ^ _ ] [ Z l r Y m X n W V o S T U p Q O P N L M q c K    vwxwNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmfi .morleyCFlag which defines, whether compiled Michelson contract will have CASTt (which drops parameter annotations) as a first instruction. Note, that when flag is false, there still can be no CAST3 (in case when parameter type has no annotations). /morleyFor use outside of Lorentz. 0morley Version of  /< specialized to instruction corresponding to contract code. 1morley Version on  0 which accepts CompilationOptions.Note that compiled contract can be ill-typed in terms of Michelson code when some of the compilation options are used (e.g. when coDoInitialCast is False, resulted contract can be ill-typed). However, compilation with defaultCompilationOptions should be valid. 2morley3Interpret a Lorentz instruction, for test purposes. 3morleyLike  29, but works on lambda rather than arbitrary instruction. 4morleyLorentz version of analyzer. , - . / 0 1 2 3 4 , - . / 0 1 2 3 4xNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmjS 5morley.Pretty-print a Haskell value as Michelson one. 6morley4Pretty-print a Lorentz contract into Michelson code. 5 6 5 6yNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmt 7morley_Type that represents test scenario for Lorentz contract. Simply put, it is sequence of pairs (sender,  parameterI). Using this sequence we can perform transfers to the desired contract. 8morley*Function to get textual representation of  TestScenario, each Parameter is printed as a raw Michelson value. This representation can later be used in order to run test scenario on real network.The format for a single contract call is the following: # `printed Lorentz parameter` (actually comment) `sender address` `printed raw Michelson parameter` 7 8 7 8zNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkmn ;morley(Retain the value only if it is not zero.morley%Something coercible to 'TAddress cp'. Amorley Drop top n elements from the stack. Dmorley Version of  EG which uses Peano number. It is inteded for internal usage in Lorentz. cmorley Similar to  b@ but works for lambdas with arbitrary size of input and output.Note that this instruction has its arguments flipped, lambda goes first. This seems to be the only reasonable way to achieve good inference. fmorley Version of  gG which uses Peano number. It is inteded for internal usage in Lorentz. morleyCast something appropriate to  '. TODO [TM-280]: try to move somewhere morley(Get a reference to the current contract.Note that, similar to  instruction, in Michelson k instruction can accept an entrypoint as field annotation, and without annotation specified it creates a contract* value which calls the default entrypoint.2This particular function carries the behaviour of SELFR before introduction of lightweight entrypoints feature. Thus the contract must not6 have explicit "default" entrypoint for this to work.DIf you are going to call a specific entrypoint of the contract, see  . morleyFMake a reference to the current contract, maybe a specific entrypoint.Note that, since information about parameter of the current contract is not carried around, in this function you need to specify parameter type p explicitly. morley-Get a reference to a contract by its address.*This instruction carries the behaviour of CONTRACTM before introduction of lightweight entrypoints feature. The contract must not5 have explicit "default" entrypoint for this to work.DIf you are going to call a specific entrypoint of the contract, see  . morley<Make a reference to a contract, maybe a specific entrypoint.fWhen calling this function, make sure that parameter type is known. It's recommended that you supply  2 with a concrete parameter as the stack argument. morleySpecialized version of  I for the case when you do not have compile-time evidence of appropriate  O%. For instance, if you have untyped ^ you can not have this evidence (the value is only available in runtime). If you have typed  S, use  p to construct . morley Version of  N instruction which may accept address with already specified entrypoint name.TAlso you cannot specify entrypoint name here because this could result in conflict. morley Similar to   , works with V.=Validity of such operation cannot be ensured at compile time. morley-Execute given instruction on truncated stack.ZThis instruction requires you to specify the piece of stack to truncate as type argument. morleyHelper instruction.jChecks whether given key present in the storage and fails if it is. This instruction leaves stack intact. morleyLike  ]<, but throw an error on attempt to overwrite existing entry.f ; < = > ? @ 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 { | } ~  f ? @ A B C D E F G H I J K L M N O P Q R S U V W X Y Z [ \ ] ^ T _ ` 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 { | } ~  < = ;{None5!"#$%&'*,-.012456789;=>?@ACHMNPSUVX_`befgkm2morley<Allows diving into stack referring expected new tip by type.Implemented with fun deps for conciseness; we can replace them with a type family anytime, but that would probably require more declarations.morley9Allows duplicating stack elements referring them by type. morley3Duplicate an element of stack referring it by type.IIf stack contains multiple entries of this type, compile error is raised. morleyFDip repeatedly until element of the given type is on top of the stack.IIf stack contains multiple entries of this type, compile error is raised. morley2Remove element with the given type from the stack.  |None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm   }None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley Version of   which accepts no argument. morley Single entrypoint of a contract.#Note that we cannot make it return [[Operation], store]5 because such entrypoint should've been followed by pairC, and this is not possible if entrypoint implementation ends with failWith.  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm' morleyCoercions between a to b are permitted and safe.morleyCoercion from a to b is permitted and safe. morleyExplicitly allowed coercions. morleyEAn optional method which helps passing -Wredundant-constraints check. morley9Whether two types have the same Michelson representation. morleyCoercion for Haskell world.CWe discourage using this function on Lorentz types, consider using coerce instead. One of the reasons forthat is that in Lorentz it's common to declare types as newtypes consisting of existing primitives, and  forcedCoerceY tends to ignore all phantom type variables of newtypes thus violating their invariants. morleyBConvert between values of types that have the same representation.dThis function is not safe in a sense that this allows breaking invariants of casted type (example: UStore) or may stop compile on code changes (example: coercion of pair to a datatype with two fields will break if new field is added). Still, produced Michelson code will always be valid.=Prefer using one of more specific functions from this module. morley'Convert between two stacks via failing. morleySpecialized version of coerce_ to wrap into a haskell newtype. morleySpecialized version of coerce_ to unwrap a haskell newtype. morley"Lift given value to a named value. morleyUnpack named value. morley)Coercion in Haskell world which respects  . morleyPCoerce between types which have an explicit permission for that in the face of   constraint. morley4Pretends that the top item of the stack was coerced. morleyLocally provide given   instance. morleyLocally provide bidirectional   instance.=<;  =<;~None5!"#$%&'*,-./012456789;=>?@AHMNPSUVX_`befgkmFmorley*Helper which documents single constructor. morley0Information to be provided for documenting some   x. morleyImplementation for , of the corresponding  Extensible. morleyImplementation for / of the corresponding  Extensible. morley!Overall description of this type.morley1Generic implementation of toExtVal and fromExtValmorley?Having a sum-type, yields a type-level list of its constructorsmorleyTransform list of  s to list of 2s, assigning numbers to elements starting from 0.morley>Finds the constructor's position and argument type by its name morley'Errors related to fromExtVal conversionmorleyqHelper typeclass which allows us to sanely handle cases of no-arg constructor and constructor with one argument.morley3Pack argument on top of the stack, if any required. morleyConverts a value from a Haskell representation to its extensible Michelson representation (i.e. (Natural, Bytestring) pair). morleyConverts a value from an extensible Michelson representation to its Haskell sum-type representation. Fails if the Michelson representation points to a nun-existent constructor, or if we failed to unpack the argument. morleyGWraps an argument on top of the stack into an Extensible representation  None5!"#$%&'*,-.012456789;=>?@ACHMNPSUVX_`befgkm  morleyDProvides "case" arrow which works on different wrappers for clauses. 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. morleyLorentz analogy of , it works on plain  types. morleyShortcut for multiple   constraints. morleyA pair of field name and type. morleyLike  &, but allows constrainting field type. morley%Allows field access and modification. morley]Extract a field of a datatype replacing the value of this datatype with the extracted field.wFor this and the following functions you have to specify field name which is either record name or name attached with (:!) operator. morleyLike  , but leaves field named. morleyFExtract a field of a datatype, leaving the original datatype on stack. morleyLike  , but leaves field named. morleySet a field of a datatype. morley)Apply given modifier to a datatype field. morleyIMake up a datatype. You provide a pack of individual fields constructors.KEach element of the accepted record should be an instruction wrapped with  T function. This instruction will have access to the stack at the moment of calling  construct. Instructions have to output fields of the built datatype, one per instruction; instructions order is expected to correspond to the order of fields in the datatype. morley Version of  + which accepts tuple of field constructors. morley)Lift an instruction to field constructor. morley0Wrap entry in constructor. Useful for sum types. morley$Pattern match on the given sum type.You have to provide a Q; containing case branches. To construct a case branch use   operator. morleyLike  ;, accepts a tuple of clauses, which may be more convenient.sIf user is experiencing problems with wierd errors about tuples while using this function, he should take look at  and ensure that his tuple isn't bigger than generated instances, if so, he should probably extend number of generated instances. morley0Wrap entry in constructor. Useful for sum types."CDEFGQPO  "   QPOFGECD 0 0None4!"#$%&'*,-.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  . 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. 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 8\ morleyPut a document item. morleypGroup documentation built in the given piece of code into block dedicated to one thing, e.g. to one entrypoint. morleyCGive a name to given contract. Apply it to the whole contract code. morley1Leave only instructions related to documentation.This function is useful when your method executes a lambda coming from outside, but you know its properties and want to propagate its documentation to your contract code.Sabcdefghpqrstuvwxyz{|}~!"%&'(+,-./0189:;<=>?@ABCD      S      }~z{|wxytuvrspqghabcdef%&+,-./01'("!<89:;=>?@ABCDNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm Yz morley)Collect all fields with the given marker. morleyGet kind of field. morley>Get type of plain field. This ignores marker with field type. !morleyGet type of submap value. "morleyGet type of submap key. #morley9Get map signature from the constructor with a given name. (morley-What was found on lookup by constructor name.$This keeps either type arguments of  6 or  3. +morleyhAllows to specify format of key under which fields of this type are stored. Useful to avoid collisions. ,morleytDisplay type-level information about UStore field with given marker and field value type. Used for error messages. -morley<By field name derive key under which field should be stored. /morleySWhat do we serialize when constructing big_map key for accessing an UStore submap. 1morley Just a plain field used as data. 2morley,Specific kind used to designate markers for  3.zWe suggest that fields may serve different purposes and so annotated with special markers accordingly. See example below.mThis kind is implemented like that because we want markers to differ from all other types in kind; herewith  2I is still an open kind (has potentially infinite number of inhabitants).morleyJust a servant type. 3morley%Describes plain field in the storage. 6morley-Describes one virtual big map in the storage. 9morleyGathers multple fields and gs under one object.Type argument of this datatype stands for a "store template" - a datatype with one constructor and multiple fields, each containing an object of type  3 or  6/ and corresponding to single virtual field or g respectively. It's also possible to parameterize it with a larger type which is a product of types satisfying the above property. <morley Version of  - which accepts label. =morley Shortcut for  -@ which accepts not marker but store template and name of entry.   ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = 9 : ; 6 7 8 3 4 5 1 2 0 + , - < = / . " !   ( ) * # ' & % $None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm oZ PmorleyApply multiple coverage steps.morleySingle piece of a coverage. QmorleyOApply given diff coverage, returning type of affected field and modified diff. RmorleyNCover the respective part of diff. Maybe fail if such action is not required.This type is very similar to  \, but we still use another type as 1. Their kinds will differ - no chance to mix up anything. 2. One day there might appear more complex actions. UmorleyVHelper type family which dumps error message about remaining diff if such is present. Vmorley5Renders human-readable message describing given diff. Wmorley3Make up a migration diff between given old and new  9 templates.morleyLift a list of  _ to  [s via attaching given  \.morleyLHelper to make sure that datatype field is named and then extract this name. Xmorley(Get only field names of UStore template. Zmorley>Get information about all fields of UStore template in a list.tIn particular, this recursivelly traverses template and retrives names and types of fields. Semantic wrappers like  3 and  6# in field types are returned as-is. [morleySingle piece of a diff. \morley%What should happen with a particular  UStoreItem. _morley)Information about single field of UStore. P Q R S T U V W X Y Z [ \ ] ^ _ _ \ ] ^ [ W V U Z Y X R S T Q PNone4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley)Get all fields names accessible in given  9 template. amorleyLift an  9 to another  9A which contains all the entries of the former under given field.RThis function is not intended for use in migrations, only in normal entry points.Note that this function ensures that template of resulting store does not contain inner nested templates with duplicated fields, otherwise  9 invariants could get broken. bmorley Unlift an  9 to a smaller  9 which is part of the former.RThis function is not intended for use in migrations, only in normal entry points.Surprisingly, despite smaller  9 may have extra entries, this function is safe when used in contract code. Truly, all getters and setters are still safe to use. Also, there is no way for the resulting small UStore= to leak outside of the contract since the only place where big_map0 can appear is contract storage, so this small UStore+ can be either dropped or lifted back via  a/ to appear as part of the new contract's state.When this function is run as part of standalone instructions sequence, not as part of contract code (e.g. in tests), you may get an UStore" with entries not inherent to it.morleyJThis example demostrates a way to run an instruction, operating on small  9, so that it works on a larger  9. ` a b a b `None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm $ emorley+Minimal possible piece of migration script.Different atoms can be arbitrarily reordered and separated across migration stages, but each single atom is treated as a whole.ESplitting migration into atoms is responsibility of migration writer. jmorley"Describes single migration action.In most cases it is possible to derive reasonable description for migration atom automatically, this datatype exactly carries this information. lmorley3Action on field, e.g. "set", "remove", "overwrite". mmorleyName of affected field of  9. nmorleyType of affected field of  9 in new storage version. omorleyAn action on storage entry. pmorley9Some sort of addition: "init", "set", "overwrite", e.t.c. qmorleyRemoval. tmorleyCorner case of  u! with some type argument unknown.You can turn this into  u using  . umorleyCode of migration for  9.Invariant: preferably should fit into op size / gas limits (quite obvious). Often this stands for exactly one stage of migration (one Tezos transaction). xmorleyUStore with hidden template. ymorleyDummy template for  9V, use this when you want to forget exact template and make type of store homomorphic.morley&Manually perform a piece of migration. }morley;Merge several migration scripts. Used in manual migrations.pThis function is generally unsafe because resulting migration script can fail to fit into operation size limit. ~morleyjAdd description of action, it will be used in rendering migration plan and some batching implementations. morleyWe allow casting between  x and  9 freely. morley%Migration script splitted in batches.PThis is an intermediate form of migration content and needed because compiling   is a potentially heavyweight operation, and after compilation is performed you may need to get various information like number of migration steps, migration script, migration plan and other. morley2Way of distributing migration atoms among batches.This also participates in describing migration plan and should contain information which would clarify to a user why migration is splitted such a way. Objects of type  batchInfoq stand for information corresponding to a batch and may include e.g. names of taken actions and gas consumption.Type argument  structureQ stands for container where batches will be put to and is usually a list ('[]').When writing an instance of this datatype, you should tend to produce as few batches as possible because Tezos transaction execution overhead is quite high; though these batches should still preferably fit into gas limit.wNote that we never fail here because reaching perfect consistency with Tezos gas model is beyond dreams for now, even if our model predicts that some migration atom cannot be fit into gas limit, Tezos node can think differently and accept the migration. If your batching function can make predictions about fitting into gas limit, consider including this information in  batchInfo type. See batching implementations in !Lorentz.UStore.Migration.Batching module. morley Wrapper over  9# which is currently being migrated. In type-level arguments it keeps Old and new  9: templates - mostly for convenience of the implementation.Remaining diff which yet should be covered. Here we track migration progress. Once remaining diff is empty, migration is finished.\Names of fields which have already been touched by migration. Required to make getters safe. morley8A bunch of migration atoms produced by migration writer. morley*Keeps information about migration between  9s with two given templates. morleyTurn  Migration5 into a whole piece of code for transforming storage.This is not want you'd want to use for contract deployment because of gas and operation size limits that Tezos applies to transactions. morleyModify all code in migration. morley Create migration atom from code.HThis is an internal function, should not be used for writing migrations. morley,Put each migration atom to a separate batch.fIn most cases this is not what you want, but may be useful if e.g. you write your migration manually. morley'Put the whole migration into one batch. morley Version of  - which allows splitting migration in batches.pHere you supply a sequence of migration blocks which then are automatically distributed among migration stages. morley)Safe way to create migration scripts for  9.0You have to supply a code which would transform  P, coverring required diff step-by-step. All basic instructions work, also use migrate*- functions from this module to operate with  .This method produces a whole migration, it cannot be splitted in batches. In case if your migration is too big to be applied within a single transaction, use  . morley(Compile migration for use in production. morleyIGet migration scripts, each to be executed in separate Tezos transaction. morleyGet migration scripts as list. morley?Get migration script in case of simple (non-batched) migration. morley?Get migration script in case of simple (non-batched) migration. morley!Get information about each batch. morleyNumber of stages in migration. morleyRender migration plan.7 e f g h i j k l m n o p q r s t u v w x y z { | } ~ 7 y x u v w t s r e f g h i z { } | o p q j k l m n ~ None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  morleyType of batch. morleyAddition of any type of data. morleyAddition of code. morley*Several joined actions of different types. morley`No information to chooseType about batching. This means that the given action does not contain  j. morleyXPuts all data updates in one batch, and all lambdas in separate batches, one per batch.The reason for such behaviour is that in production contracts amount of changed data (be it in contract initialization or contract upgrade) is small, while stored entrypoints are huge and addition of even one entrypoint often barely fits into gas limit.morley Similar to nub:, counts number of invocations and attaches to text entry.nubCounting ["a", "b", "a"]["a (x2)", "b"] None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm  morley6Provides arror for convenient entrypoint documentation morleyLift entrypoint implementation.+Entrypoint names should go with "e" prefix.morleyTraverse entry points and add parameter building step (which describes necessity to wrap parameter into some constructor of the given datatype) to all parameters described within given code.morley*Add corresponding parameter building step.MFirst argument is accumulator for Michelson description of the building step. morleyConstraint for . morleyPick a type documentation from . morley$Describes argument of an entrypoint. morley!Argument of the entrypoint. Pass  if no argument is required. morleyWhether this entrypoint has a field annotation (and thus is callable using the standard "lightweigth entrypoints" mechanism) or is a virtual entrypoint which requires constructing a value of the full parameter type. morleyhDescribes a way to lift an entrypoint argument into full parameter which can be passed to the contract.uSteps are supposed to be applied in the order in which they are given. E.g. suppose that an entrypoint is called as Run (Service1 arg)5; then the first step should describe wrapping into Service1A constructor, and the second step should be about wrapping into Run constructor. morley[Untyped representation of entrypoint, used for printing its michelson type representation. morley$Describes a parameter building step.SThis can be wrapping into (Haskell) constructor, or a more complex transformation. morley'Plain english description of this step. morley+How to construct parameter in Haskell code. morley4How to construct parameter working on raw Michelson.morley_During incremental assembly of parameter building steps - current representation of parameter. morleyDefault value for   type argument. morley,Gathers information about single entrypoint.We assume that entry points might be of different kinds, which is designated by phantom type parameter. For instance, you may want to have several groups of entry points corresponding to various parts of a contract - specifying different kindL type argument for each of those groups will allow you defining different 9 instances with appropriate custom descriptions for them. morleyDefault implementation of  for entry points. morley5Go over contract code and update every occurrence of  Y documentation item, adding the given step to its "how to build parameter" description.morley,Add necessary documentation to entry points. morleyLike  /, to be used for pattern-matching on parameter.}Modifies documentation accordingly. Including description of entrypoints' arguments, thus for them you will need to supply + instance. morley Version of   for tuples. morleyjWrapper for documenting single entrypoint which parameter isn't going to be unwrapped from some datatype. entryCases unwraps a datatype, however, sometimes we want to have entrypoint parameter to be not wrapped into some datatype.!8%& ! %& 8 None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm   None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm ' morley,Check that contract documents its parameter. morley8It's a common issue to forget to describe an entrypoint. morleyTests all properties.             None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm i]+ morley Signature of  userFailWith. morley$Prompt an error message saying that v! is not applicable for this type. morley Documentation for custom errors.,Mentions that entrypoint throws given error. morley(Mentions that contract uses given error. morley/What should happen for this error to be raised. morleyBrief version of  R. This will appear along with the error when mentioned in entrypoint description.?By default, the first sentence of the full description is used. morley Error class.~By default this returns "unknown error" class; though you should provide explicit implementation in order to avoid a warning. morley(Clarification of error argument meaning.?Provide when it's not obvious, e.g. argument is not named with :!.NOTE: This should not; be an entire sentence, rather just the semantic backbone.Bad: * 9Error argument stands for the previous value of approval. Good: * the previous value of approval * Epair, first argument of which is one thing, and the second is another morley=Error class on how the error should be handled by the client. morleyRNormal expected error. Examples: "insufficient balance", "wallet does not exist". morleyaInvalid argument passed to entrypoint. Examples: your entrypoint accepts an enum represented as natT, and unknown value is provided. This includes more complex cases which involve multiple entrypoints. E.g. API provides iterator interface, middleware should care about using it hiding complex details and exposing a simpler API to user; then an attempt to request non-existing element would also correspond to an error from this class. morleyzUnexpected error. Most likely it means that there is a bug in the contract or the contract has been deployed incorrectly. morley/It's possible to leave error class unspecified.morleyHow & is actually represented in Michelson.morleyMaterial custom error.:Use this in pattern matches against error (e.g. in tests).morley"Declares a custom error, defining error name - error argument relation.=If your error is supposed to carry no argument, then provide ().Note that this relation is defined globally rather than on per-contract basis, so define errors accordingly. If your error has argument specific to your contract, call it such that error name reflects its belonging to this contract.morley!Use this type as replacement for () when you really( want to leave error cause unspecified. morley?Name of error as it appears in the corresponding section title. morley/What should happen for this error to be raised. morleyBrief version of  .This will appear along with the error when mentioned in entrypoint description. By default, the first sentence of the full description is used. morley)How this error is represented in Haskell. morley Error class.morley8Which definitions documentation for this error mentions.morley Haskell type representing error.morleyConverts a Haskell error into Value representation.morley Converts a Value into Haskell error.morleyImplementation of  via v.morleyImplementation of  via v.morley!Helper for managing descriptions.morley"Fail with the given Haskell value.morleyTFail, providing a reference to the place in the code where this function is called.Like @? in Haskell code, this instruction is for internal errors only.morleyDemote error tag to term level.morleyFail with given custom error.morleySpecialization of  for no-arg errors.morleyImplementation of - (of +A typeclass) for Haskell types which sole purpose is to be error.morley!This is to be included on top of Errors) section of the generated documentation.morleyImplementation of  for custom errors.morleyImplementation of  for custom errors.This function is deprecated.morleyDerive  instance for given type.This will also forbid deriving vV instance for that type to avoid having multiple different Michelson representations.morleyMFail with given error, picking argument for error from the top of the stack.:If your error constructor does not carry an argument, use  function instead. Consider the following practice: once error datatype for your contract is defined, create a specialization of this function to the error type.This function is deprecated. morley)This instance cannot be implemented, use  instance instead.&morleyIf { constructor is not provided its argument, we assume that this is no-arg error and interpret the passed value as complete.)morley"Use this for internal errors only.NormalF error scenarios should use the mechanism of custom errors, see below..      .       None5!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befghkm I5morleyeNewtype over void result type used in tests to distinguish successful void result from other errors.;Usage example: lExpectFailWith (== VoidResult roleMaster)`mThis error is special - it can contain arguments of different types depending on entrypoint which raises it.8morleyvoid! type synonym as described in A1.:morleyEntry point argument.;morleyType of result reported via  h.<morleyview! type synonym as described in A1.morley(Various convenient instructions on maps.morleySpecialized version of  ].@morleyInsert given element into map.AmorleyWInsert given element into map, ensuring that it does not overwrite any existing entry.=As first argument accepts container name (for error message).BmorleyDelete element from the map.morleyuConstraint for duupX that combines kind-agnostic constraint for Lorentz (Haskell) types and for our typed Michelson.morley"Kind-agnostic constraint for duupXUmorleyxAnalog of the FAIL macro in Michelson. Its usage is discouraged because it doesn't carry any information about failure.hmorley[Custom Lorentz macro that drops element with given index (starting from 0) from the stack.imorleyDuplicate the top of the stack n times.@For example, `cloneX @3` has type `a & s :-> a & a & a & a & s`.jmorleyDUU+P# macro. For example, `duupX @3` is DUUUP, it puts the 3-rd (starting from 1) element to the top of the stack. Note that it is implemented differently for `n "d 2` and for `n > 2`. In the latter case it is implemented using  g,  E and  Bq. In the former case it uses specialized versions. There is also a minor difference with the implementation of `DUU*P` in Michelson. They implement DUUUUP as `DIP 3 { DUP }; DIG 4`. We implement it as `DIP 3 { DUP }; DIG 3`. These are equivalent. Our version is supposedly cheaper, at least it should be packed more efficiently due to the way numbers are packed.kmorley Version of  L which accepts number of elements on input stack which should be preserved.YYou can treat this macro as calling a Michelson function with given number of arguments.|morleyInsert given element into set.!This is a separate function from  updateMap4 because stacks they operate with differ in length.}morleyWInsert given element into set, ensuring that it does not overwrite any existing entry.)As first argument accepts container name.~morley"Delete given element from the set.morleyPolymorphic version of < constructor.morley*Wrap internal representation of view into < itself.<8 is part of public standard and should not change often.morleyUnwrap <" into its internal representation.<8 is part of public standard and should not change often.morleyPush a value of contract type.Doing this via  GH instruction is not possible, so we need to perform extra actions here. Aside from contract] value itself you will need to specify which error to throw in case this value is not valid.U 156789:;<=>?BA@CDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~U 1CDHEFGINLMKJOTRSQPUVWXYZ[\]^_`abcdefghijkqropwxyz{uvlmnst|@}AB~<=>?89:;567None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley1Write down all sensisble constraints which given store satisfies and apply them to  constrained.This store should have  6 and  3B fields in its immediate fields, no deep inspection is performed.morley>This constraint can be used if a function needs to work with big6 store, but needs to know only about some field of it.morley>This constraint can be used if a function needs to work with big: store, but needs to know only about some submap(s) of it.fIt can use all UStore operations for a particular name, key and value without knowing whole template.morley Put an empty  9R onto the stack. This function is generally unsafe: if store template contains a  3, the resulting  93 is not immediately usable. If you are sure that  9n contains only submaps, feel free to just use the result of this function. Otherwise you must set all fields.morleyKInsert a key-value pair, but fail if it will overwrite some existing entry.morleyLike toField , but for  9.This may fail only if  99 was made up incorrectly during contract initialization.morleyLike getField , but for  9.This may fail only if  99 was made up incorrectly during contract initialization.morleyLike setField , but for  9.morleyRemove a field from  9, for internal purposes only.morleyWhen you want to express a constraint like "given big store contains all elements present in given small concrete store", you can use .Here store- is a big store, and we expect it to contain  entirely.morley with store instantiated to .None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyPut this in the end of migration script to get a human-readable message about remaining diff which yet should be covered. Use of this function in migration is fully optional.This function is not part of   for the sake of proper error messages ordering, during development you probably want errors in migration script to be located earlier in code than errors about not fully covered diff (if you used to fix errors in the same order in which they appear).morley Helper for F which ensures that given store hasn't been (partially) migrated yet.morleyDCast field or submap pretending that its value fits to the new type.\Useful when type of field, e.g. lambda or set of lambdas, is polymorphic over storage type.morley&Get a field present in old version of  9.morley}Add a field which was not present before. This covers one addition from the diff and any removals of field with given name.\This function cannot overwrite existing field with the same name, if this is necessary use ) which would declare removal explicitly.morleymRemove a field which should not be present in new version of storage. This covers one removal from the diff.In fact, this action could be performed automatically, but since removal is a destructive operation, being explicit about it seems like a good thing.morley+Get and remove a field from old version of  9.4You probably want to use this more often than plain .morley.Remove field and write new one in place of it.$This is semantically equivalent to 7dip (migrateRemoveField label) >> migrateAddField label, but is cheaper.morley_Modify field which should stay in new version of storage. This does not affect remaining diff.morleyDefine a migration atom.QIt will be named automatically according to the set of actions it performs (via  jds). This may be want you want for small sequences of actions, but for complex ones consider using .. Names are used in rendering migration plan.morley(Define a migration atom with given name.0Name will be used when rendering migration plan.morley Composition of migration blocks.morleyThis is B$ operator with priority higher than .It allows you writing EmkUStoreBatchedMigration = muBlock $: do migrateAddField ...  --, muBlock $: do migrateRemoveField ... Alternatively, BlockArguments extension can be used.morleyGet the old version of storage.7This can be applied only in the beginning of migration.[In fact this function is not very useful, all required operations should be available for  #, but leaving it here just in case.morleyThis version can be used in mkUStoreMultiMigration as the last migration block.morleyThis version can be used in  .27None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm O e f g h i j k l m n o p q r s t u v w x y z { | } ~ None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm &morleyGeneric traversal for  and .morley"Convert generic value to internal  9 representation.morleyParse internal  9/ representation into generic Haskell value of  9", also returning unparsed entries.morley<Convert generic value to a script filling the corresponding  9.morley#Given template can be converted to  9 value.morley 9( content represented as key-value pairs.morleyMake  9 from separate big_map s and fields.morley Decompose  9 into separate big_map s and fields.Since this function needs to UNPACK content of UStore1 to actual keys and values, you have to provide  UnpackEnv..Along with resulting value, you get a list of UStoreV entries which were not recognized as belonging to any submap or field according to UStore*'s template - this should be empty unless UStore invariants were violated.morley(Make migration script which initializes  9 from scratch.morley Version of  for batched migrations.4Each field write will be placed to a separate batch.morleyFill  9C with entries from the given template as part of simple migration.7Sometimes you already have some fields initialized and  does not suit, then in case if your UStore template is a nested structure you can use sub-templates to initialize the corresponding parts of UStore.For batched migrations see .morleyLike  , but requires all entries from UStore to be recognized.morley!Recursive template traversal for .morley!Recursive template traversal for .morley!Recursive template traversal for .morleyCase of  3.morleyCase of  6.morleyCase of nested template.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm )morley5Generic traversal for conversion between ADT sum and .morley1Entry points template derived from given ADT sum.morleyConstraint required by .morley#Make up a "case" over entry points.morleyPattern-match on given UParam entries.bYou have to provide all case branches and a fallback action on case when entrypoint is not found.lThis function is unsafe because it does not make sure at type-level that entry points' names do not repeat.morley=An action invoked when user-provided entrypoint is not found.morley%Implementations of some entry points.,Note that this thing inherits properties of Q, e.g. you can Data.Vinyl.Core.rappendX implementations for two entrypoint sets when assembling scattered parts of a contract.morley#Wrapper for a single "case" branch.morley"This class is needed to implement .morleyTurn a into a Haskell value. Since we don't know its type in compile time, we have to erase it using u. The user of this function can require arbitrary constraint to hold (depending on how they want to use the result).morleyBThis type can store any value that satisfies a certain constraint.morley>Ensure that given entry points do no contain duplicated names.morley,Get type of entrypoint argument by its name.morleyHomomorphic version of , forgets the exact interface.morleyPseudo value for  type variable.morleypEncapsulates parameter for one of entry points. It keeps entrypoint name and corresponding argument serialized.dIn Haskell world, we keep an invariant of that contained value relates to one of entry points from entries list.morley6A convenient alias for type-level name-something pair.morleyGAn entrypoint is described by two types: its name and type of argument.morley Construct a  safely.morley-Helper instruction which extracts content of .morleyDefault implementation for , simply reports an error.morleyPattern-match on given UParam entries.bYou have to provide all case branches and a fallback action on case when entrypoint is not found.morleyLike (, but accepts a tuple of clauses, not a Q.morleyMake up  from ADT sum.'Entry points template will consist of '(constructorName, constructorFieldType)@ pairs. Each constructor is expected to have exactly one field.morley:Note that calling given entrypoints involves constructing .morleyAllows casts only between  and .None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm -tmorley9Remembers parameters it was called with, last goes first.None5!"#$%&'*,-.012456789;=>?@ACHMNPSUVX_`befgkm Z@morleyIConcise way to write down constraints with expected content of a storage.Use it like follows: ztype StorageConstraint = StorageContains [ "fieldInt" := Int , "fieldNat" := Nat , "balances" := Address ~> Int ] morley2Indicates a submap with given key and value types.morley*Provides operations on fields for storage.morley/Datatype containing the full implementation of  typeclass.We use this grouping because in most cases implementation will be chosen among the default ones, and initializing all methods at once is simpler and more consistent. (One can say that we are trying to emulate  DerivingVia extension.)morley*Provides operations on fields for storage. morley/Datatype containing the full implementation of  typeclass.We use this grouping because in most cases implementation will be chosen among the default ones, and initializing all methods at once is simpler and more consistent. (One can say that we are trying to emulate benefits of  DerivingVia extension.)$morleyPick storage field.%morley:Get storage field, preserving the storage itself on stack.&morleyUpdate storage field.'morley Check value presence in storage.(morleyGet value in storage.)morleyUpdate a value in storage.*morleyDelete a value in storage.+morleyAdd a value in storage.,morleyJAdd a value in storage, but fail if it will overwrite some existing entry.-morleyImplementation of 0 for case of datatype keeping a pack of fields..morleyImplementation of + for a data type which has an instance of = inside. For instance, it can be used for top-level storage./morleyImplementation of + for a data type which has an instance of = inside. For instance, it can be used for top-level storage.0morleyPretend that given 0 implementation is made up for submap with name  desiredNameD, not its actual name. Logic of the implementation remains the same.AUse case: imagine that your code requires access to submap named X,, but in your storage that submap is called Y.. Then you implement the instance which makes X refer to Y: oinstance StoreHasSubmap Store X Key Value where storeSubmapOps = storeSubmapOpsReferTo #Y storeSubmapOpsForY 1morleyPretend that given 1 implementation is made up for submap with name  desiredNameE, not its actual name. Logic of the implementation remains the same. See also 0.2morley.Chain two implementations of field operations.eSuits for a case when your store does not contain its fields directly rather has a nested structure.3morley5Chain implementations of field and submap operations.4morley%< can be used as standalone key-value storage if very needed.5morleyg\ can be used as standalone key-value storage, name of submap is not accounted in this case.! !"#$%&'()*+,-./0123! !"#$%&'()*+,-./10239 None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm ]1None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm _4   ! " + , - 1 2 3 4 5 6 7 8 9 a b r u v w 4 9 6 7 8 3 4 5 1 2 + , - " !  a b u v w r  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm \9morleyContract storage with big_map.HDue to Michelson constraints it is the only possible layout containing big_map.=morley1Write down all sensisble constraints which given store satisfies and apply them to  constrained.This store should have FD datatype in its immediate fields, no deep inspection is performed.>morley>This constraint can be used if a function needs to work with big8 store, but needs to know only about some part(s) of it.eIt can use all Store operations for a particular name, key and value without knowing whole template.morley\Prepend a constructor name with a lower-case character so that you could make a label with OverloadedLabels% extension matching resulting thing.morley9Get map signature from the constructor with a given name.morleyType arguments of F.morley Number of datatype constructors.morleyDPosition of a constructor in the corresponding datatype declaration.FmorleyDescribes one virtual big map.GmorleyGathers multple gs under one object.Type argument of this datatype stands for a "map template" - a datatype with multiple constructors, each containing an object of type F% and corresponding to single virtual gs. It's also possible to parameterize it with a larger type which is a sum of types satisfying the above property.Inside it keeps only one g* thus not violating Michelson limitations.See examples below.NmorleyKInsert a key-value pair, but fail if it will overwrite some existing entry.PmorleyUnpack 9 into a pair.QmorleyPack a pair into 9.UmorleyKInsert a key-value pair, but fail if it will overwrite some existing entry.WmorleyLift a key-value pair to G.Further you can use  instance of Store to make up large stores.YmorleyGet a value from store by key.SIt expects map to be consistent, otherwise call to this function fails with error."89:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY"GHIFEDJKLMNOCBA@?>=9:;<PQRSTUVWXY8None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm umorleyPredicate for if ... then .. else ...] construction, defines a kind of operation applied to the top elements of the current stack."Type arguments mean: 1. Input of ifS 2. Left branch input 3. Right branch input 4. Output of branches 5. Output of ifmorleyNExplicitly named binary condition, to ensure proper order of stack arguments.morley"Provide the compared arguments to if branches.morley$Aliases for '(#)' used by do-blocks.morleyDefines semantics of if ... then ... else ... construction.morleyNamed version of .In this and similar operators you provide names of accepted stack operands as a safety measure of that they go in the expected order.morleyNamed version of .morleyNamed version of .morleyNamed version of .morleyNamed version of .morleyNamed version of .morleyVCondition modifier, makes stack operands of binary comparison to be available within if branches. &uzyvwx{|}~ uzyvwx{|}~&444444None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morleyTags excluded from map.morleyXThis is a bidirectional map with correspondence between numeric and textual error tags.morley6Find all textual error tags that are used in typical FAILWITHA patterns within given instruction. Map them to natural numbers.morley#Add more error tags to an existing . It is useful when your contract consists of multiple parts (e. g. in case of contract upgrade), you have existing map for some part and want to add tags from another part to it. You can pass empty map as existing one if you just want to build ! from a set of textual tags. See .morleyBuild  from a set of textual tags.morleyRemove some error tags from map. This way you say to remain these string tags intact, while others will be converted to numbers when this map is applied.2Note that later you have to apply this map using %, otherwise an error would be raised.morleyFor each typical  that uses a string to represent error tag this function changes error tag to be a number using the supplied conversion map. It assumes that supplied map contains all such strings (and will error out if it does not). It will always be the case if you gather all error tags using  and build  from them using .morley Similar to >, but for case when you have excluded some tags from map via . Needed, because both V and this function do not tolerate unknown errors in contract code (for your safety).morleyThis function implements the simplest scenario of using this module's functionality: 1. Gather all error tags from a single instruction. 2. Turn them into error conversion map. 3. Apply this conversion.morley<If you apply numeric error representation in your contract, " will stop working because it doesn't know about this transformation. This function takes this transformation into account. If a number is used as a tag, but it is not found in the passed map, we conservatively preserve that number (because this whole approach is rather a heuristic).  None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm OmorleyPContract initiator should be contract admin in order to perform this operation.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm $morley!Replacement for uninhabited type.morley)Witness of that this code is unreachable.morleySomeone constructed  type.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm " 0/   &21"#$%*)3678=<;@ABCDEFGNMQPO8VWXYabcdefghpqrstuvwxyz{|}~ILghijklmnovwxyz{|}~!"%&'(+,-./0189:;<=>?@ABCDvwx                1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D K L M N O P Q S T U V W X Y Z [ ] ^ _ c e f g h i l m n o p q r v w x y z { | } ~     , - . / 0 1 2 3 4 5 6 ; < = > ? @ 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 { | } ~            ! " + , - 1 2 3 4 5 6 7 8 9 a b r u v w      56789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&'()*+,-./0123uzyvwx{|}~" 0/   &21"#$%*)3678=<;@ABCDEFGNMQPO8VWXYabcdefghpqrstuvwxyz{|}~ILghijklmnovwxyz{|}~!"%&'(+,-./0189:;<=>?@ABCDvwx                1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D K L M N O P Q S T U V W X Y Z [ ] ^ _ c e f g h i l m n o p q r v w x y z { | } ~     , - . / 0 1 2 3 4 5 6 ; < = > ? @ 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 { | } ~            ! " + , - 1 2 3 4 5 6 7 8 9 a b r u v w      56789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&'()*+,-./0123uzyvwx{|}~None4!"#$%&'*,-.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 for Lorentz types.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).morleyLike , but for Lorentz types.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 .None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm :   G O : O  G   None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm 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.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm morley<Expect the given contract to have some specific entrypoints.None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm &morleyLike  #, but for typed contract and value.morleyLike  , but for Lorentz contracts.morley<Originate a contract with empty balance and default storage.morley Similar to  5, for typed values. Note that it works with untyped  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).morley Similar to  , for Lorentz values.morleyLegacy version of  function. Calls default entrypoint of a contract assuming its argument is the same as contract parameter (which is equivalent to absence of explicit default entrypoint).HThis function is DEPRECATED and exists only for backwards compatibility.morley]Call an entrypoint of a contract without caring about the source address. Transfers 0 mutez.morley for default entrypoint.morleybInternal function that proceeds storage validation from by untyping the value passed to callback.morley Similar to  , but for Lorentz values.morley Similar to  , but for Lorentz values.morleyLike  , for Lorentz values.morley Similar to  , for typed stuff.morley Similar to  , for Lorentz values.morleyOExpect that interpretation of contract with given address ended with [FAILED].morleyExpect contract to fail with FAILWITHF instruction and provided value to match against the given predicate.morley)Expect contract to fail with given error.morley Version of = for the case when numeric representation of errors is used.morley#Expect contract to fail with given  CustomError.morley Version of = for the case when numeric representation of errors is used.morleySpecialization of  for non-arg error case.morley Version of = for the case when numeric representation of errors is used.morley Version of * specialized to "consumer" contract (see ).morley8Assuming that "consumer" contract receives a value from View5, expect this view return value to be the given one.Despite consumer stores parameters it was called with in reversed order, this function cares about it, so you should provide a list of expected values in the same order in which the corresponding events were happenning.H E G H I J K L M S T UH E G H I J K L M  S T U None4!"#$%&'*,-.012456789;=>?@AHMNPSUVX_`befgkm !<Y   E G H I J K L M O S T U Y O   S T U  E G H I J K L M          !"#!"$!"%!"&!"'()*()+(),()-()./01/01/23/24/25/67/68/69/6:;;<=>??@@AABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abccdefghijklmnopqrstuvwxyz{7|}~      !"#$%&&'()**+,,-./012345677889:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./01234456789 : : ; < = > ? @ A!B!C!D"E"F"G"H"I#J#K#L M$N$N$O$P$Q$R$S$T$U$V$W$X$Y$Z$[$\$]^_`abcdefghijklmnopqrstuvwxyz{|}~%%%%%%%%%%%%%                           &'(((((((((((((((((((((((((((((())))))))))))))))))))))))))))) ) ) ) ) ))************************** * * ** * **++++++++++++++++++++++++++++++ + + ++ + ++,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,!,",#,$,%,&,',,,,(,), , ,,*,+,,,-,., ,, , ,,/,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.{.{.|.}.~............................////////////////////////////////////////////0000000000000000000000000000000000000000000000000000000000000000000000 0 0 0 0 0000000000000000000 0!0"0#0$0%0&0'0(0)0*0+0,0-0.0/000102030405060708090:0;0<1=1}1>2?2?2@2A2B2C2D2E2F2G2H2I3J4K4L4M5N6O6P6Q6R6S6T6U6V6W6X6Y6Z6[6\6]6^6_6`6a6b6c6d6e6f6g6hijklmnop7q7q7r7s7t7u7v7w7x7y7z7{7|7}7~777777777777788889999999999999999999999999999999999999999999999999999999999999999999999:::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; ; ;;;;;;;;;;;;;;;;;;;;< <!<"<#<$<%<&<'<(<)<*<+<,<-<.</<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={=|=}=~=============================================>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>??????}?????*?*??8?8?&?&??????????????????????????????????????????????????????????????????????? ? ? ? ? ??????????????????? ? ? ? ? ? ??????????J?I?????^?_?a?????c?@@@@ @@b@!A"AAA>B#B#B$B%B&B&B'B(B)B*B+B,B-B.B/B0B1B2C3C4C5C6C7C8C9C:C;C;C<C=C=C>C?C@CCACBCBCCCCCDCECFCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZC[C\C]C^C_C`CaCbCcCdCeCfCgChCiCjCkClCmCnCoCpCqCrCsCtCuCvCwCxCyCzC{C|C}C~CCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG G G G G GGGGGGGGGGGGGGGGGGG G!G"G#G$G%G&G'G(G)G*G+G,G-G.G/G0G1G2G3G4G5G6G7G8G9G:G;H<H=H>H>H?H@HAHBICIDIEJFJGJGJHJHJIJJJKJLJMJNJOJPJQJRJRJSJTJUJVJWJXJYJZJ[J\J]J^J_J`KaKbKcKdKeKfKgKhKiKiKjKkKlKmKnKoKpKqKrKsKtKuKvKwKxKyKzK{K|K}K~KKKKKKKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNOPPPPPPQQQQQQQQQQQQQRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR R R R R R R R R R R R R R R R R R R R R R R R R R R S S S S S T T !T "T #T $T %T &T 'T (T )T *T +T ,T -T .T /T 0T 1T 2T 3T 4T 5T 6T 7T 8T 9T :T ;T <T =T >T ?T @T AT BTT CT DT ET FT GT HT IT IT JT KT LT MT NT OT PT QT RT ST TT UT VT WT XT YT ZT [T \T ]T ^T _T `T aT bT cT dT eT fT gT hT iT jT kT lT mT nT oT pT qT rT sT tT uT vT wT xT yT zT {U |U |U }U ~U U U U U U U U U U U U U V V V V V V V V V V W W W W W W W W W W W W W W X X X X X X Y Y Y Y Y Z Z Z Z Z Z Z Z Z Z Z [ [ \ \ \ ] ] ] ] ] ^ ^ ^ ^ _ _ _ ` ` a a a a a a a a a a a b b b b b b b c c c c c c c c c c c c 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 e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e !e "e #e $e %e &e 'e (e )e *e +e ,e -e .e /e 0e 1e 2e 3e 4e 5e 6e 7e 8e 9f :f ;f <f =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 ag bg cg dg eg fh gh hh ih jh kh li mi ni oi pi qi ri si ti ui vi wi xi yi zi {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 i j j j j j j k k k k k k k k k k k l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l m m m m m m m m m m m m m m 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 "o # $ % & ' ( ) * + + , - - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B 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 pq qq rr sr sr tr ur vr wr xr ys zs {sHsHs}ss |s }s ~s s s s s s s s s s s s s s s s s s s s s s s t t t t t t t t t t t u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u v v v v v v v v v v v v v v v v w w w w w w w w w x x y y y y z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z z zz z z z z z z z z z z z z z z !z "z #z $z %z &z 'z (z )z *z +z ,z -z .z /z 0z 1z 2z 3z 4z 5z 6zzzz 7z"z 8z 9z :z ;z <z =z >z ?z @z Az 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~ 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 K L M N O P P Q R S T U U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i / j k l l m n n o p q r s t u v w x y z { { | | } ~                            !"#$%&'()*+,-./012 3456 789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWX YZ[\]^_ p`abbcdefghijklmnopqrstuvwxyz{|}~ 3456   t  t  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl()mnopq()r()stuvwx yz{|}~ $(,,,- 99>>>>>>BBDDDDDDDDEEEEEE!"EFFGGGGGINOOOOPPPRRRRR____ +aaaaaaaaaaaaaaaaaaabbbbbbbbbbbbccccccdeeeggiiiiiiiii $iiiijjj  s v v vvdvvvvvvvvz{{ ~~~~~~ ~!~"~#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKL MNOPQRSTUV#morley-0.7.0-LSdrRUk5DEH474ZZZf5NDzLorentz.PreludeLorentz.Rebinded Util.TypeLits Lorentz.Value Util.Typeable Util.TypeMichelson.Typed.Scope Util.DefaultUtil.Fcf Util.LensLorentz.CoercionsMichelson.ParserMichelson.Parser.Error Lorentz.ADT Util.NamedMichelson.Typed.Sing Util.PeanoMichelson.ErrorPosMichelson.Printer.UtilMichelson.Test.Util%Michelson.Typed.Haskell.Instr.HelpersMichelson.Untyped.AnnotationMichelson.Untyped.EntryPointsMichelson.Untyped.TypeMichelson.Untyped.ExtMichelson.Untyped.ContractMichelson.Typed.TTezos.Crypto.HashTezos.Crypto.UtilUtil.AlternativeUtil.ByteStringUtil.Exception Util.GenericUtil.IOUtil.Instances Util.Markdown Util.PositiveUtil.Test.Ingredients Util.TextMichelson.TextTezos.Crypto.Secp256k1Tezos.Crypto.P256Tezos.Crypto.Ed25519 Tezos.Crypto Tezos.Core Tezos.AddressMichelson.Untyped.ValueMichelson.Untyped.InstrMichelson.Untyped.AliasesMichelson.Runtime.TxDataLorentz.UStore.CommonUtil.TypeTuple.ClassUtil.TypeTuple.THUtil.TypeTuple.InstancesMichelson.Typed.AnnotationMichelson.Typed.ExtractMichelson.Typed.EntryPointsMichelson.Typed.CValueMichelson.Typed.ValueMichelson.Typed.PolymorphicMichelson.Typed.Arith Michelson.DocMichelson.Typed.InstrMichelson.Typed.ConvertMichelson.Typed.AliasesMichelson.Typed.UtilMichelson.Typed.Haskell.Value!Michelson.Typed.Haskell.Instr.Sum%Michelson.Typed.Haskell.Instr.Product Michelson.Typed.Haskell.LooseSumMichelson.Typed.Haskell.DocLorentz.EntryPoints.HelpersMichelson.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.PackMichelson.OptimizerMichelson.OpSizeMichelson.InterpretMichelson.Test.DummyMichelson.RuntimeMichelson.Test.UnitMichelson.Test.IntegrationalMichelson.FailPatternMichelson.AnalyzerLorentz.PolymorphicLorentz.Constraints.ScopesLorentz.EntryPoints.CoreLorentz.Constraints.Derivative Lorentz.Arith Lorentz.PackLorentz.EntryPoints.Manual Lorentz.Base Lorentz.ZipLorentz.TypeAnnsLorentz.EntryPoints.Impl Lorentz.Run Lorentz.PrintLorentz.TestScenario Lorentz.InstrLorentz.Referenced Lorentz.ExtLorentz.CommonLorentz.ExtensibleMichelson.Doc.Test Lorentz.DocLorentz.UStore.TypesLorentz.UStore.Migration.DiffLorentz.UStore.LiftLorentz.UStore.Migration.Base!Lorentz.UStore.Migration.BatchingLorentz.EntryPoints.DocLorentz.ContractRegistryLorentz.Test.DocLorentz.Errors Lorentz.MacroLorentz.UStore.InstrLorentz.UStore.Migration.BlocksLorentz.UStore.HaskellLorentz.UParamLorentz.Test.ConsumerLorentz.StoreClassLorentz.UStore.Instances Lorentz.StoreLorentz.Errors.NumericLorentz.Errors.Common Lorentz.EmptyMichelson.Test.ImportUtil.Test.ArbitraryLorentz.Test.UnitLorentz.Test.IntegrationalMichelson.TypeType Paths_morleyDataGeneric Michelson*Michelson.UntypedInstr Data.Vinyl FromTupleUtil.TypeTupleMichelson.Typed.Haskell.InstrMichelson.Typed.HaskellMichelson.TypedMichelson.TypeCheckTest.QuickCheckProperty Test.Hspec ExpectationNiceParameterFullLorentz.ConstraintsLorentz.EntryPoints InstancesLorentz.UStore.MigrationLorentz.UStoreLorentzMichelson.TestLorentz.Contracts.ConsumercontractConsumer Lorentz.TestbaseGHC.Base$GHC.Num fromIntegerreturn Data.String fromString<>memptymappendmconcatpureGHC.EnumBoundedghc-prim GHC.ClassesEqOrd GHC.Generics GHC.TypeLits KnownSymbol SemigroupMonoid GHC.TypesBool integer-gmpGHC.Integer.TypeInteger GHC.NaturalNatural GHC.MaybeMaybe Data.EitherEitherSymbol TypeError AppendSymbolFalseNothingJustTrueLeftRightText:<>::$$:ShowTypebytestring-0.10.8.2Data.ByteString.Internal ByteString text-1.2.3.1Data.Text.Internal.containers-0.6.0.1Data.Map.InternalMapGHC.OverloadedLabels fromLabel Data.TypeableeqT ErrorMessage Data.ProxyProxyData.Type.EqualityRefl:~:==Data.Type.BoolIfmaxBoundminBoundstimessconcat'constraints-0.12-9r4GNEjfdu11xgOuzOy6H1Data.ConstraintwithDictSub:-Data.Set.InternalSet1data-default-class-0.1.2.0-FeIQ5tLoVZBHMSgrT9zptQData.Default.ClassDefaultdef3first-class-families-0.7.0.0-1E9souF22Kn6FyzRYLu23AFcf.CoreEval"lens-4.19.1-1E66IAG2JhX7QGFcxXMPO9Control.Lens.THmakeLensesWithControl.Lens.Wrapped _Wrapped' UnwrappedWrapped&megaparsec-8.0.0-9g7AKmV0pGtLHgiBXCxWUText.Megaparsec.ErrorerrorBundlePrettyParseErrorBundle&universum-1.6.1-LZBxAqSxrQs6W7PvqgzcwoUniversum.Debugerror undefinedUniversum.TypeOps$named-0.3.0.1-GwpuPjBY1xnHurMYYo5M6DNamed.InternalargDefargFarg:!:?'singletons-2.5.1-KJmZfbYqxQ32cjJxSvMnMwData.Singletons.Internal applySingSLambdaSingsingSingI#vinyl-0.12.0-IALeOtLPo1cBDYNVTLLh2zData.Vinyl.DerivedLabelData.Vinyl.Core:&RNilRecData.Vinyl.TypeLevelSZNat++InstrCallStack icsCallStack icsSrcPos LetCallStackLetNameSrcPosPosmkPossrcPos $fFromJSONPos $fToJSONPos $fDefaultPos$fFromJSONSrcPos$fToJSONSrcPos$fDefaultSrcPos$fFromJSONLetName$fToJSONLetName$fFromJSONInstrCallStack$fToJSONInstrCallStack$fDefaultInstrCallStack$fEqPos$fOrdPos $fShowPos $fGenericPos $fDataPos $fEqSrcPos $fOrdSrcPos $fShowSrcPos$fGenericSrcPos $fDataSrcPos $fEqLetName $fOrdLetName $fShowLetName $fDataLetName$fGenericLetName$fEqInstrCallStack$fOrdInstrCallStack$fShowInstrCallStack$fGenericInstrCallStack$fDataInstrCallStackPrettier RenderDoc renderDoc isRenderable RenderContextprintDoc printDocB renderOps renderOpsListspaces wrapInParensbuildRenderDoc needsParensdoesntNeedParens addParensassertParensNotNeededleftToShowPanicleftToPrettyPanic failedProp succeededPropqcIsLeft qcIsRightPathBranchLRSomeAnnVarAnnFieldAnnTypeAnn KnownAnnTag annPrefix AnnotationAnnotationUnsafe unAnnotationWithAnn renderAnn renderWEAnnnoAnnann mkAnnotationspecialVarAnnsspecialFieldAnnisValidAnnStartisValidAnnBodyCharunifyAnn ifAnnUnified disjoinVnconvAnn$fDefaultAnnotation$fBuildableAnnotation$fRenderDocAnnotation$fShowAnnotation$fKnownAnnTagTYPETypeTag$fKnownAnnTagTYPEFieldTag$fKnownAnnTagTYPEVarTag$fMonoidAnnotation$fSemigroupAnnotation$fEqAnnotation$fDataAnnotation$fFunctorAnnotation$fGenericAnnotation$fIsStringAnnotation$fFromJSONAnnotation$fToJSONAnnotation$fLiftAnnotationEpNameFromRefAnnErrorInEpNameBadAnnotationEpName EpNameUnsafeunEpName DefEpNameepNameFromParamAnnepNameToParamAnnepNameFromRefAnnepNameToRefAnn$fArbitraryEpName$fDefaultEpName$fBuildableEpName $fBuildableEpNameFromRefAnnError $fShowEpName $fEqEpName $fOrdEpName$fShowEpNameFromRefAnnError$fEqEpNameFromRefAnnErrorCTCIntCNatCStringCBytesCMutezCBoolCKeyHash CTimestampCAddressTTcTKeyTUnit TSignatureTChainIdTOptionTListTSet TOperation TContractTPairTOrTLambdaTMapTBigMap ComparableTaddress Ttimestamp Tkey_hashTboolTmutezTbytesTstringTnatTint compToType typeToComptinttnattstringtbytestmuteztbooltkeyHash ttimestamptaddresstoptiontpairtortyinttynattyunittybooltypairtyortyImplicitAccountParam isAtomicTypeisKey isSignature isComparableisMutez isTimestamp isKeyHashisBoolisString isIntegerisNatisIntisBytes $fBuildableCT $fRenderDocCT$fBuildableComparable$fRenderDocComparable $fBuildableT$fBuildableType $fRenderDocT$fRenderDocType$fRenderDocPrettier$fEqCT$fOrdCT$fShowCT$fDataCT$fEnumCT $fBoundedCT $fGenericCT$fEqComparable$fShowComparable$fDataComparable$fGenericComparable$fEqT$fShowT$fDataT $fGenericT$fEqType $fShowType $fDataType $fGenericType$fFromJSONType $fToJSONType$fFromJSONComparable$fToJSONComparable $fFromJSONT $fToJSONT $fFromJSONCT $fToJSONCT $fLiftType$fLiftComparable$fLiftT$fLiftCT TestAsserttassName tassComment tassInstrs PrintCommentunUPrintCommentStackFnquantifiedVars inPattern outPatternStackTypePatternStkEmptyStkRestStkConsTyVarVarIDTyConVarStackRefExtInstrAbstract STACKTYPEFN UTEST_ASSERTUPRINTstackTypePatternToListvarSet$fBuildableStackRef$fBuildableVar$fBuildableTyVar$fBuildableStackTypePattern$fBuildableStackFn$fBuildablePrintComment$fBuildableTestAssert$fBuildableExtInstrAbstract$fRenderDocExtInstrAbstract $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'ContractparastorcodeStorage Parameter$fBuildableContract'$fRenderDocContract' $fEqContract'$fShowContract'$fFunctorContract'$fDataContract'$fGenericContract'$fFromJSONContract'$fToJSONContract'toUType buildStackSTcSTKeySTUnit STSignature STChainIdSTOptionSTListSTSet STOperation STContractSTPairSTOrSTLambdaSTMapSTBigMapSCIntSCNatSCStringSCBytesSCMutezSCBool SCKeyHash SCTimestamp SCAddresswithSomeSingCT fromSingCT withSomeSingT fromSingT$fSingITTBigMap $fSingITTMap$fSingITTLambda $fSingITTOr $fSingITTPair$fSingITTContract$fSingITTOperation $fSingITTSet $fSingITTList$fSingITTOption$fSingITTChainId$fSingITTSignature $fSingITTUnit $fSingITTKey $fSingITTc$fSingICTCAddress$fSingICTCTimestamp$fSingICTCKeyHash$fSingICTCBool$fSingICTCMutez$fSingICTCBytes$fSingICTCString $fSingICTCNat $fSingICTCInt $fSingKindCT $fSingKindTProperComparabilityBetterErrorsProperPrintedValBetterErrorsProperUnpackedValBetterErrorsProperPackedValBetterErrorsProperConstantBetterErrorsProperStorageBetterErrorsProperParameterBetterErrors CheckScope checkScopePrintedValScopeUnpackedValScopePackedValScope ConstantScope StorageScopeParameterScopeComparabilityScopeBadTypeForScopeBtNotComparable BtIsOperation BtHasBigMapBtHasNestedBigMap BtHasContract Comparability CanBeComparedCannotBeComparedNestedBigMapsPresenceNestedBigMapsPresentNestedBigMapsAbsentBigMapPresence BigMapPresent BigMapAbsentContractPresenceContractPresentContractAbsent OpPresence OpPresentOpAbsentForbidNonComparableForbidNestedBigMaps ForbidBigMapForbidContractForbidOpFailOnNestedBigMapsFoundFailOnBigMapFoundFailOnOperationFoundHasNoNestedBigMaps HasNoBigMap HasNoContractHasNoOpContainsNestedBigMapsContainsBigMap forbiddenOpforbiddenBigMapforbiddenNestedBigMapsforbiddenContractTypecheckComparabilitycheckOpPresencecheckContractTypePresencecheckBigMapPresencecheckNestedBigMapsPresencecomparabilityPresence opAbsensecontractTypeAbsense bigMapAbsensenestedBigMapsAbsenseproperParameterEviproperStorageEviproperConstantEviproperPackedValEviproperUnpackedValEviproperPrintedValEvi $fHasNoOpt$fHasNoContractt$fHasNoBigMapt$fHasNoNestedBigMapst $fComparablet$fBuildableBadTypeForScope$fCheckScope(%,%)$fCheckScope(%,,%)$fCheckScope(%,,,%)$fCheckScope(%,,,,%)$fCheckScope(%,,,%)0$fCheckScope(%,,%)0$fCheckScopeHasNoContract$fCheckScopeHasNoNestedBigMaps$fCheckScopeHasNoBigMap$fCheckScopeHasNoOp$fCheckScopeComparableblake2b blake2b160sha256sha512B58CheckWithPrefixErrorB58CheckWithPrefixWrongPrefixB58CheckWithPrefixWrongEncodingCryptoParseErrorCryptoParseWrongBase58CheckCryptoParseWrongTagCryptoParseCryptoErrorCryptoParseUnexpectedLengthencodeBase58CheckdecodeBase58CheckdecodeBase58CheckWithPrefix formatImpl parseImpl firstRight deterministic$fBuildableCryptoParseError$fShowCryptoParseError$fEqCryptoParseError$fShowB58CheckWithPrefixErrorsomeNEHexJSONByteStringunHexJSONByteString$fFromJSONHexJSONByteString$fToJSONHexJSONByteString permute2Def permute3Def TextException$fShowTextException$fBuildableTextException$fExceptionTextExceptionApplyConstraintsTyEqSing<|>Over2GenericTypeName mkGenericTreemkGenericTreeVec readFileUtf8 writeFileUtf8appendFileUtf8 withEncoding hSetTranslit$fBuildableIdentity$fBuildableNatural$fDefaultNaturalpostfixLFields HeaderLevelMarkdownnextHeaderLevelmdHeadermdSubsectionTitle mdSubsectionmdBoldmdItalicmdTickedmdRef mdLocalRefmdAnchor mdSeparator mdSpoiler mdCommentmd NamedInnerApplyNamedFunctor.!.?<.!><.?>$fBuildableNamedF $fShowNamedF$fWrappedNamedF$fWrappedNamedF0$fFromJSONNamedF$fFromJSONNamedF0$fToJSONNamedF$fToJSONNamedF0 $fDataNamedF $fOrdNamedF $fEqNamedFRequireLongerOrSameLengthRequireLongerThanLongerOrSameLengthIsLongerOrSameLength LongerThan IsLongerThanTakeDropAtLength KnownPeanopeanoVal FromPeanoToPeanoPeanoSZSS peanoVal' peanoValSing $fSingINatZ $fSingINatS $fKnownPeanoS $fKnownPeanoZ$fRequireLongerThankla$fRequireLongerOrSameLengthkla$fEqSing $fShowSingPositivePositiveUnsafe unPositive mkPositivelengthNE replicateNE $fEqPositive $fOrdPositive$fDataPositive$fShowPositive$fBuildablePositive$fToJSONPositive$fFromJSONPositiveParserExceptionStringLiteralParserExceptionInvalidEscapeSequence InvalidCharCustomParserExceptionUnknownTypeExceptionStringLiteralExceptionOddNumberBytesException WrongTagArgsWrongAccessArgs WrongSetArgsExcessFieldAnnotation0$fShowErrorComponentStringLiteralParserException)$fShowErrorComponentCustomParserException$fBuildableParserException$fExceptionParserException$fShowParserException $fEqStringLiteralParserException"$fDataStringLiteralParserException!$fOrdStringLiteralParserException"$fShowStringLiteralParserException$fEqCustomParserException$fDataCustomParserException$fOrdCustomParserException$fShowCustomParserException$fEqParserExceptionourIngredients headToLowerRSplitKListKNilKCons KnownListklist ReifyList reifyList PatternMatchL PatternMatchRequireAllUnique AllUniqueFailWhen FailUnlessGuard///IsElem failUnlessEvi failWhenEvireifyTypeEqualityrsplit$fReifyListac:$fReifyListkc[] $fKnownListk:$fKnownListk[]TypeErrorUnless symbolValT symbolValT'inTypeErrorUnlessDoNotUseTextErrorMText MTextUnsafeunMTextisMCharmkMText mkMTextUnsafe mkMTextCut writeMText takeMText dropMTextmtqqMText symbolToMText labelToMTextmtextHeadToUpper$fIsStringMText$fFromJSONMText $fToJSONMText$fArbitraryMText $fToTextMText $fShowMText $fEqMText $fOrdMText $fDataMText$fSemigroupMText $fMonoidMText$fContainerMText$fBuildableMText$fHashableMText Signature unSignature SecretKey PublicKey unPublicKeypkBytes detSecretKeytoPublicpublicKeyToBytes mkPublicKeypublicKeyLengthBytessignatureToBytes mkSignaturesignatureLengthBytesformatPublicKeymformatPublicKeyparsePublicKeyformatSignaturemformatSignatureparseSignaturesigncheckSignature$fBuildablePublicKey$fArbitraryPublicKey $fEqPublicKey$fArbitrarySecretKey$fBuildableSignature$fArbitrarySignature$fShowPublicKey$fShowSecretKey $fEqSecretKey$fShowSignature $fEqSignatureformatSecretKeyparseSecretKey$fBuildableSecretKeyKeyHashkhTagkhBytes KeyHashTagKeyHashEd25519KeyHashSecp256k1 KeyHashP256SignatureEd25519SignatureSecp256k1 SignatureP256SignatureGenericPublicKeyEd25519PublicKeySecp256k1 PublicKeyP256keyHashLengthByteshashKey formatKeyHashmformatKeyHash parseKeyHash$fFromJSONPublicKey$fToJSONPublicKey$fFromJSONSignature$fToJSONSignature$fArbitraryKeyHashTag$fBuildableKeyHash$fArbitraryKeyHash$fFromJSONKeyHash$fToJSONKeyHash$fShowKeyHashTag$fEqKeyHashTag$fOrdKeyHashTag$fBoundedKeyHashTag$fEnumKeyHashTag $fShowKeyHash $fEqKeyHash $fOrdKeyHashChainId ChainIdUnsafe unChainId Timestamp unTimestampMutezunMutezmkMutez unsafeMkMuteztoMutezaddMutezunsafeAddMutezsubMutezunsafeSubMutezmulMutez divModMutezdivModMutezInttimestampToSecondstimestampFromSecondstimestampFromUTCTimetimestampPlusSecondsformatTimestampparseTimestamptimestampQuotegetCurrentTime farFuturefarPast mkChainIdmkChainIdUnsafe dummyChainId formatChainIdmformatChainId parseChainId chainIdLength$fBoundedMutez$fBuildableTimestamp$fArbitraryChainId$fBuildableChainId$fBuildableParseChainIdError $fShowMutez $fEqMutez $fOrdMutez $fDataMutez$fGenericMutez $fEnumMutez$fBuildableMutez$fShowTimestamp $fEqTimestamp$fOrdTimestamp$fDataTimestamp$fGenericTimestamp $fShowChainId $fEqChainId$fShowParseChainIdError$fEqParseChainIdError$fFromJSONMutez $fToJSONMutez$fFromJSONChainId$fToJSONChainId$fFromJSONTimestamp$fToJSONTimestampParseContractAddressErrorParseAddressErrorParseAddressWrongBase58CheckParseAddressBothFailedAddress KeyAddressContractAddress ContractHash mkKeyAddressdetGenKeyAddressmkContractAddressRawmkContractHashRaw formatAddressmformatAddress parseAddressunsafeParseAddressunsafeParseContractHash$fFromJSONKeyContractHash$fFromJSONContractHash$fToJSONKeyContractHash$fToJSONContractHash$fArbitraryAddress$fFromJSONKeyAddress$fFromJSONAddress$fToJSONKeyAddress$fToJSONAddress$fBuildableAddress$$fBuildableParseContractAddressError$fBuildableParseAddressError$fShowContractHash$fEqContractHash$fOrdContractHash $fShowAddress $fEqAddress $fOrdAddress$fShowParseContractAddressError$fEqParseContractAddressError$fShowParseAddressError$fEqParseAddressErrorInternalByteStringEltValue'ValueInt ValueString ValueBytes ValueUnit ValueTrue ValueFalse ValuePair ValueLeft ValueRight ValueSome ValueNoneValueNilValueSeqValueMap ValueLambdaunInternalByteString$fFromJSONInternalByteString$fToJSONInternalByteString$fBuildableElt$fBuildableValue'$fRenderDocElt$fRenderDocValue'$fDataInternalByteString$fEqInternalByteString$fShowInternalByteString $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_KEYSTEPS_TO_QUOTASOURCESENDERADDRESSCHAIN_ID ExpandedOpPrimExSeqEx WithSrcEx ExpandedInstrflattenExpandedOpmkContractAddress$fFromJSONInstrAbstract$fToJSONInstrAbstract$fBuildableInstrAbstract$fRenderDocInstrAbstract$fFromJSONExpandedOp$fToJSONExpandedOp$fBuildableExpandedOp$fRenderDocExpandedOp$fToJSONOriginationOperation$fFromJSONOriginationOperation$fEqInstrAbstract$fShowInstrAbstract$fFunctorInstrAbstract$fDataInstrAbstract$fGenericInstrAbstract$fShowExpandedOp$fEqExpandedOp$fDataExpandedOp$fGenericExpandedOp$fShowOriginationOperation$fGenericOriginationOperationExpandedExtInstrValueTxDatatdSenderAddress tdParameter tdEntrypointtdAmount $fShowTxData $fEqTxData tdAmountL tdEntrypointL tdParameterLtdSenderAddressLfieldNameToMText 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 compareExtcastIgnoringPhantomAnnConvergeErrorNotesNTcNTKeyNTUnit NTSignature NTChainIdNTOptionNTListNTSet NTOperation NTContractNTPairNTOrNTLambdaNTMapNTBigMap starNotesisStarorAnnconverge convergeAnns$fBuildableAnnConvergeError$fEqAnnConvergeError$fShowAnnConvergeError $fEqNotes $fShowNotesAsUType fromUTypemkUType withUTypeMkEntryPointCallResSomeEntryPointCallTSomeEpcForbidOrEntryPointCallTEntryPointCallepcName epcParamProxyepcLiftSequenceEpLiftSequence EplArgHere EplWrapLeft EplWrapRight ParamEpErrorParamEpDuplicatedNamesParamEpUncallableArmArmCoordAcLeftAcRight ArmCoords ParamNotesParamNotesUnsafe unParamNotesParseEpAddressErrorParseEpAddressBadAddressParseEpAddressBadRefAnnParseEpAddressRefAnnError EpAddress eaAddress eaEntryPointformatEpAddressmformatEpAddressparseEpAddressunsafeParseEpAddress mkParamNotesepcCallRootUnsafe epcPrimitivesepcCallRootUnsafe sepcPrimitivesepcNamemkEntryPointCall$fArbitraryEpAddress$fBuildableEpAddress$fBuildableParseEpAddressError$fBuildableArmCoord$fBuildableParamEpError$fBuildableEpLiftSequence$fBuildableEntryPointCallT$fBuildableSomeEntryPointCallT$fEqSomeEntryPointCallT$fShowEpAddress $fEqEpAddress$fOrdEpAddress$fShowParseEpAddressError$fEqParseEpAddressError$fShowParamNotes$fEqParamNotes$fShowArmCoord $fEqArmCoord$fShowParamEpError$fEqParamEpError$fShowSomeEntryPointCallT$fShowEntryPointCallT$fEqEntryPointCallT$fShowEpLiftSequence$fEqEpLiftSequenceCValueCvIntCvNatCvStringCvBytesCvMutezCvBool CvKeyHash CvTimestamp CvAddress $fOrdCValue $fEqCValue $fShowCValueSomeConstrainedValue'SomeConstrainedValue SomeValue' SomeValueVCVKeyVUnit VSignatureVChainIdVOptionVListVSetVOp VContractVPairVOrVLamVMapVBigMapRemFailRfNormal RfAlwaysFails ContractOut ContractOut1 ContractInp ContractInp1CreateContract ccOriginator ccDelegate ccBalance ccStorageValccContractCode SetDelegate sdMbKeyHashTransferTokensttTransferArgumentttAmount ttContract Operation'OpTransferTokens OpSetDelegateOpCreateContractrfMerge rfAnyInstr rfMapAnyInstraddressToVContractbuildVContractcompileEpLiftSequence$fBuildableSetDelegate $fEqRemFail$fBuildableCreateContract$fBuildableTransferTokens$fEqOperation'$fBuildableOperation'$fEqSomeValue'$fShowSetDelegate$fEqSetDelegate$fShowTransferTokens$fEqTransferTokens$fShowSomeConstrainedValue'$fShowSomeValue' $fShowRemFail$fEqCreateContract$fShowCreateContract$fShowOperation'EDivOp EDivOpRes EModOpRes evalEDivOpSliceOp evalSliceConcatOp evalConcat evalConcat'GetOpGetOpKeyGetOpValevalGetUpdOpUpdOpKey UpdOpParamsevalUpdSizeOpevalSizeIterOpIterOpEliterOpDetachOneMapOpMapOpInpMapOpRes mapOpToList mapOpFromListMemOpMemOpKeyevalMem$fMemOpTBigMap $fMemOpTMap $fMemOpTSet $fMapOpTList $fMapOpTMap $fIterOpTSet $fIterOpTList $fIterOpTMap $fSizeOpTMap $fSizeOpTList $fSizeOpTSet $fSizeOpTc $fSizeOpTc0 $fUpdOpTSet$fUpdOpTBigMap $fUpdOpTMap $fGetOpTMap$fGetOpTBigMap $fConcatOpTc $fConcatOpTc0 $fSliceOpTc $fSliceOpTc0$fEDivOpCMutezCNat$fEDivOpCMutezCMutez$fEDivOpCNatCNat$fEDivOpCNatCInt$fEDivOpCIntCNat$fEDivOpCIntCIntGeLeGtLtNeqEq'CompareLsrLslNotXorAndOrNegAbsMulAdd UnaryArithOp UnaryArithResevalUnaryArithOp ArithErrorMutezArithErrorShiftArithErrorArithErrorType AddOverflow MulOverflow SubUnderflow LslOverflow LsrUnderflowArithOpArithResevalOp compareOp$fBuildableArithErrorType$fBuildableArithError$fArithOpTYPEAddCMutezCMutez$fArithOpTYPEAddCIntCTimestamp$fArithOpTYPEAddCTimestampCInt$fArithOpTYPEAddCIntCInt$fArithOpTYPEAddCNatCNat$fArithOpTYPEAddCIntCNat$fArithOpTYPEAddCNatCInt$fArithOpTYPESubCMutezCMutez$$fArithOpTYPESubCTimestampCTimestamp$fArithOpTYPESubCTimestampCInt$fArithOpTYPESubCIntCInt$fArithOpTYPESubCNatCNat$fArithOpTYPESubCIntCNat$fArithOpTYPESubCNatCInt$fArithOpTYPEMulCMutezCNat$fArithOpTYPEMulCNatCMutez$fArithOpTYPEMulCIntCInt$fArithOpTYPEMulCNatCNat$fArithOpTYPEMulCIntCNat$fArithOpTYPEMulCNatCInt$fUnaryArithOpTYPEAbsCInt$fUnaryArithOpTYPENegCNat$fUnaryArithOpTYPENegCInt$fArithOpTYPEOrCBoolCBool$fArithOpTYPEOrCNatCNat$fArithOpTYPEAndCBoolCBool$fArithOpTYPEAndCNatCNat$fArithOpTYPEAndCIntCNat$fArithOpTYPEXorCBoolCBool$fArithOpTYPEXorCNatCNat$fUnaryArithOpTYPENotCBool$fUnaryArithOpTYPENotCNat$fUnaryArithOpTYPENotCInt$fArithOpTYPELslCNatCNat$fArithOpTYPELsrCNatCNat$fUnaryArithOpTYPEEq'CInt$fUnaryArithOpTYPENeqCInt$fUnaryArithOpTYPELtCInt$fUnaryArithOpTYPEGtCInt$fUnaryArithOpTYPELeCInt$fUnaryArithOpTYPEGeCInt$fShowArithErrorType$fEqArithErrorType$fOrdArithErrorType$fShowArithError$fEqArithError$fOrdArithError ContractDoc cdContents cdDefinitionscdDefinitionsSetcdDefinitionIdsSubDocDocBlock DocSectionDocElemdeItemdeSubSomeDocDefinitionItem SomeDocItemDocSectionNameStyleDocSectionNameBigDocSectionNameSmall DocItemRef DocItemNoRefDocItemPlacementKindDocItemInlinedDocItemInDefinitions DocItemIdDocItemDocItemPositionDocItemPlacementdocItemSectionNamedocItemSectionDescriptiondocItemSectionNameStyle docItemRefdocItemToMarkdowndocItemDependencies docItemsOrderdocItemPositiondocDefinitionRef deIsAtomicdocItemToBlocklookupDocBlockSectionsubDocToMarkdown$fOrdSomeDocDefinitionItem$fEqSomeDocDefinitionItem$fShowSomeDocItem$fShowDocSection $fEqDocItemId$fOrdDocItemId$fShowDocItemId$fEqDocItemPos$fOrdDocItemPos$fShowDocItemPos$fBuildableDocItemPosDCommentGitRepoSettingsgrsMkGitRevision DGitRevisionDGitRevisionKnownDGitRevisionUnknown DDescriptionDName DocGrouping cdContentsLcdDefinitionIdsLcdDefinitionsLcdDefinitionsSetLcontractDocToMarkdowndocGroupContentmorleyRepoSettingsmkDGitRevision$fMonoidContractDoc$fSemigroupContractDoc$fShow->$fDocItemDName$fDocItemDDescription$fDocItemDGitRevision$fDocItemDComment FullContractfcCodefcParamNotesSafe fcStoreNotesExtInstr TEST_ASSERTPRINTDOC_ITEMunPrintCommentInstrWithNotesInstrWithVarNotes FrameInstrSeqNopExtNestedDocGroupAnnCARAnnCDRCONCAT' ConstraintDUGConstraintDUG' ConstraintDIGConstraintDIG'ConstraintDIPNConstraintDIPN' PackedNotes mkStackRef fcParamNotesmapFullContractCode$fShowPackedNotes$fIsStringPrintComment $fNFDataInstr $fMonoidInstr$fSemigroupInstr$fSemigroupPrintComment$fMonoidPrintComment$fShowExtInstr$fShowFullContract $fShowInstrconvertContractconvertFullContract untypeValue instrToOps $fEqInstr OperationCtorEffectsAppceaNameceaApplyEffects DfsSettings dsGoToValuesdsCtorEffectsAppdfsInstr dfsFoldInstrdfsModifyInstr linearizeLeft isStringValue isBytesValueallAtomicValues$fShowCtorEffectsApp$fDefaultDfsSettings$fShowDfsSettingsIsoValuesStack toValStack fromValStackToTs'ToTsGenericIsoValue GIsoValue GValueTypeBigMapunBigMap ContractRef crAddress crEntryPointSomeEntryPointCall IsComparable AnyIsoValue SomeIsoValueToT'IsoValueToTtoValfromVal IsoCValueToCTtoCValfromCValcoerceContractRefcontractRefToAddrtotsKnownLemmatotsAppendLemma$fIsoCValueTimestamp$fIsoCValueKeyHash$fIsoCValueEpAddress$fIsoCValueAddress$fIsoCValueMutez$fIsoCValueByteString$fIsoCValueBool$fIsoCValueText$fIsoCValueMText$fIsoCValueNatural$fIsoCValueInteger $fGIsoValueU1$fGIsoValue:*:$fGIsoValue:+: $fGIsoValueM1 $fGIsoValueK1$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$fIsoValueContractRef$fBuildableContractRef$fIsoValuesStack:$fIsoValuesStack[] $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$fBuildableDocTypeRepLHSRequireSumTypeCanHaveEntryPointsShouldHaveEntryPointsunHasEntryPoints ctorNameToAnn$fGenericShouldHaveEntryPoints$fIsoValueShouldHaveEntryPoints buildInstrDocmodifyInstrDoccutInstrNonDoc TcExtFrames BoundVars SomeContract SomeCValue:--:SomeNotedValue:::: SomeInstr:/ SomeInstrOut::: AnyOutInstrSomeHSTHSTSNil::&-:&mapSomeContract noBoundVars$fEqHST $fShowHST $fEqSomeHST$fShowSomeInstrOut$fShowSomeInstr$fShowSomeNotedValue$fShowSomeContract $fShowSomeHSTExtErrorLengthMismatchVarError TypeMismatch TyVarMismatchStkRestMismatchTestAssertErrorInvalidStackReference StackSizeTCErrorTCFailedOnInstrTCFailedOnValueTCContractErrorTCUnreachableCode TCExtError TCTypeErrorAnnError TypeEqError StackEqErrorUnsupportedTypesInvalidValueTypeNotEnoughItemsOnStackIllegalEntryPointUnknownContractEntryPointNotFoundIllegalParamDecl NegativeNat MutezOverflowInvalidAddressInvalidKeyHashInvalidTimestampNotEnoughItemsInstr NotEnoughDrop NotEnoughDip NotEnoughDig NotEnoughDug$fBuildableNotEnoughItemsInstr$fBuildableTCTypeError$fBuildableExtError$fExceptionTCError $fShowTCError$fBuildableTCError$fShowNotEnoughItemsInstr$fEqNotEnoughItemsInstr$fShowTCTypeError$fEqTCTypeError$fShowStackSize $fEqStackSize $fEqExtError $fEqTCError TypeCheckEnv tcExtFramestcContractParam tcContractsTcOriginatedContracts TypeCheckTcInstrHandlerTypeCheckInstrTcResulttcContractParamL tcContractsL tcExtFramesL runTypeCheckrunTypeCheckIsolatedrunTypeCheckInstrIsolated mapTCErrorderiveSpecialFNsderiveSpecialVNderiveVN deriveNsOrderiveNsOption convergeHSTEl convergeHSTonLefthstToTseqHSTeqHST1 lengthHSTensureDistinctAsccheckEqTeqType checkEqHSTonTypeCheckInstrErrtypeCheckInstrErrtypeCheckInstrErr'onTypeCheckInstrAnnErr typeCheckImpl matchTypesmemImplgetImplupdImplsizeImpl sliceImpl concatImpl' concatImpl arithImpladdImpledivImplsubImplmulImplunaryArithImpltypeCheckCValuetypeCheckValImpl typeCheckExttypeCheckContract typeCheckListtypeCheckValuetypeVerifyValuetypeVerifyTopLevelTypetypeCheckTopLevelType minTimestamp maxTimestamp midTimestamp$fArbitraryTimestamp$fArbitraryMutez$fArbitraryCValue$fArbitraryValue'$fArbitraryValue'0$fArbitraryValue'1$fArbitraryValue'2$fArbitraryCValue0$fArbitraryCValue1$fArbitraryCValue2 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$fShowGStateUpdateErrorprintUntypedContractprintTypedContractprintTypedFullContractprintTypedValueprintSomeContractMacroCASETAGACCESSSET CONSTRUCTVIEWVOIDCMPIFXIFCMPFAILPAPAIRUNPAIRCADRSET_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$fBuildableCadrStruct$fBuildableMacro$fBuildableParsedOp$fRenderDocParsedOp$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 intLiteralmkLetValnotenoteVnoteDef noteV2DefnotesTVF notesTVF2 notesTVF2DefnotesVFnotesTVnotesTF fieldTypetype_ comparableextInstr printComment stackType primInstrops'cmpOppairOpmapOpmacropairMac mapCadrMacifCmpMacletBlockletTypemkLetMac parseNoEnvprogramvalue parseValueparseExpandValue codeEntryutypeQtransformStringstransformBytes UnpackError unUnpackError unpackValue unpackValue' unpackInstr'decodeContract$fExceptionUnpackError$fBuildableUnpackError$fShowUnpackError$fEqUnpackError packValue packValue' encodeValue'packT' packCode'encodeIntPayload packNotedT'Rule OptimizerConf gotoValuesrulesetoptimizeoptimizeWithConf defaultRulesdefaultRulesAndPushPackorRule orSimpleRule$fDefaultOptimizerConfOpSizeunOpSizeopSizeHardLimitsmallTransferOpSize instrOpSizeexpandedInstrsOpSize valueOpSize$fMonoidOpSize$fSemigroupOpSize$fAnnsOpSizeVarargOpSize$fAnnsOpSizeVararg->$fAnnsOpSizeVararg->0 $fShowOpSize $fEqOpSize $fOrdOpSizeEvalOpInterpreterState isMorleyLogsisRemainingStepsRemainingSteps SomeItStackContractReturn MorleyLogs unMorleyLogsInterpretResultiurOps iurNewStorage iurNewStateInterpretErrorRuntimeFailureIllTypedContract IllTypedParamIllTypedStorageUnexpectedParamTypeUnexpectedStorageTypeMichelsonFailedMichelsonFailedWithMichelsonArithErrorMichelsonGasExhaustionMichelsonFailedTestAssertMichelsonAmbigousEpRef ContractEnvceNow ceMaxSteps ceBalance ceContractsceSelfceSourceceSenderceAmount ceChainId noMorleyLogsinterpretUntypedhandleContractReturn interpretinterpretInstrrunInstr runInstrNoGas runUnpack$fBuildableMichelsonFailed$fEqMichelsonFailed$fBuildableInterpretError$fEqMorleyLogs$fShowMorleyLogs$fDefaultMorleyLogs$fBuildableMorleyLogs$fGenericInterpretError$fShowRemainingSteps$fEqRemainingSteps$fOrdRemainingSteps$fBuildableRemainingSteps$fNumRemainingSteps$fShowInterpreterState$fShowInterpretResult$fShowInterpretError$fShowMichelsonFaileddummyNow dummyMaxStepsdummyContractEnvdummyOrigination ExecutorRes _erGState _erOperations _erUpdates_erInterpretResults_erSourceAddress_erRemainingSteps ExecutorOp OriginateOp TransferOp$fShowExecutorOp$fShowExecutorRes ExecutorErrorExecutorError'EEUnknownContractEEInterpreterFailedEEAlreadyOriginatedEEUnknownSenderEEUnknownManagerEENotEnoughFundsEEZeroTransactionEEFailedToApplyUpdatesEEIllTypedContractEEIllTypedStorageEEIllTypedParameterEEUnknownEntrypointerInterpretResults erUpdates parseContractparseExpandContractreadAndParseContractprepareContractoriginateContract runContracttransfer executorPuretypeCheckWithDb$fSemigroupExecutorRes$fExceptionExecutorError'$fBuildableExecutorError'$fShowExecutorError'ContractPropValidator contractPropcontractPropValhasEpcontractHasEntryPointsmatchContractEntryPointsValidationErrorUnexpectedExecutorErrorUnexpectedTypeCheckErrorExpectingInterpreterToFailIncorrectUpdatesIncorrectStorageUpdateInvalidStorageStoragePredicateMismatchInvalidBalanceUnexpectedUpdatesCustomValidationErrorIntegrationalScenarioIntegrationalScenarioMSuccessValidatorIntegrationalValidator$fBuildableScenarioBranchName$fBuildableAddressName$fExceptionValidationError$fBuildableValidationError$fShowExpectedStorage$fShowExpectedBalance$fShowAddressName$fShowValidationErrorintegrationalTestExpectationintegrationalTestProperty originatevalidateintegrationalFail modifyNowsetNow rewindTime setMaxSteps withSender setChainId branchout?-offshootexpectAnySuccessexpectNoUpdatesexpectNoStorageUpdates expectStorageexpectStorageUpdateexpectStorageUpdateConstexpectStorageConst expectBalancecomposeValidatorscomposeValidatorsListexpectGasExhaustionexpectMichelsonFailed$fBuildableScenarioErrorTypicalFailWithConstantScope'typicalFailWithTagisTypicalFailWithmodifyTypicalFailWith$fConstantScope'a AnalyzerResarConstStrings arConstBytes arErrorTagsanalyze$fMonoidAnalyzerRes$fSemigroupAnalyzerRes$fBuildableAnalyzerRes$fShowAnalyzerRes$fEqAnalyzerResEDivOpHs EDivOpResHs EModOpResHs SliceOpHs ConcatOpHsGetOpHs GetOpKeyHs GetOpValHsUpdOpHs UpdOpKeyHs UpdOpParamsHsSizeOpHsIterOpHs IterOpElHsMapOpHs MapOpInpHs MapOpResHs IsoMapOpResMemOpHs MemOpKeyHs$fMemOpHsBigMap $fMemOpHsMap $fMemOpHsSet $fMapOpHs[] $fMapOpHsMap $fIterOpHsSet $fIterOpHs[] $fIterOpHsMap $fSizeOpHsMap $fSizeOpHs[] $fSizeOpHsSet$fSizeOpHsByteString$fSizeOpHsMText $fUpdOpHsSet$fUpdOpHsBigMap $fUpdOpHsMap$fGetOpHsBigMap $fGetOpHsMap$fConcatOpHsByteString$fConcatOpHsMText$fSliceOpHsByteString$fSliceOpHsMText$fEDivOpHsMutezNatural$fEDivOpHsMutezMutez$fEDivOpHsNaturalNatural$fEDivOpHsNaturalInteger$fEDivOpHsIntegerNatural$fEDivOpHsIntegerIntegerNiceComparableNicePrintedValueNiceFullPackedValueNiceUnpackedValueNicePackedValue NiceConstant NiceStorage NiceParameter CanHaveBigMapNoBigMapNoContractType NoOperation KnownCValue KnownValueniceParameterEviniceStorageEviniceConstantEvinicePackedValueEviniceUnpackedValueEvinicePrintedValueEvi $fKnownValuea$fKnownCValuea$fNoOperationa$fNoContractTypea $fNoBigMapa$fCanHaveBigMapaEpdNone TrustEpNameHasDefEntryPointArgHasEntryPointArguseHasEntryPointArgGetEntryPointArgCustomNiceEntryPointName EntryPointRef CallDefaultCallNoExplicitDefaultEntryPointForbidExplicitDefaultEntryPointGetDefaultEntryPointArgGetEntryPointArgLookupParameterEntryPointAllParameterEntryPointsGetParameterEpDerivationParameterDeclaresEntryPointsParameterHasEntryPointsParameterEntryPointsDerivationEpConstructionRes EpConstructedEpConstructionFailedRequireAllUniqueEntryPointsRequireAllUniqueEntryPoints'EntryPointsDerivationEpdAllEntryPointsEpdLookupEntryPointepdNotesepdCallpepNotespepCallparameterEntryPointsToNotesparameterEntryPointCallparameterEntryPointCallDefaultsepcCallRootCheckedeprNameparameterEntryPointCallCustomflattenEntryPoints#$fHasEntryPointArgkcpTrustEpNamearg$$fEntryPointsDerivationTYPEEpdNonecp($fHasEntryPointArgTYPEcpEntryPointRefargFromContractReffromContractRef ToContractRef toContractRef ToTAddress toTAddress ToAddress toAddressFutureContractunFutureContractTAddress unTAddressListcallingTAddresscallingDefTAddressconvertContractRef$fIsoValueFutureContract$fToAddressContractRef$fToAddressFutureContract$fToAddressTAddress$fToAddressEpAddress$fToAddressAddress$fToTAddresscpTAddress$fToTAddresscpAddress$fToContractRefargTAddress$fToContractRefcpFutureContract$fToContractRefcpContractRef$fFromContractRefcpAddress$fFromContractRefcpEpAddress!$fFromContractRefcpFutureContract$fFromContractRefcpContractRef$fGenericTAddress$fIsoValueTAddressUnaryArithOpHsUnaryArithResHs ArithOpHs ArithResHs$fArithOpHsLsrNaturalNatural$fArithOpHsLslNaturalNatural$fArithOpHsXorBoolBool$fArithOpHsXorNaturalNatural$fArithOpHsAndBoolBool$fArithOpHsAndNaturalNatural$fArithOpHsAndIntegerNatural$fArithOpHsOrBoolBool$fArithOpHsOrNaturalNatural$fArithOpHsMulMutezNatural$fArithOpHsMulNaturalMutez$fArithOpHsMulIntegerInteger$fArithOpHsMulNaturalNatural$fArithOpHsMulIntegerNatural$fArithOpHsMulNaturalInteger$fArithOpHsSubMutezMutez $fArithOpHsSubTimestampTimestamp$fArithOpHsSubTimestampInteger$fArithOpHsSubIntegerInteger$fArithOpHsSubNaturalNatural$fArithOpHsSubIntegerNatural$fArithOpHsSubNaturalInteger$fArithOpHsAddMutezMutez$fArithOpHsAddIntegerTimestamp$fArithOpHsAddTimestampInteger$fArithOpHsAddIntegerInteger$fArithOpHsAddNaturalNatural$fArithOpHsAddIntegerNatural$fArithOpHsAddNaturalInteger$fUnaryArithOpHsGeInteger$fUnaryArithOpHsLeInteger$fUnaryArithOpHsGtInteger$fUnaryArithOpHsLtInteger$fUnaryArithOpHsNeqInteger$fUnaryArithOpHsEq'Integer$fUnaryArithOpHsNotBool$fUnaryArithOpHsNotNatural$fUnaryArithOpHsNotInteger$fUnaryArithOpHsNegNatural$fUnaryArithOpHsNegInteger$fUnaryArithOpHsAbsInteger lPackValue lUnpackValueParameterWrapperunParameterWraper$fWrappedParameterWrapper)$fParameterHasEntryPointsParameterWrapper2$fEntryPointsDerivationTYPEPwDerivParameterWrapper$fGenericParameterWrapper$fIsoValueParameterWrapperLambda&%>:-> LorentzInstrunLorentzInstrFII iGenericIfiAnyCodeiNonFailingCode iMapAnyCode iForceNotFailiWithVarAnnotations###parseLorentzValuetransformStringsLorentztransformBytesLorentzoptimizeLorentzWithConfoptimizeLorentz $fMonoid:->$fSemigroup:->$fBuildableParseLorentzError $fShow:->$fEq:->$fShowParseLorentzError$fEqParseLorentzError ZipInstrsZipInstr ZippedStackzipInstr unzipInstr zippingStackunzippingStack $fIsoValue:-> $fZipInstr: $fZipInstr:0 $fZipInstr[] GHasTypeAnn gGetTypeAnn HasTypeAnn getTypeAnn$fHasTypeAnn:->$fHasTypeAnnOperation'$fHasTypeAnn[]$fHasTypeAnnSet$fHasTypeAnnBigMap$fHasTypeAnnMap$fHasTypeAnnContractRef$fHasTypeAnnSignature$fHasTypeAnnPublicKey$fHasTypeAnnTimestamp$fHasTypeAnnKeyHash$fHasTypeAnnEpAddress$fHasTypeAnnAddress$fHasTypeAnnMutez$fHasTypeAnnByteString$fHasTypeAnnBool$fHasTypeAnnMText$fHasTypeAnnNatural$fHasTypeAnnInteger$fHasTypeAnnMaybe$fHasTypeAnnNamedF$fHasTypeAnnNamedF0$fGHasTypeAnnK1$fGHasTypeAnn:*:$fGHasTypeAnn:+:$fGHasTypeAnnM1$fGHasTypeAnnU1 $fHasTypeAnna EpdDelegate EpdRecursiveEpdPlain $fGEntryPointsNotesmodeEPLeaf:*:$fGEntryPointsNotesmodeEPLeafU1*$fGEntryPointsNotesEpdDelegateEPDelegateK1$fGEntryPointsNotesmodeepM1$fGEntryPointsNotesmodeEPNodeM1 $fGEntryPointsNotesmodeEPNode:+:$fGEntryPointsNotesmodeepM10#$fGEntryPointsNotesEpdRecursiveepK1($fEntryPointsDerivationTYPEEpdDelegatecp)$fEntryPointsDerivationTYPEEpdRecursivecp%$fEntryPointsDerivationTYPEEpdPlaincp#$fGEntryPointsNotesmodeEPDelegateM1$fGEntryPointsNotesmodeEPLeafM1CompilationOptionscoDisableInitialCastcompileLorentzcompileLorentzContract!compileLorentzContractWithOptionsinterpretLorentzInstrinterpretLorentzLambdaanalyzeLorentzprintLorentzValueprintLorentzContract TestScenarioshowTestScenario$fGenericParameter$fIsoValueParameternonZeroLorentzFunctorlmapConstraintDIPNLorentznopdropdropNdupswapdigPeanodigdugpushsomenoneunitifNonepaircarcdrleftrightifLeftnilconsifConssizeemptySetemptyMap emptyBigMapmapitermemgetupdateif_looploopLeftlambdaexecexecuteapplydip dipNPeanodipNfailWithcastpackunpackconcatconcat'sliceaddsubrsubmuledivabsneglsllsrorandxornotcompareeq0neq0lt0gt0le0ge0int toTAddress_self selfCallingcontractcontractCallingcontractCallingUnsaferunFutureContractepAddressToContracttransferTokens setDelegatecreateContractimplicitAccountnowamountbalanceblake2B stepsToQuotasourcesenderaddresschainIdframedfailingWhenPresent updateNew$fLorentzFunctorMaybe$fNonZeroNatural$fNonZeroIntegerdupTdipTdropT$fDupTorigSta:$fDupTorigSta:0$fDupTorigSta[]$fDipTorigSta:dipInpdipOutout1$fDipTorigSta:dipInpdipOutout$fDipTorigSta[]dipInpdipOutoutstackRef testAssert Entrypoint_ Entrypoint Coercible_ CanCastTo castDummyMichelsonCoercible forcedCoerce forcedCoerce_gForcedCoerce_ fakeCoerce fakeCoercing coerceWrap coerceUnwraptoNamed fromNamed checkedCoercecheckedCoerce_checkedCoercing_allowCheckedCoerceToallowCheckedCoerce*$fCanCastToTYPETYPEFutureContractEpAddress"$fCanCastToTYPETYPEAddressTAddress"$fCanCastToTYPETYPETAddressAddress$fCanCastToTYPETYPEMaybeMaybe$fCanCastToTYPETYPE:->:->$fCanCastToTYPETYPE(,)(,)$fCanCastToTYPETYPE[][]$fCanCastTokkaaExtensibleHasDocextensibleDocNameextensibleDocDependenciesextensibleDocMdDescriptionExtConversionErrorConstructorIndexNotFoundArgumentUnpackFailedWrapExtCExtVal ExtensibletoExtVal fromExtValwrapExt$fWrappedExtensible$fWrapExtNoFields$fWrapExtOneField$fBuildableExtConversionError$fGExtValkt:+:$fGExtValTYPEtM1$fGExtValTYPEtM10 $fGExtValktM1$fTypeHasDocExtensible$fDocumentCtorCtor$fGenericExtensible$fEqExtensible$fShowExtensible$fIsoValueExtensible$fEqExtConversionError$fShowExtConversionErrorCaseTC CaseArrow/-> CaseClauseLHasFieldsOfType:= NamedFieldHasFieldOfTypeHasFieldtoField toFieldNamedgetField getFieldNamedsetField modifyField construct constructT fieldCtorwrap_case_caseT unwrapUnsafe_$fCaseArrownamebodyCaseClauseLDocTest dtDeclLocdtDescdtSuite mkDocTestexcludeDocTestexcludeDocTests runDocTestsexpectDocTestFailureforEachContractLayerforEachContractDocItemtestContractNameAtToptestDocNotEmptytestNoAdjacentDescriptions testDocBasic$fBuildableDocTest $fShowDocTest $fEqDocTestdocdocGroup contractNamebuildLorentzDocrenderLorentzDoccutLorentzNonDoc$fTypeHasDoc:->PickMarkedFieldsGetUStoreFieldMarkerGetUStoreFieldGetUStoreValue GetUStoreKey GetUStoreFSMarkerFSValueMSValueMSKey ElemSignature MapSignatureFieldSignatureKnownUStoreMarkerShowUStoreFieldmkFieldMarkerUKeyUStoreSubmapKeyTUStoreSubmapKeyUMarkerPlainField UStoreFieldUStoreMarkerTypeUStoreFieldExt unUStoreField|~> UStoreSubMapunUStoreSubMapUStoreunUStoremkFieldMarkerUKeyL mkFieldUKey$fTypeHasDocUStore$fWrappedUStore$$fKnownUStoreMarkerUMarkerPlainField $fEqUStore $fShowUStore$fGenericUStore$fDefaultUStore$fSemigroupUStore$fMonoidUStore$fIsoValueUStore$fMemOpHsUStore$fGetOpHsUStore$fUpdOpHsUStore $fShow|~>$fEq|~> $fDefault|~>$fShowUStoreFieldExt$fEqUStoreFieldExt CoverDiffMany CoverDiff DiffCoverageDcAddDcRemoveRequireEmptyDiffShowDiff BuildDiffAllUStoreFieldsFLinearizeUStoreFLinearizeUStoreDiffItemDiffKindToAddToDel FieldInfoUStoreFieldsAreUnique liftUStore unliftUStore$fGenericMyStoreTemplate$fGenericMyStoreTemplateBig MigrationAtommaNamemaScript maActionsDescDMigrationActionDesc manActionmanField manFieldTypeDMigrationActionType DAddAction DDelActionMigrationScript_MigrationScriptToMigrationScriptFromMigrationScriptunMigrationScriptUStore_ SomeUTemplatemanualWithOldUStoremanualWithNewUStoremanualMapMigrationScriptmanualConcatMigrationScriptsattachMigrationActionName$fCanCastToTYPETYPEUStoreUStore1$fCanCastToTYPETYPEMigrationScriptMigrationScript$fTypeHasDocMigrationScript$fWrappedMigrationScript$fBuildableDMigrationActionType$fDocItemDMigrationActionDesc$fShowMigrationScript$fGenericMigrationScript$fIsoValueMigrationScript$fShowDMigrationActionType$fShowDMigrationActionDesc$fShowMigrationAtomUStoreMigrationCompiledcompiledMigrationContentMigrationBatchingMUStore MUStoreUnsafeMigrationBlocksUStoreMigrationmaActionsDescLmaNameL maScriptLmigrationToLambdamapMigrationCodeformMigrationAtom mbBatchesAsIs mbNoBatchingmkUStoreBatchedMigrationmkUStoreMigrationcompileMigrationmigrationToScriptsmigrationToScriptsListmigrationToScriptImigrationToScriptmigrationToInfomigrationStagesNumbuildMigrationPlan$fGenericMUStore$fIsoValueMUStore SlBatchInfoslbiType slbiActions SlBatchTypeSlbtData SlbtLambda SlbtCustom SlbtUnknownmbSeparateLambdas$fBuildableSlBatchInfo$fShowSlBatchType$fEqSlBatchType EntryArrow#->DocumentEntryPointsDeriveCtorFieldDocderiveCtorFieldDocDEntryPointArgepaArgepaHasAnnotation epaBuildingepaTypeParamBuildingStep pbsEnglish pbsHaskell pbsMichelsonPlainEntryPointsKind DEntryPointdepNamedepSubdiEntryPointToMarkdownconstructDEpArg emptyDEpArg mkDEpUTypemkDEntryPointArgSimpleclarifyParamBuildingSteps entryCase_ entryCasedocumentEntryPoint$fDocItemDEntryPoint$fDocItemDEntryPointArg$fDeriveCtorFieldDocconOneField$fDeriveCtorFieldDocconNoFields$fGDocumentEntryPointskindM1$fGDocumentEntryPointskind:+:$fGDocumentEntryPointskindM10$fEntryArrowTYPEkindnamebody CmdLnArgsPrintDocumentContractRegistryunContractRegistry ContractInfo ciContractciIsDocumented?:: getContractprintContractFromRegistryDoc argParser$fBuildableContractRegistrytestDeclaresParametertestEachEntrypointIsDescribedtestLorentzDoc FailUsingArgCustomErrorNoIsoValueDThrowsDErrorCustomErrorHasDoccustomErrDocMdCausecustomErrDocMdCauseInEntrypointcustomErrClasscustomErrArgumentSemantics ErrorClassErrClassActionExceptionErrClassBadArgumentErrClassContractInternalErrClassUnknownRequireNoArgError CustomErrorceTagceArgErrorArgUnspecifiedError ErrorHasDoc errorDocNameerrorDocMdCauseerrorDocMdCauseInEntrypointerrorDocHaskellRep errorDocClasserrorDocDependenciesIsError errorToVal errorFromVal isoErrorToValisoErrorFromVal failUsingfailUnexpected failCustom failCustom_ typeDocMdDescriptionReferToErrorerrorsDocumentationcustomErrorToValcustomErrorFromValderiveCustomError failUsingArg$fEq->$fIsoValueCustomError$fBuildableErrorClass$fErrorHasDocTYPE->!$fErrorHasDocTYPEUnspecifiedError$fErrorHasDocTYPE()$fErrorHasDocTYPEMText $fIsError->$fIsErrorUnspecifiedError $fIsError()$fIsErrorMText$fErrorHasDocTYPECustomError$fIsErrorCustomError$fDocItemDError $fOrdDError $fEqDError$fDocItemDThrows $fEqDThrows$fGenericUnspecifiedError$fIsoValueUnspecifiedError$fShowCustomError$fEqCustomError VoidResult unVoidResultVoid_ voidParam voidResProxyView viewParamviewCallbackTo mapInsert mapInsertNew deleteMapeqneqgtlegeltifEq0ifNeq0ifLt0ifGt0ifLe0ifGe0ifEqifNeqifLtifGtifLeifGefail_assert assertEq0 assertNeq0 assertLt0 assertGt0 assertLe0 assertGe0assertEq assertNeqassertLtassertGtassertLeassertGe assertNone assertSome assertLeft assertRight assertUsingdropXcloneXduupXframedNpapairppaiirunpaircdarcddrcaarcadrsetCarsetCdrmapCarmapCdrifRightifSomewhen_unless_whenSome setInsert setInsertNew setDeletebuildViewTuple buildViewmkViewwrapView unwrapViewview_mkVoidvoid_addressToEpAddresspushContractRef $fCloneXSas $fCloneXZas$fDuupX[][]Ssas1tail$fDuupXkkS:as1tail$fDuupXkkSsas1tail$fMapInstrsBigMap$fMapInstrsMap$fBuildableView$fBuildableView0$fTypeHasDocView$fBuildableVoid_$fTypeHasDocVoid_$fIsoValueVoidResult$fErrorHasDocTYPEVoidResult$fIsErrorVoidResult$fTypeHasDocVoidResult$fEqView $fShowView $fGenericView$fIsoValueView$fGenericVoid_ $fShowVoid_$fIsoValueVoid_$fGenericVoidResult$fEqVoidResultHasUStoreForAllIn HasUField HasUStorepackSubMapUKeyunsafeEmptyUStore ustoreMem ustoreGet ustoreUpdate ustoreInsertustoreInsertNew ustoreDelete ustoreToFieldustoreGetFieldustoreSetFieldustoreRemoveFieldUnsafe$fKnownUStoreMarkerMarker1$fGenericMyStoreTemplate2$fIsoCValueMyNatural$fIsoValueMyNatural$fGenericMyStoreTemplate3MigrationFinishCheckPositionmigrationFinishmigrateCoerceUnsafemigrateGetFieldmigrateAddFieldmigrateRemoveFieldmigrateExtractFieldmigrateOverwriteFieldmigrateModifyFieldmuBlock muBlockNamed<-->$: mustoreToOld-$fMigrationFinishCheckPositionMigrationBlocks!$fMigrationFinishCheckPosition:->UStoreConversible UStoreContentmkUStoreustoreDecompose fillUStorefillUStoreMigrationBlockmigrateFillUStoreustoreDecomposeFull$fGUStoreConversibleM1$fGUStoreConversibleM10$fGUStoreConversibleU1$fGUStoreConversible:*:$fGUStoreConversibleV1$fGUStoreConversible:+:$fGUStoreConversibleM11$fGUStoreConversibleM12$fGUStoreConversibleM13$fUStoreConversibletemplateUParamLinearizedUParamLinearize CaseUParamUParamFallbackEntryPointsImplEntryPointLookupErrorNoSuchEntryPoint UnpackUParam unpackUParamConstrainedSomeRequireUniqueEntryPointsLookupEntryPointUParam_ SomeInterfaceUParam UParamUnsafe?:EntryPointKindmkUParam unwrapUParamuparamFallbackFail caseUParam caseUParamT uparamFromAdt pbsUParam/$fCustomErrorHasDoc"uparamArgumentUnpackFailed"+$fCustomErrorHasDoc"uparamNoSuchEntryPoint"$fBuildableCustomError$fBuildableCustomError0$fTypeHasDocUParam$fWrappedUParam$fCanCastToTYPETYPEUParamUParam$fBuildableConstrainedSome$fShowConstrainedSome$fCaseArrowname'bodyCaseClauseU $fBuildableEntryPointLookupError$fUnpackUParamc:$fUnpackUParamc[] $fCaseUParam:$fCaseUParam[]$fGUParamLinearizeM1$fGUParamLinearizeM10$fGUParamLinearizeM11$fGUParamLinearize:+:$fGUParamLinearizeM12$fGenericUParam $fEqUParam $fShowUParam$fIsoValueUParam$fGenericEntryPointLookupError$fEqEntryPointLookupError$fShowEntryPointLookupErrorStorageContains~>StoreHasSubmapstoreSubmapOpsStoreSubmapOpssopMemsopGet sopUpdate sopDelete sopInsert StoreHasField storeFieldOps StoreFieldOps sopToField sopSetField stToField stGetField stSetFieldstMemstGetstUpdatestDeletestInsert stInsertNewstoreFieldOpsADTstoreFieldOpsDeeperstoreSubmapOpsDeeperstoreSubmapOpsReferTostoreFieldOpsReferTocomposeStoreFieldOpscomposeStoreSubmapOps$fStoreHasSubmapMapnamekeyvalue"$fStoreHasSubmapBigMapnamekeyvalue#$fStoreHasSubmapUStoremnamekeyvalue$fStoreHasFieldUStorefnameftype StorePieceCStorageSkeletonsMapsFieldsHasStoreForAllInHasStore StoreDeleteC StoreInsertC StoreUpdateC StoreGetC StoreMemC GetStoreValue GetStoreKey|->StoreunStorestoreMemstoreGet storeUpdate storeInsertstoreInsertNew storeDelete storageUnpack storagePack storageMem storageGet storageInsertstorageInsertNew storageDelete storePiecestoreKeyValueList storeLookup!$fStoreHasSubmapStorenamekeyvalue+$fStoreHasSubmapStorageSkeletonnamekeyvalue($fStoreHasFieldStorageSkeletonfnameftype $fEqStore $fShowStore$fDefaultStore$fSemigroupStore $fMonoidStore$fIsoValueStore $fGeneric|-> $fIsoValue|->$fIsoValueMyStoreTemplate$fIsoValueMyStoreTemplate2$fGenericMyNatural$fIsoValueMyStoreTemplate3$fIsoValueMyStoreTemplateBig$fEqStorageSkeleton$fShowStorageSkeleton$fGenericStorageSkeleton$fDefaultStorageSkeleton$fIsoValueStorageSkeleton ConditionHoldsIsSomeIsNoneIsLeftIsRightIsConsIsNilIsZero IsNotZeroIsEqIsNeqIsLtIsGtIsLeIsGeNamedBinConditionPreserveArgsBinCondition>> ifThenElse<.>.<=.>=.==./=. keepIfArgsErrorTagExclusions ErrorTagMapgatherErrorTagsaddNewErrorTagsbuildErrorTagMapexcludeErrorTagsapplyErrorTagMapapplyErrorTagMapWithExclusionsuseNumericErrorserrorFromValNumeric%$fCustomErrorHasDoc"senderIsNotAdmin"Emptyabsurd_"$fCustomErrorHasDoc"emptySupplied"$fTypeHasDocEmpty$fGenericEmpty$fIsoValueEmptyImportContractErrorICEUnexpectedParamTypeICEUnexpectedStorageTypeICEParse ICETypeChecktestTreesWithContracttestTreesWithContractLtestTreesWithUntypedContracttestTreesWithTypedContractconcatTestTreesspecWithContractspecWithContractLspecWithTypedContractspecWithUntypedContract readContractimportContractimportUntypedContract$fExceptionImportContractError$fBuildableImportContractError$fShowImportContractError$fEqImportContractErrorrunGen$fArbitraryUStoreFieldExt$fArbitrary|~>$fArbitraryComparable$fToADTArbitraryComparable $fArbitraryCT$fToADTArbitraryCT $fArbitraryT$fToADTArbitraryT$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$fArbitraryInternalByteStringexpectContractEntrypoints tOriginate lOriginatelOriginateEmpty tTransfer lTransferlCalllCallEPlCallDeflExpectStoragelExpectStorageUpdatelExpectBalancetExpectStorageConstlExpectStorageConstlExpectMichelsonFailedlExpectFailWith lExpectErrorlExpectErrorNumericlExpectCustomErrorlExpectCustomErrorNumericlExpectCustomError_lExpectCustomErrorNumeric_lExpectConsumerStoragelExpectViewConsumerStorage_rcWillNeedParens-wl-pprint-text-1.2.0.1-Ii8GVfRp5HKEISHsOwQWMrText.PrettyPrint.Leijen.TextDocData.Text.Internal.BuilderBuilderdoRender(QuickCheck-2.13.2-1FftnVviu6BCWJanU0jy5VTest.QuickCheck.PropertyChar SomeSingTSomeSingData.Typeable.InternalTypeable SomeSingCTtoSingCTtoSingfromSingtoSingT D:R:SingT0 D:R:SingCT0FailOnNonComparableFailOnContractFoundEachContainsContract ContainsOpforbiddenOpEviforbiddenContractTypeEviversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileNameNonEmpty Fcf.UtilsTyEqmdEscapeAnchorRequireLongerOrSameLength'RequireLongerThan'OfLengthWithTail Data.Data)tasty-ant-xml-1.1.6-lfwv4wuLKY3eSIxLo76NCTest.Tasty.Runners.AntXML antXMLRunnerinvalidMCharErrorSecretKeyEd25519SecretKeySecp256k1 SecretKeyP256Word chainIdPrefixgcastverifyParamNoteswithEpLiftSequence DocItemPosdocItemToMarkdownFulldocItemsOrderByIddocBlockToMarkdowndocItemToBlockGeneralDGitRevisionInfoGHC.ShowShowceaBottomToTopanalyzeInstrFailureGInstrCaseBranch GInstrCase GInstrWrapLNRequireFound GLookupNamedGetNamedLookupNamedResultfailWithWrongCtorGInstrConstructGInstrSetField GInstrGetNamedF GAccessField GLooseSumPolyCTypeHasDocCGProductHasDoc DocTypeRepLHSmapADTRepFieldsbuildFieldNamemodifyInstrAllDoctypeCheckMapVal checkVarscheckFncheckStackTypecreateStackRef typeCheckNEtypeCheckInstr genericIfgenesisAddressesNumgenesisSecrets addAddresssetStorageValue setBalanceLetletInneraddLetletName 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 runInstrImpl runArithOp withStackElemGHC.IO.Handle.FDstdinexecutorIO executeOneOp_isInterpreterLog_isExecutorResult_isContractsNames _isSenderExecutorResOrError ScenarioError ValidatedScenarioBranchName/hspec-expectations-0.8.2-JGqzAaMw3jpJhPKqSPpGFATest.Hspec.ExpectationsregisterInterpretationIfNeeded putResultemptyScenarioBranchappendScenarioBranchFailWithStringFailWithConstantPairFailWithStackValueData.Semigroup.InternalEndoParseLorentzErrorGEntryPointsNotesEntryPointsNotesgMkEntryPointsNotesAllEntryPoints BuildEPTreeEPTreeEPNodeEPLeaf EPDelegatemkEntryPointsNotesmkEpLiftSequence ToTAddress_DipTDupT Castable_ DocumentCtorGExtVal GGetCtorsEnumerateCtorsCtorKindCtor LookupCtorWrapExt packForWrap/tasty-hunit-compat-0.1.0-7fQdqERWwFSJmf00wTwFqSTest.Tasty.HUnittestCase forEachLayer testDescriptionsAreWellFormatted UStoreMarkerDiffCoverageItem LiftToDiffRequireFieldName UStoreFields_sampleWithMyStoremanualWithUStore nubCountingGDocumentEntryPointsgDocumentEntryPointsdocumentEntryPoints CurrentParamCustomErrorReppickFirstSentenceerrorTagToMText MapInstrs mapUpdateConstraintDuupXLorentzDuupXConstraint'_sample7MyStoreTemplate _sample7'MyStoreTemplateBigRequireBeInitialGUStoreConversible gUstoreToValgUstoreFromValgUstoreToScript mkUStoreRecstoreDecomposeRec fillUStoreRecGUParamLinearizecaseUParamUnsafe CaseClauseUCtorNameToLabelGetStoreCtorsNumCtorIdxD:R:ErrorArg"senderIsNotAdmin"D:R:ErrorArg"emptySupplied"GHC.IO.Exception IOException genRareTypegenRareTvalidateStorageCb