# TZ Q            ! "#$%&'()*+,-./0123456789:;< = > ? @ A B C D E F G H I J K L M NOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg h i j k l m n o p q rst!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 0 0 0 0000000000000000000 0!0"0#0$0%0&0'0(0)0*0+0,0-0.0/000102030405060708090:0;0<0=0>0?0@0A0B0C0D0E0F0G0H0I0J0K0L0M0N0O0P0Q0R0S0T0U0V0W0X0Y0Z0[1\1]1^1_1`1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1{1|1}1~1111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333 3 3 3 3 3333444444444444444 4!4"4#4$4%4&4'4(4)4*4+4,4-4.4/404142434445464748494:4;4<4=4>4?4@4A4B4C4D4E4F4G4H4I4J4K4L4M4N4O4P4Q4R4S4T4U4V4W4X4Y4Z4[4\4]4^4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x4y4z4{4|4}4~44444444444444444444455566666666666666666666666667777777777777777777777777777777777777777788899999999999999:::;<<<<<<<<<<<<<<<<<<<<<<<<<<     ================ =!="=#=$=%=&='=(=)=*=+=,=-=.=/=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?{?|?}?~?????????????????????????@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AA A A A A AAAAAAAAAAAAAAAAAAA A!A"A#A$A%A&A'A(A)A*A+A,A-A.A/A0A1A2A3A4A5A6A7A8A9A:A;A<A=A>A?A@AABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZB[B\B]B^B_B`BaBbBcBdBeBfBgBhBiBjBkBlBmBnBoBpBqBrBsBtBuBvBwBxByBzB{B|B}B~BBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDD D D D D DDDDDDDDDDDDDDDDDDD D!D"D#D$D%D&D'D(D)D*D+D,D-D.D/D0D1D2D3D4D5D6D7D8D9D:D;D<D=D>D?D@DADBDCDDDEDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZD[D\D]D^D_D`DaDbDcDdDeDfDgDhDiDjDkDlDmDnDoDpDqDrDsDtDuDvDwDxDyDzD{D|D}D~DDDDDDDDDDDDDDDDDDDDDDDEEEEEEEFFFFGGGGGGGGGGGGGGGGGGGGGG                                 H !H "H #H $H %H &H 'H (H )H *H +H ,H -H .H /H 0H 1H 2H 3H 4H 5H 6H 7H 8H 9H :H ;H <H =H >H ?H @H AH BH CH DH EH FH GH HH IH JH KH LH MH NH OH PH QH RH SH TH UH VH WH XI YI ZI [I \I ]I ^I _I `I aI bI cI dI eI fI gI hI iI jI kI lI mI nI oI pI qI rI sI tI uI vI wI xI yI zI {I |I }I ~J J J J J J J J J J J J J J J J J J K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K 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 M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M 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 _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 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 P P P P P P P P P P P P P P P P P P P P P P P P P Q R S S S S S T T T T T T T T T T T T T T T T T T T T T U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U U 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 &W 'W (W )W *W +W ,W -W .W /W 0W 1W 2W 3W 4W 5W 6W 7W 8W 9W :W ;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 [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 {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 X Y Y Y Y Y Y Y Y Y Y Z Z Z Z Z Z Z Z Z Z Z Z Z Z [ [ [ [ [ [ \ \ \ \ \ ] ] ] ] ] ] ] ] ] ] ] ] ^ ^ ^ _ _ _ ` ` ` ` ` ` a a a a a a b b b b c c d d d d e e 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 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 0i 1i 2i 3i 4i 5i 6i 7i 8i 9i :i ;i <i =i >i ?i @i Ai Bi Ci Di Ei Fi Gi Hi Ii Ji Ki Li Mi Ni Oi Pi Qi Ri Si Ti Ui Vi Wi Xi Yi Zi [i \i ]i ^i _i `i ai bi ci di ei fi gi hi ii jj kj lj mj nk ok pk qk rk sk tk uk vk wk xk yk zk {k |k }k ~k k k k k k k k k k k k k k k k k k k k 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 l l l m m m m m m m m m n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n o o o o o o o o o o o o o o o o o o o p p p p p p q q q q q q q q q q q r r r r r r !r "r #r $r %r &r 'r (r )r *r +r ,r -r .r /r 0s 1s 2s 3s 4s 5s 6s 7s 8s 9s :s ;s <s =s >s ?s @s As Bs Cs Ds Es Fs Gs Hs Is Js Ks Ls Ms Ns Os Ps|None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmg*morleyA new type that can wrap values so that the RenderDoc instances of the combined value can have a different behavior for the pretty printer.,morleyGeneralize converting a type into a Text.PrettyPrint.Leijen.Text.Doc. Used to pretty print Michelson code and define Fmt.Buildable instances..morleyWhether a value can be represented in Michelson code. Normally either all values of some type are renderable or not renderable. However, in case of instructions we have extra instructions which should not be rendered. Note: it's not suficcient to just return  Q 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. RmorleyzWhether the current expression is going to be used as part of top-level expression or in a similar context. When set to  SB, you may need to wrap your rendered expression into parentheses.0morleyConvert  T to  U with a line width of 80.1morleyConvert  T to  V in the same maner as 0.2morleyConvert  T to  W in the same maner as 0.3morleyLGeneric way to render the different op types that get passed to a contract.5morley#Create a specific number of spaces.6morleyCWrap documents in parentheses if there are two or more in the list.7morley#Turn something that is instance of , into a  V". It's formatted the same way as 0 formats docs. Xmorley9Here 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.html8morley ParensNeeded constant.9morley ParensNeeded constant.:morleyAdd parentheses if needed.;morleygEnsure parentheses are not required, for case when you cannot sensibly wrap your expression into them.*+,-./0123456789:;,-.*+01234567/89:; None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmf>morleyA  Y& that always fails with given message.?morleyA  Y that always succeeds.@morleyThe  Y holds on `Left a`.AmorleyThe  Y holds on `Right b`.BmorleyA  Z& that always fails with given message.CmorleyA  Z that always succeeds.DmorleyThe  Z holds on `Left a`.EmorleyThe  Z holds on `Right b`.FmorleyeChecks that a value is total, i.e., doesn't crash when evaluated, by reducing it to its normal form.Equivalent to QuickCheck's total.GmorleyBenchmarks the given function and checks that the mean time to evaluate to weak head normal form is under the given amount of time.EThis test fails if the benchmark takes longer than 30 seconds to run.HmorleyzBenchmarks the given function and checks that the mean time to evaluate to normal form is under the given amount of time.QThis test aborts and fails if the benchmark takes longer than 120 seconds to run.Imorley+Randomly selects one of the two generators.Jmorley Generates an a and a b and wraps them in a tuple.KmorleyGRun the given generator deterministically, by fixing its size and seed.LmorleyThis  [: contains a property based test for conversion from some x to some y and back to x- (it should successfully return the initial x).MmorleyThis  [: contains a property based test for conversion from some x to some y and back to x- (it should successfully return the initial x). !<=>?@ABCDEFGHIJKLM<=BCDEFGHIJKM !>?@ALNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmZNmorleyJPath to a leaf (some field or constructor) in generic tree representation.OmorleyQWhich branch to choose in generic tree representation: left, straight or right. QP is used when there is one constructor with one field (something newtype-like).The reason why we need Q 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 Q, in both cases path will be the same ([L]).NORQPORQPNNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm" \morleyDCheck that Generic representation for a constructor has given field  fieldName. ]morleyCheck that Generic  ^ has given field  fieldName in a given constructor conName. _morley#Actual recursive implementation of  `. `morley9Check whether all fields described for given constructor conName are present in the datatype.LThis family also checks whether the constructor is present and fails with a  otherwise. amorley%Check whether given constructor name conName is present in  ^ of a datatype. bmorley$Actual recursive implementation for S.Smorley^This type family checks that field descriptions mention only existing constructors and fields.When descrR is empty this family does nothing, to avoid breaking for built-in, non-ADT types.When descr' is not empty, this family will demand  c instance for typ and fail with a  if there none.TmorleyValue-level counterpart to U.Umorley8Description of constructors and fields of some datatype.pThis type is just two nested maps represented as associative lists. It is supposed to be interpreted like this: X[(Constructor name, (Maybe constructor description, [(Field name, Field description)]))]"Example with a concrete data type: :data Foo = Foo { fFoo :: Int } | Bar { fBar :: Text } deriving (Generic) type FooDescriptions = '[ '( "Foo", '( 'Just "foo constructor", , '[ '("fFoo", "some number") ]) ) , '( "Bar", '( 'Nothing, , '[ '("fBar", "some string") ]) ) ]STUUTSNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm VWXYZXYZWVtNone7!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm 6 d e f g h i j kNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmlmorleyCompute a cryptographic hash of a bytestring using the Blake2b_256 cryptographic hash function. It's used by the BLAKE2B instruction in Michelson.mmorley`Compute a cryptographic hash of a bytestring using the Blake2b_160 cryptographic hash function.nmorley[Compute a cryptographic hash of a bytestring using the Sha256 cryptographic hash function.omorley[Compute a cryptographic hash of a bytestring using the Sha512 cryptographic hash function.lmnolmnoNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmsmorleyFError that can happen during parsing of cryptographic primitive types.xmorley*Encode a bytestring in Base58Check format.ymorley,Decode a bytestring from Base58Check format.zmorleyParse 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  l2 in a list. If there are none, returns arbitrary  m%. It is useful to implement parsing.~morley*Do randomized action using specified seed.pqrstuvwxyz{|}~stuvwxypqrz{|}~None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm#morleyOptions that we use in morley-based packages (including morley ) by default.None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmTmorleyRoot annotation was added in the Babylon, it looks the same as field annotation, but has slightly different semantic and can be used only in parameter  ParameterType.morleyAn  contains all the typefield variable s , with each group in order, associated with an entity. Note that in its rendering/show instances the unnecessary annotations will be omitted, as well as in some of the functions operating with it. Necessary ds are the ones strictly required for a consistent representation. In particular, for each group (tf v): - if all annotations are * they are all omitted - if one or more  follow a non-empty ', they are omitted - if one or more  precede a non-empty %, they are kept - every non-empty p is obviously kept This is why order for each group is important as well as separation of different groups of s.morley Generic TypeFieldVariable Annotation|As per Michelson documentation, this type has an invariant: (except for the first character, here parametrized in the type tagH) the allowed character set is the one matching the following regexp: %|%%|%|[:%][_0-9a-zA-Z][_0-9a-zA-Z.%@]*morleyAn  without any .morleyAn  with only a single  (of any kind).morleyAn  with several s of the same kind.morleyAn  built from all 3 kinds of .morleyReturns  S if all s in the Set are unnecessaryempty. False otherwise.morleyReturns the amount of ;s that are necessary for a consistent representation. See . nmorleyRemoves all unnecessary s. See . omorleyRemoves all unnecessary s from a list of the same type pmorleyRenders a single Z, this is used in every rendering instance of it. Note that this also renders empty ones/s because a single A does not have enough context to know if it can be omitted, use ! if you want to hide it instead. qmorleyRenders a list of #s, omitting unnecessary empty ones/'. This is used (3 times) to render an .morley Makes an " from its textual value, prefix (%@*:) excluded Throws an error if the given  U contains invalid charactersmorley Makes an " from its textual value, prefix (%@:) excluded Returns a  U error message if the given  U contains invalid charactersmorley>List of all the special Variable Annotations, only allowed in CAR and CDRH instructions, prefix (@) excluded. These do not respect the rules of  and .morley3The only special Field Annotation, only allowed in PAIR, LEFT and RIGHTH instructions, prefix (%) excluded. This does not respect the rules of  and .morley Checks if a  r6 is valid to be the first of an annotation, prefix (%@8:) excluded, the ones following should be checked with B instead. Note that this does not check Special Annotations, see  and morley Checks if a  rO is valid to be part of an annotation, following a valid first character (see ) and the prefix (%@<:). Note that this does not check Special Annotations, see  and !!None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmYmorley>Since Babylon parameter type can have special root annotation.morleyKFor implicit account, which type its parameter seems to have from outside.55None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmo morley8A stack function that expresses the type signature of a LetMacro!morleyA stack pattern-match%morley"A type-variable or a type-constant*morleyA reference into the stack.,morley3Implementation-specific instructions embedded in a NOPW primitive, which mark a specific point during a contract's typechecking or execution.These instructions are not allowed to modify the contract's stack, but may impose additional constraints that can cause a contract to report errors in type-checking or testing.VAdditionaly, some implementation-specific language features such as type-checking of LetMacro6s are implemented using this mechanism (specifically FN and FN_END).-morley,Matches current stack against a type-pattern.morley'A typed stack function (push and pop a  TcExtFrame)/morley8Copy the current stack and run an inline assertion on it0morley'Print a comment with optional embedded StackRefs1morleyA comment in Michelson code2morleyConvert !# to a list of types. Also returns  s which is  S. if the pattern is a fixed list of types and  t2 if it's a pattern match on the head of the stack.3morley+Get the set of variables in a stack pattern  !"#$%'&()*+,-./0123 ,-./01*+()%'&!"#$ 32None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmrxyz{|}}xyz{|None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmvmorley6Michelson language type with annotations stripped off.morleyConverts from  to uv.morley"Format type stack in a pretty way.None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm umorley Version of  v with  w' constraint, specialized for use with  kind.morley w + % constraints.4This restricts a type to be a constructible type of  kind.morleyInstance of data family  x for 5. Custom instance is implemented in order to inject  w& constraint for some of constructors.morley Version of  withSomeSing with  w- 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  y specialized for use with data instance Sing :: T -> Type which requires  w) constraint for some of its constructors zmorley Version of  { which creates  u.None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm;"morley$Should be present for common scopes.morley,Check that constraint hold for a given type.morley6Alias for constraints which are required for printing.morleyAAlias for constraints which Michelson applies to unpacked values.It is different from , e.g. contract- type cannot appear in a value we unpack to.morley?Alias for constraints which Michelson applies to packed values.morleyBAlias for constraints which Michelson applies to pushed constants.morleyBAlias for constraints which Michelson applies to contract storage.morley;Alias for constraints which Michelson applies to parameter.morleyWhether the type contains  , with proof.morley This is like ., it raises a more human-readable error when t[ type is concrete, but GHC cannot make any conclusions from such constraint as it can for (. Though, hopefully, it will someday:  /https://gitlab.haskell.org/ghc/ghc/issues/11503#11503. Use this constraint in our eDSL.morley#Report a human-readable error that  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.morley:Constraint which ensures that there are no nested bigmaps.morleyEConstraint which ensures that bigmap does not appear in a given type.morleyLConstraint which ensures that contract type does not appear in a given type.morleyMConstraint which ensures that operation type does not appear in a given type.JNot just a type alias in order to be able to partially apply it (e.g. in  }).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 D%$     D     %$None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmA ,-./012345678 756348,-./012None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm]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.]]None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmO^morleyAny decoding error.^_`ab^_`ab None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmgmorley]Newtype wrapper for ByteString which uses hexadecimal representation for JSON serialization.ghighiNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmrsrs!None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmҡvmorleyIf monadic action returns a  mP value, it will be thrown. Otherwise the returned value will be returned as is.wmorleyeCustomise default uncaught exception handling. The problem with the default handler is that it uses  & to display uncaught exceptions, but   may provide more reasonable output. We do not modify uncaught exception handler, but simply wrap uncaught exceptions (only synchronous ones) into  .0Some exceptions (currently we are aware only of  N) are handled specially by default exception handler, so we don't wrap them.tuvwvtuwNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmָ~morley Similar to  , but compares types via  DefaultEq& used in singletons comparisons (see Data.Singletons.Prelude.Eq module).}~~}"None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmAmorley5Extract 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 wx 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.#None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm]morleyChange the character encoding of the given Handle to transliterate on unsupported characters instead of throwing an exception.$None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmK%None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmY None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm]morley?For datatype with "myNyan" field it will create "myNyanL" lens.&None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmNmorley"Picking anchor for various things.morleyAnchor with given text.morley!Level of header, starting from 1.morleyA piece of markdown document.This is opposed to  UA type, which in turn is not supposed to contain markup elements. morley@Turn text into valid anchor. Human-readability is not preserved.morley#Text which is hidden until clicked.morleyQuasi quoter for Markdown. This supports interpolation via  #{expression} syntax.None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morleyWe can have `RequireLongerOrSameLength = (RequireLongerOrSameLength' l a, LongerOrSameLength l a)`, but apparently the printed error message can be caused by  rather than u`. We do not know for sure how it all works, but we think that if we require constraint X before Y (using multiple `=>`)s) then X will always be evaluated first. morleyW in form of constraint that produces good error message. Should be used together with  because  gives GHC more information. We use it in combination, so that it gives enough information to GHC and also producess good error messages. morley[Comparison of type-level naturals, raises human-readable compile error when does not hold.%Here we use the same approach as for  , this type family is internal. morleyEvaluates list length.kThis type family is a best-effort attempt to display neat error messages when list is known only partially.For instance, when called on Int ': Int ': s, the result will be OfLengthWithTail 2 s! - compare with result of simple  - 1 + 1 + Length s.5For concrete types this will be identical to calling FromPeano (Length l).morley; in form of constraint that gives most information to GHC.morley Similar to , but returns  S/ when list length equals to the passed number.morley3Comparison of type-level naturals, as a constraint.morley1Comparison of type-level naturals, as a function.It is as lazy on the list argument as possible - there is no need to know the whole list if the natural argument is small enough. This property is important if we want to be able to extract reusable parts of code which are aware only of relevant part of stack.morleyA convenient alias.We are going to use . numbers for type-dependent logic and normal (0s in user API, need to distinguish them somehow.morley!Get runtime value from singleton.('&('&'None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorleyInteger values starting from 1.,We define our own datatype in order to have  _ instance for it, which can not be derived for third-party types without exported constructor.morleyCount length of non-empty list.morley7Produce a non empty list consisting of the given value.(None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorley)Generates an NFData instance for a GADT. Note:` This will not generate additional constraints to the generated instance if those are required.)None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm"Omorley:This is the default set of ingredients extended with the  . which is used to generate xml reports for CI.*None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm%morley,Leads first character of text to lower case.(For empty text this will throw an error.None7!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmq7 morley"A value of type parametrized with some type parameter.morleySList analogy for .morley Similar to SingI []C, but does not require individual elements to be also instance of SingI.morley\Bring type-level list at term-level using given function to demote its individual elements.morleyLMake sure given type is evaluated. This type family fits only for types of   kind.morley-Fail with given error if the condition holds.morley5Fail with given error if the condition does not hold.morleyDifference between two lists.morley+Remove all occurences of the given element.morley?A natural conclusion from the fact that error have not occured.morley*Reify type equality from boolean equality.morleySplit a record into two pieces.morleyGHC can't deduce this itself because in general a type family might be not associative, what brings extra difficulties and redundant constraints, especially if you have complex types. But (++) type family is associative, so let's define this small hack.))None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm? morleyConditional type error. Note that TypeErrorUnless cond err is the same as If cond () (TypeError err)U, but does not produce type-level error when one of its arguments cannot be deduced.morley$Reify the fact that condition under + constraint can be assumed to always hold.   None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmCSmorley)Proxy for a label type that includes the  constraintmorleyUtility function to get the  U representation of a   None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmGmorley7Isomorphism between named entity and the entity itself. morley\Isomorphism between named entity and the entity itself wrapped into the respective functor.     None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmZZ morleySupporting typeclass for !. It specifies how a value should be parsed from command line. Even though the main purpose of this class is to implement helpers below, feel free to use it for other goals.morley"This string will be passed to the   function, hence we use  W type rather  U (even though we use  U almost everywhere).morleyLMaybe add the default value and make sure it will be shown in help message.morley6Parser for path to a file where output will be writen.morley Create a   for a value using  instance (hence CLe in the name). It uses reader and metavar from that class, the rest should be supplied as arguments.iWe expect some common modifiers to be always provided, a list of extra modifies can be provided as well.morleyA more general version of = which takes a list of extra (not as widely used) modifiers.morleyAkin to (, but for arguments rather than options. morleyAkin to (, but for arguments rather than options.!morley Create a  ' for a value using its type-level name. "# !  !"#+None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmj'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.2morleyMake up '/ from annotation in parameter type declaration.Returns  # if no entrypoint is assigned here.3morleyHTurn entrypoint name into annotation for contract parameter declaration.4morleyMake up 'J from annotation which is reference to an entrypoint (e.g. annotation in CONTRACT instruction).Fails if annotation is invalid.5morleyETurn entrypoint name into annotation used as reference to entrypoint.8morleyGiven an untyped type, extract a map that maps entrypoint names to the their parameter types. If there are duplicate entrypoints in the given Type then the duplicate entrypoints at a deeper nesting level will get overwritten with the ones that are on top. '()/012345678 '()12345/0678 None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmlDEFGHIJKLMNOPIJKLMNOPFGHDE,None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm cmorleyA type error asking to use d instead of  U.dmorleyMichelson string value.DThis is basically a mere text with limits imposed by the language:  9https://tezos.gitlab.io/whitedoc/michelson.html#constantsn Although, this document seems to be not fully correct, and thus we applied constraints deduced empirically.CYou construct an item of this type using one of the following ways:6With QuasyQuotes when need to create a string literal.[mt|Some text|]%MTextUnsafe { unMText = "Some text" }With h- when constructing from a runtime text value.With i or eF when absolutelly sure that given string does not violate invariants.With j] when not sure about text contents and want to make it compliant with Michelson constraints.gmorley<Constraint on literals appearing in Michelson contract code. morley;Error message indicating bad character in a string literal.hmorleyWrap a Haskell text into d, 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.imorley Contruct dT from a Haskell text, failing if provided Haskell text is invalid Michelson string.jmorley Construct d from a Haskell text, eliminating all characters which should not appear in Michelson strings. Characters which can be displayed normally via escaping are preserved.kmorleyPrint d9 for Michelson code, with all unusual characters escaped.omorley/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.pmorleyParser used in o quasi quoter.qmorley Create a d 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.rmorley Create a d 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.smorley,Leads first character of text to upper case.(For empty text this will throw an error.cdefghijklmnopqrsdefhijklmgnpocqrs-None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm 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..None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmT 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./None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morley ED25519 cryptographic signature.morley!ED25519 secret cryptographic key.morley!ED25519 public cryptographic key.morley1Deterministicaly generate a secret key from seed.morley&Create a public key from a secret key.morley Convert a  to raw bytes.morleyMake a  from raw bytes.morley Convert a  to raw bytes.morleyMake a  from raw bytes.morley$Sign a message using the secret key.morley@Check that a sequence of bytes has been signed with a given key.0None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morley!Blake2b_160 hash of a public key. morley<We store which curve was used because it affects formatting. morley Hash itself. morley6Which curve was used for the hashed public key inside  .morleyDCryptographic signatures used by Tezos. Constructors correspond to  constructors.Tezos distinguishes signatures for different curves. For instance, ed25519 signatures and secp256k1 signatures are printed differently (have different prefix). However, signatures are packed without information about the curve. For this purpose there is a generic signature which only stores bytes and doesn't carry information about the curve. Apparently unpacking from bytes always produces such signature. Unpacking from string produces a signature with curve information.morley4Signature that uses the ed25519 cryptographic curve.morley6Siganture that uses the secp256k1 cryptographic curve.morley7Signature that uses the NIST P-256 cryptographic curve.morley-Generic signature for which curve is unknown.morleyDSecret cryptographic key used by Tezos. Constructors correspond to  constructors.morley5Secret key that uses the ed25519 cryptographic curve.morley7Secret key that uses the secp256k1 cryptographic curve.morley8Secret key that uses the NIST P-256 cryptographic curve.morleyvPublic cryptographic key used by Tezos. There are three cryptographic curves each represented by its own constructor.morley5Public key that uses the ed25519 cryptographic curve.morley7Public key that uses the secp256k1 cryptographic curve.morley8Public key that uses the NIST P-256 cryptographic curve.morleyZDeterministicaly generate a secret key from seed. Type of the key depends on seed length.!morley&Create a public key from a secret key.#morley Convert a  to raw bytes.$morleyMake a 4 from raw bytes. Can return only generic signature.&morleyuCheck that a sequence of bytes has been signed with a given key. TODO (#18) consider generic signature here as well..morleyPLength of key hash in bytes (only hash itself, no tags, checksums or anything).0morley*Compute the b58check of a public key hash.:lmnopqrstuvwxyz      !"#$%&'()*+,-./0123:      "-/!#$%&stuvw'()*+,123.0lmnoxypqrz1None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm >[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.amorleyDMutez is a wrapper over integer data type. 1 mutez is 1 token (Tz).cmorleySafely create a checking for overflow.dmorleyPartial function for aP creation, it's pre-condition is that the argument must not exceed the maximal a value.emorleySafely create a."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.fmorley Addition of a values. Returns   in case of overflow.gmorleyPartial addition of a>, should be used only if you're sure there'll be no overflow.hmorleySubtraction of a values. Returns  7 when the subtrahend is greater than the minuend, and   otherwise.imorleyPartial subtraction of a?, should be used only if you're sure there'll be no underflow.jmorleyMultiplication of a" and an integral number. Returns   in case of overflow.kmorleyEuclidian division of two a values.lmorleyEuclidian division of a and a number.pmorley!Add given amount of seconds to a ^.qmorleyDisplay 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.rmorley Parse textual representation of ^.smorleyQuote 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.tmorleyReturn current time as ^.umorley1Timestamp which is always greater than result of t.vmorley.Timestamp which is always less than result of t.wmorley"Construct chain ID from raw bytes.xmorleyNConstruct chain ID from raw bytes or fail otherwise. Expects exactly 4 bytes.ymorleyIdentifier of a pseudo network.zmorley 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.$[\]^_`abcdefghijklmnopqrstuvwxyz{|}~$abcdefghijkl^_`mnopqrstuv[\]wxyz{|}~2None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm0morley.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.morleySCompute address of a contract from its origination operation and origination index.CHowever, in real Tezos encoding of the operation is more than just OriginationOperationb. There an Operation has several more meta-fields plus a big sum-type of all possible operations. See here: fhttps://gitlab.com/tezos/tezos/-/blob/master/src/proto_006_PsCARTHA/lib_protocol/operation_repr.ml#L78What is important is that one (big) Operation may lead to origination of multiple contracts. That is why contract address is constructed from hash of the operation that originated and of index of the contract's origination in the execution of that operation.In other words, contract hash is calculated as the blake2b160 (20-byte) hash of origination operation hash + int32 origination index.In Morley we do not yet support full encoding of Tezos Operations, therefore we choose to generate contract addresses in a simplified manner.Namely, we encode OriginationOperationC as we can and concat it with the origination index. Then we take mK hash of the resulting bytes and consider it to be the contract's address.morleyCreate a dummy  value by hashing given  .Use in tests **only**.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.3None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm6morleyByteString 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.4None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmYf 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.umorley Flatten all r in p. 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).vmorley Construct  for an .3In Tezos each operation has a special field called counter , see here: khttps://gitlab.com/tezos/tezos/-/blob/master/src/proto_006_PsCARTHA/lib_protocol/operation_repr.ml#L113-120This counter seems to be a part of global state of Tezos network. In fact, it may be observed in raw JSON representation of the operation in the network explorer.This counter is increased at each operation and thus ensures that origination of identical contracts with identical metadata will result in different addresses.Our counter is represented as  \, while in Tezos it is unbounded. We believe that for our interpreter it should not matter.iYWZ[ihlF\)*(+,n !"#$%&'-./0123456789:;<=>?@ABCDEGHIJKLMNOPQRSTUVX]^_`abcdefgjkmopqrstuviYWZ[ihlF\)*(+,n !"#$%&'-./0123456789:;<=>?@ABCDEGHIJKLMNOPQRSTUVX]^_`abcdefgjkmopqrstuv5None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm^yNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm`  !"#$%'&()*+,-./0123xyz{|}'()/012345678YWZ[ihlF\)*(+,n !"#$%&'-./0123456789:;<=>?@ABCDEGHIJKLMNOPQRSTUVX]^_`abcdefgjkmopqrstuv6None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmf7None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmnmorleyType for Micheline Expressionmorley-Micheline represents both nats and ints using the same decimal format. The Haskell Integer type spans all possible values that the final (Michelson) type could end up being, and then some, so we use (StringEncode Integer) to represent all integral values here for easy JSON encoding compatibility.8None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmrmorleyEncode  to  .morleyDecode  from  .morleyPartial version of .9None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmumorley.Data associated with a particular transaction.  :None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm{morleyBuilding a record from tuple.%It differs from similar typeclass in z{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.;None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm~morleyProduce ( instance for tuple of the given length.<None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm|None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmNone7!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmq| morleyLike  L, casts some container's elements, producing informative error on mismatch.morley  version of  . morleySuppose you have a data type X with parameter aX and you have two values: `x1 :: X a1` and `x2 :: X a2`. You can't compare them using  J, because they have different types. However, you can compare them using  ! as long as both parameters are  w. morley Version of   for types with 2 parameters. morley Version of   for types with 3 parameters. morley2Compare two entries of completely different types. morley Extension of   to   function.morleyCast to a type with phantom type argument without matching this argument. The phantom type must be the last type argument of the type.Example of use: imagine a type data MyType a = MyType RNormally, if object of this type was hidden under existential quantification with  w/ constraint, then in order to get it back with castb you need to know the exact type of the hidden object, including its phantom type parameter. With N you get a way to extract this object no matter which phantom argument it had.morley)Match given type against another type of * -> *. kind without caring about its type argument.              =None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorley>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.+morleyHForget information about annotations, pick singleton with the same type.!Note: currently we cannot derive  x from  without %U because for comparable types notes do not remember which exact comparable was used.,morleyGet term-level type of notes.-morley In memory of NStar5 constructor. Generates notes with no annotations..morley%Checks if no annotations are present.0morleyCombines 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.1morley<Insert the provided type annotation into the provided notes.2morley:Converge two type or field notes (which may be wildcards)." !"#$%&')*+,-./012" !"#$%&')*021/.-+,>None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm;morley Similar to <, but also gives  x for given type.<morley Transparently represent untyped Type as wrapper over Notes t from typed world with SingI t constraint.$As expression this carries logic of >, and as pattern it performs ?! but may make code a bit cleaner.Note about constraints: pattern signatures usually require two constraints - one they require and another one which they provide. In our case we require nothing (thus first constraint is ()#) and provide some knowledge about t.?morleyConvert 7 to the isomorphic set of information from typed world.;<=>?=>?<;?None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm@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.Dmorley<Errors specific to parameter type declaration (entrypoints).Jmorley?Coordinates of "arm" in Or tree, used solely in error messages.Kmorley/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.SmorleyVAddress with optional entrypoint name attached to it. TODO: come up with better name?UmorleyAddress itselfVmorley Entrypoint name (might be empty)ZmorleyvParse an address which can be suffixed with entrypoint name (e.g. "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU%entrypoint").]morleyParameter without annotations. morley4Check whether given notes are valid parameter notes.^morley Construct K! performing all necessary checks.}morley with hidden parameter type."This requires argument to satisfy  constraint. Strictly speaking, entrypoint argument may one day start having different set of constraints comparing to ones applied to parameter, but this seems unlikely.morley4Reference for calling a specific entrypoint of type arg.morleyName of entrypoint.morleyAProxy of parameter, to make parameter type more easily fetchable.morley:How to call this entrypoint in the corresponding contract.morley Construct P which calls no entrypoint and assumes that there is no explicit "default" one.*Validity of such operation is not ensured.morley5Call parameter which has no entrypoints, always safe.morley Construct }P which calls no entrypoint and assumes that there is no explicit "default" one.*Validity of such operation is not ensured.morley5Call parameter which has no entrypoints, always safe. morleyBuild @.ZHere we accept entrypoint name and type information for the parameter of target contract.Returns  K if entrypoint is not found. Does not treat default entrypoints specially.morleyBuild .ZHere we accept entrypoint name and type information for the parameter of target contract.Returns   if entrypoint is not found.morley Parameter type of implicit account.morleykFlatten a provided list of notes to a map of its entrypoints and its corresponding utype. Please refer to 86 in regards to how duplicate entrypoints are handled.;'()/012345@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^{|}~;STUVOPQRXYZ[\KLMNW]GHIJDEF^@ABC}~{|'()12345/0@None7!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmq3morley"Representation of Michelson value.Type parameter instr` stands for Michelson instruction type, i.e. data type to represent an instruction of language.morleyAlias for comparable types. morley#Report a human-readable error that  contains another  morley1Constraint which ensures that type is comparable.morleyWWrapper over instruction which remembers whether this instruction always fails or not.morleyvData type, representing operation, list of which is returned by Michelson contract (according to calling convention)._These operations are to be further executed against system state after the contract execution.morleyMerge two execution branches.morley2Get code disregard whether it always fails or not.morleyModify inner code.morleyMake value of contractJ type which refers to the given address and does not call any entrypoint.morleyTurn @ into actual function on Values.morley+Lift entrypoint argument to full parameter.morley,Get a witness of that value's type is known.ONote that we cannot pick such witness out of nowhere as not all types of kind  have  w and % instances; example: -type family Any :: T where -- nothing here morley0Provide a witness of that value's type is known.morley1Extended values comparison - it does not require Value7s to be of the same type, only their content to match.morleyIIgnoring distinction between constructors here, comparing only semantics.HHANone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmY      !"#$  "#$ !   BNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm 7Smorley#Marker data type for add operation.Vmorley0Represents an arithmetic error of the operation.Ymorley;Denotes the error type occured in the arithmetic operation._morley&Class for binary arithmetic operation.!Takes binary operation marker as op# parameter, types of left operand n and right operand m.`morley Type family ArithRes6 denotes the type resulting from computing operation op from operands of types n and m.uFor instance, adding integer to natural produces integer, which is reflected in following instance of type family: ArithRes Add CNat CInt = CInt.amorley0Evaluate arithmetic operation on given operands."ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ab"_`aSTUVWXYZ[\]^RQPONMLKJIHGFEDCBAbCNone7!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkms8morley=Keeps documentation gathered for some piece of contract code..Used for building documentation of a contract.morleyAll inlined doc items.morleyDefinitions used in document.Usually you put some large and repetitive descriptions here. This differs from the document content in that it contains sections which are always at top-level, disregard the nesting.All doc items which define  docItemId method go here, and only they.morleyhWe remember all already declared entries to avoid cyclic dependencies in documentation items discovery.morleyWe remember all already used identifiers. (Documentation naturally should not declare multiple items with the same identifier because that would make references to the respective anchors ambiguous).morley@A part of documentation to be grouped. Essentially incapsulates .morley*A map from positions to document elements.This form effeciently keeps documentation for its incremental building. Doc items here appear close to how they were located in the contract; for instance, ~ is not yet applied at this stage. You only can be sure that items within each group are splitted across sections correctly.morley#Several doc items of the same type.morley:A doc item which we store, along with related information.morleyDoc item itself.morley+Subdocumentation, if given item is a group.morleyDHides some documentation item which is put to "definitions" section.morleyHides some documentation item.morleyHow to render section name.morleySuitable for block name.morley+Suitable for subsection title within block.morleyBDefines an identifier which given doc item can be referenced with.morley!Where do we place given doc item.morley&Placed in the document content itself.morleyAPlaced in dedicated definitions section; can later be referenced. morley'Position of all doc items of some type.morley%Some unique identifier of a doc item.FAll doc items which should be refer-able need to have this identifier.morleyA piece of documentation describing one property of a thing, be it a name or description of a contract, or an error throwable by given endpoint.ZItems of the same type appear close to each other in a rendered documentation and form a section.Doc items are later injected into a contract code via a dedicated nop-like instruction. Normally doc items which belong to one section appear in resulting doc in the same order in which they appeared in the contract.While documentation framework grows, this typeclass acquires more and more methods for fine tuning of existing rendering logic because we don't want to break backward compatibility, hope one day we will make everything concise :( E.g. all rendering and reording stuff could be merged in one method, and we could have several template implementations for it which would allow user to specify only stuff relevant to his case.morleyPosition of this item in the resulting documentation; the smaller the value, the higher the section with this element will be placed.Documentation structure is not necessarily flat. If some doc item consolidates a whole documentation block within it, this block will have its own placement of items independent from outer parts of the doc.morleyDefines where given doc item should be put. There are two options: 1. Inline right here (default behaviour); 2. Put into definitions section.LNote that we require all doc items with "in definitions" placement to have   and   instances which comply the following law: if two documentation items describe the same entity or property, they should be considered equal.morley]When multiple items of the same type belong to one section, how this section will be called.<If not provided, section will contain just untitled content.morleyDescription of a section.qCan be used to mention some common things about all elements of this section. Markdown syntax is permitted here.morleyHow to render section name.)Takes effect only if section name is set.morleyDefines a function which constructs an unique identifier of given doc item, if it has been decided to put the doc item into definitions section.Identifier should be unique both among doc items of the same type and items of other types. Thus, consider using "typeId-contentId" pattern.morleyPRender given doc item to Markdown, preferably one line, optionally with header.Accepts the smallest allowed level of header. (Using smaller value than provided one will interfere with existing headers thus delivering mess).morley,All doc items which this doc item refers to.UThey will automatically be put to definitions as soon as given doc item is detected.morleyThis function accepts doc items put under the same section in the order in which they appeared in the contract and returns their new desired order. It's also fine to use this function for filtering or merging doc items.Default implementation * leaves inlined items as is; * for items put to definitions, lexicographically sorts them by their id.morley$Get doc item position at term-level. morleyARender an item into Markdown block with all required adjustments. morleyOrder items by their  docItemId.morley,Make a reference to doc item in definitions.morleyWhether given  is atomic.Normally, atomic s are ones appearing in DOC_ITEM. instruction, and non-atomic ones are put to DocGroup. morleyRender a documentation block. morleyBLift a doc item to a block, be it atomic doc item or grouping one.morley#Lift an atomic doc item to a block.morley%Find all doc items of the given type.morleyRender documentation for .morleyTo automatically derive #instance Show Michelson.Typed.Instr later.morleyA hand-made anchor.morley-Comment in the doc (mostly used for licenses)morleyRepository settings for .morley@By commit sha make up a url to that commit in remote repository. morley"Specify version if given contract.morleyDescription of something.morleyGive a name to document block.morleyGeneral (meta-)information about the contract such as git revision, contract's authors, etc. Should be relatively short (not several pages) because it is put somewhere close to the beginning of documentation.morley:A function which groups a piece of doc under one doc item.morley9Render given contract documentation to markdown document.morley2Apply given grouping to documentation being built.morleyMake .:t $mkDGitRevisionGitRepoSettings -> DGitRevisionmorleyBContract documentation assembly primarily relies on this instance.GGDNone7!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmqmorley\Typed contract and information about annotations which is not present in the contract code.morley-A print format with references into the stack morley+A reference into the stack of a given type. morley=Keeps 0-based index to a stack element counting from the top.morleyERepresentation of Michelson instruction or sequence of instructions.Each Michelson instruction is represented by exactly one constructor of this data type. Sequence of instructions is represented with use of Seq constructor in following way: SWAP; DROP ; DUP; -> SWAP  DROP  DUPO. Special case where there are no instructions is represented by constructor Nop, e.g. IF_NONE {} { SWAP; DROP; } -> IF_NONE Nop (SWAP  DROP).Type parameter inpd states for input stack type. That is, type of the stack that is required for operation to execute.Type parameter out` states for output stack type or type of stack that will be left after instruction's execution.morley^A wrapper for instruction that also contain annotations for the top type on the result stack.As of now, when converting from untyped representation, we only preserve field annotations and type annotations. Variable annotations are not preserved.PThis can wrap only instructions with at least one non-failing execution branch.morley4A wrapper for instruction with variable annotations.morley-Execute given instruction on truncated stack.PThis can wrap only instructions with at least one non-failing execution branch.Morley has no such instruction, it is used solely in eDSLs. This instruction is sound because for all Michelson instructions the following property holds: if some code accepts stack i and produces stack o#, when it can also be run on stack i + s producing stack o + s; and also because Michelson never makes implicit assumptions on types, rather you have to express all "yet ambiguous" type information in code. We could make this not an instruction but rather a function which modifies an instruction (this would also automatically prove soundness of used transformation), but it occured to be tricky (in particular for TestAssert and DipN and family), so let's leave this for future work.morleyeNop operation. Missing in Michelson spec, added to parse construction like `IF {} { SWAP; DROP; }`.morleyNested wrapper is going to wrap a sequence of instructions with { }. It is crucial because serialisation of a contract depends on precise structure of its code.morley\Places documentation generated for given instruction under some group. This is not part of ! because it does not behave like ?; instead, it inherits behaviour of instruction put within it.morleyVariants of CAR/CDR to retain field annotations as they relate to the input stack, and hence won't be available from the annotation notes from the result stack we pack with the instructions during type check.pmorley[Constraint that is used in DIPN, we want to share it with typechecking code and eDSL code.qmorleyA wrapper to wrap annotations and corresponding singleton. Apart from packing notes along with the corresponding Singleton, this wrapper type, when included with  also helps to derive the   instance for  as `Sing a` does not have a   instance on its own.vmorley<Create a stack reference, performing checks at compile time.     TRUVdcg@W$%&i !"#'()*+,-./0123456789:;<=>?ACDEFGHIJKLMNOPQSXYZ[\]^_`abefhjBklmnopqrstuvwTRUVdcg@W$%&i !"#'()*+,-./0123456789:;<=>?ACDEFGHIJKLMNOPQSXYZ[\]^_`abefhjB  v   wutsqropmnklENone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorleyConvert 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.FNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmGNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorleyCDescribes how intermediate nodes in instruction tree are accounted.morleyName of this way.morley;This function accepts: 1. Effects gathered after applying stepe to node's children, but before applying it to the node itself. 2. Effects gathered after applying step_ to the given intermediate node. 3. Instruction resulting after all modifications produced by step.morley Options for .morleyWhether { function should go into values which contain other instructions: lambdas and constant contracts (which can be passed to CREATE_CONTRACT).morley8How do we handle intermediate nodes in instruction tree. morley@Gather effects first for children nodes, then for their parents.morley4Traverse a typed instruction in depth-first order.  c is used to concatenate intermediate results. Each instructions can be changed using the supplied stepO function. It does not consider extra instructions (not present in Michelson).morleySpecialization of 9 for case when changing the instruction is not required.morleySpecialization of ' which only modifies given instruction. morley^Check whether instruction fails at each execution path or have at least one non-failing path.This function assumes that given instruction contains no dead code (contract with dead code cannot be valid Michelson contract) and may behave in unexpected way if such is present. Term "dead code" includes instructions which render into empty Michelson, like Morley extensions. On the other hand, this function does not traverse the whole instruction tree; performs fastest on left-growing combs.Often we already have information about instruction failure, use this function only in cases when this info is actually unavailable or hard to use.morleyTThere are many ways to represent a sequence of more than 2 instructions. E. g. for  i1; i2; i3 it can be Seq i1 $ Seq i2 i3 or Seq (Seq i1 i2) i3O. This function enforces a particular structure. Specifically, it makes each  & have a single instruction (i. e. not  ?) in its second argument. This function also erases redundant s.TPlease note that this function is not recursive, it does not linearize contents of IF and similar instructions.morleyDeep version of G. It recursively linearizes instructions stored in other instructions.morley&Traverse a value in depth-first order.morleySpecialization of 3 for case when changing the value is not required.morleySpecialization of ! which only modifies given value.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 a value can be converted to something. Recursively applies it to all values. Collects extracted values in a list.None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorleyThis class encodes Michelson rules w.r.t where it requires comparable types. Earlier we had a dedicated type for representing comparable types CT,. But then we integreated those types into TW. This meant that some of the types that could be formed with various combinations of T would be illegal as per Michelson typing rule. Using this class, we inductively enforce that a type and all types it contains are well typed as per Michelson's rules.morley?Isomorphism between Michelson stack and its Haskell reflection.morleyOverloaded version of  to work on Haskell and T stacks.morley1Type function to convert a Haskell stack type to T -based one.morleyEWhether Michelson representation of the type is derived via Generics.morley-Implements ADT conversion to Michelson value.wThanks to Generic, Michelson representation will be a balanced tree; this reduces average access time in general case.A drawback of such approach is that, in theory, in new GHC version generified representation may change; however, chances are small and I (martoon) believe that contract versions will change much faster anyway.morleySince Contract@ name is used to designate contract code, lets call analogy of  type as follows.Note that type argument always designates an argument of entrypoint. If a contract has explicit default entrypoint (and no root entrypoint),  ContractRefK referring to it can never have the entire parameter as its type argument.morley6Any Haskell value which can be converted to Michelson .morley4Hides some Haskell value put in line with Michelson .morleyOverloaded version of  to work on Haskell and T types.morley=Isomorphism between Michelson values and plain Haskell types.WDefault implementation of this typeclass converts ADTs to Michelson "pair"s and "or"s.morley:Type function that converts a regular Haskell type into a T type.morley"Converts a Haskell structure into Value representation.morley Converts a Value into Haskell type.morleyReplace type argument of  ContractAddr with isomorphic one.&&HNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm6e morleyPTraverse a single contructor and supply its field to instruction in case clause. morleyGeneric traversal for  6. #morleyList of  &.s required to pattern match on the given type. $morley*Type information about single case clause. &morleyuIn what different case branches differ - related constructor name and input stack type which the branch starts with. morleyGeneric traversal for  6. +morleymExpect referred constructor to have only one field (otherwise compile error is raised) and extract its type. ,morleyaExpect referred constructor to have only one field (in form of constraint) and extract its type. -morleyRGet type of constructor fields (one or zero) referred by given datatype and name. .morley8Whether given type represents an atomic Michelson value. 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  0 not only here for /-based stacks, but also later in Lorentz with  --based stacks we need the following property. 0morleyPush field to stack, if any. 1morleyGet  something# as field of the given constructor. 2morleyWe 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). 5morley Proof of  /. 6morley: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). 7morley<Wrap a haskell value into a constructor with the given name.This is symmetric to  6. 8morley$Pattern-match on the given datatype. 9morley#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  6/ 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.!NORQP ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ;! * ( 6 7 8 9 : ; & ' $ % # " !ORQPN 2 3 4 1 0 / 5 - , + ) . 98INone7!"#$%&'*,-./012456789;<=>?@AHMNPSUVX_`befgkmL morleyGeneric traversal for  g. XmorleyConstraint for  e. morleyGeneric traversal for  e. morley&Retrieve field names of a constructor. YmorleyConstraint for  e and  . Zmorley"Names of all fields in a datatype. [morley"Types of all fields in a datatype. \morleyAbility to pass list of fields with the same ToTs. It may be useful if you don't want to work with NamedF in ConstructorFieldTypes. ^morley9Way to construct one of the fields in a complex datatype. morleyGeneric traversal for  d. `morleyConstraint for  d. morleyGeneric traversal for  instrAccess. amorleyConstraint for  c. bmorley@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. cmorleyEMake an instruction which accesses given field of the given datatype. dmorleyFor given complex type dt and its field fieldTy update the field value. emorleyFor given complex type dt and its field fieldTy update the field value. gmorleyFor given complex type dt# deconstruct it to its field types. X Y Z [ \ ] ^ _ ` a b c d e f g a ` Y c d e f g X b [ Z ^ _ \ ]}None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmO#3NORQP ! ! " " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; X Y Z [ \ ] ^ _ ` a b c d e f gJNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmZ morley6Pick a field from constructor with zero or one fields. morleyGeneric traversal for   and  . ~morleyConstraint for  hsDecompose and  hsCompose. morleyjPossible outcomes of an attempt to construct a Haskell ADT value from constructor name and relevant data. morleyComposed fine. morleyNo constructor with such name. morleyRFound required constructor, but type of data does not correspond to provided one. morleyhDecompose Haskell type into constructor name and data it carries, converting the latter into Michelson . morley Inverse to  . ~    ~KNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm* morley7Representation of a field with an optional description. morley=Representation of a constructor with an optional description. 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.JThis representation also includes descriptions of constructors and fields. morley Version of   for comparable types. morley#Constraint, required when deriving  R for polymorphic type with the least possible number of methods defined manually. morleyProduct type traversal for  . morley<Generic traversal for automatic deriving of some methods in  . morley$Require this type to be homomorphic. morley=Require two types to be built from the same type constructor.E.g. 2HaveCommonTypeCtor (Maybe Integer) (Maybe Natural) is defined, while +HaveCmmonTypeCtor (Maybe Integer) [Integer] is not. morley6Doc element with description of contract storage type. morley'Doc element with description of a type. morleyCWhen rendering type's inner representation, this stands for name ofHaving this makes sense for polymorhpic types, when you want to render representation of some concrete instantiation of that type. morley"Data hides some type implementing  . morley Signature of   function.As in  ', set the first element of the pair to   for primitive types, otherwise it stands as some instantiation of a type, and its Michelson representation is given in the second element of the pair.$Examples of rendered representation: pair int nat - for homomorphic type.!MyError Integer = pair string int( - concrete sample for polymorhpic type. morley Signature of   function. A value of Tb is provided by the library to make sure that instances won't replace it with an unchecked value.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).-When 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. morley*Description of constructors and fields of a.See U' documentation for an example of usage.uDescriptions will be checked at compile time to make sure that only existing constructors and fields are referenced.For that check to work instance Generic a is required whenever TypeDocFieldDescriptions is not empty.$For implementation of the check see S type family. 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 wwR 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:[Integer](#type-integer),%[Maybe](#type-Maybe) [()](#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 Show given   in a neat way. morleyMap field names in a  @, with the possibility to remove some names by mapping them to  . morley$How field names should be displayed.UResult of this function call should appear right before rendered type of that field. morley Create a  ! in form suitable for putting to  . morleyProxy version of  . 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.:U : U ~None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmζNORQPU ! ! " " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; X Y Z [ \ ] ^ _ ` a b c d e f g ~  ȘNORQPU ! ! " " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; X Y Z [ \ ] ^ _ ` a b c d e f g ~  LNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm޶ morleyPut a document item. morleyBAssemble contract documentation with the revision of the contract. morley Assemble contract documentation. morley+Modify all documentation items recursively. morleyWRecursevly traverse an instruction and modify documentation items matching given type.If mapper returns  ", doc item will remain unmodified. morley1Leave only instructions related to documentation.Generated documentation for resulting instruction remains the same, but semantics of instruction itself gets lost. We have to pass optimizer here as an argument to avoid cyclic dependencies.  None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm%$NORQPU     '()/012345 !"#$%&')*+,-./012;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^{|}~       !"#$#ABCDEFGHIJKLMNOPQRSTUTVWXYZ[\]^_`a`b     TRUVdcg@W$%&i !"#'()*+,-./0123456789:;<=>?ACDEFGHIJKLMNOPQSXYZ[\]^_`abefhjBklmnopqrstuvw ! ! " " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; X Y Z [ \ ] ^ _ ` a b c d e f g ~  MNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morleyState for type checking nop morley(Set of variables defined in a let-block. morleywData type keeping the whole type check result: instruction and type representations of instruction's input and output. morley]This data type keeps part of type check result - instruction and corresponding output stack. morley?Type-check result with concrete output stack, most common case.1Output stack type is wrapped inside the type and Typeable8 constraint is provided to allow convenient unwrapping. morley}Type-check result which matches against arbitrary output stack. Information about annotations in the output stack is absent.HThis case is only possible when the corresponding code terminates with FAILWITH instruction in all possible executions. The opposite may be not true though (example: you push always-failing lambda and immediatelly execute it - stack type is known). morleyNo-argument type wrapper for HST data type. morleyHData type holding type information for stack (Heterogeneous Stack Type).8This data type is used along with instruction data type Instr> to carry information about its input and output stack types.That is, if there is value instr :: Instr inp out, along with this instr one may carry inpHST :: HST inp and outHST :: HST outN which will contain whole information about input and output stack types for instr. Data type HST is very similar to Data.Vinyl.RecN, but is specialized for a particular purpose. In particular, definition of HST (t1 ': t2 ': ... tn ': '[]) requires constraints ,(Typeable t1, Typeable t2, ..., Typeable tn) as well as constraints -(Typeable '[ t1 ], Typeable '[ t1, t2 ], ...). These applications of Typeable= class are required for convenient usage of type encoded by HST ts with some functions from  Data.Typeable. Data type HST (Heterogeneous Stack Type) is a heterogenuous list of tuples. First element of tuple is a structure, holding field and type annotations for a given type. Second element of tuple is an optional variable annotation for the stack element. Additionally constructor keeps %! constraint for the current type. morleyExtended pattern-match - adds Sing x argument. morleyAppend a type to  A, assuming that notes and annotations for this type are unknown. morleyGiven a type, provide evidence that it is well typed w.r.t to the Michelson rules regarding where comparable types are required. morleyGiven a type and an action that requires evidence that the type is well typed, generate the evidence and execute the action, or else fail with an error.                             8 9  7 7 7NNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm8 morleyDVarious type errors possible when checking Morley extension commands )morleyType check error /morleyData 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. 0morleyAnnotation unify error 1morleyType equality error 2morleyStacks equality error 3morleyError that happens when type cannot be used in the corresponding scope. Argument of this constructor carries type which violates the restriction, e.g. big_map in UNPACK4, and a concrete reason why the type is unsuported. 4morleyVArithmetic operation is applied to types, at least one of which is not numeric (e.g.  timestamp and  timestamp passed to MUL instruction). 5morleyError that happens when actual types are different from the type that instruction expects. The param is an non-empty list of all expected stack types that the instruction would accept. Each expected stack types is represented as non-empty list as well. 6morley=Some instruction can not be used in a specific context, like SELF in LAMBDA. 7morleyError that happens when a . is never a valid source for this type (e.g.  timestamp cannot be obtained from a ) 8morleyEThere are not enough items on stack to perform a certain instruction. 9morley Invalid entrypoint name provided :morley.Contract with given address is not originated. ;morley Given entrypoint is not present. <morleyFIncorrect parameter declaration (with respect to entrypoints feature). =morley"Natural numbers cannot be negative >morleyExceeds the maximal mutez value ?morley:Address couldn't be parsed from its textual representation @morley:KeyHash couldn't be parsed from its textual representation Amorley!Timestamp is not RFC339 compliant Bmorley1Code always fails, but shouldn't, like ITER body. Cmorley$Empty block of code, like ITER body. DmorleyAGeneric error when instruction does not match something sensible. Emorley$Contexts where type error can occur. Vmorley>Description of the type to be expected by certain instruction.M  ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E R O F G H I J K L M N P Q S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j kM V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k E R O F G H I J K L M N P Q S T U / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D ) * + , - .  ! " # $ % & ' (ONone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmF) morleyThe typechecking state morleyzRun type checker as if it worked isolated from other world - no access to environment of the current contract is allowed.&Use this function for test purposes only or for some utilities when environment does not matter. In particular, it is assumed that whatever we typecheck does not depend on the parameter type of the contract which is being typechecked (because there is no contract that we are typechecking). morley Similar to  , but for 'TypeCheckInstr.' morleyRun  0 and modify thrown errors using given functions.  PNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmc morleyAFunction which derives special annotations for PAIR instruction.+Namely, it does following transformation:  PAIR % % [  p.a int : p.b int : .. ] ~ [ "p (pair (int %a) (int %b) : .. ] All relevant cases (e.g.  PAIR %myf % 3) are handled as they should be according to spec. morleyGFunction which derives special annotations for CDR / CAR instructions. morley8Append suffix to variable annotation (if it's not empty) morley(Function which extracts annotations for or" type (for left and right parts).It extracts field/type annotations and also auto-generates variable annotations if variable annotation is not provided as second argument. morley(Function which extracts annotations for option t type.TIt extracts field/type annotations and also auto-generates variable annotation for Some/ case if it is not provided as second argument. morley.Combine annotations from two given stack types morley:Extract singleton for each single type of the given stack. morley.Check whether the given stack types are equal. morleyCheck whether the given stack has size 1 and its only element matches the given type. This function is a specialized version of  . morleyCheck whether elements go in strictly ascending order and return the original list (to keep only one pass on the original list). morley Function eqType is a simple wrapper around Data.Typeable.eqT suited for use within Either TCTypeError a applicative. morleyJCheck whether given types are structurally equal and annotations converge. morley%Generic implementation for MEMeration morleyLHelper function to construct instructions for binary arithmetic operations. morleyLHelper function to construct instructions for binary arithmetic operations.# # QNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmr morley Function typeCheckValImplA converts a single Michelson value given in representation from Michelson.Type2 module to representation in strictly typed GADT.typeCheckValImpl. is polymorphic in the expected type of value.VType checking algorithm pattern-matches on parse value representation, expected type t and constructs Val t value.If there was no match on a given pair of value and expected type, that is interpreted as input of wrong type and type check finishes with error. morley Function typeCheckMapVal typechecks given list of Elt5s and ensures, that its keys are in ascending order.YIt return list of pairs (key, value) with keys in ascending order so it is safe to call fromDistinctAscList on returned list  RNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmzB morleyDCheck that the optional "forall" variables are consistent if present morley Executes function body, pushing ExtFrame+ onto the state and checks the pattern in FN. morley Check that a StackTypePattern& matches the type of the current stack morley<Create stack reference accessing element with a given index.2Fails when index is too large for the given stack.  SNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morley Function  typeCheckListG converts list of Michelson instructions given in representation from Michelson.Type2 module to representation in strictly typed GADT.YTypes are checked along the way which is neccessary to construct a strictly typed value.As a second argument,  typeCheckList) accepts input stack type representation. morley Function typeCheckValueA converts a single Michelson value given in representation from Michelson.Untyped< module hierarchy to representation in strictly typed GADT.typeCheckValue. is polymorphic in the expected type of value.VType checking algorithm pattern-matches on parse value representation, expected type t and constructs Val t value.If there was no match on a given pair of value and expected type, that is interpreted as input of wrong type and type check finishes with error. morley Function typeCheckInstrG converts a single Michelson instruction given in representation from Michelson.Type2 module to representation in strictly typed GADT.As a second argument, typeCheckInstr) accepts input stack type representation.Type checking algorithm pattern-matches on given instruction, input stack type and constructs strictly typed GADT value, checking necessary type equalities when neccessary.If there was no match on a given pair of instruction and input stack, that is interpreted as input of wrong type and type check finishes with error. morleyMHelper function for two-branch if where each branch is given a single value.  None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm{                ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E R O F G H I J K L M N P Q S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k  TNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morley&Minimal (earliest) timestamp used for Arbitrary (CValue 'CTimestamp) morley$Maximal (latest) timestamp used for Arbitrary (CValue 'CTimestamp) morley Median of   and  \. Useful for testing (exactly half of generated dates will be before and after this date). UNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm! morleyState of an arbitrary address. morley5For contracts without code we store only its balance. morley<For contracts with code we store more state represented by  . morleyState of a contract with code. morley'Amount of mutez owned by this contract. morley,Storage value associated with this contract. morleyContract itself (untyped). morleyWe keep typed representation of contract code and storage in form, that hides their actual type in order to simplify the rest of the code (e.g. avoid type parameters for  c and so on). They are made optional in order to perform safe parsing from JSON (we simply return   in this parser and use   or  6 that optionally typecheck storage or contract code). morleyaPersistent data passed to Morley contracts which can be updated as result of contract execution. morleyIdentifier of chain. morley$All known addresses and their state. morley"Ever increasing operation counter. morleyExtract balance from  . morleyUpdates that can be applied to  . morleyNumber of genesis addresses. morley6Secrets from which genesis addresses are derived from. morleyKeyHash of genesis address. morley.Initially these addresses have a lot of money. morleyOne of genesis key hashes. morleyOne of genesis addresses. morleySecret key assotiated with  . 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 GState5                  5                  VNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm] morleypConvert an untyped contract into a textual representation which will be accepted by the OCaml reference client. !morleymConvert a typed contract into a textual representation which will be accepted by the OCaml reference client. "morleykConvert typed contract into a textual representation which will be accepted by the OCaml reference client. #morleyhConvert typed value into a textual representation which will be accepted by the OCaml reference client. $morleyjConvert untyped value into a textual representation which will be accepted by the OCaml reference client. %morleyConvert  U into a textual representation which will be accepted by the OCaml reference client. ,-.0 ! " # $ % ,-.0 ! " % # $WNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm: &morley6Built-in Michelson Macros defined by the specification Emorley1Unexpanded instructions produced directly by the ops[ parser, which contains primitive Michelson Instructions, inline-able macros and sequences FmorleyPrimitive Michelson instruction Gmorley5Built-in Michelson macro defined by the specification Hmorley2User-defined macro with instructions to be inlined ImorleyA sequence of instructions PmorleyA programmer-defined macro Vmorley%Expand all macros in parsed contract.: & 3 ' ( ) * + , - . / 0 1 2 4 5 6 7 8 9 : ; < = > ? @ A B C D E I F G H J L K M N O P Q R S T U V W X Y Z [ \ ] ^ _: J L K M N O & 3 ' ( ) * + , - . / 0 1 2 4 5 6 7 8 9 : ; < = > ? @ A P Q R S T B C E I F G H D V W _ X U Y Z [ \ ] ^XNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm, morley!A programmer-defined type-synonym morleyA programmer-defined constant YNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmD morley2The environment containing lets from the let-block  ZNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmb  [None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morley endBy2 p sep# parses two or more occurrences of p, separated by sep. morleyMake a parser from a string morley8Apply given parser and return default value if it fails. morleyParse a positive number. morley5Parse expression which can be wrapped in parentheses.  \None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morleyParse untyped  Bi. Take instruction parser as argument to avoid cyclic dependencies between modules, hence ' in its name.  ]None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmE morley General TV2F Annotation parser, including Special Annotationsrs  rs^None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm  _None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm  `None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmw morleyFParser for primitive Michelson instruction (no macros and extensions). morley!Parse a sequence of instructions.  aNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm  bNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm! morleyElement of a let block morleylet block parser morley'Incrementally build the let environment morley1add a Let to the environment in the correct place morley7build a let name parser from a leading character parser  None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm c morleyParse with empty environment morley'Michelson contract with let definitions morleyMichelson contract morleyParse untyped value from text which comes from something that is not a file (which is often the case). So we assume it does not need any parsing environment. morleyLike  , but also expands macros. morley5Parses code block after "code" keyword of a contract.IThis function is part of the module API, its semantics should not change. morleyCreates  by its Morley representation.[utypeQ| (int :a | nat :b) |]8Type (TOr % % (Type (Tc CInt) :a) (Type (Tc CNat) :b)) :DEFGHIJKLMNOP  IJKLMNOPDEFGH cNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm 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. morley%Should transform only atomic values,  will be applied to it.  dNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm23 morleyDescribes how  G should decode tag-dependent data. We expect bytes of such structure:  5 followed by a bytestring which will be parsed with  . morleyAlias for label attaching. morleydGet a bytestring of the given length leaving no references to the original data in serialized form. morleyGet remaining available bytes.Note that reading all remaining decoded input may be expensive and is thus discouraged, use can use this function only when you know that amount of data to be consumed is limited, e.g. within  decodeAsBytes call. morley-Read a byte and match it against given value. morleyFail with "unknown tag" error. morleynRead a byte describing the primitive going further and match it against expected tag in the given conditions.Aside of context description, you have to specify number of arguments which given instruction accepts when written in Michelson. For instance, PUSH) accepts two arguments - type and value. morleyLike  a, but doesn't backtrack if next entry failed to parse yet there are some bytes to consume ahead.9This function exists primarily for better error messages. morley Alias for   constructor. morley6Deserialize bytes into the given value. Suitable for UNPACK operation only. morleyLike  , for strict byte array. morley0Deserialize an instruction into the given value. morleyITurn composable decoder into a final decoder which will be run over data. morley-Read length of something (list, string, ...). morley9Given decoder for list content, get a whole list decoder. morleyRead a numeric value. morley-Type check instruction occured from a lambda. morley?Utility function to fill a constructor with an empty annotation morley5Decodes an annotations' string and uses the provided   to parse untyped annotations from it. This has to produce at least one annotation (Annotations' String parsing will fail otherwise)^_` ^_`  0 0eNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmD8 morleySerialize a value given to PACK instruction. morleySame as  , for strict bytestring. morleyGeneric serializer.We don't require  HasNoBigMapH constraint here since the big_map serialization is only prohibited in PACK instructions, however, we still want to be able to serialize big_map e.g. in order to transform typed value to low-level Micheline representation. TODO: Serialize chain operations properly as well since they actually also have byte representation. morley4Lift encoded list content to an entire encoded list. morleyEncode a list-like structure. morleyEncode a text. morleyEncode some raw data. morleyEncode some map. morley"Encode contents of a given number. morleyEncode an int-like value. morleyEncode a code block. morleyEncode an instruction. morleygIff there are non-empty annotations it increments the value's tag and appends the encoded annotations. morley/Encode an instruction with variable annotations morley&Encode an instruction with Annotations  fNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmI> morleyWType class that provides the ability to convert something from a Micheline Expression. morleyRType class that provides an ability to convert something to Micheline Expression.  None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmKD$VWXYZ gNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm_ morleyOptimize a typed instruction by replacing some sequences of instructions with smaller equivalent sequences. Applies default set of rewrite rules. morley9Optimize a typed instruction using a custom set of rules. morleyWe do not enable   rule by default because it is potentially dangerous. There are various code processing functions that may depend on constants, e. g. string transformations. morleyAppend LHS of  k to RHS and re-run pointwise ruleset at each point. That might cause reinvocation of this function (see  3), but productivity ensures it will flatten any  E-tree right-to-left, while evaling no more than once on each node.dThe reason this function invokes ruleset is when you append an instr to already-optimised RHS of  $, you might get an optimisable tree.<The argument is a local, non-structurally-recursive ruleset. morleyCombine two rule fixpoints. morley*Combine a rule fixpoint and a simple rule. morleyTurn rule fixpoint into rule. morleyDApply the rule once, if it fails, return the instruction unmodified. morleyAn adapter for . morley.Apply a rule to the same code, until it fails.                hNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkml morleyOperation size in bytes.}We use newtype wrapper because there are different units of measure (another one is gas, and we don't want to confuse them). morley9Maximal operation size allowed by Tezos production nodes. morleyRBase cost of any transfer of 0 mutez with no extra parameters. (Add 'valueOpSize  param5' to it to get assessment of actual transfer op size) morleyAccepts an arbitrary number of   and/or H that belong to the same entity and returns their total operation size.MNote that annotations which belong to the same entity (type or instruction) must be\ considered in aggregate using one call of this function and to be specified in order. See  for details.          iNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmd 'morley"Morley logs for interpreter state. )morleyLogs in reverse order. 4morleyfRepresents `[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. Amorley4The contract that initiated the current transaction. Bmorley=The contract that initiated the current internal transaction. Cmorley"Amount of the current transaction. Dmorley Identifier of the current chain. Emorley`Hash of the currently executed operation, required for correct contract address computation in ] instruction. GmorleyInterpret a contract without performing any side effects. This function uses untyped representation of contract, parameter and storage. Mostly used for testing. MmorleyRInterpret an instruction in vacuum, putting no extra contraints on its execution.Mostly for testing purposes. NmorleyBFunction to change amount of remaining steps stored in State monad PmorleyCFunction to interpret Michelson instruction(s) against given stack.morley?Evaluates an arithmetic operation and either fails or proceeds. Qmorley*Unpacks given raw data into a typed value.morley,Access given stack reference (in CPS style).7      ! " # $ % & ' ( ) * + , - . / 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 Q7 : ; < = > ? @ A B C D E    ! 4 5 6 7 8 9 " # $ % ' ( ) F K M & I J G / 0 1 2 3 * + , - .   N O Q L H PjNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm jmorley0Dummy timestamp, can be used to specify current d value or maybe something else. kmorleyDummy 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. lmorleyDummy  :s with some reasonable hardcoded values. You can override values you are interested in using record update syntax. mmorley with most data hardcoded to some reasonable values. Contract and initial values must be passed explicitly, because otherwise it hardly makes sense. j k l m j k l mkNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm# nmorley,Result of a single execution of interpreter. pmorleyNew  . qmorleyUpdates applied to  . rmorleyDuring 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. smorley2Now much gas all remaining executions can consume. tmorleyMOperations 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. umorleyOriginate a contract. vmorleybSend a transaction to given address which is assumed to be the address of an originated contract. morley(A monad in which contract executor runs. morleyEErrors that can happen during contract interpreting. Type parameter aE determines how contracts will be represented in these errors, e.g. . morley0The interpreted contract hasn't been originated. morley,Interpretation of Michelson contract failed. morley!A contract is already originated. morleySender address is unknown. morleyManager address is unknown. morley!Sender doesn't have enough funds. morleySending 0tz towards an address. morley"Failed to apply updates to GState. morleyA contract is ill-typed. morleyContract storage is ill-typed. morley Contract parameter is ill-typed. morley)Specified entrypoint to run is not found. morleyParse a contract from  U. morleyParse a contract from  U and expand macros. morley,Read and parse a contract from give path or  (if the argument is   ). The contract is not expanded. morleyRead a contract using  8, expand and flatten. The contract is not type checked. morleyFOriginate a contract. Returns the address of the originated contract. morley}Run a contract. The contract is originated first (if it's not already) and then we pretend that we send a transaction to it. morley:Send a transaction to given address with given parameters. morleyKRun some executor action, returning its result and final executor state in  n.The action has access to the hash of currently executed global operation, in order to construct addresses of originated contracts. It is expected that the action uses  9 to specify this hash. Otherwise it is initialized with . morley<Run some executor action, reading state from the DB on disk.Unless dryRun is False., the final state is written back to the disk.If the executor fails with  # it will be thrown as an exception. morley:Run some executor action in a context of global operation.`Use this function to execute one global operation, potentially with its internal suboperations. morley=Execute a list of global operation, discarding their results.Uses   internally. morley!Execute an origination operation. morleyExecute a transfer operation.< n o p q r s t u v <  t u v n o p q r s lNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm~ morleyFull parser for a client. morley#Parser for path to a contract code. morley Parser for the time returned by NOW instruction. morley+Parser for gas limit on contract execution. morley.Parser for path to database with Morley state. morley"Parser for transaction parameters. morley$Generic parser to read an option of   type. morley$Generic parser to read an option of  type. morley$Generic parser to read an option of a type. morley$Generic parser to read an option of  type. morley --oneline flag. morley$Generic parser to read an option of ' type. morley$Generic parser to read an option of d type. mNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm} morley'Type for contract execution validation.oIt's a function which is supplied with contract execution output (failure or new storage with operation list).FFunction returns a property which type is designated by type variable prop and might be  or  or anything else relevant. morleyContractCode's property tester against given input. Takes contract environment, initial storage and parameter, interprets contract on this input and invokes validation function. morley Version of   which takes Val1 as arguments instead of regular Haskell values.This function assumes that contract has no explicit default entrypoints and you always have to construct parameter manually; if you need to test contract calling specific entrypoints, use integrational testing defined by Michelson.Test.Integrational module. morley"Check if entrypoint is present in . morleyBCheck whether the given set of entrypoints is present in contract. morleykMatch the given contract with provided set of entrypoints, return left if some entrypoints were not found. morley ' that expects a successful termination. morley _ that expects contract execution to succeed and update storage to a particular constant value. morley  that expects a given failure. 8 & & 8 nNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm/-morley5Store result of interpreted operations as they added.morley7Store the most recent result of interpreted operations.morley4Map from contracts addresses to humanreadable names.morleyRIf set, all following transfers will be executed on behalf of the given contract.morley"A result of an executed operation. morley.Overall information about test scenario error. morleyMA monad inside which integrational tests can be described using do-notation. morley When using branchS function for building test scenarios - names of branches we are currently within. morleyYIntegrational test that executes given operations and validates them. It can fail using   capability. It starts with   and some reasonable dummy values for gas limit and current timestamp. You can update blockchain state by performing some operations. morleyIntegrational test similar to  . It can fail using  Y/ capability. It can be used with QuickCheck's forAll4 to make a property-based test with arbitrary data. morleyIntegrational test similar to  . It can fail using Property- capability. It can be used with Hedgehog's forAll4 to make a property-based test with arbitrary data. morleyCHelper function which provides the results of the given operations. morley'Interprets provided list of operations. morleyVOriginate a contract with given initial storage and balance. Its address is returned. morleyLike  #, but for typed contract and value. morley#Transfer tokens to a given address. morley Similar to  5, for typed values. Note that it works with untyped  and does not check that entrypoint with given name is present and has the expected type. Passed value must correspond to the entrypoint argument type, not the parameter type of the contract (and must be unit for implicit accounts).morleyFValidator for integrational testing that expects successful execution. morleyJust fail with given error. morleyVFail a test because an interpreter error happened unexpectedly, with the given reason. morleyQMake all further interpreter calls use the modified timestamp as the current one. morleyNMake all further interpreter calls use the given timestamp as the current one. morley5Increase current time by the given number of seconds. morley;Make all further interpreter calls use the given gas limit. morleyTPretend that given address initiates all the transfers within the code block (i.e. SENDER' instruction will return this address). morley:Make all further interpreter calls use the given chain id.morley+Put an interpreted result to InternalState.morley?Make branch names for a case when we are not within any branch.morley4Add a new branch element to names provided by inner branch calls. morleyaExecute multiple testing scenarios independently, basing them on scenario built till this point./The following property holds for this function:G pre >> branchout [a, b, c] = branchout [pre >> a, pre >> b, pre >> c] .TIn case of property failure in one of the branches no following branch is executed.TProviding empty list of scenarios to this function causes error; we do not require   here though for convenience. morley5Make a tuple with name without extra syntactic noise. morleyvTest given scenario with the state gathered till this moment; if this scenario passes, go on as if it never happened. morley!Check that there were no updates. morley)Check that there were no storage updates. morley7Check that storage value satisfies the given predicate. morleyjCheck that storage value is updated for given address. Takes a predicate that is used to check the value.YIt works even if updates are not filtered (i. e. a value can be updated more than once). morleyLike  , but expects a constant. morley@Check that eventually address has some particular storage value. morley Similar to  , for typed stuff. morley:Check that eventually address has some particular balance. morleyUAttempt to run an action and return its result or, if interpretation fails, an error. morleyRun an action that is expected to fail. If the action fails, the test succeeds and the error is returned. If the action succeeds, the test fails. morley'Run an action that is expected to fail.In action   f: If the action fails, fB is applied to the error. If the action succeeds, the test fails. morley4Check that interpreter failed due to gas exhaustion. morleyOExpect that interpretation of contract with given address ended with [FAILED].<     <      0oNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmE morleyError type for   function. morleyImport contract and use to create test trees. Both versions of contract are passed to the callback function (untyped and typed).If contract's import fails, a tree with single failing test will be generated (so test tree will likely be generated unexceptionally, but a failing result will notify about problem). morleyLike  $ but supplies only untyped contract. morleyLike  " but supplies only typed contract. morley{Import contract and use it in the spec. Both versions of contract are passed to the callback function (untyped and typed).If contract's import fails, a spec with single failing expectation will be generated (so tests will likely run unexceptionally, but a failing result will notify about problem). morley A version of  = which passes only the typed representation of the contract. morley'Import contract from a given file path.This function reads file, parses and type checks a contract. Within the typechecking we assume that no contracts are originated, otherwise a type checking error will be caused.This function may throw  and  .          pNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmUn morley,This data type captures typical ways to use <? instruction. Each constructor corresponds to a usage pattern.morley(Push a constant string and fail with it.morleytPush a constant pair where the first item is a string and the second one is an arbitrary constant. Fail afterwards.morley%Push a constant string and apply the $ instruction, then fail. morley!We need this class to pass it to . ' is needed because we push a value and  w is needed for <. morleyExtract error tag out of  . morley4Check whether given instruction ends with a typical <^ usage. It does not recursively check instructions that can be passed to other instructions.4The instruction MUST be linearized to the left (see ). morley)If given instruction ends with a typical <{ usage, modify the tag used there using given transformation function. It can return any value, not necessarily a string.   qNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmc 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.            rNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm morley%Test case for contract documentation. morley`Declaration location, used to distinguish different test predicates. This is primarily used in  !. morley+Description of predicate, which you put to . morley Test itself. morley Construct  .dNote: you should not declare helpers with this function rather use it directly in every test suite. !morleyExclude given test suite. "morleyCalling excludeDocTests tests toExclude returns all test suites from tests which are not present in  toExclude. #morleyFinalize test suites. $morley Ensure that  > check fires on given contract. Used in tests on this module.morley1Apply given function to each group (created with DocGroupd instruction) recursively. This function will accept grouping doc item itself and its subcontents. %morley1Apply given function to each group (created with DocGroup instruction) within a contract recursively. This function will accept grouping doc item itself (unless we are at root) and its subcontents. &morley8Apply given function to each doc item within a contract. 'morley2Check that contract documentation is wrapped with  contractName. (morleyqCheck that contracts themselves do not set the git revision. It is supposed to be filled only in the executable. )morley7Check that there is at least one non-grouping doc item.{If there is no such, rendered documentation will be empty which signals about most of the documentation pieces being lost. *morley!Check that no group contains two  items.Normally such behaviour is allowed and can be exploited, but often it is not and multiple descriptions appearence under the same group signals about missing grouping wrapper (e.g. use of caseT instead of  entryCase).morley'Check that all descriptions are proper. +morleyOTest whether storage documentation is included in the contract's documentation. ,morley;Base properties which should comply for all documentations.      ! " # $ % & ' ( ) * + ,      ! " # $ , ' ( ) * + % &None6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkm^L !>?@ABCDEFGH & l     " # ,L     &  BCDEFGH ! # , " l >?@AsNone6!"#$%&'*,-.012456789;<=>?@AHMNPSUVX_`befgkmmorley 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. 0morley&Run given generator deterministically. 0 0       !"#$%&'()*+,-./01230456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvvvvwxyz{|}~     ^_`abcdefghijklmnopqrstu !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~           !!!!!!!!!"""#$$$$%%% &&&&&&&&&&&& & & & & &&&&&&&&& !"#$%&'()*+,-./012345'6'7'8'9':';'<'='>'?'@'A'B'C'D(E)F*G*HIJJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkllmnopq r s t u v w x y z { | } ~        +++++++++++++++++++++++++++++                               ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------------------------- - - - - ---------------........................ . . . ...............////////////////////////// / / / / ////////////////0 0 0!0"0#0$0%0&00'0(0)0*00+0,0-00.0/00000000000 000000 0102030405060708090 00 000:0;00000<0=0>0?0@0A0B0C000000000D0E0F0G0H0I0J0K0L0M1N1O1P1Q1Q1R1S1T1U1V1W1X1Y1Z1[1\1]1^1_1`1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1{1|1}1~11111111111111111122222222222222222222222222222222222222222222222222222222222222222233333333333333333333333333333333333333333333333344444444444444 4 4 4 4 4444444444444444444 4!4"4#4$4%4&4'4(4)4*4+4,4-4.4/404142434445464748494:4;4<4=4>4?4@4A4B4C4D4E4F4G4H4I4J4K4L4M4N4O4P4Q4R4S4T4U4V4W4X4Y4Z4[4\4]4^4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x4y4z4{4|4}5~55666666666666666666666666677777707777777777777777777U7I7777777777777\7[788899999999999999:::;<<<<<<<<<<<<<<<<<<<<<<<<<<======================== = = = = = ==============>>>>> ?!?"?#?$?%?&?'?(?)?*?+?,?-?.?/?0?1?2?3?4?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?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@{@|@}@~@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAABBBBBBBBBBB B!B"B#B$B%BB&B'B(B)B*B+B,B-B.B/B0B1B2B3B4B5B6B7B8B9B:B;B<B=B>B?B@BABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZB[B\B]B^B_B`BaBbBcBdBeBfBgBhBiBjBkClClCmCnCoCpCqCqCrCsCsCtCtCuCvCwCwCxCxCyCzC{C|C|C}C~CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD DD D D D DDDDDDDDDDDDDDDDD D!D"D#D$D%D&D'D(D)D*D+D,D-D.D/D0D1D2DD3D4D5D6D7D8D9D:D;D<D=D>D?D@DADBDCDDDEDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEFFuFwFGGGGGGGGGGGGGGGG G G G G GG _!!""#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstHuHvHwHxHyHyHzHzH{H|H}H~HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJJJJJJJJJJJJJKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K !K "K #K $K %K &K 'K (K )K *K +K ,K -K .K /K 0K 1K 2K 3K 4K 5K 6K 7K 8K 9K :K ;K <K =K >K ?K @K AK BK CK DL EL FL GL HL IL JM KM LM LM MM MM NM OM PM QM RM SM SM TM UM VM WM XM YM ZM [M \M ]M ^M _M `M aM bM cM dM eM fM gN hN iN jN kN lN mN nN oN pN 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 N N N N N N N N N N N N NN N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N O O O O O O O O O O O O O O O O O P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P Q R S S S S S T T T T T T T T T T T T T T T T T T T T T U U U !U "U "U #U $U %U &U 'U (U )U *U +U ,U -U .U /U /U 0U 1U 2U 3U 4U 5U 6U 7U 8U 9U :U ;U <U =U >U ?U @U AU BU CU CU DU EU FU GU HU IU JU KU LU MU NU OU PU QU RU SU TU UU VU WU XU YU ZU [U \U ]U ^U _U `U aU bV cV dV eV fV gV hW iW jW kW lW mW nW oW pW qW rW sW tW uWW vW wW xW yW zW {W |W }W ~W W W W W W W W W W W W WW 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 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 X Y Y Y Y Y Y Y Y Y Y Z Z Z Z Z Z Z Z Z Z Z Z Z Z [ [ [ [ [ [ \ \ \ \ \ ] ] ] ] ] ] ] ] ] ] ] ] ^ ^ ^ _ _ _ ` ` ` ` ` ` a a a a a a b b b b      ! " #c $c %d &d 'd (d )e *e +e ,e -e .e /e 0f 1f 2f 3f 4f 5f 6f 7f 8f 9f :f ;g <g =g =g >g ?g @g Ag Bg Cg Dg Eg Fh Gh Gh Hh Ih Jh Kh Lh Mh Nh Oh Ph Qh Rh Sh Th Ui Vi Wi Xi Xi Yi Zi [i \i \i ]i ]i ^i _i _i `i ai ai bi ci di ei fi gi hi ii ji ki li mi ni oi pi pi qi ri si ti ui vi wi xi yi zi {i |i }i ~i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i j j j j k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k 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 l l l m m m m m m m m m n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n !n "n #n $n %n &n 'n (n )o *o +o ,o -o .o /o 0o 1o 2o 3o 4o 5o 6o 7o 8o 9o :o ;o <p =p >p ?p @p Ap Bq Cq Cq Dq Eq Fq Gq Hq Iq Jq Kq Lr Mr Mr Nr Or Pr Qr Rr Sr Tr Ur Vr Wr Xr Yr Zr [r \r ]r ^r _r `ss as bs cs ds es fs gs hs s is js ks ls ms ns os ps qs rs ss ts us vs ws xs ys zs {s |s }s ~s                   xt t t t t t t t                      !   &    w v   ,    1    ? ? @ @ C   C C C C C  G G H H H H H H H H I I I I I I I I I  I J J K K K K Q R R R R S S U U U U b b b  c d d d d d !d "d #d $d %d &d ' (d )d *d +d ,d -d .d /d 0e 1e 2e 3e 4e 5e 6e 7e 8e 9e :e ;e <g =g >g ?g @g Ag Bh Ci Di E F G H In Jn Kn Ln Mn Nn On P Q Rn n Sn Tn Un Vn W  Xp Yp Zp [ \ ] ^r _r `s as b c#morley-1.4.0-FPgS4VJ0cLmB07ubDf4i8P Util.TypeLits Util.Label Util.Typeable Util.TypeMichelson.Typed.ScopeMichelson.Typed.Haskell.Value Util.DefaultUtil.Fcf Util.LensMichelson.ParserMichelson.Parser.Error Util.NamedMichelson.Test.UtilUtil.CLI Util.PeanoMichelson.Printer.Util%Michelson.Typed.Haskell.Instr.Helpers+Michelson.Typed.Haskell.ValidateDescriptionMorley.Micheline.JsonTezos.Crypto.HashTezos.Crypto.Util Util.AesonMichelson.Untyped.AnnotationMichelson.Untyped.TypeMichelson.Untyped.ExtMichelson.Untyped.ContractMichelson.Typed.TMichelson.Typed.SingMichelson.ErrorPosUtil.Alternative Util.BinaryUtil.ByteStringUtil.Exception Util.Generic Util.IO.GHCUtil.IOUtil.Instances Util.Markdown Util.PositiveUtil.THUtil.Test.Ingredients Util.TextMichelson.Untyped.EntryPointsMichelson.TextTezos.Crypto.Secp256k1Tezos.Crypto.P256Tezos.Crypto.Ed25519 Tezos.Crypto Tezos.Core Tezos.AddressMichelson.Untyped.ValueMichelson.Untyped.InstrMichelson.Untyped.Aliases Util.Test.GenMorley.Micheline.ExpressionMorley.Micheline.BinaryMichelson.Runtime.TxDataUtil.TypeTuple.ClassUtil.TypeTuple.THUtil.TypeTuple.InstancesMichelson.Typed.AnnotationMichelson.Typed.ExtractMichelson.Typed.EntryPointsMichelson.Typed.ValueMichelson.Typed.PolymorphicMichelson.Typed.Arith Michelson.DocMichelson.Typed.InstrMichelson.Typed.ConvertMichelson.Typed.AliasesMichelson.Typed.Util!Michelson.Typed.Haskell.Instr.Sum%Michelson.Typed.Haskell.Instr.Product Michelson.Typed.Haskell.LooseSumMichelson.Typed.Haskell.DocMichelson.Typed.DocMichelson.TypeCheck.TypesMichelson.TypeCheck.ErrorMichelson.TypeCheck.TypeCheckMichelson.TypeCheck.HelpersMichelson.TypeCheck.ValueMichelson.TypeCheck.ExtMichelson.TypeCheck.InstrMichelson.Test.GenMichelson.Runtime.GStateMichelson.PrinterMichelson.Macro Michelson.LetMichelson.Parser.TypesMichelson.Parser.LexerMichelson.Parser.HelpersMichelson.Parser.ValueMichelson.Parser.AnnotationsMichelson.Parser.TypeMichelson.Parser.ExtMichelson.Parser.InstrMichelson.Parser.MacroMichelson.Parser.LetMichelson.PreprocessMichelson.Interpret.UnpackMichelson.Interpret.PackMorley.Micheline.ClassMichelson.OptimizerMichelson.OpSizeMichelson.InterpretMichelson.Test.DummyMichelson.Runtime Morley.CLIMichelson.Test.UnitMichelson.Test.IntegrationalMichelson.Test.ImportMichelson.FailPatternMichelson.AnalyzerMichelson.Doc.TestUtil.Test.Arbitrary Paths_morleyMichelson.TypeTypeDataGenericMichelson.Untyped Data.Vinyl FromTupleUtil.TypeTupleMichelson.Typed.Haskell.InstrMichelson.Typed.HaskellMichelson.TypedMichelson.TypeCheckMorley.MichelineTest.QuickCheckProperty Test.Hspec ExpectationMichelson.Testbase GHC.TypeLits KnownSymbolGHC.OverloadedLabelsIsLabelghc-prim GHC.TypesSymbol TypeError AppendSymbolText:<>::$$:ShowType fromLabel Data.TypeableeqT symbolVal ErrorMessageData.Type.EqualityRefl:~:==Data.Type.BoolIf)constraints-0.11.2-8EHfvWmM9iq8fMaw1jmWHKData.ConstraintwithDictDictSub:-1data-default-class-0.1.2.0-Hn6rbGElvv4B4VdN5m2X0WData.Default.ClassDefaultdef3first-class-families-0.7.0.0-AKoF280Rgrd8XPTqX36onkFcf.CoreEval"lens-4.18.1-6qW7qxI5Hz7CTf2DAYQ95wControl.Lens.THmakeLensesWith'megaparsec-8.0.0-3X2yLQVMnQV9YEPuTbc7UCText.Megaparsec.ErrorerrorBundlePrettyParseErrorBundle$named-0.3.0.1-KR6CzcWiesR2FBWuXAfEa6Named.Internal:!:?$o-clock-1.1.0-Eyjv67b43bT8o5eO3yssL5 Time.Unitsminutemcsmssec3optparse-applicative-0.15.1.0-8lufb1qPLmfiWdRsJZ50SOptions.Applicative.Builder eitherReaderOptions.Applicative.Types readerError%singletons-2.6-8HaHZGUf8l7ErZBDUigN7kData.Singletons.InternalsingSingI#vinyl-0.12.1-5AwmFwPZtvbFH6BYFlWmMmData.Vinyl.TypeLevelSZNat++Prettier RenderDoc renderDoc isRenderable RenderContextprintDoc printDocB printDocS renderOps renderOpsListspaces wrapInParensbuildRenderDoc needsParensdoesntNeedParens addParensassertParensNotNeededleftToShowPanicleftToPrettyPanic failedProp succeededPropqcIsLeft qcIsRight failedTest succeededTest eitherIsLeft eitherIsRighttotalmeanTimeUpperBoundPropmeanTimeUpperBoundPropNF genEither genTuple2runGen roundtripTest roundtripTreePathBranchLRFieldDescriptionsValidFieldDescriptionsVFieldDescriptions TezosInt64 TezosBigNum StringEncodeunStringEncode$fToJSONStringEncode$fFromJSONStringEncode$fToJSONStringEncode0$fFromJSONStringEncode0$fGenericStringEncode$fEqStringEncode$fOrdStringEncode$fBoundedStringEncode$fReadStringEncode$fShowStringEncode$fEnumStringEncode$fNumStringEncode$fIntegralStringEncode$fBitsStringEncode$fRealStringEncode$fNFDataStringEncode$fHashableStringEncodeblake2b blake2b160sha256sha512B58CheckWithPrefixErrorB58CheckWithPrefixWrongPrefixB58CheckWithPrefixWrongEncodingCryptoParseErrorCryptoParseWrongBase58CheckCryptoParseWrongTagCryptoParseCryptoErrorCryptoParseUnexpectedLengthencodeBase58CheckdecodeBase58CheckdecodeBase58CheckWithPrefix formatImpl parseImpl firstRight deterministic$fBuildableCryptoParseError$fNFDataCryptoParseError$fShowCryptoParseError$fEqCryptoParseError$fShowB58CheckWithPrefixErrormorleyAesonOptionsRootAnnSomeAnnVarAnnFieldAnnTypeAnnVarTagFieldTagTypeTag KnownAnnTag annPrefix AnnotationSet AnnotationAnnotationUnsafe unAnnotationWithAnn emptyAnnSet singleAnnSetsingleGroupAnnSet fullAnnSet isNoAnnSet minAnnSetSizenoAnnann mkAnnotationspecialVarAnnsspecialFieldAnnisValidAnnStartisValidAnnBodyCharunifyAnn ifAnnUnified disjoinVnconvAnn$fDefaultAnnotation$fNFDataAnnotation$fBuildableAnnotation$fRenderDocAnnotation$fShowAnnotation$fKnownAnnTagTypeTag$fKnownAnnTagFieldTag$fKnownAnnTagVarTag$fKnownAnnTagRootTag$fMonoidAnnotation$fSemigroupAnnotation$fBuildableAnnotationSet$fRenderDocAnnotationSet$fShowAnnotationSet$fMonoidAnnotationSet$fSemigroupAnnotationSet$fEqAnnotation$fDataAnnotation$fFunctorAnnotation$fGenericAnnotation$fIsStringAnnotation$fEqAnnotationSet$fFromJSONAnnotation$fToJSONAnnotation$fLiftAnnotationTTKeyTUnit TSignatureTChainIdTOptionTListTSet TOperation TContractTPairTOrTLambdaTMapTBigMapTIntTNatTStringTBytesTMutezTBoolTKeyHash TTimestampTAddress ParameterTypeunwrapT renderTypetoptiontpairtortyinttynattyunittybooltypairtyortyImplicitAccountParam isAtomicTypeisKey isSignature isComparableisMutez isTimestamp isKeyHashisBoolisString isIntegerisNatisIntisBytes $fNFDataT $fBuildableT$fBuildableType $fRenderDocT$fRenderDocType$fRenderDocPrettier $fNFDataType$fBuildableParameterType$fRenderDocParameterType$fRenderDocPrettier0$fNFDataParameterType$fEqT$fShowT$fDataT $fGenericT$fEqType $fShowType $fDataType $fGenericType$fEqParameterType$fShowParameterType$fDataParameterType$fGenericParameterType$fFromJSONType $fToJSONType $fFromJSONT $fToJSONT$fFromJSONParameterType$fToJSONParameterType $fLiftType$fLiftT$fLiftParameterType TestAsserttassName tassComment tassInstrs PrintCommentunUPrintCommentStackFnsfnQuantifiedVars sfnInPattern sfnOutPatternStackTypePatternStkEmptyStkRestStkConsTyVarVarIDTyConVarStackRefExtInstrAbstract STACKTYPEFN UTEST_ASSERTUPRINTUCOMMENTstackTypePatternToListvarSet$fBuildableStackRef$fNFDataStackRef$fBuildableVar $fNFDataVar$fBuildableTyVar $fNFDataTyVar$fBuildableStackTypePattern$fNFDataStackTypePattern$fBuildableStackFn$fNFDataStackFn$fBuildablePrintComment$fNFDataPrintComment$fBuildableTestAssert$fNFDataTestAssert$fBuildableExtInstrAbstract$fRenderDocExtInstrAbstract$fNFDataExtInstrAbstract $fEqStackRef$fShowStackRef$fDataStackRef$fGenericStackRef$fEqVar $fShowVar$fOrdVar $fDataVar $fGenericVar $fEqTyVar $fShowTyVar $fDataTyVar$fGenericTyVar$fEqStackTypePattern$fShowStackTypePattern$fDataStackTypePattern$fGenericStackTypePattern $fEqStackFn $fShowStackFn $fDataStackFn$fGenericStackFn$fEqPrintComment$fShowPrintComment$fDataPrintComment$fGenericPrintComment$fEqTestAssert$fShowTestAssert$fFunctorTestAssert$fDataTestAssert$fGenericTestAssert$fEqExtInstrAbstract$fShowExtInstrAbstract$fDataExtInstrAbstract$fGenericExtInstrAbstract$fFunctorExtInstrAbstract$fFromJSONExtInstrAbstract$fToJSONExtInstrAbstract$fFromJSONPrintComment$fToJSONPrintComment$fFromJSONStackTypePattern$fToJSONStackTypePattern$fFromJSONStackRef$fToJSONStackRef$fFromJSONStackFn$fToJSONStackFn $fFromJSONVar $fToJSONVar$fFromJSONTyVar $fToJSONTyVar$fFromJSONTestAssert$fToJSONTestAssert Contract'ContractcontractParametercontractStorage contractCodeStorage$fBuildableContract'$fRenderDocContract'$fNFDataContract' $fEqContract'$fShowContract'$fFunctorContract'$fDataContract'$fGenericContract'$fFromJSONContract'$fToJSONContract'toUType buildStackKnownTSingTSTKeySTUnit STSignature STChainIdSTOptionSTListSTSet STOperation STContractSTPairSTOrSTLambdaSTMapSTBigMapSTIntSTNatSTStringSTBytesSTMutezSTBool STKeyHash STTimestamp STAddress withSomeSingT fromSingT $fKnownTt$fSingITTAddress$fSingITTTimestamp$fSingITTKeyHash $fSingITTBool$fSingITTMutez$fSingITTBytes$fSingITTString $fSingITTNat $fSingITTInt$fSingITTBigMap $fSingITTMap$fSingITTLambda $fSingITTOr $fSingITTPair$fSingITTContract$fSingITTOperation $fSingITTSet $fSingITTList$fSingITTOption$fSingITTChainId$fSingITTSignature $fSingITTUnit $fSingITTKey $fSingKindTProperPrintedValBetterErrorsProperUnpackedValBetterErrorsProperPackedValBetterErrorsProperConstantBetterErrorsProperStorageBetterErrorsProperParameterBetterErrors CheckScope checkScopePrintedValScopeUnpackedValScopePackedValScope ConstantScope StorageScopeParameterScopeBadTypeForScopeBtNotComparable BtIsOperation BtHasBigMapBtHasNestedBigMap BtHasContractNestedBigMapsPresenceNestedBigMapsPresentNestedBigMapsAbsentBigMapPresence BigMapPresent BigMapAbsentContractPresenceContractPresentContractAbsent OpPresence OpPresentOpAbsentForbidNestedBigMaps ForbidBigMapForbidContractForbidOpFailOnNestedBigMapsFoundFailOnBigMapFoundFailOnOperationFoundHasNoNestedBigMaps HasNoBigMap HasNoContractHasNoOpContainsNestedBigMapsContainsBigMap forbiddenOpforbiddenBigMapforbiddenNestedBigMapsforbiddenContractTypecheckOpPresencecheckContractTypePresencecheckBigMapPresencecheckNestedBigMapsPresence opAbsensecontractTypeAbsense bigMapAbsensenestedBigMapsAbsenseproperParameterEviproperStorageEviproperConstantEviproperPackedValEviproperUnpackedValEviproperPrintedValEvi $fHasNoOpt$fHasNoContractt$fHasNoBigMapt$fHasNoNestedBigMapst$fBuildableBadTypeForScope$fCheckScope(%,%)$fCheckScope(%,,%)$fCheckScope(%,,,%)$fCheckScope(%,,,%)0$fCheckScope(%,,%)0$fCheckScopeHasNoContract$fCheckScopeHasNoNestedBigMaps$fCheckScopeHasNoBigMap$fCheckScopeHasNoOp$fShowBadTypeForScope$fEqBadTypeForScope$fGenericBadTypeForScope$fNFDataBadTypeForScopeInstrCallStack icsCallStack icsSrcPos LetCallStackLetNameSrcPosPosmkPossrcPos $fDefaultPos $fNFDataPos$fDefaultSrcPos$fNFDataSrcPos$fNFDataLetName$fDefaultInstrCallStack$fNFDataInstrCallStack$fEqPos$fOrdPos $fShowPos $fGenericPos $fDataPos $fEqSrcPos $fOrdSrcPos $fShowSrcPos$fGenericSrcPos $fDataSrcPos $fEqLetName $fOrdLetName $fShowLetName $fDataLetName$fGenericLetName$fBuildableLetName$fEqInstrCallStack$fOrdInstrCallStack$fShowInstrCallStack$fGenericInstrCallStack$fDataInstrCallStack $fFromJSONPos $fToJSONPos$fFromJSONSrcPos$fToJSONSrcPos$fFromJSONLetName$fToJSONLetName$fFromJSONInstrCallStack$fToJSONInstrCallStacksomeNE UnpackError unUnpackError ensureEnd launchGet$fExceptionUnpackError$fBuildableUnpackError$fShowUnpackError$fEqUnpackErrorHexJSONByteStringunHexJSONByteString$fFromJSONHexJSONByteString$fToJSONHexJSONByteString$fEqHexJSONByteString$fOrdHexJSONByteString$fShowHexJSONByteString$fGenericHexJSONByteString$fNFDataHexJSONByteString$fHashableHexJSONByteString permute2Def permute3Def TextException throwLeftdisplayUncaughtException$fShowTextException$fBuildableTextException$fExceptionTextException!$fExceptionDisplayExceptionInShow$fShowDisplayExceptionInShowApplyConstraintsTyEqSing<|>Over2GenericTypeName mkGenericTreemkGenericTreeVec hSetTranslit readFileUtf8 writeFileUtf8appendFileUtf8 withEncoding$fBuildableIdentity$fBuildableNatural$fDefaultNaturalpostfixLFieldsToAnchortoAnchorAnchorunAnchor HeaderLevelMarkdownnextHeaderLevelmdHeadermdSubsectionTitle mdSubsectionmdBoldmdItalicmdTickedmdRef mdLocalRefmdAnchor mdSeparator mdSpoiler mdCommentmd$fIsStringAnchor$fToAnchorText$fToAnchorAnchorRequireLongerOrSameLengthRequireLongerThanLongerOrSameLengthIsLongerOrSameLength LongerThan IsLongerThanTakeDropAtLengthSingNatSZSS KnownPeanopeanoVal FromPeanoToPeanoPeano peanoVal' peanoValSingrequireLongerThanrequireLongerOrSameLength $fKnownPeanoS $fKnownPeanoZ $fSingINatS $fSingINatZ$fNFDataSingNat$fRequireLongerThankla$fRequireLongerOrSameLengthkla $fEqSingNat $fShowSingNatPositivePositiveUnsafe unPositive mkPositivelengthNE replicateNE$fNFDataPositive $fEqPositive $fOrdPositive$fDataPositive$fGenericPositive$fShowPositive$fBuildablePositive$fToJSONPositive$fFromJSONPositivederiveGADTNFDataourIngredients headToLowersurroundConcatListOfTypesAssociativitySome1RSplitKListKNilKCons KnownListklist ReifyList reifyList PatternMatchL PatternMatchRequireAllUnique AllUniqueFailWhen FailUnlessGuard///IsElem failUnlessEvi failWhenEvireifyTypeEqualityrsplitrecordToSomeList#listOfTypesConcatAssociativityAxiom$fReifyListac:$fReifyListkc[] $fKnownListk:$fKnownListk[] $fShowSome1TypeErrorUnless symbolValT symbolValT'inTypeErrorUnlessLabel labelToText$fBuildableLabel$fIsLabelsLabel $fShowLabel $fEqLabelKnownNamedFunctornamedL NamedInnerApplyNamedFunctor.!.?<.!><.?>$fBuildableNamedF $fShowNamedF$fWrappedNamedF$fWrappedNamedF0$fKnownNamedFunctorMaybe$fKnownNamedFunctorIdentity$fFromJSONNamedF$fFromJSONNamedF0$fToJSONNamedF$fToJSONNamedF0 $fDataNamedF $fOrdNamedF $fEqNamedF HasCLReader getReader getMetavarmaybeAddDefault outputOptionmkCLOptionParsermkCLOptionParserExtmkCLArgumentParsermkCLArgumentParserExt namedParser$fHasCLReaderText$fHasCLReaderInt$fHasCLReaderInteger$fHasCLReaderWord64$fHasCLReaderNaturalEpName EpNameUnsafeunEpName$fNFDataEpName $fShowEpName $fEqEpName $fOrdEpName$fGenericEpNameEpNameFromRefAnnErrorInEpNameBadAnnotation DefEpNameepNameFromParamAnnepNameToParamAnnepNameFromRefAnnepNameToRefAnn buildEpNameunsafeBuildEpNamemkEntrypointsMap$fHasCLReaderEpName$fArbitraryEpName$fDefaultEpName$fBuildableEpName$fFromJSONEpName$fToJSONEpName $fBuildableEpNameFromRefAnnError$fNFDataEpNameFromRefAnnError$fShowEpNameFromRefAnnError$fEqEpNameFromRefAnnError$fGenericEpNameFromRefAnnErrorParserExceptionStringLiteralParserExceptionInvalidEscapeSequence InvalidCharCustomParserExceptionUnknownTypeExceptionStringLiteralExceptionOddNumberBytesException WrongTagArgsWrongAccessArgs WrongSetArgsExcessFieldAnnotation0$fShowErrorComponentStringLiteralParserException$$fNFDataStringLiteralParserException)$fShowErrorComponentCustomParserException$fNFDataCustomParserException$fBuildableParserException$fExceptionParserException$fShowParserException $fEqStringLiteralParserException"$fDataStringLiteralParserException!$fOrdStringLiteralParserException"$fShowStringLiteralParserException%$fGenericStringLiteralParserException$fEqCustomParserException$fDataCustomParserException$fOrdCustomParserException$fShowCustomParserException$fGenericCustomParserException$fEqParserExceptionDoNotUseTextErrorMText MTextUnsafeunMTextisMCharmkMText mkMTextUnsafe mkMTextCut writeMText takeMText dropMTextgenMTextmtqqMText symbolToMText labelToMTextmtextHeadToUpper$fIsStringMText$fHasCLReaderMText$fFromJSONMText $fToJSONMText$fArbitraryMText $fToTextMText $fNFDataMText $fShowMText $fEqMText $fOrdMText $fDataMText$fGenericMText$fSemigroupMText $fMonoidMText$fContainerMText$fBuildableMText$fHashableMText Signature unSignature SecretKey PublicKey unPublicKeypkBytes genPublicKey detSecretKey genSecretKeytoPublic genSignaturepublicKeyToBytes mkPublicKeypublicKeyLengthBytessignatureToBytes mkSignaturesignatureLengthBytesformatPublicKeymformatPublicKeyparsePublicKeyformatSignaturemformatSignatureparseSignaturesigncheckSignature$fBuildablePublicKey$fNFDataPublicKey$fArbitraryPublicKey $fEqPublicKey$fArbitrarySecretKey$fNFDataSecretKey$fBuildableSignature$fNFDataSignature$fArbitrarySignature$fShowPublicKey$fGenericPublicKey$fShowSecretKey $fEqSecretKey$fGenericSecretKey$fShowSignature $fEqSignature$fGenericSignatureformatSecretKeyparseSecretKey$fBuildableSecretKeyKeyHashkhTagkhBytes KeyHashTagKeyHashEd25519KeyHashSecp256k1 KeyHashP256SignatureEd25519SignatureSecp256k1 SignatureP256SignatureGenericSecretKeyEd25519SecretKeySecp256k1 SecretKeyP256PublicKeyEd25519PublicKeySecp256k1 PublicKeyP256 genKeyHashTagkeyHashLengthBytes genKeyHashhashKey formatKeyHashmformatKeyHash parseKeyHash$fFromJSONPublicKey$fToJSONPublicKey$fFromJSONSignature$fToJSONSignature$fNFDataKeyHashTag$fArbitraryKeyHashTag$fHasCLReaderKeyHash$fBuildableKeyHash$fArbitraryKeyHash$fNFDataKeyHash$fFromJSONKeyHash$fToJSONKeyHash$fShowKeyHashTag$fEqKeyHashTag$fOrdKeyHashTag$fBoundedKeyHashTag$fEnumKeyHashTag$fGenericKeyHashTag $fShowKeyHash $fEqKeyHash $fOrdKeyHash$fGenericKeyHashChainId ChainIdUnsafe unChainId Timestamp unTimestampMutezunMutezmkMutez unsafeMkMuteztoMutezaddMutezunsafeAddMutezsubMutezunsafeSubMutezmulMutez divModMutezdivModMutezInttimestampToSecondstimestampFromSecondstimestampFromUTCTimetimestampPlusSecondsformatTimestampparseTimestamptimestampQuotegetCurrentTime farFuturefarPast mkChainIdmkChainIdUnsafe dummyChainId formatChainIdmformatChainId parseChainId chainIdLength genChainId $fNFDataMutez$fHasCLReaderMutez$fBoundedMutez$fBuildableMutez$fBuildableTimestamp$fNFDataTimestamp$fArbitraryChainId$fBuildableChainId$fNFDataChainId$fBuildableParseChainIdError $fShowMutez $fEqMutez $fOrdMutez $fDataMutez$fGenericMutez $fEnumMutez$fShowTimestamp $fEqTimestamp$fOrdTimestamp$fDataTimestamp$fGenericTimestamp $fShowChainId $fEqChainId$fGenericChainId$fShowParseChainIdError$fEqParseChainIdError$fFromJSONMutez $fToJSONMutez$fFromJSONChainId$fToJSONChainId$fFromJSONTimestamp$fToJSONTimestampParseContractAddressErrorParseAddressErrorParseAddressWrongBase58CheckParseAddressBothFailedOriginationIndexunOriginationIndex OperationHashunOperationHashAddress KeyAddressContractAddress ContractHash mkKeyAddressdetGenKeyAddressmkContractAddressmkContractHashHack formatAddressmformatAddress parseAddressunsafeParseAddressunsafeParseContractHash genAddress$fFromJSONKeyContractHash$fFromJSONContractHash$fToJSONKeyContractHash$fToJSONContractHash$fNFDataContractHash$fArbitraryAddress$fFromJSONKeyAddress$fFromJSONAddress$fToJSONKeyAddress$fToJSONAddress$fHasCLReaderAddress$fBuildableAddress$fNFDataAddress$$fBuildableParseContractAddressError!$fNFDataParseContractAddressError$fBuildableParseAddressError$fNFDataParseAddressError$fShowContractHash$fEqContractHash$fOrdContractHash$fGenericContractHash $fShowAddress $fEqAddress $fOrdAddress$fGenericAddress$fShowOperationHash$fEqOperationHash$fOrdOperationHash$fGenericOperationHash$fNFDataOperationHash$fShowOriginationIndex$fEqOriginationIndex$fOrdOriginationIndex$fGenericOriginationIndex$fNFDataOriginationIndex$fShowParseContractAddressError$fEqParseContractAddressError"$fGenericParseContractAddressError$fShowParseAddressError$fEqParseAddressError$fGenericParseAddressErrorInternalByteStringEltValue'ValueInt ValueString ValueBytes ValueUnit ValueTrue ValueFalse ValuePair ValueLeft ValueRight ValueSome ValueNoneValueNilValueSeqValueMap ValueLambdaunInternalByteString$fFromJSONInternalByteString$fToJSONInternalByteString$fNFDataInternalByteString$fBuildableElt$fBuildableValue'$fRenderDocElt$fRenderDocValue' $fNFDataElt$fNFDataValue'$fDataInternalByteString$fEqInternalByteString$fShowInternalByteString$fGenericInternalByteString $fEqValue' $fShowValue'$fFunctorValue' $fDataValue'$fGenericValue'$fEqElt $fShowElt $fFunctorElt $fDataElt $fGenericElt$fFromJSONValue'$fToJSONValue' $fFromJSONElt $fToJSONElt GlobalCounterunGlobalCounterOriginationOperation ooOriginator ooDelegate ooBalance ooStorage ooContract InstrAbstractEXTDROPNDROPDUPSWAPDIGDUGPUSHSOMENONEUNITIF_NONEPAIRCARCDRLEFTRIGHTIF_LEFTNILCONSIF_CONSSIZE EMPTY_SET EMPTY_MAP EMPTY_BIG_MAPMAPITERMEMGETUPDATEIFLOOP LOOP_LEFTLAMBDAEXECAPPLYDIPDIPNFAILWITHCASTRENAMEPACKUNPACKCONCATSLICEISNATADDSUBMULEDIVABSNEGLSLLSRORANDXORNOTCOMPAREEQNEQLTGTLEGEINTSELFCONTRACTTRANSFER_TOKENS SET_DELEGATECREATE_CONTRACTIMPLICIT_ACCOUNTNOWAMOUNTBALANCECHECK_SIGNATURESHA256SHA512BLAKE2BHASH_KEYSOURCESENDERADDRESSCHAIN_ID ExpandedOpPrimExSeqEx WithSrcEx ExpandedInstrflattenExpandedOpmkOriginationOperationHash$fBuildableInstrAbstract$fRenderDocInstrAbstract$fNFDataInstrAbstract$fShowInstrAbstract$fBuildableExpandedOp$fRenderDocExpandedOp$fNFDataExpandedOp$fEqInstrAbstract$fFunctorInstrAbstract$fDataInstrAbstract$fGenericInstrAbstract$fShowExpandedOp$fEqExpandedOp$fDataExpandedOp$fGenericExpandedOp$fShowOriginationOperation$fEqOriginationOperation$fGenericOriginationOperation$fShowGlobalCounter$fEqGlobalCounter$fGenericGlobalCounter$fNFDataGlobalCounter$fFromJSONExpandedOp$fToJSONExpandedOp$fFromJSONInstrAbstract$fToJSONInstrAbstract$fFromJSONOriginationOperation$fToJSONOriginationOperationExpandedExtInstrValuegenInternalByteStringgenVargenTyVar genExpandedOpgenInstrCallStack genSrcPosgenPos genLetNamegenExtInstrAbstractgenPrintComment genStackRef genTestAssert genStackFngenStackTypePatterngenInstrAbstract genContract genContract'genValue genValue'genEltgenParameterTypegenType genEpName genAnnotationgenTMichelinePrimApmpaPrimmpaArgs mpaAnnotsAnnotationTypeAnnotationVariableAnnotationField Expression ExpressionIntExpressionStringExpressionBytes ExpressionSeqExpressionPrimMichelinePrimitivemichelsonPrimitive$fFromJSONMichelinePrimAp$fEqMichelinePrimitive$fOrdMichelinePrimitive$fToJSONMichelinePrimitive$fFromJSONMichelinePrimitive$fShowMichelinePrimitive$fEqMichelinePrimAp$fShowMichelinePrimAp$fEqExpression$fShowExpression annotFromText annotToText genExpressiongenExpressionSeqgenMichelinePrimApgenExprAnnotation$fToJSONExpression$fFromJSONExpression$fToJSONMichelinePrimApencodeExpressioneitherDecodeExpressiondecodeExpressionTxDatatdSenderAddress tdParameter tdEntrypointtdAmount $fShowTxData $fEqTxData tdAmountL tdEntrypointL tdParameterLtdSenderAddressL$fFromJSONTxData$fToJSONTxData RecFromTuple IsoRecTuple recFromTuplederiveRecFromTuple$fRecFromTupleRec$fRecFromTupleRec0$fRecFromTupleRec1$fRecFromTupleRec2$fRecFromTupleRec3$fRecFromTupleRec4$fRecFromTupleRec5$fRecFromTupleRec6$fRecFromTupleRec7$fRecFromTupleRec8$fRecFromTupleRec9$fRecFromTupleRec10$fRecFromTupleRec11$fRecFromTupleRec12$fRecFromTupleRec13$fRecFromTupleRec14$fRecFromTupleRec15$fRecFromTupleRec16$fRecFromTupleRec17$fRecFromTupleRec18$fRecFromTupleRec19$fRecFromTupleRec20$fRecFromTupleRec21$fRecFromTupleRec22$fRecFromTupleRec23$fRecFromTupleRec24gcastEeqPeqParam1eqParam2eqParam3eqExt compareExtcastIgnoringPhantomeqTypeIgnoringPhantomNotesNTKeyNTUnit NTSignature NTChainIdNTOptionNTListNTSet NTOperation NTContractNTPairNTOrNTLambdaNTMapNTBigMapNTIntNTNatNTStringNTBytesNTMutezNTBool NTKeyHash NTTimestamp NTAddress $fEqNotesAnnConvergeError notesSingnotesT starNotesisStarorAnnconverge insertTypeAnn convergeAnns$fRenderDocNotes$fBuildableNotes $fShowNotes $fNFDataNotes$fBuildableAnnConvergeError$fEqAnnConvergeError$fShowAnnConvergeError$fNFDataAnnConvergeError AsUTypeExtAsUType fromUTypemkUType withUTypeEpLiftSequence EplArgHere EplWrapLeft EplWrapRight ParamEpErrorParamEpDuplicatedNamesParamEpUncallableArmArmCoordAcLeftAcRight ArmCoords ParamNotesParamNotesUnsafepnNotes pnRootAnnParseEpAddressErrorParseEpAddressBadAddressParseEpAddressBadRefAnnParseEpAddressRefAnnError EpAddress eaAddress eaEntryPointformatEpAddressmformatEpAddressparseEpAddressunsafeParseEpAddress genEpAddressstarParamNotes mkParamNotes$fArbitraryEpAddress$fNFDataEpAddress$fBuildableEpAddress$fBuildableParseEpAddressError$fNFDataParseEpAddressError$fBuildableArmCoord$fNFDataArmCoord$fBuildableParamEpError$fNFDataParamEpError$fShowEpAddress $fEqEpAddress$fOrdEpAddress$fGenericEpAddress$fShowParseEpAddressError$fEqParseEpAddressError$fGenericParseEpAddressError$fShowParamNotes$fEqParamNotes$fGenericParamNotes$fNFDataParamNotes$fShowArmCoord $fEqArmCoord$fGenericArmCoord$fShowParamEpError$fEqParamEpError$fGenericParamEpError$fShowEpLiftSequence$fEqEpLiftSequenceMkEntryPointCallResSomeEntryPointCallTSomeEpcForbidOrEntryPointCallTEntryPointCallepcName epcParamProxyepcLiftSequenceepcCallRootUnsafe epcPrimitivesepcCallRootUnsafe sepcPrimitivesepcNamemkEntryPointCallflattenEntryPoints$fBuildableEpLiftSequence$fNFDataEpLiftSequence$fBuildableEntryPointCallT$fNFDataEntryPointCallT$fBuildableSomeEntryPointCallT$fNFDataSomeEntryPointCallT$fEqSomeEntryPointCallT$fShowSomeEntryPointCallT$fShowEntryPointCallT$fEqEntryPointCallTSomeConstrainedValue'SomeConstrainedValue SomeValue' SomeValueVKeyVUnit VSignatureVChainIdVOptionVListVSetVOp VContractVPairVOrVLamVMapVBigMapVIntVNatVStringVBytesVMutezVBoolVKeyHash VTimestampVAddress Comparability CanBeComparedCannotBeComparedComparabilityScope ComparableRemFailRfNormal RfAlwaysFails ContractOut ContractOut1 ContractInp ContractInp1CreateContract ccOriginator ccDelegate ccBalance ccStorageValccContractCode SetDelegate sdMbKeyHashTransferTokensttTransferArgumentttAmount ttContract Operation'OpTransferTokens OpSetDelegateOpCreateContractrfMerge rfAnyInstr rfMapAnyInstrgetComparableProofScheckComparabilitycomparabilityPresenceaddressToVContractbuildVContractcompileEpLiftSequence liftCallArgvalueTypeSanitywithValueTypeSanity eqValueExt$fBuildableSetDelegate$fNFDataSetDelegate $fEqRemFail$fNFDataRemFail$fCheckScopeComparable $fOrdValue'$fComparableTAddress$fComparableTTimestamp$fComparableTKeyHash$fComparableTBool$fComparableTMutez$fComparableTBytes$fComparableTString$fComparableTNat$fComparableTInt$fComparableTPair$fBuildableCreateContract$fNFDataCreateContract$fBuildableTransferTokens$fNFDataTransferTokens$fEqOperation'$fBuildableOperation'$fEqSomeValue'$fShowSetDelegate$fEqSetDelegate$fGenericSetDelegate$fShowTransferTokens$fEqTransferTokens$fGenericTransferTokens$fShowSomeConstrainedValue'$fShowSomeValue' $fShowRemFail$fEqCreateContract$fShowCreateContract$fShowOperation'$fNFDataOperation'EDivOp EDivOpRes EModOpRes evalEDivOpSliceOp evalSliceConcatOp evalConcat evalConcat'GetOpGetOpKeyGetOpValevalGetUpdOpUpdOpKey UpdOpParamsevalUpdSizeOpevalSizeIterOpIterOpEliterOpDetachOneMapOpMapOpInpMapOpRes mapOpToList mapOpFromListMemOpMemOpKeyevalMem$fMemOpTBigMap $fMemOpTMap $fMemOpTSet $fMapOpTList $fMapOpTMap $fIterOpTSet $fIterOpTList $fIterOpTMap $fSizeOpTMap $fSizeOpTList $fSizeOpTSet$fSizeOpTBytes$fSizeOpTString $fUpdOpTSet$fUpdOpTBigMap $fUpdOpTMap $fGetOpTMap$fGetOpTBigMap$fConcatOpTBytes$fConcatOpTString$fSliceOpTBytes$fSliceOpTString$fEDivOpTMutezTNat$fEDivOpTMutezTMutez$fEDivOpTNatTNat$fEDivOpTNatTInt$fEDivOpTIntTNat$fEDivOpTIntTIntGeLeGtLtNeqEq'CompareLsrLslNotXorAndOrNegAbsMulAdd UnaryArithOp UnaryArithResevalUnaryArithOp ArithErrorMutezArithErrorShiftArithErrorArithErrorType AddOverflow MulOverflow SubUnderflow LslOverflow LsrUnderflowArithOpArithResevalOp compareOp$fBuildableArithErrorType$fNFDataArithErrorType$fBuildableArithError$fNFDataArithError$fArithOpTYPEAddTMutezTMutez$fArithOpTYPEAddTIntTTimestamp$fArithOpTYPEAddTTimestampTInt$fArithOpTYPEAddTIntTInt$fArithOpTYPEAddTNatTNat$fArithOpTYPEAddTIntTNat$fArithOpTYPEAddTNatTInt$fArithOpTYPESubTMutezTMutez$$fArithOpTYPESubTTimestampTTimestamp$fArithOpTYPESubTTimestampTInt$fArithOpTYPESubTIntTInt$fArithOpTYPESubTNatTNat$fArithOpTYPESubTIntTNat$fArithOpTYPESubTNatTInt$fArithOpTYPEMulTMutezTNat$fArithOpTYPEMulTNatTMutez$fArithOpTYPEMulTIntTInt$fArithOpTYPEMulTNatTNat$fArithOpTYPEMulTIntTNat$fArithOpTYPEMulTNatTInt$fUnaryArithOpTYPEAbsTInt$fUnaryArithOpTYPENegTNat$fUnaryArithOpTYPENegTInt$fArithOpTYPEOrTBoolTBool$fArithOpTYPEOrTNatTNat$fArithOpTYPEAndTBoolTBool$fArithOpTYPEAndTNatTNat$fArithOpTYPEAndTIntTNat$fArithOpTYPEXorTBoolTBool$fArithOpTYPEXorTNatTNat$fUnaryArithOpTYPENotTBool$fUnaryArithOpTYPENotTNat$fUnaryArithOpTYPENotTInt$fArithOpTYPELslTNatTNat$fArithOpTYPELsrTNatTNat$fUnaryArithOpTYPEEq'TInt$fUnaryArithOpTYPENeqTInt$fUnaryArithOpTYPELtTInt$fUnaryArithOpTYPEGtTInt$fUnaryArithOpTYPELeTInt$fUnaryArithOpTYPEGeTInt$fShowArithErrorType$fEqArithErrorType$fOrdArithErrorType$fGenericArithErrorType$fShowArithError$fEqArithError$fOrdArithError$fGenericArithError ContractDoc cdContents cdDefinitionscdDefinitionsSetcdDefinitionIdsSubDocDocBlock DocSectionDocElemdeItemdeSubSomeDocDefinitionItem SomeDocItemDocSectionNameStyleDocSectionNameBigDocSectionNameSmall DocItemRef DocItemNoRefDocItemPlacementKindDocItemInlinedDocItemInDefinitions DocItemIdDocItemDocItemPositionDocItemPlacementdocItemSectionNamedocItemSectionDescriptiondocItemSectionNameStyle docItemRefdocItemToMarkdowndocItemDependencies docItemsOrderdocItemPositiondocDefinitionRef deIsAtomicdocItemToBlocklookupDocBlockSectionsubDocToMarkdown$fToAnchorDocItemRef$fOrdSomeDocDefinitionItem$fEqSomeDocDefinitionItem$fShowSomeDocItem$fNFDataSomeDocItem$fShowDocSection $fEqDocItemId$fOrdDocItemId$fShowDocItemId$fToAnchorDocItemId$fEqDocItemPos$fOrdDocItemPos$fShowDocItemPos$fBuildableDocItemPosDAnchorDCommentGitRepoSettingsgrsMkGitRevision DGitRevisionDGitRevisionKnownDGitRevisionUnknown DDescriptionDNameDGeneralInfoSection DocGrouping cdContentsLcdDefinitionIdsLcdDefinitionsLcdDefinitionsSetLcontractDocToMarkdowndocGroupContentmorleyRepoSettingsmkDGitRevision$fMonoidContractDoc$fSemigroupContractDoc$fShow->$fDocItemDGeneralInfoSection$fDocItemDName$fDocItemDDescription$fDocItemDGitRevision$fDocItemDComment$fDocItemDAnchorcCode cParamNotes cStoreNotes ContractCodeExtInstr TEST_ASSERTPRINTDOC_ITEM COMMENT_ITEM CommentTypeFunctionStarts FunctionEndsStatementStarts StatementEnds JustCommentunPrintCommentInstrInstrWithNotesInstrWithVarNotes FrameInstrSeqNopExtNestedDocGroupAnnCARAnnCDRCONCAT' ConstraintDUGConstraintDUG' ConstraintDIGConstraintDIG'ConstraintDIPNConstraintDIPN' PackedNotesUNPAIR mkStackRefmapContractCode$fRenderDocPackedNotes$fBuildablePackedNotes$fShowPackedNotes$fNFDataPackedNotes$fIsStringPrintComment$fNFDataCommentType$fNFDataContract$fNFDataExtInstr $fMonoidInstr$fSemigroupInstr$fSemigroupPrintComment$fMonoidPrintComment$fShowCommentType$fGenericCommentType$fShowExtInstr$fGenericExtInstr $fEqContract$fShowContract $fShowInstr $fNFDataInstrconvertContractCodeconvertContract untypeValue instrToOps $fEqInstr OperationCtorEffectsAppceaNameceaApplyEffects DfsSettings dsGoToValuesdsCtorEffectsAppdfsInstr dfsFoldInstrdfsModifyInstr linearizeLeftlinearizeLeftDeepdfsValue dfsFoldValuedfsModifyValue isStringValue isBytesValueallAtomicValues$fShowCtorEffectsApp$fDefaultDfsSettings$fShowDfsSettings WellTypedIsoValuesStack toValStack fromValStackToTs'ToTsGenericIsoValue GIsoValue GValueTypeBigMapunBigMap ContractRef crAddress crEntryPointWellTypedIsoValue WellTypedToTSomeEntryPointCall AnyIsoValue SomeIsoValueToT'IsoValueToTtoValfromVal KnownIsoTcoerceContractRefcontractRefToAddr genBigMaptotsKnownLemmatotsAppendLemma $fGIsoValueU1$fGIsoValue:*:$fGIsoValue:+: $fGIsoValueM1$fWellTypedTAddress$fWellTypedTTimestamp$fWellTypedTKeyHash$fWellTypedTBool$fWellTypedTMutez$fWellTypedTBytes$fWellTypedTString$fWellTypedTNat$fWellTypedTInt$fWellTypedTBigMap$fWellTypedTMap$fWellTypedTLambda$fWellTypedTOr$fWellTypedTPair$fWellTypedTContract$fWellTypedTOperation$fWellTypedTSet$fWellTypedTList$fWellTypedTOption$fWellTypedTChainId$fWellTypedTSignature$fWellTypedTUnit$fWellTypedTKey $fGIsoValueK1$fArbitraryBigMap$fIsoValueBigMap$fIsoValue(,,,,,,)$fIsoValue(,,,,,)$fIsoValue(,,,,)$fIsoValue(,,,)$fIsoValue(,,)$fIsoValueOperation' $fIsoValueMap $fIsoValueSet $fIsoValue(,)$fIsoValueEither$fIsoValueMaybe $fIsoValue[] $fIsoValue()$fIsoValueChainId$fIsoValueSignature$fIsoValuePublicKey$fIsoValueEpAddress$fIsoValueAddress$fIsoValueTimestamp$fIsoValueKeyHash$fIsoValueMutez$fIsoValueByteString$fIsoValueBool$fIsoValueText$fIsoValueMText$fIsoValueNatural$fIsoValueInteger$fIsoValuesStack:$fIsoValuesStack[]$fIsoValueContractRef$fBuildableContractRef $fEqBigMap $fShowBigMap$fDefaultBigMap$fSemigroupBigMap$fMonoidBigMap$fEqContractRef$fShowContractRef$fIsoValueNamedF$fIsoValueNamedF0$fIsoValueIdentity InstrUnwrapCGCaseBranchInput GCaseClauses CaseClauses CaseClauseCaseClauseParam InstrCaseCMyCompoundType InstrWrapC CtorOnlyFieldCtorHasOnlyField GetCtorFieldIsPrimitiveValueAppendCtorFieldAxiomAppendCtorFieldExtractCtorField CtorFieldOneFieldNoFieldsappendCtorFieldAxiom instrWraphsWrap instrCase//->instrUnwrapUnsafehsUnwrap$fGInstrWrapM1:NoFields$fGInstrWrapM1:e$fGInstrWrapM1:OneField$fGInstrWrap:+::e$fGInstrWrap:+::e0$fGInstrWrapM1pathe$fGInstrCase:+:$fGInstrCaseM1$fGInstrCaseBranchctorU1$fGInstrCaseBranchctorK1$fGInstrCaseBranchctorM1$fGInstrCaseBranchctor:*:$fGInstrCaseM10$fGInstrUnwrapM1:e$fGInstrUnwrapM1:e0$fGInstrUnwrap:+::e$fGInstrUnwrap:+::e0$fGInstrUnwrapM1pathe$fGenericMyType$fIsoValueMyType$fGenericMyType'$fIsoValueMyType'$fGenericMyCompoundType$fIsoValueMyCompoundType$fGenericMyEnum$fIsoValueMyEnum$fGenericMyTypeWithNamedField$fIsoValueMyTypeWithNamedFieldInstrDeconstructCInstrConstructCConstructorFieldNamesConstructorFieldTypesCastFieldConstructorscastFieldConstructorsImplFieldConstructorInstrSetFieldCInstrGetFieldC GetFieldType instrGetField instrSetFieldinstrConstructinstrConstructStackinstrDeconstruct$fGInstrGetname:*::f$fGInstrGetname:*::f0$fGInstrGetnameK1[]f'$fGInstrGetnameM1pathf$fGInstrSetFieldname:*::f$fGInstrSetFieldname:*::f0$fGInstrSetFieldnameK1[]f'$fGInstrSetFieldnameM1pathf$fCastFieldConstructors::$fCastFieldConstructors[][]$fGInstrConstructK1$fGInstrConstruct:+:$fGInstrConstructU1$fGInstrConstruct:*:$fGInstrConstructM1$fGInstrDeconstructK1$fGInstrDeconstruct:+:$fGInstrDeconstructU1$fGInstrDeconstruct:*:$fGInstrDeconstructM1$fGenericMyType2$fIsoValueMyType2 LooseSumC ComposeResult ComposeOkComposeCtorNotFoundComposeFieldTypeMismatch toTaggedVal fromTaggedVal$fMonoidComposeResult$fSemigroupComposeResult $fGLooseSumV1$fGLooseSum:+: $fGLooseSumM1$fGAccessField:*:$fGAccessFieldU1$fGAccessFieldK1$fGAccessFieldM1$fGLooseSumM10$fFunctorComposeResultFieldRepfrName frDescription frTypeRepConstructorRepcrName crDescriptioncrFieldsADTRepcrDescriptionL crFieldsLcrNameLPolyTypeHasDocCGProductHasDoc GTypeHasDoc IsHomomorphicHaveCommonTypeCtor DStorageTypeDTypeSomeTypeWithDocTypeDocMichelsonRepTypeDocHaskellRep TypeHasDocTypeDocFieldDescriptions typeDocNametypeDocMdDescriptiontypeDocMdReferencetypeDocDependenciestypeDocHaskellReptypeDocMichelsonRep WithinParensfrDescriptionLfrNameL frTypeRepL buildADTRepapplyWithinParensdTypeDep dTypeDepPcustomTypeDocMdReferencehomomorphicTypeDocMdReferencepoly1TypeDocMdReferencepoly2TypeDocMdReferencegenericTypeDocDependencieshomomorphicTypeDocHaskellRepconcreteTypeDocHaskellRepconcreteTypeDocHaskellRepUnsafehaskellRepNoFieldshaskellRepStripFieldPrefixhomomorphicTypeDocMichelsonRepconcreteTypeDocMichelsonRep!concreteTypeDocMichelsonRepUnsafe$fHaveCommonTypeCtorkkaa$fHaveCommonTypeCtorkkacbc$fIsHomomorphicka$fIsHomomorphicka0$fTypeHasDocNamedF$fTypeHasDoc()$fTypeHasDocSignature$fTypeHasDocPublicKey$fTypeHasDocEpAddress$fTypeHasDocAddress$fTypeHasDocTimestamp$fTypeHasDocKeyHash$fTypeHasDocMutez$fTypeHasDocByteString$fTypeHasDocBool$fTypeHasDocNatural$fTypeHasDocInteger$fGTypeHasDocV1$fGTypeHasDoc:+:$fGTypeHasDocM1$fTypeHasDocOperation'$fTypeHasDocMText$fDocItemDType $fOrdDType $fEqDType $fShowDType$fDocItemDStorageType$fGProductHasDocU1$fGProductHasDocM1$fGProductHasDocM10$fGProductHasDoc:*:$fGTypeHasDocM10$fTypeHasDoc(,,,,,,)$fTypeHasDoc(,,,,,)$fTypeHasDoc(,,,,)$fTypeHasDoc(,,,)$fTypeHasDoc(,,)$fTypeHasDocContractRef$fTypeHasDoc(,)$fTypeHasDocEither$fTypeHasDocMaybe$fTypeHasDoc[]$fTypeHasDocBigMap$fTypeHasDocMap$fTypeHasDocSet$fIsStringDocTypeRepLHS$fBuildableDocTypeRepLHS$fGenericDStorageTypedocInstrbuildInstrDocWithGitRev buildInstrDocmodifyInstrAllDocmodifyInstrDoccutInstrNonDoc TcExtFrames BoundVars SomeContract SomeInstr:/ SomeInstrOut::: AnyOutInstrSomeHSTHSTSNil::&::&+-:&mapSomeContract noBoundVarsgetWTPwithWTPm$fEqHST$fBuildableHST $fShowHST $fNFDataHST $fEqSomeHST$fNFDataSomeHST$fShowSomeInstrOut$fShowSomeInstr$fNFDataSomeContract$fShowSomeContract $fShowSomeHSTExtErrorLengthMismatchVarError TypeMismatch TyVarMismatchStkRestMismatchTestAssertErrorInvalidStackReference StackSizeTCErrorTCFailedOnInstrTCFailedOnValueTCContractErrorTCUnreachableCode TCExtError TCTypeErrorAnnError TypeEqError StackEqErrorUnsupportedTypeForScopeNotNumericTypesUnexpectedTypeInvalidInstructionInvalidValueTypeNotEnoughItemsOnStackIllegalEntryPointUnknownContractEntryPointNotFoundIllegalParamDecl NegativeNat MutezOverflowInvalidAddressInvalidKeyHashInvalidTimestampCodeAlwaysFails EmptyCodeAnyError TypeContextLambdaArgument LambdaCodeDipCode ConsArgumentComparisonArgumentsContractParameterContractStorageArithmeticOperation IterationCast CarArgument CdrArgumentConcatArgumentContainerKeyTypeContainerValueType ExpectType ExpectTypeVarExpectStackVar ExpectBool ExpectInt ExpectNat ExpectByte ExpectString ExpectAddress ExpectKey ExpectKeyHashExpectSignatureExpectContract ExpectMutez ExpectList ExpectSet ExpectMap ExpectBigMap ExpectOption ExpectPairExpectOr ExpectLambda$fBuildableExpectType$fNFDataExpectType$fBuildableTypeContext$fBuildableTCTypeError$fNFDataStackSize$fBuildableExtError$fNFDataExtError$fExceptionTCError $fShowTCError$fBuildableTCError$fNFDataTCError$fShowExpectType$fEqExpectType$fGenericExpectType$fShowTypeContext$fEqTypeContext$fGenericTypeContext$fNFDataTypeContext$fShowTCTypeError$fEqTCTypeError$fGenericTCTypeError$fNFDataTCTypeError$fShowStackSize $fEqStackSize$fGenericStackSize $fEqExtError$fGenericExtError $fEqTCError$fGenericTCError TypeCheckEnv tcExtFramestcContractParam tcContractsTcOriginatedContracts TypeCheckTcInstrHandlerTypeCheckInstrTcResulttcContractParamL tcContractsL tcExtFramesL runTypeCheckrunTypeCheckIsolatedrunTypeCheckInstrIsolated mapTCErrorderiveSpecialFNsderiveSpecialVNderiveVN deriveNsOrderiveNsOption convergeHSTEl convergeHSTonLefthstToTseqHSTeqHST1 lengthHSTensureDistinctAsceqTypeonTypeCheckInstrErronScopeCheckInstrErrtypeCheckInstrErrtypeCheckInstrErr'onTypeCheckInstrAnnErrwithCompareableCheck typeCheckImpl matchTypesmemImplgetImplupdImplsizeImpl sliceImpl concatImpl' concatImpl arithImpladdImpledivImplsubImplmulImplunaryArithImpltypeCheckValImpl typeCheckExttypeCheckContract typeCheckListtypeCheckValuetypeVerifyTopLevelTypetypeCheckTopLevelTypegenValueKeyHash genValueMutez genValueInt genValueList genValueUnit genValuePair minTimestamp maxTimestamp midTimestampgenValueTimestampgenMutez genTimestamp$fArbitraryTimestamp$fArbitraryMutez$fArbitraryValue'$fArbitraryValue'0$fArbitraryValue'1$fArbitraryValue'2$fArbitraryValue'3$fArbitraryValue'4$fArbitraryValue'5 AddressStateASSimple ASContract ContractState csBalance csStorage csContractcsTypedContractcsTypedStorage$fBuildableContractState$fFromJSONContractState$fToJSONContractState$fBuildableAddressState$fShowAddressState$fGenericAddressState$fShowContractStateGState gsChainId gsAddresses gsCounter asBalance$fFromJSONAddressState$fToJSONAddressState $fShowGState gsAddressesL gsChainIdL gsCounterLGStateUpdateErrorGStateAddressExistsGStateUnknownAddressGStateNotContract GStateUpdate GSAddAddressGSSetStorageValue GSSetBalanceGSIncrementCounterSomeContractAndStorage scsContract scsStoragegetTypedContractgetTypedStoragegetTypedContractAndStoragegenesisSecretsgenesisKeyHashesgenesisAddressesgenesisKeyHashgenesisAddressgenesisSecretKeygenesisAddress1genesisAddress2genesisAddress3genesisAddress4genesisAddress5genesisAddress6 initGState readGState writeGState applyUpdate applyUpdatesextractAllContracts$fFromJSONGState$fToJSONGState$fExceptionGStateParseError$fBuildableGStateUpdate$fBuildableGStateUpdateError$fShowGStateParseError$fShowGStateUpdate$fShowGStateUpdateErrorprintUntypedContractprintTypedContractCodeprintTypedContractprintTypedValueprintUntypedValueprintSomeContractMacroCASETAGACCESSSET CONSTRUCTVIEWVOIDCMPIFXIFCMPFAILPAPAIRCADRSET_CADRMAP_CADRDIIPDUUPASSERTASSERTX ASSERT_CMP ASSERT_NONE ASSERT_SOME ASSERT_LEFT ASSERT_RIGHTIF_SOMEIF_RIGHT ParsedValue ParsedInstrParsedUExtInstrParsedOpPrimMacLMac CadrStructAD PairStructFPLetMacrolmNamelmSiglmExpr expandListexpandContract expandValueexpand expandMacro expandPapairexpandUnpapair expandCadr expandSetCadr expandMapCadr mapLeaves$fBuildablePairStruct$fNFDataPairStruct$fBuildableCadrStruct$fNFDataCadrStruct $fNFDataMacro$fBuildableMacro$fNFDataParsedOp$fBuildableParsedOp$fRenderDocParsedOp$fNFDataLetMacro$fBuildableLetMacro$fEqPairStruct$fShowPairStruct$fDataPairStruct$fGenericPairStruct$fEqCadrStruct$fShowCadrStruct$fDataCadrStruct$fGenericCadrStruct $fEqMacro $fShowMacro $fDataMacro$fGenericMacro $fEqParsedOp$fShowParsedOp$fDataParsedOp$fGenericParsedOp $fEqLetMacro$fShowLetMacro$fDataLetMacro$fGenericLetMacro$fFromJSONParsedOp$fToJSONParsedOp$fFromJSONLetMacro$fToJSONLetMacro$fFromJSONPairStruct$fToJSONPairStruct$fFromJSONCadrStruct$fToJSONCadrStruct$fFromJSONMacro $fToJSONMacroLetTypeltNameltSigLetValuelvNamelvSiglvVal $fEqLetValue$fShowLetValue $fEqLetType $fShowLetType$fFromJSONLetValue$fToJSONLetValue$fFromJSONLetType$fToJSONLetTypeLetEnv letMacros letValuesletTypesParsernoLetEnv$fDefaultReaderT $fShowLetEnv $fEqLetEnvlexememSpacesymbolsymbol'wordword'string'parensbracesbrackets brackets' semicoloncommavarID sepEndBy1sepBy2mkParserparseDefpositivemparensvalue' stringLiteral bytesLiteral intLiteralmkLetValnotenoteVnoteDefnoteF noteV2DefnotesTVF notesTVF2 notesTVF2DefnotesVFnotesTVnotesTF fieldTypetype_field typeWithParenextInstr printComment stackType primInstrops'dupOpcmpOppairOpmapOpmacrodupNMacduupMacpairMac mapCadrMacifCmpMacletBlockletInnerletTypemkLetMac parseNoEnvprogramvalue parseValueparseExpandValue codeEntryparsedOputypeQtransformStringstransformBytes unpackValue unpackValue' unpackInstr'decodeContract packValue packValue' encodeValue'packT' packCode'encodeIntPayload packNotedT'FromExpressionfromExpression ToExpression toExpression$fToExpressionContract$fToExpressionValue'$fToExpressionNotes$fToExpressionT$fToExpressionInstr$fFromExpression[]$fFromExpressionValue'Rule OptimizerConf gotoValuesrulesetoptimizeoptimizeWithConf defaultRulesdefaultRulesAndPushPackorRule orSimpleRule$fDefaultOptimizerConfOpSizeunOpSizeopSizeHardLimitsmallTransferOpSize instrOpSizeexpandedInstrsOpSize valueOpSize$fMonoidOpSize$fSemigroupOpSize$fAnnsOpSizeVarargOpSize$fAnnsOpSizeVararg->$fAnnsOpSizeVararg->0 $fShowOpSize $fEqOpSize $fOrdOpSize InstrRunnerEvalMInterpreterState isMorleyLogsisRemainingStepsisOriginationNonceRemainingSteps SomeItStackContractReturn MorleyLogs unMorleyLogsInterpretResultiurOps iurNewStorage iurNewStateInterpretErrorRuntimeFailureIllTypedContract IllTypedParamIllTypedStorageMichelsonFailedMichelsonFailedWithMichelsonArithErrorMichelsonGasExhaustionMichelsonFailedTestAssertMichelsonAmbigousEpRef ContractEnvceNow ceMaxSteps ceBalance ceContractsceSelfceSourceceSenderceAmount ceChainIdceOperationHash noMorleyLogsinterpretUntypedhandleContractReturn mkInitStackfromFinalStack interpretinitInterpreterStateinterpretInstrrunInstr runInstrNoGas runInstrImpl runUnpack$fBuildableMichelsonFailed$fEqMichelsonFailed$fNFDataMorleyLogs$fBuildableInterpretError$fNFDataRemainingSteps$fNFDataInterpreterState$fEqMorleyLogs$fShowMorleyLogs$fGenericMorleyLogs$fDefaultMorleyLogs$fBuildableMorleyLogs$fGenericInterpretError$fShowRemainingSteps$fGenericRemainingSteps$fEqRemainingSteps$fOrdRemainingSteps$fBuildableRemainingSteps$fNumRemainingSteps$fShowInterpreterState$fGenericInterpreterState$fShowInterpretResult$fShowInterpretError$fShowMichelsonFailed$fNFDataMichelsonFaileddummyNow dummyMaxStepsdummyContractEnvdummyOrigination ExecutorRes _erGState _erUpdates_erInterpretResults_erRemainingSteps ExecutorOp OriginateOp TransferOp$fShowExecutorOp$fShowExecutorRes$fShowExecutorEnv$fGenericExecutorEnv$fShowExecutorLog$fGenericExecutorLog$fSemigroupExecutorLog$fMonoidExecutorLog$fShowExecutorState$fGenericExecutorStateerGStateerInterpretResultserRemainingSteps erUpdates ExecutorM ExecutorErrorExecutorError'EEUnknownContractEEInterpreterFailedEEAlreadyOriginatedEEUnknownSenderEEUnknownManagerEENotEnoughFundsEEZeroTransactionEEFailedToApplyUpdatesEEIllTypedContractEEIllTypedStorageEEIllTypedParameterEEUnknownEntrypointelInterpreterResults elUpdates parseContractparseExpandContractreadAndParseContractprepareContractoriginateContract runContracttransfer runExecutorMrunExecutorMWithDBwithGlobalOperationexecuteGlobalOperationsexecuteOriginationexecuteTransfertypeCheckWithDb$fExceptionExecutorError'$fBuildableExecutorError'$fShowExecutorError'$fFunctorExecutorError' parserInfocontractFileOption nowOptionmaxStepsOption dbPathOption txDataOption keyHashOption valueOption mutezOption addressOption onelineOptionentrypointOption mTextOption$fHasCLReaderValue'ContractPropValidator contractPropcontractPropValhasEpcontractHasEntryPointsmatchContractEntryPointsvalidateSuccessvalidateStorageIsvalidateMichelsonFailsWith TestErrorInterpreterErrorUnexpectedInterpreterErrorUnexpectedTypeCheckErrorExpectingInterpreterToFailIncorrectUpdatesIncorrectStorageUpdateInvalidStorageStoragePredicateMismatchInvalidBalanceUnexpectedUpdatesValidatingEmptyScenarioCustomTestErrorIntegrationalScenarioIntegrationalScenarioMisGState$fBuildableScenarioBranchName$fBuildableAddressName$fExceptionTestError$fBuildableTestError$fShowExpectedStorage$fShowExpectedBalance$fShowAddressName$fShowTestErrorintegrationalTestExpectationintegrationalTestPropertyintegrationalTestProp originate tOriginate tTransferintegrationalFailunexpectedInterpreterError modifyNowsetNow rewindTime setMaxSteps withSender setChainId branchout?-offshootexpectNoUpdatesexpectNoStorageUpdates expectStorageexpectStorageUpdateexpectStorageUpdateConstexpectStorageConsttExpectStorageConst expectBalanceattempt expectErrorcatchExpectedErrorexpectGasExhaustionexpectMichelsonFailed$fBuildableScenarioErrorImportContractErrorICEUnexpectedParamTypeICEUnexpectedStorageTypeICEParse ICETypeChecktestTreesWithContracttestTreesWithUntypedContracttestTreesWithTypedContractconcatTestTreesspecWithContractspecWithTypedContractspecWithUntypedContract readContractimportContractimportUntypedContract$fExceptionImportContractError$fBuildableImportContractError$fShowImportContractError$fEqImportContractErrorTypicalFailWithConstantScope'typicalFailWithTagisTypicalFailWithmodifyTypicalFailWith$fConstantScope'a AnalyzerResarConstStrings arConstBytes arErrorTagsanalyze$fMonoidAnalyzerRes$fSemigroupAnalyzerRes$fBuildableAnalyzerRes$fShowAnalyzerRes$fEqAnalyzerResDocTest dtDeclLocdtDescdtSuite mkDocTestexcludeDocTestexcludeDocTests runDocTestsexpectDocTestFailureforEachContractLayerforEachContractDocItemtestContractNameAtTop testNoGitInfotestDocNotEmptytestNoAdjacentDescriptionstestStorageIsDocumented testDocBasic$fBuildableDocTest $fShowDocTest $fEqDocTest $fArbitraryT$fToADTArbitraryT$fArbitraryParameterType$fToADTArbitraryParameterType$fArbitraryType$fToADTArbitraryType$fArbitraryElt$fToADTArbitraryElt$fToADTArbitraryValue'$fArbitraryInstrAbstract$fToADTArbitraryInstrAbstract$fArbitraryContract'$fToADTArbitraryContract'$fArbitraryAnnotation$fToADTArbitraryAnnotation$fToADTArbitraryMutez$fArbitraryExpandedOp$fToADTArbitraryExpandedOp$fArbitraryInstrCallStack$fToADTArbitraryInstrCallStack$fArbitraryLetName$fToADTArbitraryLetName$fArbitrarySrcPos$fToADTArbitrarySrcPos$fArbitraryPos$fToADTArbitraryPos$fArbitraryExtInstrAbstract$fArbitraryStackTypePattern$fArbitraryTyVar$fArbitraryVar$fArbitraryInternalByteStringGHC.Basemempty_rcWillNeedParensTrue-wl-pprint-text-1.2.0.1-AxzKpy0I2kpFvGv4YvKJ4sText.PrettyPrint.Leijen.TextDoc text-1.2.4.0Data.Text.InternalData.Text.Internal.BuilderBuilderStringdoRender(QuickCheck-2.13.2-IFlQsVhepoXHrDkLASCyShTest.QuickCheck.Property%hedgehog-1.0.2-ATMsiwzRmsT364vGKVMuVbHedgehog.Internal.Property"tasty-1.2.3-LtPeLd2EnbBKYZJAnJoZU2Test.Tasty.CoreTestTree ConHasFieldHasField GHC.GenericsRepHasAllFieldsImpl HasAllFieldsHasConstructorFieldDescriptionsValidImplversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName Data.EitherRightLeftminimizeAnnSet trimEndNoAnn renderAnnrenderAnnGroupCharBoolFalse SomeSingTSomeSingData.Typeable.InternalTypeableSingfromSingtoSingTtoSingFailOnContractFound&universum-1.6.1-9S3REjxS97oDtyplhqPK9gUniversum.TypeOpsEachContainsContract ContainsOpforbiddenOpEviforbiddenContractTypeEvisomeNonEmptyUniversum.String.ConversionshowGHC.Exception.TypedisplayExceptionDisplayExceptionInShowGHC.IO.ExceptionExitCode Fcf.UtilsTyEqmdEscapeAnchorRequireLongerOrSameLength'RequireLongerThan'OfLengthWithTail Data.Data)tasty-ant-xml-1.1.6-JvRUlCjVrGYaHSgUUf5IuTest.Tasty.Runners.AntXML antXMLRunnernamedFLmetavar GHC.MaybeNothinginvalidMCharError GHC.NaturalNaturalWordJust chainIdPrefixbytestring-0.10.10.0Data.ByteString.Internal ByteStringGHC.WordWord64gcast Data.ProxyProxy GHC.ClassescompareverifyParamNoteswithEpLiftSequenceFailOnNonComparable IsComparable DocItemPosEqOrddocItemToMarkdownFulldocItemsOrderByIddocBlockToMarkdowndocItemToBlockGeneralDGitRevisionInfoGHC.ShowShowceaBottomToTop<>analyzeInstrFailurecontainers-0.6.2.1Data.Sequence.InternalGInstrCaseBranch GInstrCase GInstrWrapLNRequireFound GLookupNamedGetNamedLookupNamedResultfailWithWrongCtorGInstrDeconstructGInstrConstruct GFieldNamesgInstrConstructStackGInstrSetField GInstrGetNamedF GAccessField GLooseSumPolyCTypeHasDocC DocTypeRepLHSmapADTRepFieldsbuildFieldNametypeCheckMapVal checkVarscheckFncheckStackTypecreateStackReftypeCheckInstr genericIfgenesisAddressesNum addAddresssetStorageValue setBalanceLetaddLetletNamecontracttransformConstants TaggedDecoder decodeWithTagtdTag tdDecoder?getByteStringCopygetRemainingByteStringCopy expectTag unknownTag expectDescTag manyForcedmany#:finalizeDecoder decodeLength decodeAsList decodeIntdecodeTypeCheckLam decodeNoAnn decodeAnns encodeValue encodeAsList encodeList encodeString encodeBytes encodeMap encodeNumeric encodeInstrs encodeInstrencodeWithAnnsencodeVarNotedInstrencodeNotedInstrpushPacklinearizeAndReapplyfixpoint applyOnceadapter whileApplies annsOpSize runArithOp withStackElemGHC.IO.Handle.FDstdinUniversum.Debugerror_isInterpreterLog_isExecutorResult_isContractsNames _isSenderExecutorResOrError ScenarioErrorScenarioBranchName/hspec-expectations-0.8.2-Gyxpw5RZvqV2WiQLfU4YHYTest.Hspec.ExpectationsregisterInterpretationvalidate putResultemptyScenarioBranchappendScenarioBranch IOExceptionFailWithStringFailWithConstantPairFailWithStackValue-tasty-hunit-compat-0.2-EkS49E6GeCc2tkEfRGgiK4Test.Tasty.HUnittestCase forEachLayer testDescriptionsAreWellFormatted genRareTypegenRareT