! M q      !"#$%&'()*+,-./01234567 8 9 : ;<=> ? @ A B C D E F G H IJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                            !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI J K L M 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&{&|&}'~'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''(((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))) ) ) ) ) ))***************** *!*"*#*$*%*&*'*(*)***+*,*-*.*/*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*{*|*}*~**********+++,,,,,,,,,,-.../000000000000000000000000001111111222222222222222222222222222233344444444444444444444444444444444444444444444444 4 4 4 4 4444444444444444444 4!4"4#4$4%4&4'4(4)4*4+4,5-5.5/505152535455565758596:6;6<6=6>6?6@6A6B6C6D6E6F6G6H6I6J6K6L6M6N6O6P6Q6R6S6T6U6V6W6X6Y6Z6[6\6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6w6x6y6z6{6|6}6~6677777777777777777777777777777777777777777777777777777777778888888888888888888888888888888888888888888888888888888888888888888888888888888 8 8 8 8 8888888888899999999 9!9"9#9$9%9&9'9(9)9*9+9,9-9.9/909192939495969798999:9;9<9=9>9?9@9A9B9C9D9E9F9G9H9I9J9K9L9M9N9O9P9Q9R9S9T9U9V9W9X9Y9Z9[9\9]9^9_9`9a9b9c9d9e9f9g9h9i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:}:~::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;<<<<=========== = = = = ===>>>>>>>>>>>>>>>> >!>">#>$>%>&>'>(>)>*>+>,>->.>/>0>1>2>3>4>5>6>7>8>9>:>;><>=>>>?>@>A>B>C>D>E>F>G>H>I>J>K>L>M>N>O>P>Q>R>S>T>U>V>W>X>Y>Z>[>\>]>^>_>`>a>b>c>d>e>f>g>h>i>j>k>l?m?n?o?p?q?r?s?t?u?v?w?x?y?z?{?|?}?~??????????????????????????????????????@@@@@@@@@@@@@@@@@@@@@@@@@AAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB B B B B BBBBBBBBBBBBBBBBBBB B!C"C#C$D%D&D'D(D)D*D+D,D-D.D/D0D1D2D3D4D5D6D7D8D9D:D;D<D=D>D?D@DADBDCDDDEDFEGEHEIEJEKELEMENEOEPEQERESETEUEVEWEXEYEZE[E\E]E^E_E`EaEbEcEdEeEfEgEhEiEjEkElEmEnEoEpEqErEsEtEuEvEwFxFyFzF{F|F}F~FFFFFFFFFGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGHHIJJJJJKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMM M N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N !N "N #N $N %N &N 'N (N )N *N +N ,N -N .N /N 0N 1N 2N 3N 4N 5N 6N 7N 8N 9N :N ;N <N =N >N ?N @N AN BN CN DN EN FN GN HN IN JN KN LN MN NN ON PN QN RN SN TN UN VN WN XN YN ZN [N \N ]N ^N _O `O aO bO cO dO eO fO gO hO iO jO kO lO mO nO oO pP qP rP sP tP uP vP wP xP yP zQ {Q |Q }Q ~Q Q Q Q Q Q Q Q R R R R R R S S S S S T T T T T T T T T T U U V V V W W W W W X X X X Y Y Y Z Z Z Z Z Z [ [ \ \ \ \ \ \ \ \ \ ] ] ] ] ] ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` !` "a #a $a %a &a 'b (b )b *b +c ,c -c .c /c 0c 1c 2c 3c 4c 5c 6c 7c 8c 9c :c ;c <c =c >c ?c @c Ac Bc Cc Dc Ec Fc Gc Hc Ic Jc Kc Lc Mc Nc Oc Pc Qc Rc Sc Td Ud Vd Wd Xd Yd Zd [d \d ]d ^d _d `d ad bd cd dd ed fd gd hd id jd kd ld md nd od pd qd rd sd td ud vd wd xd yd zd {d |d }d ~d d d d d d e e e e e f f f f f f f f f f f g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g h h h h h h h h h h h h h h h h h h h h h h h h h                           i i i i i i 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 0j 1j 2k 3k 4k 5k 6k 7k 8k 9k :k ;k <k =k >k ?k @k Ak Bk Ck Dk Ek Fk Gk Hk Ik Jk Kk Lk Mk Nk Ol Pl Ql Rl Sl Tl Ul Vl Wl Xl Yl Zm [m \m ]m ^n _n `n an bn cn dn en fn gn hn in jn kn ln mn nn on pn qn rn sn tn un vn wn xn yn zn {n |n }n ~n n n n n n n n n n n n n n n o o o o o p p 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 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 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 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 s s s s 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 - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E Fv Gv Hv Iv Jv Kv Lv Mw Nw Ow Pw Qw Rw Sw Tw Uw Vw Ww Xw Yw Zw [w \w ]w ^w _w `w aw bw cw dw ew fw gw hw iw jw kw lw mw nw ow pw qw rw sw tw uw vw ww xw yw zw {x |x }x ~x x x x x x x x x x x x x y 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 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{|}~None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk -,  /.#$)(;<=$= -,/. #)(<;None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkŷ MNOPQRSTUVWXY XVWTUYMNOPQRSNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkymorleyA 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.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.yz{|}~{|}yz~None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk,morleyA ' that always failes with given message.morleyA  that always succeeds.morleyThe  holds on `Left a`.morleyThe  holds on `Right b`.None0!"#$%&',-.01245678=>?@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]).None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk8morleyPrints 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`None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkmorleyKFor implicit account, which type its parameter seems to have from outside.IINone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkz (morley8A stack function that expresses the type signature of a LetMacro-morleyA stack pattern-match1morley"A type-variable or a type-constant6morleyA reference into the stack.8morley3Implementation-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).9morley,Matches current stack against a type-pattern:morley'A typed stack function (push and pop a  TcExtFrame);morley8Copy the current stack and run an inline assertion on it<morley'Print a comment with optional embedded StackRefs=morleyConvert -# 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.>morley+Get the set of variables in a stack pattern !"#$%&'()+,*-./0132456789:;<=>89:;<67%&' !"#$45132-./0()+,*>=None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk0{|}~{|}~None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkGmorley6Michelson language type with annotations stripped off.morleyConverts from  to .morley"Format type stack in a pretty way. None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk(9 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 E for 5. Custom instance is implemented in order to inject & constraint for some of constructors.morleyInstance of data family E for .EDCEDCNone1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkW morley6Alias for constraints which are required for printing.morleyAAlias for constraints which Michelson applies to unpacked values.It is different from , e.g. contract- type cannot appear in a value we unpack to.morley?Alias for constraints which Michelson applies to packed values.morleyBAlias for constraints which Michelson applies to pushed constants.morleyBAlias for constraints which Michelson applies to contract storage.morley;Alias for constraints which Michelson applies to parameter.morleyWhether the type contains  , with proof.morley This is like ., it raises a more human-readable error when td type is concrete, but GHC cannot make any conclusions from such constraint as it can for 'HasNoOp.Use it in our eDSL.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.morley9Constraint which ensures that there are no nested bigmapsmorleyEConstraint which ensures that bigmap does not appear in a given type.morleyLConstraint which ensures that contract type does not appear in a given type.morleyMConstraint which ensures that operation type does not appear in a given type.JNot just a type alias in order to be able to partially apply it (e.g. in ).morley.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.morleyWhether 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  is deducable from .morleyReify  contraint from . Left for backward compatibility.morleyReify  contraint from .morleyReify  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 .morley7Check at runtime that the given type does not containt morley=Check at runtime that the given type does not contain nested :021    :    210None1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk[3None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkd:morleyCompute 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.None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkomorleyFError that can happen during parsing of cryptographic primitive types.morley*Encode a bytestring in Base58Check format.morley,Decode a bytestring from Base58Check format.morleyParse 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. morley Template for  'format*' functions.!morley Template for 'parse*' functions."morleyReturns first encountered 2 in a list. If there are none, returns arbitrary %. It is useful to implement parsing.#morley*Do randomized action using specified seed. !"# !"#None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkt1(morleyThis 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.((None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgku45)*)*45None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk~?+morley5Extract 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.+,-,-+None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk+2morleyChange the character encoding of the given Handle to transliterate on unsupported characters instead of throwing an exception../012./012None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk6morley?For datatype with "myNyan" field it will create "myNyanL" lens.667667None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk8morley!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.Fmorley#Text which is hidden until clicked.HmorleyQuasi quoter for Markdown.89:;<=>?@ABCDEFGH:89;<>=?@ABCDEFGH None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkABIJKLMNABKLMNJINone1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk ZmorleyWe 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.morley]W 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 Z , 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 c - 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.hmorleyA convenient alias.We are going to use h. numbers for type-dependent logic and normal K0s in user API, need to distinguish them somehow.lmorley!Get runtime value from singleton.EijKJIZ[\]^_`abcdefghklhKJIgfdeEijklcba`_^[]\ZNone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkumorleyInteger 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.ymorleyCount length of non-empty list.zmorley7Produce a non empty list consisting of the given value.uvwxyzuvwxyz None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk : : None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorley:This is the default set of ingredients extended with the . which is used to generate xml reports for CI.!None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorley,Leads first character of text to lower case.(For empty text this will throw an error.None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkȀ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.morleyDifference between two lists.morley+Remove all occurences of the given element.morley*Reify type equality from boolean equality.morleySplit a record into two pieces.*+L*+LNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk]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. ' !  ' !"None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkm morleyA type error asking to use  instead of '.morleyMichelson string value.DThis is basically a mere text with limits imposed by the language:  @http://tezos.gitlab.io/zeronet/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.#None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk  morley"Secp256k1 cryptographic signature.morley#Secp256k1 secret cryptographic key.morley#Secp256k1 public cryptographic key.morleyThis 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.morley1Deterministicaly generate a secret key from seed.morley&Create a public key from a secret key.morley Convert a  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  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  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  from raw bytes.oTODO (#18): apparently a signature always has 64 bytes, so this format might be correct, but it is not tested.morley$Sign a message using the secret key.morley@Check that a sequence of bytes has been signed with a given key.$None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk4 morleyP256 cryptographic signature.morleyP256 secret cryptographic key.morleyP256 public cryptographic key.morley1Deterministicaly generate a secret key from seed.morley&Create a public key from a secret key.morley Convert a  to raw bytes.TODO (#18): implement properly.morleyMake a  from raw bytes.TODO (#18): implement properly.morley Convert a  to raw bytes.TODO (#18): implement properly.morleyMake a  from raw bytes.TODO (#18): implement properly.morley@Check that a sequence of bytes has been signed with a given key.          %None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk( morley ED25519 cryptographic signature.morley!ED25519 secret cryptographic key.morley!ED25519 public cryptographic key.!morley1Deterministicaly generate a secret key from seed."morley&Create a public key from a secret key.#morley Convert a  to raw bytes.$morleyMake a  from raw bytes.&morley Convert a  to raw bytes.'morleyMake a  from raw bytes.0morley$Sign a message using the secret key.1morley@Check that a sequence of bytes has been signed with a given key. !"#$%&'()*+,-./01 !"#$%&'()*+,-./01&None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkA>morley!Blake2b_160 hash of a public key.@morley<We store which curve was used because it affects formatting.Amorley Hash itself.Bmorley6Which curve was used for the hashed public key inside >.FmorleyDCryptographic signatures used by Tezos. Constructors correspond to L 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.Gmorley4Signature that uses the ed25519 cryptographic curve.Hmorley6Siganture that uses the secp256k1 cryptographic curve.Imorley7Signature that uses the NIST P-256 cryptographic curve.Jmorley-Generic signature for which curve is unknown.KmorleyDSecret cryptographic key used by Tezos. Constructors correspond to L 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.LmorleyvPublic cryptographic key used by Tezos. There are three cryptographic curves each represented by its own constructor.Mmorley5Public key that uses the ed25519 cryptographic curve.Nmorley7Public key that uses the secp256k1 cryptographic curve.Omorley8Public key that uses the NIST P-256 cryptographic curve.PmorleyZDeterministicaly generate a secret key from seed. Type of the key depends on seed length.Qmorley&Create a public key from a secret key.Rmorley Convert a F to raw bytes.SmorleyMake a F4 from raw bytes. Can return only generic signature.UmorleyuCheck 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.2>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`2LMNOKFGHIJBCDE>?@APQRSTUVWXYZ[^_`\]'None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkn}morleynIdentifier 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.#}~#}~(None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorley.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.)None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkmorleyByteString does not have an instance for ToJSON and FromJSON, to avoid orphan type class instances, make a new type wrapper around it.morleydA sequence of elements: can be a list or a set. We can't distinguish lists and sets during parsing.*None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk morley'Data necessary to originate a contract.morleyOriginator of the contract.morleyOptional delegate.morley Initial balance of the contract.morley&Initial storage value of the contract.morleyThe contract itself.morley.Michelson instruction with abstract parameter op. This parameter is necessary, because at different stages of our pipeline it will be different. Initially it can contain macros and non-flattened instructions, but then it contains only vanilla Michelson instructions.morley"DROP n" instruction. Note: reference implementation permits int16 here. Negative numbers are parsed successfully there, but rejected later. Morley is more permissive, so we use  @ here, i. e. permit more positive numbers. We do not permit negative numbers at type level. In practice, probably nobody will ever have numbers greater than "H1000 here, at least due to gas limits. Same reasoning applies to other instructions which have a numeric parameter representing number of elements on stack.morley$ is essentially as special case for 8, but we need both because they are packed differently.qmorley Flatten all n in l. 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).rmorley=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).dTRUVdchAW$% !"#&'()*+,-./0123456789:;<=>?@BCDEFGHIJKLMNOPQSXYZ[\]^_`abefgijklmnopqrdTRUVdchAW$% !"#&'()*+,-./0123456789:;<=>?@BCDEFGHIJKLMNOPQSXYZ[\]^_`abefgijklmnopqr+None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk`None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk. !"#$%&'()+,*-./0132456789:;<=>{|}~TRUVdchAW$% !"#&'()*+,-./0123456789:;<=>?@BCDEFGHIJKLMNOPQSXYZ[\]^_`abefgijklmnopqr,None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorley.Data associated with a particular transaction.-None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk.None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleyBuilding 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./None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkImorleyProduce ( instance for tuple of the given length.0None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkŽ1None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkЖ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.2None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkjmorley>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.morley:Converge two type or field notes (which may be wildcards).3None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleyConvert 7 to the isomorphic set of information from typed world.4None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morley with hidden parameter type."This requires argument to satisfy  constraint. Strictly speaking, entrypoint argument may one day start having different set of constraints comparing to ones applied to parameter, but this seems unlikely.morley4Reference for calling a specific entrypoint of type arg.morleyName of entrypoint.morleyAProxy of parameter, to make parameter type more easily fetchable.morley:How to call this entrypoint in the corresponding contract.morleySDescribes how to construct full contract parameter from given entrypoint argument. This could be just wrapper over Value arg -> Value param, but we cannot use Value type in this module easily.morley<Errors specific to parameter type declaration (entrypoints).morley?Coordinates of "arm" in Or tree, used solely in error messages.morley/Annotations for contract parameter declaration.|Following the Michelson specification, this type has the following invariants: 1. No entrypoint name is duplicated. 2. If default@ entrypoint is explicitly assigned, no "arm" remains uncallable.morleyVAddress with optional entrypoint name attached to it. TODO: come up with better name?morleyAddress itselfmorley Entrypoint name (might be empty)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.morleyvParse an address which can be suffixed with entrypoint name (e.g. "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU%entrypoint").morley4Check whether given notes are valid parameter notes.morley Construct ! performing all necessary checks.morleyBuild .ZHere we accept entrypoint name and type information for the parameter of target contract.Returns K if entrypoint is not found. Does not treat default entrypoints specially.morleyBuild .ZHere we accept entrypoint name and type information for the parameter of target contract.Returns  if entrypoint is not found.morleyKFor implicit account, which type its parameter seems to have from outside.morleyCalls the default entrypoint...5None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkC,morley: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. ,-./012345 ,-./0123456None1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkq m =morley"Representation of Michelson value.Type parameter instr` stands for Michelson instruction type, i.e. data type to represent an instruction of language.MmorleyWWrapper over instruction which remembers whether this instruction always fails or not.cmorleyvData 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.gmorleyMerge two execution branches.hmorley2Get code disregard whether it always fails or not.imorleyModify inner code.jmorleyMake value of contractJ type which refers to the given address and does not call any entrypoint.lmorleyTurn  into actual function on Values.nmorleyIIgnoring distinction between constructors here, comparing only semantics.>,-./0123459:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl>=>?@ABCDEFGHIJKL;<9:SRQPTUVWXYZ,-./012345cdef[\]^_`abMNOghijkl7None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk$8None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk2Bmorley#Marker data type for add operation.morley0Represents an arithmetic error of the operation.morley;Denotes the error type occured in the arithmetic operation.morley1Class for comparison operations, special case of .morleyEvaluate compare 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.##9None3!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk/morley=Keeps documentation gathered for some piece of contract code..Used for building documentation of a contract.morleyAll inlined doc items.morleyDefinitions used in document.Usually you put some large and repetitive descriptions here. This differs from the document content in that it contains sections which are always at top-level, disregard the nesting.All doc items which define  docItemId method go here, and only they.morleyhWe remember all already declared entries to avoid cyclic dependencies in documentation items discovery.morleyWe remember all already used identifiers. (Documentation naturally should not declare multiple items with the same identifier because that would make references to the respective anchors ambiguous).morley@A part of documentation to be grouped. Essentially incapsulates  . morley*A map from positions to document elements.Note that each value in this map keeps a list of doc items, all of which have the same type (since each doc item type is forced to have unique position).!morleyDHides some documentation item which is put to "definitions" section.#morleyHides some documentation item.%morleyHow to render section name.&morleySuitable for block name.'morley+Suitable for subsection title within block.(morleyBDefines an identifier which given doc item can be referenced with.+morley!Where do we place given doc item.,morley&Placed in the document content itself.-morleyAPlaced in dedicated definitions section; can later be referenced.morley'Position of all doc items of some type..morley%Some unique identifier of a doc item.FAll doc items which should be refer-able need to have this identifier.0morleyA 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.1morleyPosition 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.2morleyDefines 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.3morley]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.4morleyDescription of a section.qCan be used to mention some common things about all elements of this section. Markdown syntax is permitted here.5morleyHow to render section name.)Takes effect only if section name is set.6morleyDefines 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.7morleyPRender 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).8morley,All doc items which this doc item refers to.UThey will automatically be put to definitions as soon as given doc item is detected.9morleyThis 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.morleyMake sure several #s have the same type inside.morleyRender a documentation block.=morleyRender documentation for .@morleyTo automatically derive #instance Show Michelson.Typed.Instr later.JmorleyRepository settings for M.Lmorley@By commit sha make up a url to that commit in remote repository.Mmorley"Specify version if given contract.Rmorley"Specify version if given contract.TmorleyDescription of something.VmorleyGive a name to document block.Xmorley: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 M.:t $mkDGitRevisionGitRepoSettings -> DGitRevisionbmorleyBContract documentation assembly primarily relies on this instance.? !"#$%&'()*+,-./0123456789:;<=HIJKLMNOPQRSTUVWXYZ[\]^_`?0123456789:./+,-()*%&'#$!" XY[\Z=<]^;VWTURSMNOPQJKL`_HI:None2!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkq3imorleyyTyped contract and information about annotations which is not present in the contract code. TODO [#12]: rename this to n and the current n to  ContractCode?smorley-A print format with references into the stackvmorley+A reference into the stack of a given type.wmorley=Keeps 0-based index to a stack element counting from the top.zmorleyERepresentation 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 z DROP z DUPO. Special case where there are no instructions is represented by constructor Nop, e.g. IF_NONE {} { SWAP; DROP; } -> IF_NONE Nop (SWAP z 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.|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 o! 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 z also helps to derive the  instance for z as `Sing a` does not have a  instance on its own.morley<Create a stack reference, performing checks at compile time.{ijklmnopqrstuvwxyz}{|~{z}{|~opqrvwstuxynijklm;None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleyConvert 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.<None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk=None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleyCDescribes how intermediate nodes in instruction tree are accounted.morleyName of this way.morley;This function accepts: 1. Effects gathered after applying stepe to node's children, but before applying it to the node itself. 2. Effects gathered after applying step_ to the given intermediate node. 3. Instruction resulting after all modifications produced by step.morley Options for .morleyWhether { function should go into values which contain other instructions: lambdas and constant contracts (which can be passed to CREATE_CONTRACT).morley8How do we handle intermediate nodes in instruction tree.morley@Gather effects first for children nodes, then for their parents.morley4Traverse a typed instruction in depth-first order. c is used to concatenate intermediate results. Each instructions can be changed using the supplied stepO function. It does not consider extra instructions (not present in Michelson).morleySpecialization of 9 for case when changing the instruction is not required.morleySpecialization of ' which only modifies given instruction.morley^Check whether instruction fails at each execution path or have at least one non-failing path.This function assumes that given instruction contains no dead code (contract with dead code cannot be valid Michelson contract) and may behave in unexpected way if such is present. Term "dead code" includes instructions which render into empty Michelson, like Morley extensions. On the other hand, this function does not traverse the whole instruction tree; performs fastest on left-growing combs.Often we already have information about instruction failure, use this function only in cases when this info is actually unavailable or hard to use. morleykThere 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 z& have a single instruction (i. e. not z?) in its second argument. This function also erases redundant ~s. morley/If value is a string, return the stored string. morley7If value is a bytestring, return the stored bytestring. morleyTakes a selector which checks whether an atomic value (i. e. that can not contain another value) can be converted to something. Recursively applies it to all atomic values in potentially non-atomic value. Collects extracted values in a list.Perhaps one day we'll have dfsValue.        >None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk7morley?Isomorphism between Michelson stack and its Haskell reflection.morleyOverloaded version of  to work on Haskell and T stacks.morley1Type function to convert a Haskell stack type to T -based one.morleyEWhether Michelson representation of the type is derived via Generics.morley-Implements ADT conversion to Michelson value.wThanks to Generic, Michelson representation will be a balanced tree; this reduces average access time in general case.A drawback of such approach is that, in theory, in new GHC version generified representation may change; however, chances are small and I (martoon) believe that contract versions will change much faster anyway.morleySince Contract@ name is used to designate contract code, lets call analogy of  type as follows.!morley&A useful property which holds for all  types."morley6Any Haskell value which can be converted to Michelson .$morley4Hides some Haskell value put in line with Michelson .&morleyOverloaded version of ( to work on Haskell and T types.'morley=Isomorphism between Michelson values and plain Haskell types.WDefault implementation of this typeclass converts ADTs to Michelson "pair"s and "or"s.(morley:Type function that converts a regular Haskell type into a T type.)morley"Converts a Haskell structure into Value representation.*morley Converts a Value into Haskell type.+morleyGIsomorphism 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.5morleyQThis instance erases reference to contract entrypoint! If this is an issue, use  instead.sApplications which use addresses just as participants identifiers should not experience problems with using plain ." !"#$%&'()*+,-./01"+,-.'()*&$%"#! /01?None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgkJmorleyPTraverse a single contructor and supply its field to instruction in case clause.morleyGeneric traversal for .omorleyList of r.s required to pattern match on the given type.pmorley*Type information about single case clause.rmorleyuIn what different case branches differ - related constructor name and input stack type which the branch starts with.morleyGeneric traversal for .wmorleymExpect referred constructor to have only one field (otherwise compile error is raised) and extract its type.xmorleyaExpect referred constructor to have only one field (in form of constraint) and extract its type.ymorleyRGet type of constructor fields (one or zero) referred by given datatype and name.zmorley8Whether given type represents an atomic Michelson value.morleyForce result of  to be morley;Transitively find constructor of some sum type by its name.dTransitivity means that if sum type consists of other sum types, they will be searched recursively.morleyEResult of constructor lookup - entry type and path to it in the tree.{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. morleyFailure indicating that we expected value created with one constructor, but got value with different one. The error message is intentionally ugly to keep it relatively short and save on gas.!lmnopqrstuvwxyz{|}~!vtlrspqonm~}|{yxwuz8@None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk[>!morleyGeneric traversal for .morleyConstraint for .morley"Types of all fields in a datatype.morley9Way to construct one of the fields in a complex datatype."morleyGeneric traversal for .morleyConstraint for .#morleyGeneric traversal for  instrAccess.morleyConstraint for .morley@Get type of field by datatype it is contained in and field name.$morleyForce result of % to be &morley,Find field of some product type by its name.2Name might be either field record name, or one in '- if field is wrapped using '(:!)' or '(:?)'.(morley>Result of field lookup - its type and path to it in the tree.morleyEMake an instruction which accesses given field of the given datatype.morleyFor given complex type dt and its field fieldTy update the field value.morleyFor given complex type dt and its field fieldTy update the field value.  None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk]D+lmnopqrstuvwxyz{|}~ANone2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgkh )morley6Pick a field from constructor with zero or one fields.*morleyGeneric traversal for  hsCompose and  hsDecompose.morleyConstraint for  hsDecompose and  hsCompose.morleyjPossible outcomes of an attempt to construct a Haskell ADT value from constructor name and relevant data.morleyComposed fine.morleyNo constructor with such name.morleyRFound required constructor, but type of data does not correspond to provided one.morleyhDecompose Haskell type into constructor name and data it carries, converting the latter into Michelson .morley Inverse to .BNone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkϸ%+morley Version of  for comparable types.morley#Constraint, required when deriving R for polymorphic type with the least possible number of methods defined manually.,morleyProduct type traversal for .morley<Generic traversal for automatic deriving of some methods in .morley$Require this type to be homomorphic.morley=Require two types to be built from the same type constructor.E.g. 2HaveCommonTypeCtor (Maybe Integer) (Maybe Natural) is defined, while +HaveCmmonTypeCtor (Maybe Integer) [Integer] is not.morley'Doc element with description of a type.-morleyCWhen rendering type's inner representation, this stands for name ofHaving this makes sense for polymorhpic types, when you want to render representation of some concrete instantiation of that type.morley"Data hides some type implementing .morley Signature of  function.As in ', set the first element of the pair to  for primitive types, otherwise it stands as some instantiation of a type, and its Michelson representation is given in the second element of the pair.(Examples of rendered representation: *  pair int nat - for homomorphic type. * !MyError Integer = pair string int( - concrete sample for polymorhpic type.morley Signature of  function.When value is 2, it contains types which this type is built from.hFirst element of provided pair may contain name a concrete type which has the same type constructor as a (or just aX for homomorphic types), and the second element of the pair - its unfolding in Haskell.For example, for some 0newtype MyNewtype = MyNewtype (Integer, Natural)= we would not specify the first element in the pair because  MyNewtype? is already a concrete type, and second element would contain (Integer, Natural). For polymorhpic types like 1newtype MyPolyNewtype a = MyPolyNewtype (Text, a)=, we want to describe its representation on some example of ai, because working with type variables is too non-trivial; so the first element of the pair may be e.g. "MyPolyNewType Integer"/, and the second one shows that it unfolds to (Text, Integer).1When rendered, values of this type look like: * (Integer, Natural) - for homomorphic type. * !MyError Integer = (Text, Integer)( - concrete sample for polymorhpic type.morley:Description for a Haskell type appearing in documentation.morley2Name of type as it appears in definitions section.^Each type must have its own unique name because it will be used in identifier for references.Default definition derives name from Generics. If it does not fit, consider defining this function manually. (We tried using 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: *  *  * >If none of them fits your purposes precisely, consider using .morley,All types which this type directly contains."Used in automatic types discovery.morley;For complex types - their immediate Haskell representation. For primitive types set this to .For homomorphic types use  implementation.%For polymorhpic types consider using  as implementation. Modifier ? can be used to hide names of fields, beneficial for newtypes.Another modifier called Q can be used for datatypes to leave only meaningful part of name in every field.morley)Final michelson representation of a type.For homomorphic types use  implementation.%For polymorhpic types consider using  as implementation.morleySWhether given text should be rendered grouped in parentheses (if they make sense).morley`Stands for representation of some Haskell ADT corresponding to Michelson value. Type parameter a\ is what you put in place of each field of the datatype, e.g. information about field type.Outer list layer corresponds to union, and the inner one corresponds to products within constructors. Constructors and fields names are present.morley Show given  in a neat way..morleyRemove fields names from .JSometimes there is no sense in showing them in the doc. Example: newtypes./morley$How field names should be displayed.UResult of this function call should appear right before rendered type of that field.morleyLike : but returns values of more common type which is used in 8.morleyRender a reference to a type which consists of type constructor (you have to provide name of this type constructor and documentation for the whole type) and zero or more type arguments.morleyDerive , for homomorphic types only.morleyDerive 5, for polymorphic type with one type argument, like  Maybe Integer.morleyDerive 6, for polymorphic type with two type arguments, like Lambda Integer Natural.morley Implement 1 via getting all immediate fields of a datatype.lNote: this will not include phantom types, I'm not sure yet how this scenario should be handled (@martoon).morley Implement  for a homomorphic type.1Note that it does not require your type to be of  instance, which can be useful for some polymorhpic types which, for documentation purposes, we want to consider homomorphic. Example: [ is in fact polymorhpic, but we don't want this fact to be reflected in the documentation.morley Implement # on example of given concrete type.+This is a best effort attempt to implement  for polymorhpic types, as soon as there is no simple way to preserve type variables when automatically deriving Haskell representation of a type.morley Version of  which does not ensure whether the type for which representation is built is any similar to the original type which you implement a  instance for.morley2Erase fields from Haskell datatype representation.2Use this when rendering fields names is undesired.morley>Cut fields prefixes which we use according to the style guide.E.g.  cmMyField field will be transformed to myField.morley Implement  for homomorphic type.morley Implement # on example of given concrete type.,This function exists for the same reason as .morley Version of  which does not ensure whether the type for which representation is built is any similar to the original type which you implement a  instance for.$$None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkҎv !"#$%&'()*+,-./01lmnopqrstuvwxyz{|}~v !"#$%&'()*+,-./01lmnopqrstuvwxyz{|}~CNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk!morley Assemble contract documentation.0morley+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.!"#!"#None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkG021EDC    ,-./0123459:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklijklmnopqrstuvwxyz}{|~     !"#$%&'()*+,-./01lmnopqrstuvwxyz{|}~!"#DNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkq $morleyDatatype used in typeCheckStorageOrParameter instead of simple  for more convenience.'morleyState for type checking nop(morley(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.0morleywData type keeping the whole type check result: instruction and type representations of instruction's input and output.2morley]This data type keeps part of type check result - instruction and corresponding output stack.3morley?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.4morley}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).5morleyNo-argument type wrapper for HST data type.7morleyHData 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 7A, assuming that notes and annotations for this type are unknown.$&%'()*+,-./0123456789:;<789:5623401./*+,-$&%()';<1839 97:7ENone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk)FmorleyDVarious type errors possible when checking Morley extension commandsPmorleyType check errorVmorleyData 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.WmorleyAnnotation unify errorXmorleyType equality errorYmorleyStacks equality errorZmorleyError 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 )\morleyEThere are not enough items on stack to perform a certain instruction.]morley Invalid entrypoint name provided_morley"Natural numbers cannot be negative`morleyExceeds the maximal mutez valueamorley:Address couldn't be parsed from its textual representationbmorley:KeyHash couldn't be parsed from its textual representationcmorley!Timestamp is not RFC339 compliantdmorleyWDescription of the instruction which wants more items on stack than currently present.#FGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh#defghVWXYZ[\]^_`abcPQRSTUFGHIJKLMNOFNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk4wmorleyThe 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).morleyRun 0 and modify thrown errors using given functions.wxyz{|}~~|wxyz{}GNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkQmorleyAFunction 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.morley.Check whether typed and untyped types convergemorley%Generic implementation for MEMerationmorleyLHelper function to construct instructions for binary arithmetic operations.morleyLHelper function to construct instructions for binary arithmetic operations.##HNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk`mmorley 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.1morley 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 listINone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkh2morleyDCheck that the optional "forall" variables are consistent if present3morley Executes function body, pushing ExtFrame+ onto the state and checks the pattern in FN.4morley Check that a StackTypePattern& matches the type of the current stack5morley<Create stack reference accessing element with a given index.2Fails when index is too large for the given stack.JNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk6morleyLike  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.7morley 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.8morleyMHelper function for two-branch if where each branch is given a single value.$&%$&%None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkU$&%'()*+,-./0123456789:;<FGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghwxyz{|}~ KNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkkmorley&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).LNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleyState of an arbitrary address.morley5For contracts without code we store only its balance.morley<For contracts with code we store more state represented by .morleyState of a contract with code.morley'Amount of mutez owned by this contract.morley,Storage value associated with this contract.morleyContract itself (untyped).morleyWe keep typed representation of contract code and storage in form, that hides their actual type in order to simplify the rest of the code (e.g. avoid type parameters for c and so on). They are made optional in order to perform safe parsing from JSON (we simply return  in this parser and use  or 6 that optionally typecheck storage or contract code).morleyaPersistent data passed to Morley contracts which can be updated as result of contract execution.morleyIdentifier of chain.morley$All known addresses and their state.morleyExtract balance from .morleyUpdates that can be applied to .9morleyNumber of genesis addresses.:morley6Secrets from which genesis addresses are derived from.morleyKeyHash of genesis address.morley.Initially these addresses have a lot of money.morleyOne of genesis key hashes.morleyOne of genesis addresses.morleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !!morleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !!morleyMore genesis addressesWe know size of genesisAddresses, so it is safe to use !!morleyInitial !. It's supposed to be used if no ? is provided. It puts plenty of money on each genesis address.morleyRead  from a file.morleyWrite  to a file.morleyApply  to .morleyApply a list of s to .;morley.Add an address if it hasn't been added before.<morley3Updare storage value associated with given address.=morley3Updare storage value associated with given address.morley&Retrive all contracts stored in GState++MNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleypConvert 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. {|} {|} NNone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk6 morley6Built-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 1morley%Expand all macros in parsed contract.:                           $ ! " # % ' & ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 :: % ' & ( ) *                        + , - . /   $ ! " #  1 2 : 3 0 4 5 6 7 8 9ONone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk _morley!A programmer-defined type-synonym cmorleyA programmer-defined constant _ ` a b c d e f g _ ` a b c d e f gPNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk pmorley2The environment containing lets from the let-block p q s t r u v u p q s t r vQNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk z { | } ~  z { | } ~  RNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk, 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.  SNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morleyParse untyped  i. Take instruction parser as argument to avoid cyclic dependencies between modules, hence ' in its name.  TNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk )* )*UNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morleyParse untyped Michelson  (i. e. one with annotations).  VNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk  WNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkۄ morleyFParser for primitive Michelson instruction (no macros and extensions). morley!Parse a sequence of instructions.  XNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkb  YNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk>morleyElement of a let block morleylet block parser?morley'Incrementally build the let environment@morley1add a Let to the environment in the correct placeAmorley7build a let name parser from a leading character parser  ZNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morleyParse with empty environment morley'Michelson contract with let definitionsBmorleyMichelson 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.: u  u : [None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk 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  \None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk CmorleyDescribes how DG should decode tag-dependent data. We expect bytes of such structure: E% followed by a bytestring of length F$. This bytestring will be passed to G. morleyAny decoding error.HmorleyAlias for label attaching.ImorleydGet a bytestring of the given length leaving no references to the original data in serialized form.Jmorley-Read a byte and match it against given value.KmorleyFail with "unknown tag" error.LmorleynRead 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.MmorleyLike Na, 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. morley6Deserialize bytes into the given value. Suitable for UNPACK operation only. morleyLike  , for strict byte array.Omorley Overall value decoder we use in UNPACK.Pmorley-Read length of something (list, string, ...).Qmorley9Given decoder for list content, get a whole list decoder.RmorleyRead a numeric value.SmorleyFor UNPACKp we do not consider annotations at all. If they start matter for other purposes some day, remove this function.Tmorley-Type check instruction occured from a lambda.  H0]None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk7 morleySerialize a value given to PACK instruction. morleySame as  , for strict bytestring.Umorley4Lift encoded list content to an entire encoded list.VmorleyEncode a list-like structure.WmorleyEncode a text.XmorleyEncode some raw data.YmorleyEncode some map. morley"Encode contents of a given number.ZmorleyEncode an int-like value.[morleyEncode a code block.\morleyEncode an instruction.  ^None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk% morleyOptimize a typed instruction by replacing some sequences of instructions with smaller equivalent sequences. Applies default set of rewrite rules. morley9Optimize a typed instruction using a custom set of rules. morleyWe do not enable ] rule by default because it is potentially dangerous. There are various code processing functions that may depend on constants, e. g. string transformations.^morleyAppend LHS of zk to RHS and re-run pointwise ruleset at each point. That might cause reinvocation of this function (see  3), but productivity ensures it will flatten any zE-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 z$, you might get an optimisable tree.<The argument is a local, non-structurally-recursive ruleset. morleyCombine two rule fixpoints. morley*Combine a rule fixpoint and a simple rule._morleyTurn rule fixpoint into rule.`morleyDApply the rule once, if it fails, return the instruction unmodified.amorleyAn adapter for .bmorley.Apply a rule to the same code, until it fails. _None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk2T morleyOperation size in bytes.}We use newtype wrapper because there are different units of measure (another one is gas, and we don't want to confuse them). morley9Maximal operation size allowed by Tezos production nodes. morleyRBase cost of any transfer of 0 mutez with no extra parameters. (Add 'valueOpSize  param5' to it to get assessment of actual transfer op size)cmorleyAccepts 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.  `None1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkK morleyMorley interpreter state morleyfRepresents `[FAILED]` state of a Michelson program. Contains value that was on top of the stack when  was called. morley#Environment for contract execution. morleyTimestamp returned by the  instruction. morleyANumber of steps after which execution unconditionally terminates. morley0Current amount of mutez of the current contract. morleyOMapping from existing contracts' addresses to their executable representation. morley$Address of the interpreted contract. morley4The contract that initiated the current transaction. morley=The contract that initiated the current internal transaction. morley"Amount of the current transaction. morley Identifier of the current chain. morleyInterpret a contract without performing any side effects. This function uses untyped representation of contract, parameter and storage. Mostly used for testing. morleyxInterpret a contract without performing any side effects using typed representation of contract, parameter and storage. morley%Emulate multiple calls of a contract. morleyRInterpret an instruction in vacuum, putting no extra contraints on its execution.Mostly for testing purposes. morleyBFunction to change amount of remaining steps stored in State monaddmorleyCFunction to interpret Michelson instruction(s) against given stack.emorley?Evaluates an arithmetic operation and either fails or proceeds. morley*Unpacks given raw data into a typed value.fmorley,Access given stack reference (in CPS style).3           3           aNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkX "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. " # $ % & " # $ % &bNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkd '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  s with some reasonable hardcoded values. You can override values you are interested in using record update syntax. *morley with most data hardcoded to some reasonable values. Contract and initial values must be passed explicitly, because otherwise it hardly makes sense. ' ( ) * ' ( ) *cNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkp +morley,Result of a single execution of interpreter. -morleyNew . .morley7List of operations to be added to the operations queue. /morleyUpdates applied to . 0morleyDuring 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. 1morleyPAs soon as transfer operation is encountered, this address is set to its input. 2morley2Now much gas all remaining executions can consume. 3morleyMOperations 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. 4morleyOriginate a contract. 5morleybSend a transaction to given address which is assumed to be the address of an originated contract. 9morleyEErrors 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. Amorley"Failed to apply updates to GState. BmorleyA contract is ill-typed. CmorleyContract storage is ill-typed DmorleyContract parameter is ill-typed GmorleyParse a contract from #. HmorleyParse a contract from # and expand macros. Imorley,Read and parse a contract from give path or g (if the argument is  ). The contract is not expanded. JmorleyRead a contract using  I8, expand and flatten. The contract is not type checked. KmorleyFOriginate a contract. Returns the address of the originated contract. Lmorley}Run a contract. The contract is originated first (if it's not already) and then we pretend that we send a transaction to it. Mmorley:Send a transaction to given address with given parameters.hmorleyeInterpret a contract on some global state (read from file) and transaction data (passed explicitly). Nmorley&Implementation of interpreter outside i. It reads operations, interprets them one by one and updates state accordingly. Each operation from the passed list is fully interpreted before the next one is considered.jmorley.Run only one interpreter operation and update  accordingly.2 + , - . / 0 1 2 3 4 5 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O2 K L M G H I J O 3 4 5 + , - . / 0 1 2 9 : ; < = > ? @ A B C D 8 N E FdNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk}$kmorley"Operations to be interpreted when  TOValidate is encountered.lmorley4Map from contracts addresses to humanreadable names.mmorleyRIf set, all following transfers will be executed on behalf of the given contract.nmorley.Overall information about test scenario error.omorley$A dummy data type that ensures that  nJ 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. amorleyLValidator 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.pmorley When using branchS function for building test scenarios - names of branches we are currently within. jmorleyoIntegrational test that executes given operations and validates them using given validator. It can fail using q capability. It starts with  and some reasonable dummy values for gas limit and current timestamp. You can update blockchain state by performing some operations. kmorleyIntegrational test similar to  j. It can fail using / capability. It can be used with QuickCheck's forAll4 to make a property-based test with arbitrary data. lmorleyVOriginate a contract with given initial storage and balance. Its address is returned. mmorley!Transfer tokens to given address. nmorleyDExecute all operations that were added to the scenarion since last  n9 call. If validator fails, the execution will be aborted. omorley@Make all further interpreter calls (which are triggered by the  n5 function) use modified timestamp as the current one. pmorley@Make all further interpreter calls (which are triggered by the  n2 function) use given timestamp as the current one. qmorley5Increase current time by the given number of seconds. rmorley@Make all further interpreter calls (which are triggered by the  n function) use given gas limit. smorleyTPretend that given address initiates all the transfers within the code block (i.e. SENDER' instruction will return this address). tmorley@Make all further interpreter calls (which are triggered by the  n function) use given chain id.rmorley?Make branch names for a case when we are not within any branch.smorley4Add a new branch element to names provided by inner branch calls. umorleyaExecute 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. vmorley5Make a tuple with name without extra syntactic noise. wmorleyvTest given scenario with the state gathered till this moment; if this scenario passes, go on as if it never happened. xmorley ` that always passes. ymorley!Check that there were no updates. zmorley)Check that there were no storage updates. {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].3 T U V W X Y Z [ \ ] ^ _ ` a j k l m n o p q r s t u v w x y z { | } ~  3 a ` _ ^ T U V W X Y Z [ \ ] j k l m n r o p q s t u v w  x y z { | ~ }  v0eNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morley,This data type captures typical ways to use ? instruction. Each constructor corresponds to a usage pattern.tmorley(Push a constant string and fail with it.umorleytPush a constant pair where the first item is a string and the second one is an arbitrary constant. Fail afterwards.vmorley%Push a constant string and apply the  instruction, then fail.wmorley!We need this class to pass it to . ' 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.  fNone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgk  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.  gNone1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkq 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 .  hNone1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morley%Constraint applied to parameter type. morley/Ensure given type does not contain "operation". morley2Gathers constraints, commonly required for values.0  0None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk morleyConvert something from  ContractAddr in Haskell world. morleyConvert something 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. morley3Address associated with the contract of given type. Places where  ContractAddrJ can appear are now severely limited, this type gives you type-safety of  ContractAddr" but still can be used everywhere.WThis may be refer to specific entrypoint of the contract, in such case type parameter p1 stands for argument of that entrypoint like in  ContractAddr.BYou still cannot be sure that the referred contract exists though. morley!Turn future contract into actual contract. morley1Make contract ref calling the default entrypoint.H"%345>FL},-./012345 '()*+,-./ H'()*+,-.,-./012345"}>LF3%   / 45iNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk  morleyLifted  UnaryAithOp. morleyLifted AithOp.  jNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk 0 1 0 1kNone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkxmorley;Errors that can happen during parsing into a Lorentz value. 8morley Alias for  93, seems to make signatures more readable sometimes.:Let's someday decide which one of these two should remain. 9morleyAAlias for instruction which hides inner types representation via T. Cmorley`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). DmorleyLorentz version of  . EmorleyLorentz version of  . 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G 9 : ; 8 3 B = < > ? @ A C D E G F 7 6 4 5 2 32 81 91 B8lNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk' Omorley!Require several stacks to comply  P constraint. Pmorley"Zipping stack into tuple and back. Qmorley-A type which contains the whole stack zipped. Rmorley#Fold given stack into single value. Smorley'Unfold given stack from a single value.ymorley Version of  Bk which performs some optimizations immediatelly. Need it here at least because we don't want to surround fromVal (Lambda i o) with nops. Tmorley'Flatten both ends of instruction stack. Umorley)Unflatten both ends of instruction stack. WmorleyHSuch definition seems the only possible one we can support efficiently. O P Q R S T U P Q R S O T UmNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk)q Z [ \ ] Z [ \ ]nNone1!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkCzmorleyGeneric traversal for {.|morleyReturns: 1. Notes corresponding to this level; 2. Field annotation for this level (and which should be used one level above).{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.morley%Ensure that given type is a sum type.LThis helps to prevent attempts to apply a function to, for instance, a pair. ^morleyImplementation of  b. `morley:Parameter annotations which declare necessary entrypoints. amorley+Which entrypoints given parameter declares. dmorleyeNo entrypoints declared, parameter type will serve as argument type of the only existing entrypoint. emorleydFits for case when your contract exposes multiple entrypoints via having sum type as its parameter.In particular, this will attach field annotations to immediate parameter "arms" which will be named as corresponding constructor names. fmorley Similar to pesEntryPointsG, but for case of parameter 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.morley;Turn constructor name into an appropriate field annotation.morleyAMakes up notes with proper field annotations for given parameter. ^ _ ` a b c d e f a b ^ _ ` c d e foNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkIv morleyFor use outside of Lorentz. morley Version of  < specialized to instruction corresponding to contract code. morley3Interpret a Lorentz instruction, for test purposes. morleyLike  9, but works on lambda rather than arbitrary instruction. morleyLorentz version of analyzer.  pNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkM  morley.Pretty-print a Haskell value as Michelson one. morley4Pretty-print a Lorentz contract into Michelson code.  qNone2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgkW morley_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. morley*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`  rNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkf morley(Retain the value only if it is not zero. morley Drop top n elements from the stack. morley Version of  G which uses Peano number. It is inteded for internal usage in Lorentz. morley Similar to  @ 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. morley Version of  G which uses Peano number. It is inteded for internal usage in Lorentz. 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.` ` sNone2!"#$%&',-.01245678;=>?@ACHMNPSUVX_`befgkutmorley<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.  tNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk{ 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.     None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkd morley9Whether two types have the same Michelson representation. morleyBConvert between values of types that have the same representation. morley'Convert between two stacks via failing. morleySpecialized version of   to wrap into a haskell newtype. morleySpecialized version of   to unwrap a haskell newtype. morley"Lift given value to a named value. morleyUnpack named value. morley Make up a  . morleyGet address referred by  . 987          987uNone3!"#$%&',-./012456789;=>?@AHMNPSUVX_`befgk3morley*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                             None1!"#$%&',-.01245678=>?@ACHMNPSUVX_`befgkx .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. 0morleyLorentz analogy of p, it works on plain  types. 2morleyShortcut for multiple  6 constraints. 4morleyA pair of field name and type. 6morleyLike  7&, but allows constrainting field type. 7morley%Allows field access and modification. 8morley]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. 9morleyLike  8, 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. Amorley0Wrap entry in constructor. Useful for sum types. Bmorley$Pattern match on the given sum type.You have to provide a H; containing case branches. To construct a case branch use  / operator. CmorleyLike  B;, 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. Dmorley0Wrap entry in constructor. Useful for sum types.">?@ABHGF - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D" 7 6 2 4 5 3 8 9 : ; < = > ? @ A B C D - . / 0 1HGFAB@>? /0 30vNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkʄ FmorleyPut a document item. GmorleyqGroup documentation built in the given piece of code into block dedicated to one thing, e.g. to one entry point. HmorleyCGive a name to given contract. Apply it to the whole contract code. Kmorley1Leave 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.W:!"#$%&'()*+,-./0123456789:;=HIJKLMNOPQRSTUX]_` F G H I J KW F G I J H K:0123456789:./+,-()*%&'#$!"XTURSMNOPQJKL`_HI;]=wNone2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk Mmorley)Collect all fields with the given marker. NmorleyGet kind of field. Omorley>Get type of plain field. This ignores marker with field type. PmorleyGet type of submap value. QmorleyGet type of submap key. Rmorley9Get map signature from the constructor with a given name. Wmorley-What was found on lookup by constructor name.$This keeps either type arguments of  c or  `. ZmorleyhAllows 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. ^morley Just a plain field used as data. _morley,Specific kind used to designate markers for  `.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  _I is still an open kind (has potentially infinite number of inhabitants).morleyJust a servant type. `morley%Describes plain field in the storage. cmorley-Describes one virtual big map in the storage. fmorleyGathers multple fields and s 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  ` or  c/ and corresponding to single virtual field or  respectively. It's also possible to parameterize it with a larger type which is a product of types satisfying the above property. imorley Shortcut for  \< which accepts not marker but store type and name of entry. M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i f g h c d e ` a b ^ _ ] Z [ \ i Q P O N M W X Y R V U T SxNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk1 {morleyApply multiple coverage steps.morleySingle piece of a coverage. |morleyOApply given diff coverage, returning type of affected field and modified diff. }morleyNCover 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. morleyVHelper type family which dumps error message about remaining diff if such is present. morley5Renders human-readable message describing given diff. morley3Make up a migration diff between given old and new  f templates.morleyLift a list of   to  s via attaching given  .morleyLHelper to make sure that datatype field is named and then extract this name. morley(Get only field names of UStore template. morley>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  ` and  c# 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. { | } ~   } ~  | {yNone1!"#$%&',-.01245678;=>?@AHMNPSUVX_`befgkmorley)Get all fields names accessible in given  f template. morleyLift an  f to another  fA 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  f invariants could get broken. morley Unlift an  f to a smaller  f which is part of the former.RThis function is not intended for use in migrations, only in normal entry points.Surprisingly, despite smaller  f 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  / 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  f, so that it works on a larger  f.  zNone2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgkh(# morley+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. morley"Describes single migration action.In most cases it is possible to derive reasonable description for migration atom automatically, this datatype exactly carries this information. morley3Action on field, e.g. "set", "remove", "overwrite". morleyName of affected field of  f. morleyType of affected field of  f in new storage version. morleyAn action on storage entry. morley9Some sort of addition: "init", "set", "overwrite", e.t.c. morleyRemoval. morleyCode of migration for  f.Invariant: preferably should fit into op size / gas limits (quite obvious). Often this stands for exactly one stage of migration (one Tezos transaction). morleyUStore with hidden template. morleyDummy template for  fV, use this when you want to forget exact template and make type of store homomorphic. morleyAbsolutely empty storage. 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. 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  f# which is currently being migrated. In type-level arguments it keeps Old and new  f: 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 Alias for  3 which accepts UStore templates as type arguments. morley*Keeps information about migration between  fs with two given templates. Note that it is polymorphic over whole storage types, not their templates, for convenience (so that there is no need to export the template). 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  f.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 information about each batch. morleyNumber of stages in migration. morleyRender migration plan.5 5 {None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkv 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  . 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"] |None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgkmorleyTraverse 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 entry point. morley"Argument of the entry point. Pass  if no argument is required. morleyiDescribes a way to lift an entry point argument into full parameter which can be passed to the contract.vSteps are supposed to be applied in the order in which they are given. E.g. suppose that an entry point 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$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 entry point.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 09 instances with appropriate custom descriptions for them. morleyDefault implementation of 7 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  C/, 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.  }None3!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgkW+ morley Signature of  userFailWith. morley$Prompt an error message saying that '! 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 '. morleyImplementation of   via '.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 'V 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.-                           ! " #-                          ! # " ~None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk  ;morleyeNewtype 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. >morleyvoid! type synonym as described in A1. @morleyEntry point argument. AmorleyType of result reported via  . Bmorleyview! type synonym as described in A1.morley(Various convenient instructions on maps.morleySpecialized version of  . FmorleyInsert given element into map. GmorleyWInsert given element into map, ensuring that it does not overwrite any existing entry.=As first argument accepts container name (for error message). HmorleyDelete 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 duupX \morleyxAnalog of the FAIL macro in Michelson. Its usage is discouraged because it doesn't carry any information about failure. omorley[Custom Lorentz macro that drops element with given index (starting from 0) from the stack. pmorleyDuplicate the top of the stack n times.@For example, `cloneX @3` has type `a & s :-> a & a & a & a & s`. qmorleyDUU+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  ,   and  q. 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. rmorley 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  B constructor. morleyTurn   into actual  .,This requires contracts lookup and may fail. morleyPush a value of contract type.Doing this via  H 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.P ; < = > ? @ A B C D E H G F 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 { | } ~  P I J K O L M N P U S T R Q V [ Y Z X W \ ] ^ _ ` a b c d e f g h i j k l m n o p q r x y v w ~  | } s t u z { F G H B C D E > ? @ A ; < = None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk 1 morley1Write down all sensisble constraints which given store satisfies and apply them to  constrained.This store should have  c and  `B 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  fR onto the stack. This function is generally unsafe: if store template contains a  `, the resulting  f3 is not immediately usable. If you are sure that  fn 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  f.This may fail only if  f9 was made up incorrectly during contract initialization. morleyLike getField , but for  f.This may fail only if  f9 was made up incorrectly during contract initialization. morleyLike setField , but for  f. morleyRemove a field from  f, 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 .  None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk ] 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  f. 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  f.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  ds). 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 =$ 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  .   2 7None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk _M None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk |morleyGeneric traversal for   and  .morley"Convert generic value to internal  f representation.morleyParse internal  f/ representation into generic Haskell value of  f", also returning unparsed entries.morley<Convert generic value to a script filling the corresponding  f. morley#Given template can be converted to  f value. morley f( content represented as key-value pairs. morleyMake  f from separate big_map s and fields. morley Decompose  f 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  f from scratch. morley Version of   for batched migrations.4Each field write will be placed to a separate batch. morleyFill  fC 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  `. morleyCase of  c. morleyCase of nested template.  None2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk Vmorley5Generic 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.cYou have to provide all case branches and a fallback action on case when entry point 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 entry point is not found. morley%Implementations of some entry points.,Note that this thing inherits properties of H, e.g. you can Data.Vinyl.Core.rappendY implementations for two entry point 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 entry point argument by its name. morleyqEncapsulates parameter for one of entry points. It keeps entry point 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. morleyHAn entry point 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.cYou have to provide all case branches and a fallback action on case when entry point is not found. morleyLike  (, but accepts a tuple of clauses, not a H. 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  .  None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morley9Remembers parameters it was called with, last goes first.None1!"#$%&',-.01245678=>?@ACHMNPSUVX_`befgk ц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.-morleyPretend 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 .morleyPretend 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 -./morley.Chain two implementations of field operations.eSuits for a case when your store does not contain its fields directly rather has a nested structure.0morley5Chain implementations of field and submap operations.1morley%< can be used as standalone key-value storage if very needed.2morley\ can be used as standalone key-value storage, name of submap is not accounted in this case.! !"#$%&'()*+,-./0! !"#$%&'()*+,.-/09 None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk WNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk 3 M N O P Q Z [ \ ^ _ ` a b c d e f 3 f c d e ` a b ^ _ Z [ \ Q P O N MNone2!"#$%&',-.012456789;=>?@AHMNPSUVX_`befgk J6morleyContract 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 CD 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 C.morley Number of datatype constructors.morleyDPosition of a constructor in the corresponding datatype declaration.CmorleyDescribes one virtual big map.DmorleyGathers multple s under one object.Type argument of this datatype stands for a "map template" - a datatype with multiple constructors, each containing an object of type C% and corresponding to single virtual s. 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 * thus not violating Michelson limitations.See examples below.KmorleyKInsert a key-value pair, but fail if it will overwrite some existing entry.MmorleyUnpack 6 into a pair.NmorleyPack a pair into 6.RmorleyKInsert a key-value pair, but fail if it will overwrite some existing entry.TmorleyLift a key-value pair to D.Further you can use  instance of Store to make up large stores.VmorleyGet a value from store by key.SIt expects map to be consistent, otherwise call to this function fails with error."56789:;<=>?@ABCDEFGHIJKLMNOPQRSTUV"DEFCBAGHIJKL@?>=<;:6789MNOPQRSTUV5None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk rmorleyPredicate for if ... then .. else ...] construction, defines a kind of operation applied to the top elements of the current stack.morley$Aliases for '(#)' used by do-blocks.morleyDefines semantics of if ... then ... else ... construction.&rwvstuxyz{|}~rwvstuxyz{|}~&None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk 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.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 .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).None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk morleyPContract initiator should be contract admin in order to perform this operation.None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk  -,   &/."#$%)(0345987;<=>?@ABHGF:>FL},-./012345!"#$%&'()*+,-./0123456789:;=HIJKLMNOPQRSTUX]_` '()*+,-./ 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G Z [ \ ] ^ _ ` a b c d e f        - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D F G H I J K M N O P Q Z [ \ ^ _ ` a b c d e 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 { | } ~   !"#$%&'()*+,-./0rwvstuxyz{|}~ -,   &/."#$%)(0345987;<=>?@ABHGF:>FL},-./012345!"#$%&'()*+,-./0123456789:;=HIJKLMNOPQRSTUX]_` '()*+,-./ 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G Z [ \ ] ^ _ ` a b c d e f        - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D F G H I J K M N O P Q Z [ \ ^ _ ` a b c d e 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 { | } ~   !"#$%&'()*+,-./0rwvstuxyz{|}~None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk F 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 .None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk I(6 " # $ % & ) ^ _ ` a j k l m n p r u v x y z { | } ~  6 " # $ % & a ` ^ _ j k l m n r p u v  x y z { | ~ }  )None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk Pmorley 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.None0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk kymorleyLike  originate#, but for typed contract and value.morleyLike  originate, but for Lorentz contracts.morley<Originate a contract with empty balance and default storage.morley Similar to  M, for typed values.morley Similar to  M, for Lorentz values.morleyKCall a contract without caring about the source address. Transfers 0 mutez.morley Similar to expectStorageUpdate, for Lorentz values.morleyLike  expectBalance, for Lorentz values.morley Similar to expectStorageConst, for typed stuff.morley Similar to expectStorageConst, 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.? T U V W X Y Z [ \ ] ^ _ ` a j k n p q r s t u v w x y z  ? a ` _ ^ T U V W X Y Z [ \ ] j k n r p q s t u v w  x y zNone0!"#$%&',-.01245678=>?@AHMNPSUVX_`befgk o'N " # $ % & ) T U V W X Y Z [ \ ] ^ _ ` a j k n p q r s t u v w x y z  N " # $ % & a ` ^ _ T U V W X Y Z [ \ ] j k n r p q s t u v w  x y z )          !""##$$%&'()*+,-./0123456789:;<=>?@ABCDEFFGHIJKLMNOPQRSTUVWXYZ[\]^_`abccdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN 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 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I!JKLMNOPQRSTUVWXYZ[\]^_`abcd"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*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*{*|*}*~*********************************************************************************++>+,,,,,,,,,,-.../0000000000000000000000000011111112222222222 2 2 2 2 2222222222222233344 4!4"4#4$4%4&4'4(4)4*4+4,4-4.4/40414243444546474748494:4;4<4=4>4?4@4A4B4C4D4E4F4G4H4I4J44K4L4M4N4O4P4Q4R4S4T4U4V4W4X4Y4Z4[4\4]4^4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n5o5p5q5r5s5t5u5v5w5x5y5z5{6|6}6~6606666666666666666666666666666666666666666666666666666666666666J6K6666777777777777777777777777777777777777777777777777777777777788888888888888888888 8 8 8 8 8888888888888888888 8!8"8#8$8%8&8'8(8)8*8+8,8-8.8/808182838485868788898:8;8<8=8>8?8@8A8B8C8D8E8F8G8H8I8J8K8L8M8N8O8P8Q8R8S9T9T9U9V9W9X9Y9Y9Z9[9[9\9\9]9^9_9`9`9a9b9c9d9e9e9f9g9h9i9j9k9l9m9n9o9p9q9r9s9t9u9v9w9x9y9z9{9|9}9~9~9999999999999999999999999999999::::::>::::::::::::::::::::::a:`:b:c:d:e:f:g:h:i:j:k:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:}:~:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::m:l::::: : :::::: :":::::$:;;;;;#;<<}<<==================>>>>>>>>>>>>>>>>>">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > > > >>>>>>>>>>>>>>>>>>> >!>">#>$>%>&>'>(>)>*>+>,?-?.?/?0?1?1?2?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@e@f@g@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@w@x@y@zA{A|A}A~AAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCDDBDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEE E E E E EEEEEEEEEEEEEEEEEEE E!E"E#E$E%E&E'E(E)E*E+F,F,F-F.F/F0F1F2F3F4F5F6F7F8F9F:G;G<G=G>G?G@GAGBGCGDGEGFGGGHGIGJGKGLGMGNGOGPGQGRGSGTGUGVGWGXGYGZG[G\G]H^H_I`JaJbJcJdJeKfKgKhKiKjKkKlKmKnKoKpKqKrLsLtLuLvLvLwLxLyLzL{L|L}L~LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN N N N N N N N N N N N N N N O O O O O O O O O O O O O O O O O P P P P P !P "P #P $P %P &Q 'Q (Q )Q *Q +Q ,Q -Q .Q /Q 0Q 1Q 2R 3R 4R 5R 6R 7R 8S 9S :S ;S <S =T >T ?T @T AT BT CT DT ET FT GU HU IV JV KV LW MW NW OW PW QX RX SX TX UY VY WY XZ YZ ZZ [Z \Z ]Z ^[ _[ `\ a\ a\ b\ c\ d\ e\ f\ g\ h] i] j] k] l] m^ n^ o^ o^ p^ q^ r^ s^ t^ u^ v^ w^ x_ y_ y_ z_ {_ |_ }_ ~_ _ _ _ _ _ _ _ _ ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` a a a a a b b b b c c c c c c c c c c c c c c c c c c c c c c c c c c c c c 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 d d d d d d d d d d d d d d d d d d d d d d d d d d d d !d "d #d $d %e &e 'e (e )e *f +f +f ,f -f .f /f 0f 1f 2f 3f 4g 5g 6g 7g 8g 9g :g ;g <g =g >g ?g @g Ag Bg Cg Dg Eg Fg Gg Hg Ig Jg Kg Lg Mg Ng Og Pg Qg Rg Sg Tg Ug Vg Wg Xg Yg Zg [g \g ]g ^g _g `g ag bg cg dh eh fh gh hh ih jh kh lh mh nh oh ph qh rh sh th uh vh wh xh yh zh {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 i i i i i i j j k k kkk>kk k k k k k k k k k k k k k k k k k k k k k k l l l l l l l l l l l m m Km m Ln n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n !n "n #n $n %o &o 'o (o )o *p +p ,q -q .q /q 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 \r ]r ^r _r `r ar br cr drr er fr gr hr ir jr kr lr mr nr or pr qr rr sr tr ur vr wr xr yr zr {r |r }r ~r r r r rrrr rr r r r r r r r r r r s s s s s s s s s 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           v v v v v v v w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w x x x x x x x x x x x x x x x x y 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 0z 1z 2z 3z 4z 5z 6z 7z 8z 9z :z ;z <z =z >z >z ?z @z @z Az Bz Cz Cz Dz Ez Ez Fz Gz Hz Iz Jz Kz Lz Mz Nz Oz Pz Qz Rz Sz Tz Uz Vz Wz X{ Y{ Y{ Z{ [{ \{ ]{ ^{ _{ `{ a{ b{ c{ d| e| f| g| g| h| i| j| j| k| l| m| n| o| o| p| q| r| s| t| u| v| w| x| y| z} {} |} }} }} ~} ~} } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }} } } } } } } } } } } } } } } } } } } } } } ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~    ! " # $ % & ' ( ) * + , - .  / 0 1 2  3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T   U V W X Y Z [  \ ] ^ ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                          / 0 1 2                     n          l !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP QRST U VWX Y Z [\]^_`abcdefghi >jklmnopqr"s&t&u&vw'xyzy{ r4|4}9~9999==????????@@@@@@ @AABBBBBCHIIIIJJJLLLLLYYYYZ {\\\\\\\\\\\\\\\\\]]]]]]]]^^^^^^_```ccddddddddeeeeklnnnnnnnnssuuuuuuuuuwxxxyy{|||||}}}~~~ ~      !"##morley-0.4.0-79hq8tlMULq833S07vUm65Lorentz.PreludeLorentz.Rebinded Util.TypeLits Lorentz.Value Util.TypeMichelson.Typed.Scope Util.Default Util.LensLorentz.CoercionsMichelson.Parser.Error Lorentz.ADT Util.NamedMichelson.Typed.Sing Util.PeanoMichelson.ErrorPosMichelson.Printer.UtilMichelson.Test.Util%Michelson.Typed.Haskell.Instr.HelpersMichelson.Untyped.AnnotationMichelson.Untyped.TypeMichelson.Untyped.ExtMichelson.Untyped.ContractMichelson.Typed.TTezos.Crypto.HashTezos.Crypto.UtilUtil.Alternative 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.Instances Util.TypeableMichelson.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.DocMichelson.Typed.DocMichelson.TypeCheck.TypesMichelson.TypeCheck.ErrorMichelson.TypeCheck.TypeCheckMichelson.TypeCheck.HelpersMichelson.TypeCheck.ValueMichelson.TypeCheck.ExtMichelson.TypeCheck.InstrMichelson.Test.GenMichelson.Runtime.GStateMichelson.PrinterMichelson.Macro Michelson.LetMichelson.Parser.TypesMichelson.Parser.LexerMichelson.Parser.HelpersMichelson.Parser.ValueMichelson.Parser.AnnotationsMichelson.Parser.TypeMichelson.Parser.ExtMichelson.Parser.InstrMichelson.Parser.MacroMichelson.Parser.LetMichelson.ParserMichelson.PreprocessMichelson.Interpret.UnpackMichelson.Interpret.PackMichelson.OptimizerMichelson.OpSizeMichelson.InterpretMichelson.Test.UnitMichelson.Test.DummyMichelson.RuntimeMichelson.Test.IntegrationalMichelson.FailPatternMichelson.AnalyzerLorentz.PolymorphicLorentz.Constraints Lorentz.Arith Lorentz.Pack Lorentz.Base Lorentz.Zip Lorentz.ExtLorentz.EntryPoints Lorentz.Run Lorentz.PrintLorentz.TestScenario Lorentz.InstrLorentz.ReferencedLorentz.CommonLorentz.Extensible Lorentz.DocLorentz.UStore.TypesLorentz.UStore.Migration.DiffLorentz.UStore.LiftLorentz.UStore.Migration.Base!Lorentz.UStore.Migration.BatchingLorentz.EntryPoints.DocLorentz.Errors Lorentz.MacroLorentz.UStore.InstrLorentz.UStore.Migration.BlocksLorentz.UStore.HaskellLorentz.UParamLorentz.Test.ConsumerLorentz.StoreClassLorentz.UStore.Instances Lorentz.StoreLorentz.Errors.NumericLorentz.Errors.CommonMichelson.Test.ImportUtil.Test.ArbitraryLorentz.Test.IntegrationalMichelson.TypeType Paths_morleyDataGeneric Michelson*Michelson.UntypedInstr Data.Vinyl FromTupleUtil.TypeTupleMichelson.Typed.Haskell.InstrMichelson.Typed.HaskellMichelson.TypedMichelson.TypeCheckTest.QuickCheckProperty Test.Hspec Expectation 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 ErrorMessage Data.ProxyProxyData.Type.Equality==Data.Type.BoolIfmaxBoundminBoundstimessconcat)constraints-0.11.2-GZMSoVtvnAgCRhZL1gawmDData.ConstraintwithDictSub:-Data.Set.InternalSet1data-default-class-0.1.2.0-FeIQ5tLoVZBHMSgrT9zptQData.Default.ClassDefaultdef"lens-4.18.1-J6uutSZn7Hm2ATnRwiDRKDControl.Lens.THmakeLensesWithControl.Lens.Wrapped _Wrapped' UnwrappedWrapped&megaparsec-8.0.0-9g7AKmV0pGtLHgiBXCxWUText.Megaparsec.ErrorParseErrorBundle&universum-1.6.1-CsRXI6Q5xm8FjSJQoOkTMwUniversum.Debugerror undefinedUniversum.TypeOps$named-0.3.0.1-GwpuPjBY1xnHurMYYo5M6DNamed.InternalargDefargFarg:!:?'singletons-2.5.1-A4kizWClywXHfGOUz1BoemData.Singletons.Internal applySingSLambdaSing#vinyl-0.12.0-IALeOtLPo1cBDYNVTLLh2zData.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 renderOps renderOpsListspaces wrapInParensbuildRenderDoc needsParensdoesntNeedParens addParensassertParensNotNeededleftToShowPanicleftToPrettyPanic failedProp succeededPropqcIsLeft qcIsRightPathBranchLRSomeAnnVarAnnFieldAnnTypeAnn AnnotationWithAnn renderAnn renderWEAnnnoAnnannunifyAnn ifAnnUnified disjoinVnconvAnn$fDefaultAnnotation$fBuildableAnnotation$fRenderDocAnnotation$fShowAnnotation$fKnownAnnTagTYPETypeTag$fKnownAnnTagTYPEFieldTag$fKnownAnnTagTYPEVarTag$fMonoidAnnotation$fSemigroupAnnotation$fEqAnnotation$fDataAnnotation$fFunctorAnnotation$fGenericAnnotation$fIsStringAnnotation$fFromJSONAnnotation$fToJSONAnnotationCTCIntCNatCStringCBytesCMutezCBoolCKeyHash 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 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 $fSingKindTProperPrintedValBetterErrorsProperUnpackedValBetterErrorsProperPackedValBetterErrorsProperConstantBetterErrorsProperStorageBetterErrorsProperParameterBetterErrorsPrintedValScopeUnpackedValScopePackedValScope ConstantScope StorageScopeParameterScopeNestedBigMapsPresenceNestedBigMapsPresentNestedBigMapsAbsentBigMapPresence BigMapPresent BigMapAbsentContractPresenceContractPresentContractAbsent OpPresence OpPresentOpAbsentForbidNestedBigMaps ForbidBigMapForbidContractForbidOpFailOnNestedBigMapsFoundFailOnBigMapFoundFailOnOperationFoundHasNoNestedBigMaps HasNoBigMap HasNoContractHasNoOpContainsNestedBigMapsContainsBigMap forbiddenOpforbiddenBigMapforbiddenNestedBigMapsforbiddenContractTypecheckOpPresencecheckContractTypePresencecheckBigMapPresencecheckNestedBigMapsPresence opAbsensecontractTypeAbsense bigMapAbsensenestedBigMapsAbsenseproperParameterEviproperStorageEviproperConstantEviproperPackedValEviproperUnpackedValEviproperPrintedValEvi $fHasNoOpt$fHasNoContractt$fHasNoBigMapt$fHasNoNestedBigMapstblake2b blake2b160sha256sha512B58CheckWithPrefixErrorB58CheckWithPrefixWrongPrefixB58CheckWithPrefixWrongEncodingCryptoParseErrorCryptoParseWrongBase58CheckCryptoParseWrongTagCryptoParseCryptoErrorCryptoParseUnexpectedLengthencodeBase58CheckdecodeBase58CheckdecodeBase58CheckWithPrefix formatImpl parseImpl firstRight deterministic$fBuildableCryptoParseError$fShowCryptoParseError$fEqCryptoParseError$fShowB58CheckWithPrefixErrorsomeNE permute2Def permute3DefGenericTypeName mkGenericTreemkGenericTreeVec readFileUtf8 writeFileUtf8appendFileUtf8 withEncoding hSetTranslit$fBuildableIdentity$fBuildableNatural$fDefaultNaturalpostfixLFields unwrappedP 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 WrongSetArgs0$fShowErrorComponentStringLiteralParserException)$fShowErrorComponentCustomParserException$fBuildableParserException$fExceptionParserException$fShowParserException $fEqStringLiteralParserException"$fDataStringLiteralParserException!$fOrdStringLiteralParserException"$fShowStringLiteralParserException$fEqCustomParserException$fDataCustomParserException$fOrdCustomParserException$fShowCustomParserException$fEqParserExceptionourIngredients headToLowerRSplitKListKNilKCons KnownListklist ReifyList reifyList PatternMatchL PatternMatchRequireAllUnique AllUniqueGuard///IsElemreifyTypeEqualityrsplit$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 $fEqSignatureformatSecretKey$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 tdParametertdAmount $fShowTxData $fEqTxData tdAmountL 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 compareExtAnnConvergeErrorNotesNTcNTKeyNTUnit NTSignature NTChainIdNTOptionNTListNTSet NTOperation NTContractNTPairNTOrNTLambdaNTMapNTBigMap starNotesisStarorAnnconverge convergeAnns$fBuildableAnnConvergeError$fEqAnnConvergeError$fShowAnnConvergeError $fEqNotes $fShowNotes fromUTypemkUType withUTypeSomeEntryPointCallTSomeEpcEntryPointCallTEntryPointCallepcName epcParamProxyepcLiftSequenceEpLiftSequence EplArgHere EplWrapLeft EplWrapRight ParamEpErrorParamEpDuplicatedNamesParamEpUncallableArmArmCoordAcLeftAcRight ArmCoords ParamNotesParamNotesUnsafe unParamNotesParseEpAddressErrorParseEpAddressBadAddressParseEpAddressRefAnnError EpAddress eaAddress eaEntryPointEpNameFromRefAnnErrorInEpNameBadAnnotationEpName EpNameUnsafeunEpNameNoEpNameepNameFromParamAnnepNameToParamAnnepNameFromRefAnnepNameToRefAnnformatEpAddressmformatEpAddressparseEpAddressunsafeParseEpAddress mkParamNotessepcNamemkEntryPointCall$fArbitraryEpName$fDefaultEpName$fBuildableEpName $fBuildableEpNameFromRefAnnError$fArbitraryEpAddress$fBuildableEpAddress$fBuildableParseEpAddressError$fBuildableArmCoord$fBuildableParamEpError$fBuildableEpLiftSequence$fDefaultEntryPointCallT$fBuildableEntryPointCallT$fDefaultSomeEntryPointCallT$fBuildableSomeEntryPointCallT$fEqSomeEntryPointCallT $fShowEpName $fEqEpName $fOrdEpName$fShowEpNameFromRefAnnError$fEqEpNameFromRefAnnError$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 LsrUnderflow CompareOp compareOpArithOpArithResevalOp$fCompareOpCKeyHash$fCompareOpCMutez$fCompareOpCTimestamp$fCompareOpCBytes$fCompareOpCString$fCompareOpCInt$fCompareOpCNat$fCompareOpCAddress$fCompareOpCBool$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$fArithOpTYPEComparenm$fUnaryArithOpTYPEEq'CInt$fUnaryArithOpTYPENeqCInt$fUnaryArithOpTYPELtCInt$fUnaryArithOpTYPEGtCInt$fUnaryArithOpTYPELeCInt$fUnaryArithOpTYPEGeCInt$fShowArithErrorType$fEqArithErrorType$fOrdArithErrorType$fShowArithError$fEqArithError$fOrdArithError ContractDoc cdContents cdDefinitionscdDefinitionsSetcdDefinitionIdsSubDocDocBlockSomeDocDefinitionItem SomeDocItemDocSectionNameStyleDocSectionNameBigDocSectionNameSmall DocItemRef DocItemNoRefDocItemPlacementKindDocItemInlinedDocItemInDefinitions DocItemIdDocItemDocItemPositionDocItemPlacementdocItemSectionNamedocItemSectionDescriptiondocItemSectionNameStyle docItemRefdocItemToMarkdowndocItemDependencies docItemsOrderdocItemPositiondocDefinitionRefsomeDocItemToBlocksubDocToMarkdown$fOrdSomeDocDefinitionItem$fEqSomeDocDefinitionItem$fShowSomeDocItem $fEqDocItemId$fOrdDocItemId$fShowDocItemId$fEqDocItemPos$fOrdDocItemPos$fShowDocItemPos$fBuildableDocItemPosDCommentGitRepoSettingsgrsMkGitRevision DGitRevisiondgrRepoSettings dgrCommitSha dgrCommitDateDVersion DDescriptionDName DocGrouping cdContentsLcdDefinitionIdsLcdDefinitionsLcdDefinitionsSetLcontractDocToMarkdowndocGroupContentmorleyRepoSettingsmkDGitRevision$fMonoidContractDoc$fSemigroupContractDoc$fShow->$fDocItemDName$fDocItemDDescription$fDocItemDVersion$fDocItemDGitRevision$fDocItemDComment FullContractfcCodefcParamNotesSafe fcStoreNotesExtInstr TEST_ASSERTPRINTDOC_ITEMunPrintCommentInstrWithNotes 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'ToTsIsGenericIsoValue GIsoValue GValueTypeBigMapunBigMap ContractRef crAddress crEntryPointSomeEntryPointCall IsComparable AnyIsoValue SomeIsoValueToT'IsoValueToTtoValfromVal IsoCValueToCTtoCValfromCValcoerceContractReftotsKnownLemmatotsAppendLemma$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 IsHomomorphicHaveCommonTypeCtorDTypeSomeTypeWithDocTypeDocMichelsonRepTypeDocHaskellRep 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$fShowSomeTypeWithDoc$fTypeHasDocOperation'$fTypeHasDocMText$fDocItemDType $fOrdDType $fEqDType$fGProductHasDocU1$fGProductHasDocM1$fGProductHasDocM10$fGProductHasDoc:*:$fGTypeHasDocM10$fTypeHasDoc(,,,,,,)$fTypeHasDoc(,,,,,)$fTypeHasDoc(,,,,)$fTypeHasDoc(,,,)$fTypeHasDoc(,,)$fTypeHasDocContractRef$fTypeHasDoc(,)$fTypeHasDocEither$fTypeHasDocMaybe$fTypeHasDoc[]$fTypeHasDocBigMap$fTypeHasDocMap$fTypeHasDocSet$fIsStringDocTypeRepLHS$fBuildableDocTypeRepLHS buildInstrDocmodifyInstrDoccutInstrNonDocStorageOrParameter TcExtFrames BoundVars SomeContract SomeCValue:--:SomeNotedValue:::: SomeInstr:/ SomeInstrOut::: AnyOutInstrSomeHSTHSTSNil::&-:&mapSomeContract noBoundVars$fEqHST $fShowHST $fEqSomeHST$fShowSomeInstrOut$fShowSomeInstr$fShowSomeNotedValue$fEqStorageOrParameter$fShowSomeContract $fShowSomeHSTExtErrorLengthMismatchVarError TypeMismatch TyVarMismatchStkRestMismatchTestAssertErrorInvalidStackReference StackSizeTCErrorTCFailedOnInstrTCFailedOnValueTCContractErrorTCUnreachableCode TCExtError TCTypeErrorAnnError TypeEqError StackEqErrorUnsupportedTypesInvalidValueTypeNotEnoughItemsOnStackIllegalEntryPointIllegalParamDecl 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 runTypeCheckrunTypeCheckIsolated mapTCErrorderiveSpecialFNsderiveSpecialVNderiveVN deriveNsOrderiveNsOption convergeHSTEl convergeHSTonLefthstToTseqHSTeqHST1 lengthHSTensureDistinctAsccheckEqTeqType checkEqHSTonTypeCheckInstrErrtypeCheckInstrErronTypeCheckInstrAnnErr typeCheckImpl compareTypesmemImplgetImplupdImplsizeImpl sliceImpl concatImpl' concatImpl arithImpladdImpledivImplsubImplmulImpl compareImplunaryArithImpltypeCheckCValuetypeCheckValImpl typeCheckExttypeCheckContract typeCheckListtypeCheckValuetypeVerifyValuetypeCheckStorageOrParameter 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 GSSetBalancegetTypedContractgetTypedStoragegenesisKeyHashesgenesisAddressesgenesisKeyHashgenesisAddressgenesisAddress1genesisAddress2genesisAddress3genesisAddress4genesisAddress5genesisAddress6 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'string'parensbracesbrackets brackets' semicoloncommavarID sepEndBy1sepBy2mkParserparseDefpositivemparensvalue' stringLiteral bytesLiteral intLiteralmkLetValnoteVnoteFnoteFDefnoteTDefnoteVDefnotesTVF notesTVF2notesTVnotesVF fieldTypetype_ comparableextInstr printComment stackType primInstrops'cmpOppairOpmapOpmacropairMac mapCadrMacifCmpMacletBlockletTypemkLetMac parseNoEnvprogramvalue parseValueparseExpandValue codeEntrytransformStringstransformBytes UnpackError unUnpackError unpackValue unpackValue'$fExceptionUnpackError$fBuildableUnpackError$fShowUnpackError$fEqUnpackError packValue packValue'packT' packCode'encodeIntPayloadRule 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 noMorleyLogsinterpretUntyped interpretSome interpretinterpretRepeatedinterpretInstrrunInstr runInstrNoGas runUnpack$fBuildableMichelsonFailed$fEqMichelsonFailed$fBuildableInterpretError$fEqMorleyLogs$fShowMorleyLogs$fDefaultMorleyLogs$fBuildableMorleyLogs$fGenericInterpretError$fShowRemainingSteps$fEqRemainingSteps$fOrdRemainingSteps$fBuildableRemainingSteps$fNumRemainingSteps$fShowInterpreterState$fShowInterpretResult$fShowInterpretError$fShowMichelsonFailedContractPropValidator contractPropcontractPropValcontractRepeatedPropcontractRepeatedPropValdummyNow dummyMaxStepsdummyContractEnvdummyOriginationInterpreterRes _irGState _irOperations _irUpdates_irInterpretResults_irSourceAddress_irRemainingSteps InterpreterOp OriginateOp TransferOp$fShowInterpreterOp$fShowInterpreterResInterpreterErrorInterpreterError'IEUnknownContractIEInterpreterFailedIEAlreadyOriginatedIEUnknownSenderIEUnknownManagerIENotEnoughFundsIEZeroTransactionIEFailedToApplyUpdatesIEIllTypedContractIEIllTypedStorageIEIllTypedParameterirInterpretResults irUpdates parseContractparseExpandContractreadAndParseContractprepareContractoriginateContract runContracttransferinterpreterPuretypeCheckWithDb$fSemigroupInterpreterRes$fExceptionInterpreterError'$fBuildableInterpreterError'$fShowInterpreterError'ValidationErrorUnexpectedInterpreterErrorUnexpectedTypeCheckErrorExpectingInterpreterToFailIncorrectUpdatesIncorrectStorageUpdateInvalidStorageInvalidBalanceUnexpectedUpdatesCustomValidationErrorIntegrationalScenarioIntegrationalScenarioMSuccessValidatorIntegrationalValidator$fBuildableScenarioBranchName$fBuildableAddressName$fExceptionValidationError$fBuildableValidationError$fShowExpectedStorage$fShowExpectedBalance$fShowAddressName$fShowValidationErrorintegrationalTestExpectationintegrationalTestProperty originatevalidate modifyNowsetNow rewindTime setMaxSteps withSender setChainId branchout?-offshootexpectAnySuccessexpectNoUpdatesexpectNoStorageUpdatesexpectStorageUpdateexpectStorageUpdateConstexpectStorageConst expectBalancecomposeValidatorscomposeValidatorsListexpectGasExhaustionexpectMichelsonFailed$fBuildableScenarioErrorTypicalFailWithtypicalFailWithTagisTypicalFailWithmodifyTypicalFailWith$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$fEDivOpHsIntegerIntegerNicePrintedValueNiceFullPackedValueNiceUnpackedValueNicePackedValue NiceConstant NiceStorage NiceParameter CanHaveBigMapNoBigMapNoContractType NoOperation KnownCValue KnownValueniceParameterEviniceStorageEviniceConstantEvinicePackedValueEviniceUnpackedValueEvinicePrintedValueEvi $fKnownValuea$fKnownCValuea$fNoOperationa$fNoContractTypea $fNoBigMapa$fCanHaveBigMapaFromContractReffromContractAddr ToContractRef toContractRef ToAddress toAddressFutureContractfutureContractAddressListembodyFutureContractconvertContractRef$fToAddressContractRef$fToAddressFutureContract$fToAddressEpAddress$fToAddressAddress$fToContractRefcpAddress$fToContractRefcpEpAddress$fToContractRefcpFutureContract$fToContractRefcpContractRef$fFromContractRefcpAddress$fFromContractRefcpEpAddress!$fFromContractRefcpFutureContract$fFromContractRefcpContractRef$fGenericFutureContract$fIsoValueFutureContract CompareOpHsUnaryArithOpHsUnaryArithResHs 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$fCompareOpHsKeyHash$fCompareOpHsMutez$fCompareOpHsTimestamp$fCompareOpHsByteString$fCompareOpHsMText$fCompareOpHsInteger$fCompareOpHsNatural$fCompareOpHsEpAddress$fCompareOpHsAddress$fCompareOpHsBool$fArithOpHsComparenm lPackValue lUnpackValueLambda&%>:-> LorentzInstrunLorentzInstrFII iGenericIfiAnyCodeiNonFailingCode iMapAnyCode#parseLorentzValuetransformStringsLorentztransformBytesLorentzoptimizeLorentzWithConfoptimizeLorentz $fMonoid:->$fSemigroup:->$fBuildableParseLorentzError $fShow:->$fEq:->$fShowParseLorentzError$fEqParseLorentzError ZipInstrsZipInstr ZippedStackzipInstr unzipInstr zippingStackunzippingStack $fIsoValue:-> $fZipInstr: $fZipInstr:0 $fZipInstr[]stackRef testAssertParameterEntryPointsSplitpesNotesParameterEntryPointsparameterEntryPointsmapParameterEntryPointspepNonepepPlain pepRecursive$fParameterEntryPoints() $fGEntryPointsNotesdeepEPLeaf:*:$fGEntryPointsNotesdeepEPLeafU1$fGEntryPointsNotesdeepepM1$fGEntryPointsNotesTrueEPNodeM1 $fGEntryPointsNotesdeepEPNode:+:$fGEntryPointsNotesdeepepM10$fGEntryPointsNotesdeepepK1$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$fGEntryPointsNotesTrueEPLeafM1$fGEntryPointsNotesFalseepM1compileLorentzcompileLorentzContractinterpretLorentzInstrinterpretLorentzLambdaanalyzeLorentzprintLorentzValueprintLorentzContract TestScenarioshowTestScenario$fGenericParameter$fIsoValueParameternonZeroLorentzFunctorlmapConstraintDIPNLorentznopdropdropNdupswapdigPeanodigdugpushsomenoneunitifNonepaircarcdrleftrightifLeftnilconsifConssizeemptySetemptyMap emptyBigMapmapitermemgetupdateif_looploopLeftlambdaexecexecuteapplydip dipNPeanodipNfailWithcastpackunpackconcatconcat'sliceaddsubrsubmuledivabsneglsllsrorandxornotcompareeq0neq0lt0gt0le0ge0intselfcontracttransferTokens setDelegatecreateContractimplicitAccountnowamountbalanceblake2B stepsToQuotasourcesenderaddresschainIdframedfailingWhenPresent updateNew$fLorentzFunctorMaybe$fNonZeroNatural$fNonZeroIntegerdupTdipTdropT$fDupTorigSta:$fDupTorigSta:0$fDupTorigSta[]$fDipTorigSta:dipInpdipOutout1$fDipTorigSta:dipInpdipOutout$fDipTorigSta[]dipInpdipOutout Entrypoint_ Entrypoint Coercible_coerce_gcoerce_ fakeCoerce coerceWrap coerceUnwraptoNamed fromNamedfutureContractunFutureContractExtensibleHasDocextensibleDocNameextensibleDocDependenciesextensibleDocMdDescriptionExtConversionErrorConstructorIndexNotFoundArgumentUnpackFailedWrapExtCExtVal ExtensibletoExtVal fromExtValwrapExt$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_$fCaseArrownamebodyCaseClauseLdocdocGroup contractNamebuildLorentzDocrenderLorentzDoccutLorentzNonDoc$fTypeHasDoc:->PickMarkedFieldsGetUStoreFieldMarkerGetUStoreFieldGetUStoreValue GetUStoreKey GetUStoreFSMarkerFSValueMSValueMSKey ElemSignature MapSignatureFieldSignatureKnownUStoreMarkerShowUStoreFieldmkFieldMarkerUKeyUMarkerPlainField UStoreFieldUStoreMarkerTypeUStoreFieldExt unUStoreField|~> UStoreSubMapunUStoreSubMapUStoreunUStore mkFieldUKey$fTypeHasDocUStore$$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 DDelActionMigrationScriptunMigrationScriptUStore_ SomeUTemplate InitUStore toUStore_ fromUStore_manualWithUStoremanualConcatMigrationScriptsattachMigrationActionName$fTypeHasDocMigrationScript$fWrappedMigrationScript$fBuildableDMigrationActionType$fDocItemDMigrationActionDesc$fShowMigrationScript$fGenericMigrationScript$fIsoValueMigrationScript$fShowDMigrationActionType$fShowDMigrationActionDesc$fShowMigrationAtomUStoreMigrationCompiledcompiledMigrationContentMigrationBatchingMUStore MUStoreUnsafeMigrationBlocksUStoreMigrationTUStoreMigrationmaActionsDescLmaNameL maScriptLmigrationToLambdamapMigrationCodeformMigrationAtom mbBatchesAsIs mbNoBatchingmkUStoreBatchedMigrationmkUStoreMigrationcompileMigrationmigrationToScriptsmigrationToScriptsListmigrationToScriptmigrationToInfomigrationStagesNumbuildMigrationPlan$fGenericMUStore$fIsoValueMUStore SlBatchInfoslbiType slbiActions SlBatchTypeSlbtData SlbtLambda SlbtCustom SlbtUnknownmbSeparateLambdas$fBuildableSlBatchInfo$fShowSlBatchType$fEqSlBatchTypeDeriveCtorFieldDocderiveCtorFieldDocDEntryPointArgepaArg epaBuildingParamBuildingStep pbsEnglish pbsHaskell pbsMichelsonPlainEntryPointsKind DEntryPointdiEntryPointToMarkdownmkDEntryPointArgSimpleclarifyParamBuildingSteps entryCase$fDocItemDEntryPoint$fDocItemDEntryPointArg$fDeriveCtorFieldDocOneField$fDeriveCtorFieldDocNoFields$fGDocumentEntryPointskindM1$fGDocumentEntryPointskind:+:$fGDocumentEntryPointskindM10 FailUsingArgCustomErrorNoIsoValueDThrowsDErrorCustomErrorHasDoccustomErrDocMdCausecustomErrDocMdCauseInEntrypointcustomErrClasscustomErrArgumentSemantics ErrorClassErrClassActionExceptionErrClassBadArgumentErrClassContractInternalErrClassUnknown 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 deleteMapIfCmpXConstraintseqneqgtlegeltifEq0ifNeq0ifLt0ifGt0ifLe0ifGe0ifEqifNeqifLtifGtifLeifGefail_assert assertEq0 assertNeq0 assertLt0 assertGt0 assertLe0 assertGe0assertEq assertNeqassertLtassertGtassertLeassertGe assertNone assertSome assertLeft assertRight assertUsingdropXcloneXduupXframedNpapairppaiirunpaircdarcddrcaarcadrsetCarsetCdrmapCarmapCdrifRightifSome setInsert setInsertNew setDeletebuildViewTuple buildViewmkViewview_mkVoidvoid_pickFutureContractpushContractRef $fCloneXSas $fCloneXZas$fDuupX[][]Ssas1tail$fDuupXkkS:as1tail$fDuupXkkSsas1tail$fMapInstrsBigMap$fMapInstrsMap$fBuildableView$fBuildableView0$fTypeHasDocView$fBuildableVoid_$fTypeHasDocVoid_$fIsoValueVoidResult$fErrorHasDocTYPEVoidResult$fIsErrorVoidResult$fTypeHasDocVoidResult$fEqView $fShowView $fGenericView$fIsoValueView$fGenericVoid_$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 UParamUnsafe?:EntryPointKindmkUParam unwrapUParamuparamFallbackFail caseUParam caseUParamT uparamFromAdt pbsUParam/$fCustomErrorHasDoc"uparamArgumentUnpackFailed"+$fCustomErrorHasDoc"uparamNoSuchEntryPoint"$fBuildableCustomError$fBuildableCustomError0$fTypeHasDocUParam$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 IsNotZeroIsEqIsNeqIsLtIsGtIsLeIsGe>> ifThenElse ErrorTagMapgatherErrorTagsaddNewErrorTagsbuildErrorTagMapapplyErrorTagMapuseNumericErrorserrorFromValNumeric%$fCustomErrorHasDoc"senderIsNotAdmin"ImportContractErrorICEUnexpectedParamTypeICEUnexpectedStorageTypeICEParse 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$fArbitraryAnnotation0$fToADTArbitraryAnnotation0$fArbitraryAnnotation1$fToADTArbitraryAnnotation1$fToADTArbitraryMutez$fArbitraryExpandedOp$fToADTArbitraryExpandedOp$fArbitraryInstrCallStack$fToADTArbitraryInstrCallStack$fArbitraryLetName$fToADTArbitraryLetName$fArbitrarySrcPos$fToADTArbitrarySrcPos$fArbitraryPos$fToADTArbitraryPos$fArbitraryExtInstrAbstract$fArbitraryStackTypePattern$fArbitraryTyVar$fArbitraryVar$fArbitraryInternalByteString tOriginate lOriginatelOriginateEmpty tTransfer lTransferlCalllExpectStorageUpdatelExpectBalancetExpectStorageConstlExpectStorageConstlExpectMichelsonFailedlExpectFailWith lExpectErrorlExpectErrorNumericlExpectCustomErrorlExpectCustomErrorNumericlExpectCustomError_lExpectCustomErrorNumeric_lExpectConsumerStoragelExpectViewConsumerStorage_rcWillNeedParens-wl-pprint-text-1.2.0.0-L6i9Q0yxJZoBCBd4YxCMOZText.PrettyPrint.Leijen.TextDocData.Text.Internal.BuilderBuilderdoRender(QuickCheck-2.13.2-1FftnVviu6BCWJanU0jy5VTest.QuickCheck.Property SomeSingTSomeSingData.Typeable.InternalTypeable SomeSingCTtoSingCTtoSingfromSingtoSingT D:R:SingT0 D:R:SingCT0FailOnContractFoundEachContainsContract ContainsOpforbiddenOpEviforbiddenContractTypeEviversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileNameNonEmptymdEscapeAnchorRequireLongerOrSameLength'RequireLongerThan'OfLengthWithTail Data.Data)tasty-ant-xml-1.1.6-jAhJ3bKcip1MKdu90sazpTest.Tasty.Runners.AntXML antXMLRunnerinvalidMCharErrorSecretKeyEd25519SecretKeySecp256k1 SecretKeyP256Word chainIdPrefix Data.TypeablegcasteqTverifyParamNoteswithEpLiftSequence DocItemPosdocItemToMarkdownFulldocItemsOrderByIdunifyDocItemsUnsafedocBlockToMarkdownGHC.ShowShowceaBottomToTopanalyzeInstrFailureGInstrCaseBranch GInstrCase GInstrWrapLNRequireFound GLookupNamedGetNamedLookupNamedResultfailWithWrongCtorGInstrConstructGInstrSetField GInstrGetNamedF GAccessField GLooseSumPolyCTypeHasDocCGProductHasDoc DocTypeRepLHSmapADTRepFieldsbuildFieldNamemodifyInstrAllDoctypeCheckMapVal checkVarscheckFncheckStackTypecreateStackRef typeCheckNEtypeCheckInstr genericIfgenesisAddressesNumgenesisSecrets addAddresssetStorageValue setBalanceLetletInneraddLetletName TaggedDecoder decodeWithTagtdTagtdLength tdConstructor?getByteStringCopy expectTag unknownTag expectDescTag manyForcedmany unpackDecoder decodeLength decodeAsList decodeInt decodeAnndecodeTypeCheckLam encodeAsList encodeList encodeString encodeBytes encodeMap encodeNumeric encodeInstrs encodeInstrpushPacklinearizeAndReapplyfixpoint applyOnceadapter whileApplies annsOpSize runInstrImpl runArithOp withStackElemGHC.IO.Handle.FDstdin interpreterIOinterpretOneOp _isOperations_isContractsNames _isSender ScenarioError ValidatedScenarioBranchName/hspec-expectations-0.8.2-JGqzAaMw3jpJhPKqSPpGFATest.Hspec.ExpectationsemptyScenarioBranchappendScenarioBranchFailWithStringFailWithConstantPairFailWithStackValueConstantScope'ParseLorentzError##GEntryPointsNotesEntryPointsNotesgMkEntryPointsNotes BuildEPTreeEPTreeGRequireSumType ctorNameToAnnmkEntryPointsNotesDipTDupT DocumentCtorGExtVal GGetCtorsEnumerateCtorsCtorKindCtor LookupCtorWrapExt packForWrap UStoreMarkerDiffCoverageItem LiftToDiffRequireFieldName UStoreFields_sampleWithMyStore nubCountingGDocumentEntryPointsgDocumentEntryPointsDocumentEntryPointsdocumentEntryPoints CurrentParamCustomErrorReppickFirstSentenceerrorTagToMText MapInstrs mapUpdateConstraintDuupXLorentzDuupXConstraint'_sample7MyStoreTemplate _sample7'MyStoreTemplateBigRequireBeInitialGUStoreConversible gUstoreToValgUstoreFromValgUstoreToScript mkUStoreRecstoreDecomposeRec fillUStoreRecGUParamLinearizecaseUParamUnsafe CaseClauseUCtorNameToLabelGetStoreCtorsNumCtorIdxD:R:ErrorArg"senderIsNotAdmin"GHC.IO.Exception IOException genRareTypegenRareT