Skip to content

Instantly share code, notes, and snippets.

@veektrie
Created June 30, 2023 08:03
Show Gist options
  • Save veektrie/ff46fcb20c9b9b4a24e50316b896c7de to your computer and use it in GitHub Desktop.
Save veektrie/ff46fcb20c9b9b4a24e50316b896c7de to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
ref: refs/heads/main
DIRCd�^�(�~�d�^�(�~�/�����o#q{K���Sc��X�W�n.prettierrc.jsond�^�&��@d�^�&��@.���}�7i��$���IQ��B.�
README.txtd�^�
_�d�^�
_�#��+��^x;n��G�g�f6�contracts/1_Storage.sold�^����d�^����$���I����*̛���>K���?�'contracts/2_Owner.sold�^��Ҁd�^��Ҁ%�����l6 l��8Յ�%��+�Zcontracts/3_Ballot.sold�`c,Ҝd�`c,ҜV���z�H}�z�}/�j|?K�®contracts/_BallotBasic.sold�`�8�$�d�`�8�$�X�� S|P�,�L�8G�##�vM1H�!contracts/_BallotWithModifier.sold�`�0���d�`�0���W��;���Ɩ3oU�^(�4y�ںcontracts/_BallotWithStages.sold�`2/��d�`2/��U���YI�'�EU�k�1�yK/W�contracts/_BidderData.sold�_4���d�_4���R�������zr�<s��G"�M�+contracts/_Greeter.sold�`
/�d�`
/�T��~o:���։��ü�^h��qcontracts/_Minter.sold�_����d�_����S��Ұ�� �!^=�o���ELY�contracts/_SimpleStorage.sold�<�7_j@d�<�7_j@_��MYY~C��.���v�6J�LF�5� contracts/artifacts/Greeter.jsond�<�5w"@d�<�5w"@^�����K�����]�ٱ��_�2�s)contracts/artifacts/Greeter_metadata.jsond�<�/�A@d�<�/�A@u��M����'%�)*D��D�n��Dcontracts/artifacts/build-info/82ab13761467d8ac94e3bc9f9aa53f2b.jsond�^�J�d�^�J�'�����!�)?�U���U-u�scripts/deploy_with_ethers.tsd�^�*��d�^�*��(���W�5��XPwK��ئ��| scripts/deploy_with_web3.tsd�^��d�^��)����uۚCl�j��{�f� X�.Bscripts/ethers-lib.tsd�^���d�^���*��O���:���V�)��?�(GY�scripts/web3-lib.tsd�^�!p�d�^�!p�,���In��ˠ/�ds�9���5��[tests/Ballot_test.sold�^�%"9�d�^�%"9�-�����Z+��>G����`}%wtests/storage.test.jsu2����A�+�-�03 >./
x���A� =󊽛����^|��J1d���M�<�af|-% t��HcKZ��G�c��q6p?�1�ޑu��Y������N�i�K�R��2Jy�k9�6���a�Q��S�?[ݞIeX3Gh\���+���W�4gQ_>-H�
x���� �0P�;E�I�&M@�U�w�l���W�<��dQ�u'i�*�1����kԩ�0����)E!D��m�xe�O�{Є6���\���1bt >9��.�������Y]��y�GF��}� �債ܔ�a�!����6Zw�;
���|�(/�oKb�>ɤM�
x��R]k�0ݳ�EO64��<l��A�` ��h cY���ɒ']� ��}rlg1dz�u��БJmK8_�z6������٥�h<�>VhHm���au9[�<IZ'��o�����2�/yor~��"QMksب�[BO��aV@��Zy&�dAJ
�w��w���;Xwl~���jAsiM��^��r��$?_ܾ�j���dD����c�@\�.�[��� Zg[��$�E���P�4��=� F��J�X�ZC�AJ�d��aM4y|��)��T���Y�ʱ,����"�� ��dG�(\+c�ٮ������ݦl���l��l����z�=:��3�NF戮ivA��3`�@��`*|�|m����kA�6�������N����0E&�ٿ��v��^#g��xT���7������VgG�����`��|��� >�5�
x���[
�0��)�/�&�# "^e�٭�֔����#x�f8/K��y�E���:{`P[b�1D�WE��!6+yUc1������#e�PC�<�*��B m����E��$1W��4�=q��}�J��r3����5g� ���G�5��t �� �L�
x�+)JMU�0c040031QpJ���/�/I-.�+��a�ɛ����s)�M���0=w0���$�(1=U�6��a���(q�6��v�=Ͽ�I�U-N�#�
x�]�QK�0�}�8 a-s-�/l ��D4M�ְ4�-s��wo��������sHi}����(�Z�����3�r( m�
�Q���#�&������;J�L����� *�Dx/�T$4jG�m��}�7V(yq����s`���6�@I/��:����[�~rUg+��ŭ5z���U�|ӻ�oFC�����{��j�X�>�ny�gv��͆'�$1�^p��?_��8Hة�'I���i�K�Hq8���Id��e,���@L�C���?�?o)�~�~��q���t��C��uQ��X�H)���ʠ��y�3�s�f?�L�
x�UN�
1 �\��,]у,�C��(��Y�8�����sH�dfKla9w[11�L����ìW�Ԥ�V�kpE�C�Ǥ@�P[�a��A6)��M��o�_w!ΰׂ!��4D#Z�O��f�@���=_��8n
x��\Ys����P�iS���A� �D���Y{���$���H�*��\�Wj�{ �dy\�ِ.Kt���׍H�<[�g#�����ތ��v���#�����Y��ܿ/�_/�"��y������һr�~�����] �u�)]�B�L!�����W!}����C�r~]���B�<S��u�Y.B�L1ӻm��t��q��� �����,�-t=�w>/�0�H �<�� ��a�|���1�.�a�-{!&0#��Ч� �stIYRB�Ѧ%�7��� �='�+����{�0�b��'���s��!/P��\5J
.�W�y�À"�XiK)�=0TH �`L��akR��h�V?����å週 Z ��T�,%h?gL� �Hy���b� �����l-tc뿉$ָ�aF��!\�$˜�Eً򳠀{�+@�(��0_���
�.�=���e�)�.g<�2�zyF�`��憚~�9E���O|�r��m.Z� 4_��s��� 婌���%q��b����V�B?*�ʱ���F� K+U@�!#Ce��m�u4�O�~u��En=�r#����OMƧ��2Ov�8-���gD�ŧ�⃙�8��j�$>�9~�g-�BЎ,��C���YM�Ƿp�XJO�G}�A�Q�7Q��o��U $��G�t<��N�E��ΈcQ�q��_>�q�Q٧n>1��H�Y�����Ԩ�5b1T�o�I��M��iz�J\U�V��6�<i�Sg�} +\��@b�c��n���S<4[� �f+J�(s[�^!�� �)���\�)Nwa.� ��rd=6��4d���}�<M���<Խ�,Og3�;��5��wfy�e���t�ڳ< � �S�!�q`x���E�x!fiJ��y�X�),��,��{�z ��9���� &R�g���~l��r*��㋛����,���zhtvu}~��������&�7xtr�cry���a4�����I�i���Cry�����ztq~��V<g��Q<��G�@ �(�{ P���4�i�T���TZ@�"wz�"���1��6�oYR�9SE�ꓴ9Q(u�����V�L��+��*6�F��n�ԛ���͑j���^�|h��z���~H����^��J��U�5"����uemDMj9`[������k��z�EJ=���`Pm���at-��_ F#�ĄS��~�d����^Q㕺5
�̞t"m�{툵�l$��u�+NzS2�KI�ҢW��5�H`�^ ��=��t�Uw�aS��=�}�x��K��sǔ�y�L�/��.����#��6���VUL��:�:�1qs��(,k��$РX��!(�yj��#\���������E����Kb�����I/g��|�s9� а6���<��l���f#��w"��ǏK;TqsF2C����]�O��Y��yh3L�o��&y��v��Ƃ��(<�n��Z�X L�:�6�y���oZs~�.�@w.���.�I�t�}{��Mh��n!J�y�hά�;>�zC�^�&����K;j�Ȟ~|@�cVO�f�l�!��)�,C�g!��I�Zé�vpP��K.`z�} ��[SJ.�ge�����Z�xj�X��<QR�K�o��v�q'�d8�h� � �g���ģZ}�7����$�����X�x�ı�G���G�L~���Y��\�^��/Ɉ�}�':ˆS{��zhjs-|�t��mA�1�ǧ�=ٺ2��Ӊ��f��g�9���C�y�1#�9�]��}u�� �!/5H��m�����?w C�� ]J��C���� ]k�78t)����U�����������~4J��{?+��4��L��o�h�N�����Q�>�+܏�8� nH����c��<���v^��~����N��i��\F?����8h+�#+�_)e@�?GQD��i�6`�܋�ċ�jf*|��1�����X�G�H�)�{a=���.�v}���g�ܧ!~H9
Q�v2�`���ND�o�h�xB� �o�h�+D,h�Ťs�bҢ�a���D+�v����P~���#� �quZK��˳�g��� �f�c3ñ����plf863�9��L��2��{��k;c��}e{Þ��;����"9����:i{ {��a�h���|�=�or�{�Þ��;��{��Ԟ"
o�kOX�����b)J�PQ&������N&A�����ۓ[�B2� �>�T �����<&ex��&�(LB�=�¦�����@�=]��K�Fv*W\��� l\&���N(��O����X�� ���(">� �L�|hX�|Й��j@��/uit%xi;9�Q����n�m�������*h�M���������8�]o�t�U�/�> B�������c��b�Z��e(�e��4�6s�#�\�U�����/�����'m���o��b����*���S�ꬴ���)/Yg'Y�*�"���;���[�z����Tk����+����P ��նLW��DZ�bu{WJk~�YV SJTv�}���r)�5f5�����Um��@����M���R��rkL����{��R���o��?F�Yܭ�*O,����W����}m�� ]8���j���O�n��ٔx�Q��lR��y�ޘ1��w��}@ە
x����N�0D9W�? =QZ@%\_@o�H��I,;��V�c��S*!����۱ser<>=\5��5�3J
���_>,����t��q�W#5����ZaS��7V`ִ��|��}����#옕,W��KL���0�wR��TfBXr''�R{��S�fM#u�� �^��͠Ιb����fo;�ށ)e�P��<��ݙ7%�dt���2�SQHe�ГQ4�{�R�ȿH��,:�ڴ��bSI#!�$��-��b�Eč�Pju`R�P&=�9�<x��$z����K��w�Q��ӥ�E� �+���Hy���i:K���渚�q�B������7�÷V�G��D���Y��'V��'�Uj7�m�.��w�����qu�e�Z�я����qNg
x�}�M��0�{�?L�����]���:�BO{ i�m�(��� ����c�ß�NB3z�G�<OjE�+-9+��ï}���*��(��F8���W���F5��" U�*��0a�FYu1I��I��s�d���[�w; E���PPN+�?���&|V��{��0I��ˆ�"HsA�1H&�S�v���TM������f�����h����J�4��t%|��ء�gE�7 � 2 ���>m~���Ut+K���-��ꔍ� �����l����|�i��p�U��(����4�<��Pq�� ��ĩ��~:����o��w�J�O#?<P���]i@g�´�[�;�2
9i��N�)E+��P8�PxΆ�����tD��͓q縻��0�s�!/�{�OR'�9%��� 9|�x9���?���G?��f�+2�Z``ߴ6?
�D���t�ɘ�]uM ��
��MY`6H_:]��� �tO}�R��ئ^e�CāՍ ����&`��P�Rּ��&;�������U_�����T^�m�����=�n�~�?�B;��9��c��?5���)
�}����7�
x��UM��0�ya��z��⤻�Xp�C�Pz(���eI�+���\IN���;����Cp4O3o�K늯������Z��>�+ZPu�_��M�H//6�)�o|̫�+x����|� .�sE�^�4�)8Z�Tڭ�9����"�Co�j��� RBA*R�m�W���5�y5*�����6š=�PyI�� ���;)� �+��q0���uE7XJ���b�w�������r*j"$g.��뚲2�liU� ;!���ڽ�#| �Lt��uEP�(�10 #K�~ҽ�i>��n)�1 �r����6�c^b��Q/4T��5�u�֞ߝ���|>�;A�)ȁ�#��������7*�;�1 �-�������6l�(gn�";��Κ��@4k/�DV����!@�;���:����p [.@��ǂk�%�xW���c�'��O�\?f}�8��PW��gz ���nz�M347=��v��J�t[��' V'X�`��>a�@�x�� %�X��۶�S}8A��8�b>�[p��2hA��F���kh�ƇN>=y��UbN�\���-�u��?@&b��Xx�hVh,M֡�,@< c/}[u��}�s>�ي�Tk���8�gd�F�O!@�uD�����Oxba���\*.4�Y�y�:�V��S���2}2&�d��<���`�<m�}��:mn�e>��z�����NЃA����#e w{��y[u�� r�F�z�9H���ۡ�6ۄ�:���w��}�\�@,}>��Zr�oFV��lw۽ޝ]�-4j9b�;f�3A�l�t�}(��>@v��R� �]�"n/nĻ��/6��5
x�+)JMU047c040031QHI-�ɯ�/�,ɈO-�H-*�+)f��F������k�Пb��BuK�b�P��d R�p��������:n�X�����b�nNfH��۳�sNf�;U��?�w�#='�B�Y0e��߳Z�=#l����o4$ݙ"[U.IE
x�+)JMU0�0a040031Q�+(J-)�L-*J��*��cش4_���{v?���#���˃� rut�u�+�(axT��<��E��F�w����:��21��������b�u�����]�}�N�FH��l\+DMqrQfPEG����'M1)���T�U���$�(�l�.��w����ȯle�?|H�
x�}T�n1�y�b��T�M��� P�P�"*�oȻ��Xx�0�&�P�����MA��^<�s�g�k�ËWgg� ������Fh�^K4^�
�>�ޜ�̖I�!Q���J*��w�e�:[��e�&[^$��7�<Lւ�Z�Ea ;cƏ �'' ��{��F��3H�_����s(��T�3-��I���?I��������V�����1�2x(-���ϠmU)SEck����ϣ��{�`���[ �e~�R[o7�@�P�yK����Q��c6g�-Nt]�_#���AUS���)��FN�� 3u�ش��4FV4^Y�V&:#�A� ����P���Y��+�!ȅ�ф@�y��8Ƿ5sjƠp��2ԁJ��tQmu�ȥ�7�eFf_[£l�>JTz4 ��V��(Bn�1">ֶlLض(�Ғ�a���(����S���� �qE�,���rM��:n���J��2�w/��1�Țꐻ6�]�9�� X�ڳNar9�~ w'�1}����k�0 a�&`hw�m��K�;)LDx�=5��������l�N�����$���X V#�EPsz��rq�Тa�Y�p�Їc�C)�տ�8[����I�.���ΰ$�aP� f����v�ƣ�>j�w�4�VE?�#��t-0�'�ڛ�d�}C���� �ZGԞ�U���� � [�R�Y�d�D��=�� B��
x�}��j�0�3�?�� q��L�l�
�|��N'�P��Uj��Pz�������Z��e��]X��
�[���c�ڬ�MY���NXi�����. �
�Ɲp��5W�U����5L o��[o8��Ϟ�'L�ԡ/�Q�ò�]9F��x���*�F���{��=�n� ���+�,��.�U���'�'k}ʕ����L9�9��g��{��Ŀ��6s�
x���[k�0��\�w8�=Ĥ�i� <�a�= �6�R�a�ǎ���$7�6߽G�l˗�����?���Ha}���IqH@��eL���*|��ˋ��Z&; ���//./��eM�wB�4����q Gd�^G�i*D �EC׏ͩ;<R���*)'�Mĭ���!��K'��7���O,�������ܬGU�%�Q)�'����r9�o�e���>a�B�w�CRU���#�X)��;��[;��*�jL~�f$�C���Qsn-���p+1� p<Bj��Û�_��ͯ�X��DJ�U
m���;�w V�Q��ۛ�$:�"T�3�B;�� -|�XG4�� ��!4*M�QAI�Q����K��������jIv.��%�U�����1�{ٴ�E3��zO=[��>�{r"cy�aGF� =Q.O�`��Ă)*�ݖ��S��尰ӽ�� �Q��%��Cמ����==�t\�m�|��L��_G��NM2�ɉ FîHv�4sXK�Y�BZ&�
h�!>�0�`;� _�G��Q��k�OC��5��}�����AaZ�ea���BG$nE�)mGJ�S'&!�[�M<�"f� �@����%�:]�}�a7k�q�h�����Y�c�3�;^G�9qn�Zt�(?e���&
��6�<�,5��5���޷��:5bXy���
�}�4�g �eЇ��̛/�fҁ?P�̴�b�h>ͅ�<{y:Z�g��}�
x��=[w�6����
�>$3�K��g��d�\&N:�gr(�r4�%�D�q{��o JMP�B��%�w���f��L�v����G��?jz#�l ��;��54���L4���S���d���B��˗g����h=��Ϧ����]���/�r5]�I7��8�V�r��_Z�<^��L�#ô�Mƴ�t~�&�0��3o~���r��b6����E]/��*��h0^�å7W?~�ia�<�p��=�S
n��������l���՜�KF��q4�rY�?�p9�_k���l:��0
����X�~�Q��K�%�����t�-���ۗ`��_-�[�o�x����&��8�lJ�?~��K� ? p�/�����̿'�<&騫 |�1Ƿ?�26� [:�`6[`L1i�Л� �� \/1�1�'<��5�#�~@w��G��I|qNo���L������o�
�FW ��%��tħ�����e0 (�J?>������*D�?=���ĵ����ɗ� �BdW�૿g�׫`�]X� ������f���7G���ߝ�V��hvǷ���`������w��\؊����_����)�J���[��0o�0ȵx
1#��TN?P�ƬML85�ʦ_d�@x��:��D� 7��u�4m�N�@��)�Ht�z0����z���`��n�û[z1R�A�r�|b�zwD/y��d�y�jb�fij��N���0��%��nbFLƍ��ѿuiL�f*fmM~���C�"�"�K:<-�ݘ@(���1�e)9�;�Ը�������s�7q:l���`Pq|�*q'W�!��ȱ5MЏ��H����x����Пj�7G�� ��tiuwK�Π����7[��Ϟ��9;�����gxDg0�qw} J{�ì�t�#��|
������on��7#}�@z��M/���jA<(L�.���2��>Ey��ݷ��J�: ��T�"Cgp3[x>���͋��H�z���){���d�g�oP�F0mkbCklz�1 ���HY�T�w%\��$�N��H������
qV>�?&��'��C 6T�b�@�aLb \%��8���zs�7g|=��zF�_��~�9<�_s�˩��x��
M ;:��`��;��S���y9]Oe��� 3 Y9�O*�{�1J���:��`;�����EA����c 8B ���ߊ�%����H5.�LG#��<h��:�j=��1&��a�B��<��YPF�1��>�>جa����'�fi&C�i�O��0"4g�b$|,o�|59�Ɩ���֫�s�Y�r  ]f9]Q4�B�т燗x��[���S�pӛɄ����s2�/n�K�<�
�^)���3Ԓl ��y2�n�㑟��)�|ij�� <&�!h�i%]�'iפ��<�Kiu~�#��$�'?�󊆞�?ɕ���~����;��W��$�u�#X<���q�@<�0��ھe!]<�!�M����̦h���8�s��Vq(ㆬ���8EdCb�'dk�L~2��`
Y_!a��B�\ c>�.��&2�ԣ]�2�T����6��ik��Ml�Ff�,�x;�)�c�wA���"�\)�%ˆ�Ct3�9 ƅn���@�cK��Y�(GO�Y�o8E�—Pjl�:��Y�Uz BCdi9;،W��X��Y��}��l���[�?�.O����]c�|�|����a�BL��o�
�n���#);���37����6b,B ��P�"����9ܬ�;4 ������5�����k�YTT���:��u7�'μ!o�E�m��2��!�?�T����� `�,L�X�壏��dz����]Δ�&����ۭ� �F��j"d1�9����㖈�gh�$�Lv��gˌbw�J ��<u O�Y��'�V�T늰�������T�Ƽտ�%��L��1U�����
8%Y8�<}_4d�933𸠹������;"��sh�$D���O-K����<%�L*>��f5?�Q�&$��V|m�\a�gt��z:�=�(ۡù� n�@��z����N�X]ly���é/��-0����W����PYc�#�X?�V�������A�+_v���N���w��ޥ|����*l�ƑD��6l�ģU��B�eF�x�ᴖ�42�e�w���L<s.��� aθʪ{�Y�Go-��H(˙9~�U���ˆ�mߛFk��h ��o�*B.��(d�ֲ���‡b֔*h>��_aV'�5/j�� �,0>ܖ$ [8�K'e+7�VVt8�PՐyH�Ջ˶���d|^϶�a�x��(K�!���*�js�|�v�dL�o����"%n��_G٪��mg�^��>�) ��d?�S��'ۅ�?ُ�x%��6�A`o�TZ�P����~X�J<���P���Q4�ޕB��UVxC"�n�P�'w\��=|�ca�R-��b�tH�VSW� ��V��(�Z���xO �E�Jo� Yf�D{��*�&��4J�Y�� �]�F� 6�dYMS4��wX�q�gֈ]�D�V�E��2�q�!B{������M�6�6]���|l���P-b&76�z5�e�g�}w����٤1�y�2-h{�?�tӁ:��ǰO�&����x<tӵ��2<?0|&2L]�Ǝm�v01ؾ�q0�u���_ͳ��C�g� f����I� ���(����cz���;��� �����pX�i[��[&�92i��������7� �Lh��bO��*���u7����b�̱ ������ c��䳃�1 |/p� ,J yj�Xᚮ.?�٢��
���g� �Ё�*��<d�K�L� ,9��&� t
�[�V�D��?�u�c���4]SJi&#Dt�LJ'���)��$<b����j�6 EǰAB,I�#C�c8��H :�]�%�'�=�|�@V�ӎ``6����i�[(y sY�P��0" r�P�Ut5��&Fѫ�icZR�t�rr���ل �ܦ��RJdBd�#,%�厵��λ��i*�9��؈�1� XR-��;��A�-��kE҈�s鿨�ꢕP��X(�J�#��Q���x���T�0;��Ŕ�X�,&E��P�{�?(ˆ�� ݘ����IJ(,C������E�};  / ���l�ґ��{C�/��1����)E�(�<���$<o�ā3�$q���K��-=�J�))ˢ$+��bh�Ԫ�e�eH�~������s�wQO�zҜ��m�4V����ã:�E��Kx� һ�wz�1��h]?�VeR���A�#ds<G����]�9�6�;@q�'��)�#/��I�(�#�����Ey4%�3��<
@!�#������Gy�0�����H�$!%i���˿�L��|4t����7�εӓ��_N.>�kg����?�߽�� -qh����ۗ�z����/���Ӷ������7oٱi�WoNδ˿�����N��о�e3�7%W��ދV��/p�{Z7��0���<�9L���Sz��0�hAʥ"�"�ڹV E�/)�p�����볢�0S?\h����鄪��������~>?==�G�.��%ԙ�SAG��0�]�O�=A�j1�Nz�x��~��[�� ��;�#��M�:�ld1����~96ƃ���I���
�C�������*SE?��1��L(�s3G&�Tq_F��΅*y.RɨK�z�X7� �W��F��c�,�a&6��S�M4�9U�j(~�bP![$O߼�?�һ��޽�0vbB�^������������n�V$]S�����S6$�Ԉ��Č@��/����X'Ƙc��8?#S�s�繰�k�����㮜86đ���r���f$~��V���>"�&��<�q�.ĈZ����S�b�Q�e���WF:k�1+|Xa�����2�kt9gλ��5�_vK.(ƒD=����z��|�<kH@�YGt����U�˧�oO�Pyb?�aE��^���������Bl*9?3
t
�nh�����ʙS1w`�F�I`y��j9%�e23�V�
��Z�x�H�i�H���_>��:qB'��TQ�����Y'�Q=l' NN�xI�P�&��}�~2����fb�K/%ퟔNEJ��|�W��A2�'��f�n�>z���YQ��4�l�$7�eDŽ ��6O�x��������&��'�<޺Y�J}��oXò�NQ�g�LZ*sl��ћ��L!{��"�T��&��"pҸ�R�תrtVV�C'� ���������) W���W�-�?����q?9�M�3t��*����OR�C�������1]��)��"i$�O�t��Qq�s��'Q�O���‰n�p�������s�sj'g���I�s���}��tNNN޿|��8y�4R)����:f�&zs�+Րݮ�>ԇώ���!�:v���86�_C�C�⿐^�z �czL�s\�:ǹ���pJ~a ��M��0ɟE�yC�O���u����N�o�����i��4�v�~;M����v�l!�_ �ׂ���ѯwl��_ �ׂ���n9�~-�{~2��_ �‚R�ܯ�k�{i��Zp�ܯ�k��Z�ޭo�!gE:���۰�z/DC@�"����d�d<|!�z|L��?v �HN�ǽ ��쐎���ڀ\�p�؄��`�d �2�ӡCC]����Q7�����V�W��_A�'V>rF�uLθv���d����m�ȱ��E�cr�'��a�4��1�����H�<�j<���(�̸�V�pz��֋Թ���GNe/� ?8 n�ix�X�}d}P�3��h| �kro�e:�L��0`;��Л:$����[,�ތG$>\�l�����.� ��AR
������$~/8Ǭ�xS��t� �G�Qp=%|��S�j0��5�p�9�ɲՀm�oZ"-����pI<C �(��<20���PwEC�e�ʣ;ű�k�8U�,�*4J��HT�zן�rm��6V�er��0Մ΃e ED@ѰQ�q�c��)^��+1Z<5�>��D�Jꎄ_�(�>2�y�����K3����<�0�E6vA˙d�)d~9��Ej�"z�O�+M�>�*˛:G��zp�E-�6�} e� e#�qk����\�LR��>N矔�,����2�i��P$Y]ڤ �
�T�[*��-I���%�&K��ƕ(�T�R*Z7R�TB�T��]2N^+�d=��HLGd��.�����{$� ���He42V���WUټ��f��0%��=-�]���$1 ��n�wR��(����r�ft�d"�m~稚U_n���E��؈�P�D��(�"E�'ِ�Oj��5�y�� j����&_eD-J���kQ;�G�����
��Om1k'~LI�%����*��R���]��'%\؝�%� ��.%�lҥ
au1N��m����x�_K��-*e�&�,����s��R�RR�嬪(Q�_F�E�fP�d/��F>)!��=q��*%l�-����ei+Sge��f�jR��sd�"W�Ԣ�N�j��e9�:��m�J�-oj��~m{Q�N�.U��)�V�Vڍf{��/��VE�$(��w1UP��ҙ���X�m�Gw Ӎ��>q�������99z�H��fFN>}J{�|/��i]:�w����^�o�y$:��cD+J����,�ك�8��P ;��G���;�C-$v?�*&��i�
r�E���S����=��\���K�lO^ӥnW�~P-�����L-�۵��{�fw�'���]OP�'ғ�m���'�3��$W j9'��B���7��q��` ]1�5D6�ʂ��"�`gUW�㈠����_2|~�q۝��zO��Z��S�(�Әf@1iP �������Z)Zp�j�[m��9v �~w�L5�R�&�Ѳ�_ը��¨�+;b���j1q�QTqPv]���;�m_�Tk����ʻ-yH�d��T�#s���4qm!V�a3u��z}� ���v��B�t�� ��&�h��^R��0�r��;��Y �@I �F�.)7��EN
�j�r ��)\�&[�t]1�T d��k� ��h�i�+�c��(�|��;�@IE�NR�ip��E[\�,����Fm ���G�B�J��J�Pg`B ����ڡYn��
`�4���!����ddr��M;{�YŮ�%�a�F��� K��Mz �2�=*Z���L|�^R٭��,�ދ��BC��R�@5��6ntN\-,մ��t�ڍΧ{Ż�*�W�-��(�~��y�rr/~��ۯR>x�JY ¦=�m�?�G1�R�=�� ��� � Ǧ>hc��?k�ڲ$W
�B���x���>�$ �Ƥ�
Y��2�2Q�-8��A�v�R�l=MFv ����X# J>���/��H� �'��l�s�I��Eݭs�N��ha��k��@=�z��-���G�� ]��"�T�[_��4�'�IBx����`�j.@���$&�\h��P��nzUՕ�:Km]�b�-�h�:<��y��� `^_�ᦺ�n�H�}eX;�^�n��5��w���P�6�P^q:���:��,�Ɠ� n R�L�Ғ?N�e�(~|ږ��*�!r�k2PH����
΢?���R�����݃| ��eɞ*�8����{�]�/żmGC�,�ˁ��0#�N���F�r���AҼ�͡�H�ɕ ���cj��� 4�M�KY9�V��b�+�{�:�n���z�S[�5�5浑�)T�ᙻ�?t���[D�BC�n�?u�џ��e���݇)@������{�n �����vkB���0��{
�W������w�̓>��c�z�*^}�ji�3)ꘘ�/���J���&O��X�o�E_Պ��)�r����������\��W��W�����f�7�y�[����ƺP��TGx���Z��6xn���޶�-7�\DF�G�-飬-a1�eu���%\%*�]�kI�uNꖄ��X�Y(}���W��꽂�Iʿ�E���Q�V&�{�a�dL5��a/�)�O)�;o��{�:(���&u��q�NtN���ӝ��n�\��-��k!#lş���]j���^U��T��b5-�hEs<�y�mm��o�3y}}��}}�
����`��ykֺeӞ��X�D��k��(�G���S�ԓ�����ӣLC��ׂ(Z��Q8��g[,�@�W b�N�6T�-"�+V�Ʒ1��喙ï�풻?����� M�c��������������I��,���*/ֶ!w��H�c>�Sj;m�j�m��+_�S���ۍu�?��SE���6J-d���]��B+�<�O!բ�ƓNev�q�?I�o�=Gm�Ʃ�{����i�lEh Ou�vɩx���vy�ތ& �A�����������J��ώ�p�I��:dJ�� ��S\�'6ʢ�1�N��AT���]��� ��B>�7W6�k5�6)�/���ۤԞy��D��>M�iA;#M�AX-��s���du���or[w�Η����1����k�ó���'՚��k�Ʌ}lZ�y�����0��N��Y�?�o���?�A����}5����W#��F���Fԇ��Ոn�F��b���`vX4�~��i�@jݷz��ep��7T�O*���\-��Zx7����a��c���@����P^\���+����C��;��}8�k���������ZHR�x��W�}����<A��Y���ߍWa����נ����ݹ{�b�~�S;lar��/7�������Ɵ��EБc˛��Clr�k? -����� �ġ�:�@IMNq��'�T��'��H����$���%�˯s�Z�t��5hr/�,��<o-��R�GC��eH�O�
\�
�����n�~��Sz�.������<��>AS���7��Dc�F*�_�m[JŊ�[�Vܹ�b�C���������j�<U����9%S�߼S�"�)[KI���8l��>�\y��xЗ'�@�i���/R��m�9w�Q'��Na�6(7�M�Gqw@�G��Io_�O�#�z��������W=mD���.뭭T�M�3�ط�i��$�.j!"�π6�B����Lw��T�P��[X�=������'��p�%�뜉ߜ7Q�@�7�
���m�0�td�P���0��&E�}h����~QB�l���>ID۽��w�vo���mke��)ơ[*D��΢qޱO����mA� ���,������C���&�,��~0��i�\�QS�_��l�� u��d|2L� |�
���5�a>r3`z�-��ט�hߵ}������I�!�x�z��W����v: �W�!���6]�񗫁~dA�ϸ��4<2L ��d|5�z5�y��wЎ���ԟ�wW܂Yu��Ѽ��H��W�7'���:���s�mE�?�oD
t,� f�U<@ځ��w�ѷ�1'2ȭw�f�a��V���!FdFķ|���L��qH���㚌�!ˢ}(E'�%���:���<�X �� N�e�<�{'(���8\,c$�૿G:���=���*X�I+U��]E͑mx����:���p��Տ�ZA,�V��%�I���ƞFw�cM�7��t���� NdqNo��'�� �>Ó�zN:C]'ݗ��w{���E�v�� ��~ �c�WhZ��3��>��M,3�M��t̑?���Xc[�M �e� �@�B�u� r� %h��QT0������#
&0�(�=�6\ � 2M{���5�d2��|�A���cL��oC��W�OT&�O���K����D��R��~H�_���rA����A%��c�L��u0��,�5�,�7^��`��>�tswh���wo9�rjg�dJ>i���4o�%ư�~��_��K����i�I;��@Ц+�n��[��}X�󏏎��hh��v5Ц�%�����������O���h6k\-i�i����+VM-R ��[��!��ҾK����V���/��v�����Y�ͦ�`��J�u��h��'��?؅�~�$�6Qr/cj�*ũ��D�&8B��=UJ�3��L̥���k� Q�OT!c�M��I�x������u���/P ��.����w7�Ō�CߕX�A�\��&S�K���|��c"/)9��p�6��q�ԇ��T;{bzlgʡ(�`����/8Ua�es�O��,�o����w6�zN����j9��!D�,�zZ�|䭂ӄ�]R"����R0O��.?O����L�{[�`��h�|=�e����� 6B�' ���ϳ�,o��8���<�)�R�s�Kʊ���Yz�M̞��w�!1I{���Q�c�"2�+ :I&3��~�Ԓ z�g���Q"�/hG�sW#0�B�\�J�Q� �� �W�G�����Β����`5^No�d'I{6W���Q�9��MTh�K�N�F=���}�눁L�f�x����|���H����dp�o�P���VNTa���p���m�;{�x���8C#ק�i�������� ���h�� � �RN>�-ƿ
�l8Dv�}T �y�z��S��ā��ri#�l��!X���g�;����rˍ{\�s����zY�:��� ��V��w &�_q�r9��z]���B�py���{0dT��o�������G����]�w��\ߜ�z&�ᠡ�Sھ���N'�)oeZ�]� rw�����Rd�x�u�zNd���I8A�PH��Z���/ׅ/��Dk�mMlh�-��\�3v��6��j�a�bL��k�5\3m�f8<�/�ԫ8X�b�1�{��}=º���΅�J�큚g��'�SǮe��q'�n@�vL�5Ǻ�<�q��>�&���gO�@��Bt���VMN�}5��b9����>(L���}g,L�
������f��"�7w�K��s��JF��,���ʇ�yruw�<o��7�_
�#����(k�Y�i������t�q/�I�(��]��J�)�ܑ~��'��b��E���G�THN�9��X�ũq�#� \/�o7�m�B�Oz9�'x2?��h&��'I��<��\〕Syr �$��4���qr ?�{�^B�������H�yc� �+(���]m�&�7��]q6��WP��Y=`4�{�v�f�J�.����X l"�Z��� 4�um����
(��>E�V��ɒ8�>b aE�*TME�W��>�d����֪a�
Kj��0`Ɔ�j^ [��9��+��8U��Z�Y[<XI��Q!#�bg��{�r�$Liq> ���
P5S!�xݙ
�phY�2SqJ9X>SA����
̧�[�����D�V9�O9g9� ~?ҝd����iB3�7Q.���R� ! �̆\�R��P~����n�(�����#0T�`���i4��˫�.?uH8ki�� ܩ� N���;�C:5!��C�؞�m�M�@�'f�L�'��)-� ���z�����N$��I�dG�N�W�nl�����mU4
x��RMO�0 �_a��T�&��B��aH��Ĵ]Rw0M��$��ց��!Rl?��b'�l��'�,tQ2�J�7��$��������R3$��$��d�4��x�M�k� [�G�v$Y�N��=&�:?Ɣ�T�aEQ2�g� J��1�up$R�L4��)�i�Yc+��D�6��� �2~`xGg%+��a��ñn��������e��ʮE��j~T#%�lEYe 1 �LOw���#�Ӷ���czG�4�H�i���Y��{���8ou���nnM���)ڕ�1l������:���=����Ȉ_��wd{/$.���zx��֏ۚ����;�+�/�,2�
x��T�n�0�������H���詽��%0
>��(ʭ��K�a;hR4E/�W��3�%E�� .h��i�@�5�������\�=��8�([k��GDcº�,���h�8�bb����;H�Ϯ6ʄJ?\�>�|\��y?i�Hm�M��{X�QccR���)by3�?@];4G�n��I��2F¡"]����> ��F�\� �y��Z������U���>k�yuoeH�J���e�׼��h�o�?'v^�Л]Zgg��x���<�����Ov�W?���C�|/��c���)�+'�3�@ ��R�������;�tN�h�جn>������w�QN�\������;W'���kþ�z�(�����`�Fx� �R��k�i��|�D�:����ަ$�e�J޶����l*��+O�(k=����P6�j?(��6Jp�(���3L7T(�)���2S��$&�
+�I^Um@�U��mD��/S�����nos� X@�˲�XNtNi)���Xk��b\����4� ���RF�0۫����xy� �wC
x�+)JMU042`040031Q0�.�/JLO�+��a�+'z)��:o��&����43��P�F���y�E`e3=��v[���}3�yw}j?C��8�)1''�����3�-���W�1I[� [��1,
x����
�0 �=�)F�2ă��-D��xh�L��)m&�ػ�6�1�9%��|��"�m�E�M1|��2����?�U���
�<��+��%� I�m>\�R�Y�to�t���E�oF������^p�`�pR�J$������hx��8��~������N񯌇���=ꐶ������5��/�̢�
x�mTMo�0 �ٿ��v��nQ�0��m�i ���0 ��8�l)��A��>J��;D@[�{|�He�������Qo�����KXiUC���0����MI�1����d� �V� 6V(i�����v���a$����w�TjvMP��0�8� j�ao��lG�=��=��CX�g���Z����ԥ�J� c�&�J���ɒ6�B�D0�U#-4�
�p�>>���s�S�l�t %��D-��4�FK���j{�L;�? ������]���dѴ)tBg>�)ϼ���_����* ]�Jn���A�����8�����}3�E��TEq��h٩�H�q?U�.;�$�{e�dk��v&�bc��
�7�_�`����$i�\�a�Q����Z�������L��IO0Ka�0���`����v͹/3���t2p�dtI�K3~6J.���-2�ϧ�����P�[4��5α��p�
(�$� ,����p�^��ɔ��H���Ӊy�b��{c�2�M�х�xG�`��1f�(��������K�uD��p�c:�%��lg)W�*{&�WFg��&�"�����wZX� ���Q�4�c�3v�:��*����m����?��<+��\v��:wk���)>" V��+h���ζ
x���AK�0�=���"�.�)޼x޻��cH'%����ߝnV\WP�9������|�psu{6G3L)x�;y��fu�ڴ���� :7���@2Q!<�����{ؐU�h"Օ ,�X��M���u!�������G����U�?e��#����̹��~�.���;��2x��h,Nbu�D�9a�op�-�����8�;��&Rr�ʿF=�\��S��z�������-�����
x�]�aK�0���_�2��̵�A�����o"���5.MFrE����u�އ���}������UY�1Q�gh�P�H5أ���pC����� �w�f�2n �l��g�5UP�P$}��"�U;B��4�۽��*� #�w�#���N�� *�x��ι��؏��be��X�F�0[b���o���h�u�a��,.�:�G ֍�;�㉃�����:IL����G8��iQ�'�ɸi�d*�F�c��1��ø�C�DF��Y��K�Y:Ξ���-�#�
�ه�k�9��gH1ޜ>Ί������^T�R/}F���<��`��
x�m�Mk�0 �w���i��|Б����a0=���[qu$v��2�ߗ�I�Au�,������)$IrE�Y�+�PY >sTL;B3���*xc!*#J V��u�O� ^��9�BDө�)�1q��a����Xw�{0Ȇ�F�e�H�lRC2-�8s�u9o<�q*����!�|b��B���y�Ɔlg$2��Ȍ���+4�H�,y����;�6��.H���F��^�lk�Q��ʘ����� T.-(k����6Yt��m�/dgT���1�U����7� 4�}|� ��XP'�~�p4�w��{��
x�uTMs�F ͙���0㺽x2�qmy���x$u���$!-��.�����R�]7͈ ������Ƶp��/����O��p������-|���ks{y���5�=�T2&�¨:
0z h�P������k��윇��`G>D�4 Tĉ�`qz �yT{�(j��K�"���q�V�GP���A �'
����~7|
˧�8������O�:g�"�z��E� �EU�5PKЫ.���p����c)��Y����G4܎s�'s������B�i�HWǖ;�X�È%6��e�PύXE�y .eUZ4nj�sF�^�:��q�zn��y����2�᧜��濉VB���T��j���nDD<M���GZ�h�IS�A�_L'�y�Rֱ��=o�\�j�d��+��-U�+���<�.�>�pi��8���X�&�y7�`�, n`O�'rBf��� �O�6�>I����ys`gfQ��w☻y��W����9RU�R>/�(s̖g3(�E�=,�}r�Vﯴ"H�b^j��B�|��H �� h�{`_�Y����|��%�^'[���C�~q�_�D~e����n�|�7������8jQyi���d�aҷ�/�\��L�M��4���;�(ym$�H>e-S)ʫt�\��J�dݴ8���is��5e} �U- L�{�b�k��"� �b&/:i�{�ؠ��!,惦��k����0��'[�$��ケ�稡�f"X+�M��%�N6��\zTJ$b��o����~ ����;�&^
x�]SMo�0 �ٿ����@ƺÀ���u(�K ����m�QgK��4 ���Q�G��`D���#�7:�O�_.?ȶ����m�X8Bet q��(����~R��=�-��Z9����;4���:#U}��V�(��UH�i(�<���_���Mm����TNc�mᴉ!�cv��ն��p^Q�r����2��0ς�;m���!�5
w�����fJ���_��׀v�
H溗л�R�p�8#�m *pO��� ����|1r�������}qݐht��{\>����4g��#�.�����ET�pq��vYl@Z�I�ADz'�
�v�A'�b-NV\A�ؿ�/Cnͬ��ҧx�U9�X�G��w�xB�a;׹�;K&1m6�d���V���r�AU{�L��JYUd���1l4���%:�R��W�g�R�;� ��]�4I\��ߨ�&/ ����M�8'�NF�;�?s�d��������H�އ���D���xYY�9�*Q�6Rt�f�ɼT�
�����p�s՞�6~\g������h��\.&�D��{G�.I��߳"��R?�����D��!���m{ٜO����}{r_aG�n= �8ـ ��T�$��F1�'}s���V��[��S
x��Xm��6 ���
�_��w���0�i�m-��m�ZtA��J�Ͷ<I��(��G�Y��\;`�r�DR$��}��o�˯=���
޾y���k��Z���֊mO�՛חO��d���H^���������-�o��r2�z�&��UL��'eɕY(�-\WMI+�+�+V�<�R)9�:0��;
Z�Q�ר|5�y�ɕ3'�G*���{���iY��@�n���q�W`xL��U[E �t�)��p^�%h]�<�^�� ��譠��\�J�B�X�Uj�v~��S?� <ʜU��x�Z�:? ��4:�$�7n+
m\o��-䤆�UL[%�w�YŁ@N�"����6�5<m�)*/ �B��$���i/�H�0oOÆ�D �A�j�=�{J0�O']�ʇ)�\(����&�5-7?M� ����p����qv<
M�)Y��&,K+P��A�ͼ��%�ܫh�B:i�囵���x Ky�8��@r � ��KX 2�s�9�f~�<�i�[h� $�&WRk�g;�+���r����7�[ъ�.�4��eVP�]&)P,{ ���Hp��ZZ�#�~�\ �2�;�%�y��Y
��Ç��oS����,ˎ�)�&�X��h�pAD7T� �o��X�.BZeִr?Ck��P ��J`] �3��=���DJ?��i�7l}q"�s�),���|8��>!�+vKajP��0��c2=qU{lz���D:\+;�\�ei{�4�����v_R�!���o�ֹCo~��㺞���M�+dLп[&�,�>�V���i������� �Av�W��:z�=�v�g���;8��k�"��>$5���d~Rh]b)� �/ݕ�����;6[����o ��,w�- �V1�ߞ#�ګXb'";
I`@w}��{v�e����� �#��0��� ��r{�v���Ho3�S��H�u���V]���|ز��>�X+2m ���(v�� ����xQp�j��w��1�`lz��Z��c��=��r��G��|yQ/�!�?H�4�e�y#��z'��0_ � �A���O�0 ��?}��I=�Em�.<\��ݜ���k��>�0ș��:q�y�G7�)��7W�w�tW0�@h3V�e[���d&�<��\��)�n�����vv" Sj�bRӛ�iP�n��h������.��P����G�3O���f2lAߝm?�SP�Ug�,���Ou��� ���&������,�M��V�
�_�静���)_7�X�K�+ ǰ�T���E^�i5ߴ�V����2D���ot��-�t�D&p=��#�U���?n}�;9�pp`v&F����n��c?W�ߝV�}�G=�Lʍ���hRSrs:%��#���С�~F��<�p@�T�x�Y h��#�� v�~�&��Z���G~�bэn��������{������y�X�ϡ��ڍN�$v$F�$'���;� ��[�
49bc9e7d8343cd5fd58aeef826182c566c386dfa
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
},
{
"files": "*.yml",
"options": {}
},
{
"files": "*.yaml",
"options": {}
},
{
"files": "*.toml",
"options": {}
},
{
"files": "*.json",
"options": {}
},
{
"files": "*.js",
"options": {}
},
{
"files": "*.ts",
"options": {}
}
]
}
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created with 'Default' template
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with increasing levels of complexity.
2. 'scripts': Contains four typescript files to deploy a contract. It is explained below.
3. 'tests': Contains one Solidity test file for 'Ballot' contract & one JS test file for 'Storage' contract.
SCRIPTS
The 'scripts' folder has four typescript files which help to deploy the 'Storage' contract using 'web3.js' and 'ethers.js' libraries.
For the deployment of any other contract, just update the contract's name from 'Storage' to the desired contract and provide constructor arguments accordingly
in the file `deploy_with_ethers.ts` or `deploy_with_web3.ts`
In the 'tests' folder there is a script containing Mocha-Chai unit tests for 'Storage' contract.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
Please note, require/import is supported in a limited manner for Remix supported modules.
For now, modules supported by Remix are ethers, web3, swarmgw, chai, multihashes, remix and hardhat only for hardhat.ethers object/plugin.
For unsupported modules, an error like this will be thrown: '<module_name> module require is not supported by Remix IDE' will be shown.
{
"language": "Solidity",
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"": ["ast"],
"*": ["abi", "metadata", "devdoc", "userdoc", "storageLayout", "evm.legacyAssembly", "evm.bytecode", "evm.deployedBytecode", "evm.methodIdentifiers", "evm.gasEstimates", "evm.assembly"]
}
}
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "hardhat/console.sol";
/**
* @title Owner
* @dev Set & change owner
*/
contract Owner {
address private owner;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all
// changes to the state and to Ether balances are reverted.
// This used to consume all gas in old EVM versions, but not anymore.
// It is often a good idea to use 'require' to check if functions are called correctly.
// As a second argument, you can also provide an explanation about what went wrong.
require(msg.sender == owner, "Caller is not owner");
_;
}
/**
* @dev Set contract deployer as owner
*/
constructor() {
console.log("Owner contract deployed by:", msg.sender);
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
}
/**
* @dev Change owner
* @param newOwner address of new owner
*/
function changeOwner(address newOwner) public isOwner {
emit OwnerSet(owner, newOwner);
owner = newOwner;
}
/**
* @dev Return owner address
* @return address of owner
*/
function getOwner() external view returns (address) {
return owner;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
}
struct Proposal {
// If you can limit the length to a certain number of bytes,
// always use one of bytes1 to bytes32 because they are much cheaper
bytes32 name; // short name (up to 32 bytes)
uint voteCount; // number of accumulated votes
}
address public chairperson;
mapping(address => Voter) public voters;
Proposal[] public proposals;
/**
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
*/
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;
for (uint i = 0; i < proposalNames.length; i++) {
// 'Proposal({...})' creates a temporary
// Proposal object and 'proposals.push(...)'
// appends it to the end of 'proposals'.
proposals.push(Proposal({
name: proposalNames[i],
voteCount: 0
}));
}
}
/**
* @dev Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.
* @param voter address of voter
*/
function giveRightToVote(address voter) public {
require(
msg.sender == chairperson,
"Only chairperson can give right to vote."
);
require(
!voters[voter].voted,
"The voter already voted."
);
require(voters[voter].weight == 0);
voters[voter].weight = 1;
}
/**
* @dev Delegate your vote to the voter 'to'.
* @param to address to which vote is delegated
*/
function delegate(address to) public {
Voter storage sender = voters[msg.sender];
require(!sender.voted, "You already voted.");
require(to != msg.sender, "Self-delegation is disallowed.");
while (voters[to].delegate != address(0)) {
to = voters[to].delegate;
// We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation.");
}
sender.voted = true;
sender.delegate = to;
Voter storage delegate_ = voters[to];
if (delegate_.voted) {
// If the delegate already voted,
// directly add to the number of votes
proposals[delegate_.vote].voteCount += sender.weight;
} else {
// If the delegate did not vote yet,
// add to her weight.
delegate_.weight += sender.weight;
}
}
/**
* @dev Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.
* @param proposal index of proposal in the proposals array
*/
function vote(uint proposal) public {
Voter storage sender = voters[msg.sender];
require(sender.weight != 0, "Has no right to vote");
require(!sender.voted, "Already voted.");
sender.voted = true;
sender.vote = proposal;
// If 'proposal' is out of the range of the array,
// this will throw automatically and revert all
// changes.
proposals[proposal].voteCount += sender.weight;
}
/**
* @dev Computes the winning proposal taking all previous votes into account.
* @return winningProposal_ index of winning proposal in the proposals array
*/
function winningProposal() public view
returns (uint winningProposal_)
{
uint winningVoteCount = 0;
for (uint p = 0; p < proposals.length; p++) {
if (proposals[p].voteCount > winningVoteCount) {
winningVoteCount = proposals[p].voteCount;
winningProposal_ = p;
}
}
}
/**
* @dev Calls winningProposal() function to get the index of the winner contained in the proposals array and then
* @return winnerName_ the name of the winner
*/
function winnerName() public view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
}
}
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
// address delegate;
}
struct Proposal {
uint voteCount; // could add other data about proposal
}
address chairperson;
mapping(address => Voter) voters;
Proposal[] proposals;
/// Create a new ballot with $(_numProposals) different proposals.
function Ballot(uint8 _numProposals) public {
chairperson = msg.sender;
voters[chairperson].weight = 2;
proposals.length = _numProposals;
}
/// Give $(toVoter) the right to vote on this ballot.
/// May only be called by $(chairperson).
function register(address toVoter) public {
if (msg.sender != chairperson || voters[toVoter].voted) return;
voters[toVoter].weight = 1;
voters[toVoter].voted = false;
}
/// Give a single vote to proposal $(toProposal).
function vote(uint8 toProposal) public {
Voter storage sender = voters[msg.sender];
if (sender.voted || toProposal >= proposals.length) return;
sender.voted = true;
sender.vote = toProposal;
proposals[toProposal].voteCount += sender.weight;
}
function winningProposal() public constant returns (uint8 _winningProposal) {
uint256 winningVoteCount = 0;
for (uint8 prop = 0; prop < proposals.length; prop++)
if (proposals[prop].voteCount > winningVoteCount) {
winningVoteCount = proposals[prop].voteCount;
_winningProposal = prop;
}
}
}
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
uint voteCount;
}
enum Stage {Init,Reg, Vote, Done}
Stage public stage = Stage.Init;
address chairperson;
mapping(address => Voter) voters;
Proposal[] proposals;
event votingCompleted();
uint startTime;
//modifiers
modifier validStage(Stage reqStage)
{ require(stage == reqStage);
_;
}
/// Create a new ballot with $(_numProposals) different proposals.
function Ballot(uint8 _numProposals) public {
chairperson = msg.sender;
voters[chairperson].weight = 2; // weight is 2 for testing purposes
proposals.length = _numProposals;
stage = Stage.Reg;
startTime = now;
}
/// Give $(toVoter) the right to vote on this ballot.
/// May only be called by $(chairperson).
function register(address toVoter) public validStage(Stage.Reg) {
//if (stage != Stage.Reg) {return;}
if (msg.sender != chairperson || voters[toVoter].voted) return;
voters[toVoter].weight = 1;
voters[toVoter].voted = false;
if (now > (startTime+ 30 seconds)) {stage = Stage.Vote; }
}
/// Give a single vote to proposal $(toProposal).
function vote(uint8 toProposal) public validStage(Stage.Vote) {
// if (stage != Stage.Vote) {return;}
Voter storage sender = voters[msg.sender];
if (sender.voted || toProposal >= proposals.length) return;
sender.voted = true;
sender.vote = toProposal;
proposals[toProposal].voteCount += sender.weight;
if (now > (startTime+ 30 seconds)) {stage = Stage.Done; votingCompleted();}
}
function winningProposal() public validStage(Stage.Done) constant returns (uint8 _winningProposal) {
//if(stage != Stage.Done) {return;}
uint256 winningVoteCount = 0;
for (uint8 prop = 0; prop < proposals.length; prop++)
if (proposals[prop].voteCount > winningVoteCount) {
winningVoteCount = proposals[prop].voteCount;
_winningProposal = prop;
}
assert (winningVoteCount > 0);
}
}
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
}
struct Proposal {
uint voteCount;
}
enum Stage {Init,Reg, Vote, Done}
Stage public stage = Stage.Init;
address chairperson;
mapping(address => Voter) voters;
Proposal[] proposals;
uint startTime;
/// Create a new ballot with $(_numProposals) different proposals.
function Ballot(uint8 _numProposals) public {
chairperson = msg.sender;
voters[chairperson].weight = 2; // weight is 2 for testing purposes
proposals.length = _numProposals;
stage = Stage.Reg;
startTime = now;
}
/// Give $(toVoter) the right to vote on this ballot.
/// May only be called by $(chairperson).
function register(address toVoter) public {
if (stage != Stage.Reg) {return;}
if (msg.sender != chairperson || voters[toVoter].voted) return;
voters[toVoter].weight = 1;
voters[toVoter].voted = false;
if (now > (startTime+ 10 seconds)) {stage = Stage.Vote; startTime = now;}
}
/// Give a single vote to proposal $(toProposal).
function vote(uint8 toProposal) public {
if (stage != Stage.Vote) {return;}
Voter storage sender = voters[msg.sender];
if (sender.voted || toProposal >= proposals.length) return;
sender.voted = true;
sender.vote = toProposal;
proposals[toProposal].voteCount += sender.weight;
if (now > (startTime+ 10 seconds)) {stage = Stage.Done;}
}
function winningProposal() public constant returns (uint8 _winningProposal) {
if(stage != Stage.Done) {return;}
uint256 winningVoteCount = 0;
for (uint8 prop = 0; prop < proposals.length; prop++)
if (proposals[prop].voteCount > winningVoteCount) {
winningVoteCount = proposals[prop].voteCount;
_winningProposal = prop;
}
}
}
pragma solidity ^0.4.0;
contract Bidder {
string public name;
uint public bidAmount = 20000;
bool public eligible;
uint constant minBid = 1000;
}
pragma solidity ^0.4.0;
contract Greeter {
string public yourName; // data
/* This runs when the contract is executed */
function Greeter() public {
yourName = "World";
}
function set(string name)public {
yourName = name;
}
function hello() constant public returns (string) {
return yourName;
}
}
pragma solidity ^0.4.0;
contract Coin {
// The keyword "public" makes those variables
// readable from outside.
address public minter;
mapping (address => uint) public balances;
// Events allow light clients to react on
// changes efficiently.
event Sent(address from, address to, uint amount);
// This is the constructor whose code is
// run only when the contract is created.
function Coin() public{
minter = msg.sender;
}
function mint(address receiver, uint amount) public {
if (msg.sender != minter) return;
balances[receiver] += amount;
}
function send(address receiver, uint amount) public {
if (balances[msg.sender] < amount) return;
balances[msg.sender] -= amount;
balances[receiver] += amount;
Sent(msg.sender, receiver, amount);
}
}
pragma solidity ^0.4.0;
// Imagine a big integer that the whole world could share
contract SimpleStorage {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() constant public returns (uint) {
return storedData;
}
function increment (uint n) public {
storedData = storedData + n;
return;
}
function decrement (uint n) public {
storedData = storedData - n;
return;
}
}
{
"id": "82ab13761467d8ac94e3bc9f9aa53f2b",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.4.26",
"solcLongVersion": "0.4.26+commit.4563c3fc",
"input": {
"language": "Solidity",
"sources": {
"contracts/_Greeter.sol": {
"content": "pragma solidity ^0.4.0;\r\n\r\ncontract Greeter {\r\n string public yourName; // data\r\n \r\n /* This runs when the contract is executed */\r\n function Greeter() public {\r\n yourName = \"World\";\r\n } \r\n \r\n function set(string name)public {\r\n yourName = name;\r\n }\r\n \r\n function hello() constant public returns (string) {\r\n return yourName;\r\n }\r\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"contracts": {
"contracts/_Greeter.sol": {
"Greeter": {
"abi": [
{
"constant": true,
"inputs": [],
"name": "hello",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "name",
"type": "string"
}
],
"name": "set",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "yourName",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}
],
"devdoc": {
"methods": {}
},
"evm": {
"assembly": " /* \"contracts/_Greeter.sol\":27:387 contract Greeter {\r... */\n mstore(0x40, 0x80)\n /* \"contracts/_Greeter.sol\":146:209 function Greeter() public {\r... */\n callvalue\n /* \"--CODEGEN--\":8:17 */\n dup1\n /* \"--CODEGEN--\":5:7 */\n iszero\n tag_1\n jumpi\n /* \"--CODEGEN--\":30:31 */\n 0x0\n /* \"--CODEGEN--\":27:28 */\n dup1\n /* \"--CODEGEN--\":20:32 */\n revert\n /* \"--CODEGEN--\":5:7 */\ntag_1:\n /* \"contracts/_Greeter.sol\":146:209 function Greeter() public {\r... */\n pop\n /* \"contracts/_Greeter.sol\":183:201 yourName = \"World\" */\n 0x40\n dup1\n mload\n swap1\n dup2\n add\n 0x40\n mstore\n dup1\n 0x5\n dup2\n mstore\n 0x20\n add\n 0x576f726c64000000000000000000000000000000000000000000000000000000\n dup2\n mstore\n pop\n /* \"contracts/_Greeter.sol\":183:191 yourName */\n 0x0\n /* \"contracts/_Greeter.sol\":183:201 yourName = \"World\" */\n swap1\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n tag_4\n swap3\n swap2\n swap1\n jump\t// in(tag_5)\ntag_4:\n pop\n /* \"contracts/_Greeter.sol\":27:387 contract Greeter {\r... */\n jump(tag_6)\ntag_5:\n dup3\n dup1\n sload\n 0x1\n dup2\n 0x1\n and\n iszero\n 0x100\n mul\n sub\n and\n 0x2\n swap1\n div\n swap1\n 0x0\n mstore\n keccak256(0x0, 0x20)\n swap1\n 0x1f\n add\n 0x20\n swap1\n div\n dup2\n add\n swap3\n dup3\n 0x1f\n lt\n tag_8\n jumpi\n dup1\n mload\n not(0xff)\n and\n dup4\n dup1\n add\n or\n dup6\n sstore\n jump(tag_7)\ntag_8:\n dup3\n dup1\n add\n 0x1\n add\n dup6\n sstore\n dup3\n iszero\n tag_7\n jumpi\n swap2\n dup3\n add\ntag_9:\n dup3\n dup2\n gt\n iszero\n tag_10\n jumpi\n dup3\n mload\n dup3\n sstore\n swap2\n 0x20\n add\n swap2\n swap1\n 0x1\n add\n swap1\n jump(tag_9)\ntag_10:\ntag_7:\n pop\n swap1\n pop\n tag_11\n swap2\n swap1\n jump\t// in(tag_12)\ntag_11:\n pop\n swap1\n jump\t// out\ntag_12:\n tag_13\n swap2\n swap1\ntag_14:\n dup1\n dup3\n gt\n iszero\n tag_15\n jumpi\n 0x0\n dup2\n 0x0\n swap1\n sstore\n pop\n 0x1\n add\n jump(tag_14)\ntag_15:\n pop\n swap1\n jump\ntag_13:\n swap1\n jump\t// out\ntag_6:\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x0\n codecopy\n 0x0\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/_Greeter.sol\":27:387 contract Greeter {\r... */\n mstore(0x40, 0x80)\n jumpi(tag_1, lt(calldatasize, 0x4))\n calldataload(0x0)\n 0x100000000000000000000000000000000000000000000000000000000\n swap1\n div\n 0xffffffff\n and\n dup1\n 0x19ff1d21\n eq\n tag_2\n jumpi\n dup1\n 0x4ed3885e\n eq\n tag_3\n jumpi\n dup1\n 0xd97d6630\n eq\n tag_4\n jumpi\n tag_1:\n 0x0\n dup1\n revert\n /* \"contracts/_Greeter.sol\":300:384 function hello() constant public returns (string) {\r... */\n tag_2:\n callvalue\n /* \"--CODEGEN--\":8:17 */\n dup1\n /* \"--CODEGEN--\":5:7 */\n iszero\n tag_5\n jumpi\n /* \"--CODEGEN--\":30:31 */\n 0x0\n /* \"--CODEGEN--\":27:28 */\n dup1\n /* \"--CODEGEN--\":20:32 */\n revert\n /* \"--CODEGEN--\":5:7 */\n tag_5:\n /* \"contracts/_Greeter.sol\":300:384 function hello() constant public returns (string) {\r... */\n pop\n tag_6\n jump(tag_7)\n tag_6:\n mload(0x40)\n dup1\n dup1\n 0x20\n add\n dup3\n dup2\n sub\n dup3\n mstore\n dup4\n dup2\n dup2\n mload\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n dup1\n dup4\n dup4\n /* \"--CODEGEN--\":23:24 */\n 0x0\n /* \"--CODEGEN--\":8:108 */\n tag_8:\n /* \"--CODEGEN--\":33:36 */\n dup4\n /* \"--CODEGEN--\":30:31 */\n dup2\n /* \"--CODEGEN--\":27:37 */\n lt\n /* \"--CODEGEN--\":8:108 */\n iszero\n tag_9\n jumpi\n /* \"--CODEGEN--\":99:100 */\n dup1\n /* \"--CODEGEN--\":94:97 */\n dup3\n /* \"--CODEGEN--\":90:101 */\n add\n /* \"--CODEGEN--\":84:102 */\n mload\n /* \"--CODEGEN--\":80:81 */\n dup2\n /* \"--CODEGEN--\":75:78 */\n dup5\n /* \"--CODEGEN--\":71:82 */\n add\n /* \"--CODEGEN--\":64:103 */\n mstore\n /* \"--CODEGEN--\":52:54 */\n 0x20\n /* \"--CODEGEN--\":49:50 */\n dup2\n /* \"--CODEGEN--\":45:55 */\n add\n /* \"--CODEGEN--\":40:55 */\n swap1\n pop\n /* \"--CODEGEN--\":8:108 */\n jump(tag_8)\n tag_9:\n /* \"--CODEGEN--\":12:26 */\n pop\n /* \"contracts/_Greeter.sol\":300:384 function hello() constant public returns (string) {\r... */\n pop\n pop\n pop\n swap1\n pop\n swap1\n dup2\n add\n swap1\n 0x1f\n and\n dup1\n iszero\n tag_11\n jumpi\n dup1\n dup3\n sub\n dup1\n mload\n 0x1\n dup4\n 0x20\n sub\n 0x100\n exp\n sub\n not\n and\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n tag_11:\n pop\n swap3\n pop\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/_Greeter.sol\":222:288 function set(string name)public {\r... */\n tag_3:\n callvalue\n /* \"--CODEGEN--\":8:17 */\n dup1\n /* \"--CODEGEN--\":5:7 */\n iszero\n tag_12\n jumpi\n /* \"--CODEGEN--\":30:31 */\n 0x0\n /* \"--CODEGEN--\":27:28 */\n dup1\n /* \"--CODEGEN--\":20:32 */\n revert\n /* \"--CODEGEN--\":5:7 */\n tag_12:\n /* \"contracts/_Greeter.sol\":222:288 function set(string name)public {\r... */\n pop\n tag_13\n 0x4\n dup1\n calldatasize\n sub\n dup2\n add\n swap1\n dup1\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n dup3\n add\n dup1\n calldataload\n swap1\n 0x20\n add\n swap1\n dup1\n dup1\n 0x1f\n add\n 0x20\n dup1\n swap2\n div\n mul\n 0x20\n add\n mload(0x40)\n swap1\n dup2\n add\n 0x40\n mstore\n dup1\n swap4\n swap3\n swap2\n swap1\n dup2\n dup2\n mstore\n 0x20\n add\n dup4\n dup4\n dup1\n dup3\n dup5\n calldatacopy\n dup3\n add\n swap2\n pop\n pop\n pop\n pop\n pop\n pop\n swap2\n swap3\n swap2\n swap3\n swap1\n pop\n pop\n pop\n jump(tag_14)\n tag_13:\n stop\n /* \"contracts/_Greeter.sol\":52:74 string public yourName */\n tag_4:\n callvalue\n /* \"--CODEGEN--\":8:17 */\n dup1\n /* \"--CODEGEN--\":5:7 */\n iszero\n tag_15\n jumpi\n /* \"--CODEGEN--\":30:31 */\n 0x0\n /* \"--CODEGEN--\":27:28 */\n dup1\n /* \"--CODEGEN--\":20:32 */\n revert\n /* \"--CODEGEN--\":5:7 */\n tag_15:\n /* \"contracts/_Greeter.sol\":52:74 string public yourName */\n pop\n tag_16\n jump(tag_17)\n tag_16:\n mload(0x40)\n dup1\n dup1\n 0x20\n add\n dup3\n dup2\n sub\n dup3\n mstore\n dup4\n dup2\n dup2\n mload\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n dup1\n dup4\n dup4\n /* \"--CODEGEN--\":23:24 */\n 0x0\n /* \"--CODEGEN--\":8:108 */\n tag_18:\n /* \"--CODEGEN--\":33:36 */\n dup4\n /* \"--CODEGEN--\":30:31 */\n dup2\n /* \"--CODEGEN--\":27:37 */\n lt\n /* \"--CODEGEN--\":8:108 */\n iszero\n tag_19\n jumpi\n /* \"--CODEGEN--\":99:100 */\n dup1\n /* \"--CODEGEN--\":94:97 */\n dup3\n /* \"--CODEGEN--\":90:101 */\n add\n /* \"--CODEGEN--\":84:102 */\n mload\n /* \"--CODEGEN--\":80:81 */\n dup2\n /* \"--CODEGEN--\":75:78 */\n dup5\n /* \"--CODEGEN--\":71:82 */\n add\n /* \"--CODEGEN--\":64:103 */\n mstore\n /* \"--CODEGEN--\":52:54 */\n 0x20\n /* \"--CODEGEN--\":49:50 */\n dup2\n /* \"--CODEGEN--\":45:55 */\n add\n /* \"--CODEGEN--\":40:55 */\n swap1\n pop\n /* \"--CODEGEN--\":8:108 */\n jump(tag_18)\n tag_19:\n /* \"--CODEGEN--\":12:26 */\n pop\n /* \"contracts/_Greeter.sol\":52:74 string public yourName */\n pop\n pop\n pop\n swap1\n pop\n swap1\n dup2\n add\n swap1\n 0x1f\n and\n dup1\n iszero\n tag_21\n jumpi\n dup1\n dup3\n sub\n dup1\n mload\n 0x1\n dup4\n 0x20\n sub\n 0x100\n exp\n sub\n not\n and\n dup2\n mstore\n 0x20\n add\n swap2\n pop\n tag_21:\n pop\n swap3\n pop\n pop\n pop\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"contracts/_Greeter.sol\":300:384 function hello() constant public returns (string) {\r... */\n tag_7:\n /* \"contracts/_Greeter.sol\":342:348 string */\n 0x60\n /* \"contracts/_Greeter.sol\":368:376 yourName */\n 0x0\n /* \"contracts/_Greeter.sol\":361:376 return yourName */\n dup1\n sload\n 0x1\n dup2\n 0x1\n and\n iszero\n 0x100\n mul\n sub\n and\n 0x2\n swap1\n div\n dup1\n 0x1f\n add\n 0x20\n dup1\n swap2\n div\n mul\n 0x20\n add\n mload(0x40)\n swap1\n dup2\n add\n 0x40\n mstore\n dup1\n swap3\n swap2\n swap1\n dup2\n dup2\n mstore\n 0x20\n add\n dup3\n dup1\n sload\n 0x1\n dup2\n 0x1\n and\n iszero\n 0x100\n mul\n sub\n and\n 0x2\n swap1\n div\n dup1\n iszero\n tag_23\n jumpi\n dup1\n 0x1f\n lt\n tag_24\n jumpi\n 0x100\n dup1\n dup4\n sload\n div\n mul\n dup4\n mstore\n swap2\n 0x20\n add\n swap2\n jump(tag_23)\n tag_24:\n dup3\n add\n swap2\n swap1\n 0x0\n mstore\n keccak256(0x0, 0x20)\n swap1\n tag_25:\n dup2\n sload\n dup2\n mstore\n swap1\n 0x1\n add\n swap1\n 0x20\n add\n dup1\n dup4\n gt\n tag_25\n jumpi\n dup3\n swap1\n sub\n 0x1f\n and\n dup3\n add\n swap2\n tag_23:\n pop\n pop\n pop\n pop\n pop\n swap1\n pop\n /* \"contracts/_Greeter.sol\":300:384 function hello() constant public returns (string) {\r... */\n swap1\n jump\t// out\n /* \"contracts/_Greeter.sol\":222:288 function set(string name)public {\r... */\n tag_14:\n /* \"contracts/_Greeter.sol\":276:280 name */\n dup1\n /* \"contracts/_Greeter.sol\":265:273 yourName */\n 0x0\n /* \"contracts/_Greeter.sol\":265:280 yourName = name */\n swap1\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n tag_27\n swap3\n swap2\n swap1\n jump\t// in(tag_28)\n tag_27:\n pop\n /* \"contracts/_Greeter.sol\":222:288 function set(string name)public {\r... */\n pop\n jump\t// out\n /* \"contracts/_Greeter.sol\":52:74 string public yourName */\n tag_17:\n 0x0\n dup1\n sload\n 0x1\n dup2\n 0x1\n and\n iszero\n 0x100\n mul\n sub\n and\n 0x2\n swap1\n div\n dup1\n 0x1f\n add\n 0x20\n dup1\n swap2\n div\n mul\n 0x20\n add\n mload(0x40)\n swap1\n dup2\n add\n 0x40\n mstore\n dup1\n swap3\n swap2\n swap1\n dup2\n dup2\n mstore\n 0x20\n add\n dup3\n dup1\n sload\n 0x1\n dup2\n 0x1\n and\n iszero\n 0x100\n mul\n sub\n and\n 0x2\n swap1\n div\n dup1\n iszero\n tag_29\n jumpi\n dup1\n 0x1f\n lt\n tag_30\n jumpi\n 0x100\n dup1\n dup4\n sload\n div\n mul\n dup4\n mstore\n swap2\n 0x20\n add\n swap2\n jump(tag_29)\n tag_30:\n dup3\n add\n swap2\n swap1\n 0x0\n mstore\n keccak256(0x0, 0x20)\n swap1\n tag_31:\n dup2\n sload\n dup2\n mstore\n swap1\n 0x1\n add\n swap1\n 0x20\n add\n dup1\n dup4\n gt\n tag_31\n jumpi\n dup3\n swap1\n sub\n 0x1f\n and\n dup3\n add\n swap2\n tag_29:\n pop\n pop\n pop\n pop\n pop\n dup2\n jump\t// out\n /* \"contracts/_Greeter.sol\":27:387 contract Greeter {\r... */\n tag_28:\n dup3\n dup1\n sload\n 0x1\n dup2\n 0x1\n and\n iszero\n 0x100\n mul\n sub\n and\n 0x2\n swap1\n div\n swap1\n 0x0\n mstore\n keccak256(0x0, 0x20)\n swap1\n 0x1f\n add\n 0x20\n swap1\n div\n dup2\n add\n swap3\n dup3\n 0x1f\n lt\n tag_33\n jumpi\n dup1\n mload\n not(0xff)\n and\n dup4\n dup1\n add\n or\n dup6\n sstore\n jump(tag_32)\n tag_33:\n dup3\n dup1\n add\n 0x1\n add\n dup6\n sstore\n dup3\n iszero\n tag_32\n jumpi\n swap2\n dup3\n add\n tag_34:\n dup3\n dup2\n gt\n iszero\n tag_35\n jumpi\n dup3\n mload\n dup3\n sstore\n swap2\n 0x20\n add\n swap2\n swap1\n 0x1\n add\n swap1\n jump(tag_34)\n tag_35:\n tag_32:\n pop\n swap1\n pop\n tag_36\n swap2\n swap1\n jump\t// in(tag_37)\n tag_36:\n pop\n swap1\n jump\t// out\n tag_37:\n tag_38\n swap2\n swap1\n tag_39:\n dup1\n dup3\n gt\n iszero\n tag_40\n jumpi\n 0x0\n dup2\n 0x0\n swap1\n sstore\n pop\n 0x1\n add\n jump(tag_39)\n tag_40:\n pop\n swap1\n jump\n tag_38:\n swap1\n jump\t// out\n\n auxdata: 0xa165627a7a723058201fdf8478a06f8baa2ccce05963c64ade4da145345006c875d7ef58a17d426cec0029\n}\n",
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506040805190810160405280600581526020017f576f726c640000000000000000000000000000000000000000000000000000008152506000908051906020019061005c929190610062565b50610107565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100a357805160ff19168380011785556100d1565b828001600101855582156100d1579182015b828111156100d05782518255916020019190600101906100b5565b5b5090506100de91906100e2565b5090565b61010491905b808211156101005760008160009055506001016100e8565b5090565b90565b610410806101166000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806319ff1d211461005c5780634ed3885e146100ec578063d97d663014610155575b600080fd5b34801561006857600080fd5b506100716101e5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100b1578082015181840152602081019050610096565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100f857600080fd5b50610153600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610287565b005b34801561016157600080fd5b5061016a6102a1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101aa57808201518184015260208101905061018f565b50505050905090810190601f1680156101d75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b606060008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561027d5780601f106102525761010080835404028352916020019161027d565b820191906000526020600020905b81548152906001019060200180831161026057829003601f168201915b5050505050905090565b806000908051906020019061029d92919061033f565b5050565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103375780601f1061030c57610100808354040283529160200191610337565b820191906000526020600020905b81548152906001019060200180831161031a57829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061038057805160ff19168380011785556103ae565b828001600101855582156103ae579182015b828111156103ad578251825591602001919060010190610392565b5b5090506103bb91906103bf565b5090565b6103e191905b808211156103dd5760008160009055506001016103c5565b5090565b905600a165627a7a723058201fdf8478a06f8baa2ccce05963c64ade4da145345006c875d7ef58a17d426cec0029",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x5 DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x576F726C64000000000000000000000000000000000000000000000000000000 DUP2 MSTORE POP PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x5C SWAP3 SWAP2 SWAP1 PUSH2 0x62 JUMP JUMPDEST POP PUSH2 0x107 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0xA3 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0xD1 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0xD1 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xD0 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xB5 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xDE SWAP2 SWAP1 PUSH2 0xE2 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x104 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x100 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0xE8 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x410 DUP1 PUSH2 0x116 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN STOP PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP1 PUSH4 0x19FF1D21 EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x4ED3885E EQ PUSH2 0xEC JUMPI DUP1 PUSH4 0xD97D6630 EQ PUSH2 0x155 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x68 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x71 PUSH2 0x1E5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xB1 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x96 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xDE JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xF8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x153 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP3 ADD DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY DUP3 ADD SWAP2 POP POP POP POP POP POP SWAP2 SWAP3 SWAP2 SWAP3 SWAP1 POP POP POP PUSH2 0x287 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x161 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x16A PUSH2 0x2A1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x1AA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x18F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x1D7 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x27D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x252 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x27D JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x260 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x29D SWAP3 SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x337 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x30C JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x337 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x31A JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x380 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x3AE JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x3AE JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x3AD JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x392 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x3BB SWAP2 SWAP1 PUSH2 0x3BF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x3E1 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x3DD JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x3C5 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0x1f 0xdf DUP5 PUSH25 0xA06F8BAA2CCCE05963C64ADE4DA145345006C875D7EF58A17D TIMESTAMP PUSH13 0xEC002900000000000000000000 ",
"sourceMap": "27:360:0:-;;;146:63;8:9:-1;5:2;;;30:1;27;20:12;5:2;146:63:0;183:18;;;;;;;;;;;;;;;;;;:8;:18;;;;;;;;;;;;:::i;:::-;;27:360;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806319ff1d211461005c5780634ed3885e146100ec578063d97d663014610155575b600080fd5b34801561006857600080fd5b506100716101e5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100b1578082015181840152602081019050610096565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100f857600080fd5b50610153600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610287565b005b34801561016157600080fd5b5061016a6102a1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101aa57808201518184015260208101905061018f565b50505050905090810190601f1680156101d75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b606060008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561027d5780601f106102525761010080835404028352916020019161027d565b820191906000526020600020905b81548152906001019060200180831161026057829003601f168201915b5050505050905090565b806000908051906020019061029d92919061033f565b5050565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103375780601f1061030c57610100808354040283529160200191610337565b820191906000526020600020905b81548152906001019060200180831161031a57829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061038057805160ff19168380011785556103ae565b828001600101855582156103ae579182015b828111156103ad578251825591602001919060010190610392565b5b5090506103bb91906103bf565b5090565b6103e191905b808211156103dd5760008160009055506001016103c5565b5090565b905600a165627a7a723058201fdf8478a06f8baa2ccce05963c64ade4da145345006c875d7ef58a17d426cec0029",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP1 PUSH4 0x19FF1D21 EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x4ED3885E EQ PUSH2 0xEC JUMPI DUP1 PUSH4 0xD97D6630 EQ PUSH2 0x155 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x68 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x71 PUSH2 0x1E5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xB1 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x96 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xDE JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xF8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x153 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP3 ADD DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY DUP3 ADD SWAP2 POP POP POP POP POP POP SWAP2 SWAP3 SWAP2 SWAP3 SWAP1 POP POP POP PUSH2 0x287 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x161 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x16A PUSH2 0x2A1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x1AA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x18F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x1D7 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x27D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x252 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x27D JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x260 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x29D SWAP3 SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x337 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x30C JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x337 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x31A JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x380 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x3AE JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x3AE JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x3AD JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x392 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x3BB SWAP2 SWAP1 PUSH2 0x3BF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x3E1 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x3DD JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x3C5 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0x1f 0xdf DUP5 PUSH25 0xA06F8BAA2CCCE05963C64ADE4DA145345006C875D7EF58A17D TIMESTAMP PUSH13 0xEC002900000000000000000000 ",
"sourceMap": "27:360:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:84;;8:9:-1;5:2;;;30:1;27;20:12;5:2;300:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;300:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;222:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;222:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;52:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:84;342:6;368:8;361:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:84;:::o;222:66::-;276:4;265:8;:15;;;;;;;;;;;;:::i;:::-;;222:66;:::o;52:22::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;27:360::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "208000",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"hello()": "infinite",
"set(string)": "infinite",
"yourName()": "infinite"
}
},
"legacyAssembly": {
".code": [
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "80"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "40"
},
{
"begin": 27,
"end": 387,
"name": "MSTORE"
},
{
"begin": 146,
"end": 209,
"name": "CALLVALUE"
},
{
"begin": 8,
"end": 17,
"name": "DUP1"
},
{
"begin": 5,
"end": 7,
"name": "ISZERO"
},
{
"begin": 5,
"end": 7,
"name": "PUSH [tag]",
"value": "1"
},
{
"begin": 5,
"end": 7,
"name": "JUMPI"
},
{
"begin": 30,
"end": 31,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 28,
"name": "DUP1"
},
{
"begin": 20,
"end": 32,
"name": "REVERT"
},
{
"begin": 5,
"end": 7,
"name": "tag",
"value": "1"
},
{
"begin": 5,
"end": 7,
"name": "JUMPDEST"
},
{
"begin": 146,
"end": 209,
"name": "POP"
},
{
"begin": 183,
"end": 201,
"name": "PUSH",
"value": "40"
},
{
"begin": 183,
"end": 201,
"name": "DUP1"
},
{
"begin": 183,
"end": 201,
"name": "MLOAD"
},
{
"begin": 183,
"end": 201,
"name": "SWAP1"
},
{
"begin": 183,
"end": 201,
"name": "DUP2"
},
{
"begin": 183,
"end": 201,
"name": "ADD"
},
{
"begin": 183,
"end": 201,
"name": "PUSH",
"value": "40"
},
{
"begin": 183,
"end": 201,
"name": "MSTORE"
},
{
"begin": 183,
"end": 201,
"name": "DUP1"
},
{
"begin": 183,
"end": 201,
"name": "PUSH",
"value": "5"
},
{
"begin": 183,
"end": 201,
"name": "DUP2"
},
{
"begin": 183,
"end": 201,
"name": "MSTORE"
},
{
"begin": 183,
"end": 201,
"name": "PUSH",
"value": "20"
},
{
"begin": 183,
"end": 201,
"name": "ADD"
},
{
"begin": 183,
"end": 201,
"name": "PUSH",
"value": "576F726C64000000000000000000000000000000000000000000000000000000"
},
{
"begin": 183,
"end": 201,
"name": "DUP2"
},
{
"begin": 183,
"end": 201,
"name": "MSTORE"
},
{
"begin": 183,
"end": 201,
"name": "POP"
},
{
"begin": 183,
"end": 191,
"name": "PUSH",
"value": "0"
},
{
"begin": 183,
"end": 201,
"name": "SWAP1"
},
{
"begin": 183,
"end": 201,
"name": "DUP1"
},
{
"begin": 183,
"end": 201,
"name": "MLOAD"
},
{
"begin": 183,
"end": 201,
"name": "SWAP1"
},
{
"begin": 183,
"end": 201,
"name": "PUSH",
"value": "20"
},
{
"begin": 183,
"end": 201,
"name": "ADD"
},
{
"begin": 183,
"end": 201,
"name": "SWAP1"
},
{
"begin": 183,
"end": 201,
"name": "PUSH [tag]",
"value": "4"
},
{
"begin": 183,
"end": 201,
"name": "SWAP3"
},
{
"begin": 183,
"end": 201,
"name": "SWAP2"
},
{
"begin": 183,
"end": 201,
"name": "SWAP1"
},
{
"begin": 183,
"end": 201,
"name": "PUSH [tag]",
"value": "5"
},
{
"begin": 183,
"end": 201,
"name": "JUMP",
"value": "[in]"
},
{
"begin": 183,
"end": 201,
"name": "tag",
"value": "4"
},
{
"begin": 183,
"end": 201,
"name": "JUMPDEST"
},
{
"begin": 183,
"end": 201,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "6"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "5"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "SLOAD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "100"
},
{
"begin": 27,
"end": 387,
"name": "MUL"
},
{
"begin": 27,
"end": 387,
"name": "SUB"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "DIV"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "MSTORE"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "20"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "KECCAK256"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1F"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "20"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "DIV"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "SWAP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1F"
},
{
"begin": 27,
"end": 387,
"name": "LT"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "8"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "MLOAD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "FF"
},
{
"begin": 27,
"end": 387,
"name": "NOT"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "DUP4"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "OR"
},
{
"begin": 27,
"end": 387,
"name": "DUP6"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "7"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "8"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "DUP6"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "7"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "9"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "GT"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "10"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "MLOAD"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "20"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "9"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "10"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "7"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "11"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "12"
},
{
"begin": 27,
"end": 387,
"name": "JUMP",
"value": "[in]"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "11"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "JUMP",
"value": "[out]"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "12"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "13"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "14"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "GT"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "15"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "14"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "15"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "13"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "JUMP",
"value": "[out]"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "6"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "PUSH #[$]",
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [$]",
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "CODECOPY"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "RETURN"
}
],
".data": {
"0": {
".auxdata": "a165627a7a723058201fdf8478a06f8baa2ccce05963c64ade4da145345006c875d7ef58a17d426cec0029",
".code": [
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "80"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "40"
},
{
"begin": 27,
"end": 387,
"name": "MSTORE"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "4"
},
{
"begin": 27,
"end": 387,
"name": "CALLDATASIZE"
},
{
"begin": 27,
"end": 387,
"name": "LT"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "CALLDATALOAD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "DIV"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "FFFFFFFF"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "19FF1D21"
},
{
"begin": 27,
"end": 387,
"name": "EQ"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "2"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "4ED3885E"
},
{
"begin": 27,
"end": 387,
"name": "EQ"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "3"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "D97D6630"
},
{
"begin": 27,
"end": 387,
"name": "EQ"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "4"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "REVERT"
},
{
"begin": 300,
"end": 384,
"name": "tag",
"value": "2"
},
{
"begin": 300,
"end": 384,
"name": "JUMPDEST"
},
{
"begin": 300,
"end": 384,
"name": "CALLVALUE"
},
{
"begin": 8,
"end": 17,
"name": "DUP1"
},
{
"begin": 5,
"end": 7,
"name": "ISZERO"
},
{
"begin": 5,
"end": 7,
"name": "PUSH [tag]",
"value": "5"
},
{
"begin": 5,
"end": 7,
"name": "JUMPI"
},
{
"begin": 30,
"end": 31,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 28,
"name": "DUP1"
},
{
"begin": 20,
"end": 32,
"name": "REVERT"
},
{
"begin": 5,
"end": 7,
"name": "tag",
"value": "5"
},
{
"begin": 5,
"end": 7,
"name": "JUMPDEST"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "PUSH [tag]",
"value": "6"
},
{
"begin": 300,
"end": 384,
"name": "PUSH [tag]",
"value": "7"
},
{
"begin": 300,
"end": 384,
"name": "JUMP"
},
{
"begin": 300,
"end": 384,
"name": "tag",
"value": "6"
},
{
"begin": 300,
"end": 384,
"name": "JUMPDEST"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "40"
},
{
"begin": 300,
"end": 384,
"name": "MLOAD"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "20"
},
{
"begin": 300,
"end": 384,
"name": "ADD"
},
{
"begin": 300,
"end": 384,
"name": "DUP3"
},
{
"begin": 300,
"end": 384,
"name": "DUP2"
},
{
"begin": 300,
"end": 384,
"name": "SUB"
},
{
"begin": 300,
"end": 384,
"name": "DUP3"
},
{
"begin": 300,
"end": 384,
"name": "MSTORE"
},
{
"begin": 300,
"end": 384,
"name": "DUP4"
},
{
"begin": 300,
"end": 384,
"name": "DUP2"
},
{
"begin": 300,
"end": 384,
"name": "DUP2"
},
{
"begin": 300,
"end": 384,
"name": "MLOAD"
},
{
"begin": 300,
"end": 384,
"name": "DUP2"
},
{
"begin": 300,
"end": 384,
"name": "MSTORE"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "20"
},
{
"begin": 300,
"end": 384,
"name": "ADD"
},
{
"begin": 300,
"end": 384,
"name": "SWAP2"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "MLOAD"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "20"
},
{
"begin": 300,
"end": 384,
"name": "ADD"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "DUP4"
},
{
"begin": 300,
"end": 384,
"name": "DUP4"
},
{
"begin": 23,
"end": 24,
"name": "PUSH",
"value": "0"
},
{
"begin": 8,
"end": 108,
"name": "tag",
"value": "8"
},
{
"begin": 8,
"end": 108,
"name": "JUMPDEST"
},
{
"begin": 33,
"end": 36,
"name": "DUP4"
},
{
"begin": 30,
"end": 31,
"name": "DUP2"
},
{
"begin": 27,
"end": 37,
"name": "LT"
},
{
"begin": 8,
"end": 108,
"name": "ISZERO"
},
{
"begin": 8,
"end": 108,
"name": "PUSH [tag]",
"value": "9"
},
{
"begin": 8,
"end": 108,
"name": "JUMPI"
},
{
"begin": 99,
"end": 100,
"name": "DUP1"
},
{
"begin": 94,
"end": 97,
"name": "DUP3"
},
{
"begin": 90,
"end": 101,
"name": "ADD"
},
{
"begin": 84,
"end": 102,
"name": "MLOAD"
},
{
"begin": 80,
"end": 81,
"name": "DUP2"
},
{
"begin": 75,
"end": 78,
"name": "DUP5"
},
{
"begin": 71,
"end": 82,
"name": "ADD"
},
{
"begin": 64,
"end": 103,
"name": "MSTORE"
},
{
"begin": 52,
"end": 54,
"name": "PUSH",
"value": "20"
},
{
"begin": 49,
"end": 50,
"name": "DUP2"
},
{
"begin": 45,
"end": 55,
"name": "ADD"
},
{
"begin": 40,
"end": 55,
"name": "SWAP1"
},
{
"begin": 40,
"end": 55,
"name": "POP"
},
{
"begin": 8,
"end": 108,
"name": "PUSH [tag]",
"value": "8"
},
{
"begin": 8,
"end": 108,
"name": "JUMP"
},
{
"begin": 8,
"end": 108,
"name": "tag",
"value": "9"
},
{
"begin": 8,
"end": 108,
"name": "JUMPDEST"
},
{
"begin": 12,
"end": 26,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "DUP2"
},
{
"begin": 300,
"end": 384,
"name": "ADD"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "1F"
},
{
"begin": 300,
"end": 384,
"name": "AND"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "ISZERO"
},
{
"begin": 300,
"end": 384,
"name": "PUSH [tag]",
"value": "11"
},
{
"begin": 300,
"end": 384,
"name": "JUMPI"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "DUP3"
},
{
"begin": 300,
"end": 384,
"name": "SUB"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "MLOAD"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "1"
},
{
"begin": 300,
"end": 384,
"name": "DUP4"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "20"
},
{
"begin": 300,
"end": 384,
"name": "SUB"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "100"
},
{
"begin": 300,
"end": 384,
"name": "EXP"
},
{
"begin": 300,
"end": 384,
"name": "SUB"
},
{
"begin": 300,
"end": 384,
"name": "NOT"
},
{
"begin": 300,
"end": 384,
"name": "AND"
},
{
"begin": 300,
"end": 384,
"name": "DUP2"
},
{
"begin": 300,
"end": 384,
"name": "MSTORE"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "20"
},
{
"begin": 300,
"end": 384,
"name": "ADD"
},
{
"begin": 300,
"end": 384,
"name": "SWAP2"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "tag",
"value": "11"
},
{
"begin": 300,
"end": 384,
"name": "JUMPDEST"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "SWAP3"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "PUSH",
"value": "40"
},
{
"begin": 300,
"end": 384,
"name": "MLOAD"
},
{
"begin": 300,
"end": 384,
"name": "DUP1"
},
{
"begin": 300,
"end": 384,
"name": "SWAP2"
},
{
"begin": 300,
"end": 384,
"name": "SUB"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "RETURN"
},
{
"begin": 222,
"end": 288,
"name": "tag",
"value": "3"
},
{
"begin": 222,
"end": 288,
"name": "JUMPDEST"
},
{
"begin": 222,
"end": 288,
"name": "CALLVALUE"
},
{
"begin": 8,
"end": 17,
"name": "DUP1"
},
{
"begin": 5,
"end": 7,
"name": "ISZERO"
},
{
"begin": 5,
"end": 7,
"name": "PUSH [tag]",
"value": "12"
},
{
"begin": 5,
"end": 7,
"name": "JUMPI"
},
{
"begin": 30,
"end": 31,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 28,
"name": "DUP1"
},
{
"begin": 20,
"end": 32,
"name": "REVERT"
},
{
"begin": 5,
"end": 7,
"name": "tag",
"value": "12"
},
{
"begin": 5,
"end": 7,
"name": "JUMPDEST"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "PUSH [tag]",
"value": "13"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "4"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "CALLDATASIZE"
},
{
"begin": 222,
"end": 288,
"name": "SUB"
},
{
"begin": 222,
"end": 288,
"name": "DUP2"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "CALLDATALOAD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "20"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP3"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "CALLDATALOAD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "20"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "1F"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "20"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "SWAP2"
},
{
"begin": 222,
"end": 288,
"name": "DIV"
},
{
"begin": 222,
"end": 288,
"name": "MUL"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "20"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "40"
},
{
"begin": 222,
"end": 288,
"name": "MLOAD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP2"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "40"
},
{
"begin": 222,
"end": 288,
"name": "MSTORE"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "SWAP4"
},
{
"begin": 222,
"end": 288,
"name": "SWAP3"
},
{
"begin": 222,
"end": 288,
"name": "SWAP2"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP2"
},
{
"begin": 222,
"end": 288,
"name": "DUP2"
},
{
"begin": 222,
"end": 288,
"name": "MSTORE"
},
{
"begin": 222,
"end": 288,
"name": "PUSH",
"value": "20"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "DUP4"
},
{
"begin": 222,
"end": 288,
"name": "DUP4"
},
{
"begin": 222,
"end": 288,
"name": "DUP1"
},
{
"begin": 222,
"end": 288,
"name": "DUP3"
},
{
"begin": 222,
"end": 288,
"name": "DUP5"
},
{
"begin": 222,
"end": 288,
"name": "CALLDATACOPY"
},
{
"begin": 222,
"end": 288,
"name": "DUP3"
},
{
"begin": 222,
"end": 288,
"name": "ADD"
},
{
"begin": 222,
"end": 288,
"name": "SWAP2"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "SWAP2"
},
{
"begin": 222,
"end": 288,
"name": "SWAP3"
},
{
"begin": 222,
"end": 288,
"name": "SWAP2"
},
{
"begin": 222,
"end": 288,
"name": "SWAP3"
},
{
"begin": 222,
"end": 288,
"name": "SWAP1"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "PUSH [tag]",
"value": "14"
},
{
"begin": 222,
"end": 288,
"name": "JUMP"
},
{
"begin": 222,
"end": 288,
"name": "tag",
"value": "13"
},
{
"begin": 222,
"end": 288,
"name": "JUMPDEST"
},
{
"begin": 222,
"end": 288,
"name": "STOP"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "4"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "CALLVALUE"
},
{
"begin": 8,
"end": 17,
"name": "DUP1"
},
{
"begin": 5,
"end": 7,
"name": "ISZERO"
},
{
"begin": 5,
"end": 7,
"name": "PUSH [tag]",
"value": "15"
},
{
"begin": 5,
"end": 7,
"name": "JUMPI"
},
{
"begin": 30,
"end": 31,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 28,
"name": "DUP1"
},
{
"begin": 20,
"end": 32,
"name": "REVERT"
},
{
"begin": 5,
"end": 7,
"name": "tag",
"value": "15"
},
{
"begin": 5,
"end": 7,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "16"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "17"
},
{
"begin": 52,
"end": 74,
"name": "JUMP"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "16"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "40"
},
{
"begin": 52,
"end": 74,
"name": "MLOAD"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "MLOAD"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "MLOAD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 23,
"end": 24,
"name": "PUSH",
"value": "0"
},
{
"begin": 8,
"end": 108,
"name": "tag",
"value": "18"
},
{
"begin": 8,
"end": 108,
"name": "JUMPDEST"
},
{
"begin": 33,
"end": 36,
"name": "DUP4"
},
{
"begin": 30,
"end": 31,
"name": "DUP2"
},
{
"begin": 27,
"end": 37,
"name": "LT"
},
{
"begin": 8,
"end": 108,
"name": "ISZERO"
},
{
"begin": 8,
"end": 108,
"name": "PUSH [tag]",
"value": "19"
},
{
"begin": 8,
"end": 108,
"name": "JUMPI"
},
{
"begin": 99,
"end": 100,
"name": "DUP1"
},
{
"begin": 94,
"end": 97,
"name": "DUP3"
},
{
"begin": 90,
"end": 101,
"name": "ADD"
},
{
"begin": 84,
"end": 102,
"name": "MLOAD"
},
{
"begin": 80,
"end": 81,
"name": "DUP2"
},
{
"begin": 75,
"end": 78,
"name": "DUP5"
},
{
"begin": 71,
"end": 82,
"name": "ADD"
},
{
"begin": 64,
"end": 103,
"name": "MSTORE"
},
{
"begin": 52,
"end": 54,
"name": "PUSH",
"value": "20"
},
{
"begin": 49,
"end": 50,
"name": "DUP2"
},
{
"begin": 45,
"end": 55,
"name": "ADD"
},
{
"begin": 40,
"end": 55,
"name": "SWAP1"
},
{
"begin": 40,
"end": 55,
"name": "POP"
},
{
"begin": 8,
"end": 108,
"name": "PUSH [tag]",
"value": "18"
},
{
"begin": 8,
"end": 108,
"name": "JUMP"
},
{
"begin": 8,
"end": 108,
"name": "tag",
"value": "19"
},
{
"begin": 8,
"end": 108,
"name": "JUMPDEST"
},
{
"begin": 12,
"end": 26,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1F"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "ISZERO"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "21"
},
{
"begin": 52,
"end": 74,
"name": "JUMPI"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "MLOAD"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "100"
},
{
"begin": 52,
"end": 74,
"name": "EXP"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "NOT"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "21"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "SWAP3"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "40"
},
{
"begin": 52,
"end": 74,
"name": "MLOAD"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "RETURN"
},
{
"begin": 300,
"end": 384,
"name": "tag",
"value": "7"
},
{
"begin": 300,
"end": 384,
"name": "JUMPDEST"
},
{
"begin": 342,
"end": 348,
"name": "PUSH",
"value": "60"
},
{
"begin": 368,
"end": 376,
"name": "PUSH",
"value": "0"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "SLOAD"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1"
},
{
"begin": 361,
"end": 376,
"name": "AND"
},
{
"begin": 361,
"end": 376,
"name": "ISZERO"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "100"
},
{
"begin": 361,
"end": 376,
"name": "MUL"
},
{
"begin": 361,
"end": 376,
"name": "SUB"
},
{
"begin": 361,
"end": 376,
"name": "AND"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "2"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "DIV"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1F"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "20"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "SWAP2"
},
{
"begin": 361,
"end": 376,
"name": "DIV"
},
{
"begin": 361,
"end": 376,
"name": "MUL"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "20"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "40"
},
{
"begin": 361,
"end": 376,
"name": "MLOAD"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "40"
},
{
"begin": 361,
"end": 376,
"name": "MSTORE"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "SWAP3"
},
{
"begin": 361,
"end": 376,
"name": "SWAP2"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "MSTORE"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "20"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "DUP3"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "SLOAD"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1"
},
{
"begin": 361,
"end": 376,
"name": "AND"
},
{
"begin": 361,
"end": 376,
"name": "ISZERO"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "100"
},
{
"begin": 361,
"end": 376,
"name": "MUL"
},
{
"begin": 361,
"end": 376,
"name": "SUB"
},
{
"begin": 361,
"end": 376,
"name": "AND"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "2"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "DIV"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "ISZERO"
},
{
"begin": 361,
"end": 376,
"name": "PUSH [tag]",
"value": "23"
},
{
"begin": 361,
"end": 376,
"name": "JUMPI"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1F"
},
{
"begin": 361,
"end": 376,
"name": "LT"
},
{
"begin": 361,
"end": 376,
"name": "PUSH [tag]",
"value": "24"
},
{
"begin": 361,
"end": 376,
"name": "JUMPI"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "100"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "DUP4"
},
{
"begin": 361,
"end": 376,
"name": "SLOAD"
},
{
"begin": 361,
"end": 376,
"name": "DIV"
},
{
"begin": 361,
"end": 376,
"name": "MUL"
},
{
"begin": 361,
"end": 376,
"name": "DUP4"
},
{
"begin": 361,
"end": 376,
"name": "MSTORE"
},
{
"begin": 361,
"end": 376,
"name": "SWAP2"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "20"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "SWAP2"
},
{
"begin": 361,
"end": 376,
"name": "PUSH [tag]",
"value": "23"
},
{
"begin": 361,
"end": 376,
"name": "JUMP"
},
{
"begin": 361,
"end": 376,
"name": "tag",
"value": "24"
},
{
"begin": 361,
"end": 376,
"name": "JUMPDEST"
},
{
"begin": 361,
"end": 376,
"name": "DUP3"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "SWAP2"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "0"
},
{
"begin": 361,
"end": 376,
"name": "MSTORE"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "20"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "0"
},
{
"begin": 361,
"end": 376,
"name": "KECCAK256"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "tag",
"value": "25"
},
{
"begin": 361,
"end": 376,
"name": "JUMPDEST"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "SLOAD"
},
{
"begin": 361,
"end": 376,
"name": "DUP2"
},
{
"begin": 361,
"end": 376,
"name": "MSTORE"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "20"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "DUP1"
},
{
"begin": 361,
"end": 376,
"name": "DUP4"
},
{
"begin": 361,
"end": 376,
"name": "GT"
},
{
"begin": 361,
"end": 376,
"name": "PUSH [tag]",
"value": "25"
},
{
"begin": 361,
"end": 376,
"name": "JUMPI"
},
{
"begin": 361,
"end": 376,
"name": "DUP3"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "SUB"
},
{
"begin": 361,
"end": 376,
"name": "PUSH",
"value": "1F"
},
{
"begin": 361,
"end": 376,
"name": "AND"
},
{
"begin": 361,
"end": 376,
"name": "DUP3"
},
{
"begin": 361,
"end": 376,
"name": "ADD"
},
{
"begin": 361,
"end": 376,
"name": "SWAP2"
},
{
"begin": 361,
"end": 376,
"name": "tag",
"value": "23"
},
{
"begin": 361,
"end": 376,
"name": "JUMPDEST"
},
{
"begin": 361,
"end": 376,
"name": "POP"
},
{
"begin": 361,
"end": 376,
"name": "POP"
},
{
"begin": 361,
"end": 376,
"name": "POP"
},
{
"begin": 361,
"end": 376,
"name": "POP"
},
{
"begin": 361,
"end": 376,
"name": "POP"
},
{
"begin": 361,
"end": 376,
"name": "SWAP1"
},
{
"begin": 361,
"end": 376,
"name": "POP"
},
{
"begin": 300,
"end": 384,
"name": "SWAP1"
},
{
"begin": 300,
"end": 384,
"name": "JUMP",
"value": "[out]"
},
{
"begin": 222,
"end": 288,
"name": "tag",
"value": "14"
},
{
"begin": 222,
"end": 288,
"name": "JUMPDEST"
},
{
"begin": 276,
"end": 280,
"name": "DUP1"
},
{
"begin": 265,
"end": 273,
"name": "PUSH",
"value": "0"
},
{
"begin": 265,
"end": 280,
"name": "SWAP1"
},
{
"begin": 265,
"end": 280,
"name": "DUP1"
},
{
"begin": 265,
"end": 280,
"name": "MLOAD"
},
{
"begin": 265,
"end": 280,
"name": "SWAP1"
},
{
"begin": 265,
"end": 280,
"name": "PUSH",
"value": "20"
},
{
"begin": 265,
"end": 280,
"name": "ADD"
},
{
"begin": 265,
"end": 280,
"name": "SWAP1"
},
{
"begin": 265,
"end": 280,
"name": "PUSH [tag]",
"value": "27"
},
{
"begin": 265,
"end": 280,
"name": "SWAP3"
},
{
"begin": 265,
"end": 280,
"name": "SWAP2"
},
{
"begin": 265,
"end": 280,
"name": "SWAP1"
},
{
"begin": 265,
"end": 280,
"name": "PUSH [tag]",
"value": "28"
},
{
"begin": 265,
"end": 280,
"name": "JUMP",
"value": "[in]"
},
{
"begin": 265,
"end": 280,
"name": "tag",
"value": "27"
},
{
"begin": 265,
"end": 280,
"name": "JUMPDEST"
},
{
"begin": 265,
"end": 280,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "POP"
},
{
"begin": 222,
"end": 288,
"name": "JUMP",
"value": "[out]"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "17"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "0"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "SLOAD"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "ISZERO"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "100"
},
{
"begin": 52,
"end": 74,
"name": "MUL"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "2"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "DIV"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1F"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "DIV"
},
{
"begin": 52,
"end": 74,
"name": "MUL"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "40"
},
{
"begin": 52,
"end": 74,
"name": "MLOAD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "40"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "SWAP3"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "SLOAD"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "ISZERO"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "100"
},
{
"begin": 52,
"end": 74,
"name": "MUL"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "2"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "DIV"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "ISZERO"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "29"
},
{
"begin": 52,
"end": 74,
"name": "JUMPI"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1F"
},
{
"begin": 52,
"end": 74,
"name": "LT"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "30"
},
{
"begin": 52,
"end": 74,
"name": "JUMPI"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "100"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 52,
"end": 74,
"name": "SLOAD"
},
{
"begin": 52,
"end": 74,
"name": "DIV"
},
{
"begin": 52,
"end": 74,
"name": "MUL"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "29"
},
{
"begin": 52,
"end": 74,
"name": "JUMP"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "30"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "0"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "0"
},
{
"begin": 52,
"end": 74,
"name": "KECCAK256"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "31"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "SLOAD"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "MSTORE"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "20"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "DUP1"
},
{
"begin": 52,
"end": 74,
"name": "DUP4"
},
{
"begin": 52,
"end": 74,
"name": "GT"
},
{
"begin": 52,
"end": 74,
"name": "PUSH [tag]",
"value": "31"
},
{
"begin": 52,
"end": 74,
"name": "JUMPI"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "SWAP1"
},
{
"begin": 52,
"end": 74,
"name": "SUB"
},
{
"begin": 52,
"end": 74,
"name": "PUSH",
"value": "1F"
},
{
"begin": 52,
"end": 74,
"name": "AND"
},
{
"begin": 52,
"end": 74,
"name": "DUP3"
},
{
"begin": 52,
"end": 74,
"name": "ADD"
},
{
"begin": 52,
"end": 74,
"name": "SWAP2"
},
{
"begin": 52,
"end": 74,
"name": "tag",
"value": "29"
},
{
"begin": 52,
"end": 74,
"name": "JUMPDEST"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "POP"
},
{
"begin": 52,
"end": 74,
"name": "DUP2"
},
{
"begin": 52,
"end": 74,
"name": "JUMP",
"value": "[out]"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "28"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "SLOAD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "100"
},
{
"begin": 27,
"end": 387,
"name": "MUL"
},
{
"begin": 27,
"end": 387,
"name": "SUB"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "DIV"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "MSTORE"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "20"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "KECCAK256"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1F"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "20"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "DIV"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "SWAP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1F"
},
{
"begin": 27,
"end": 387,
"name": "LT"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "33"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "MLOAD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "FF"
},
{
"begin": 27,
"end": 387,
"name": "NOT"
},
{
"begin": 27,
"end": 387,
"name": "AND"
},
{
"begin": 27,
"end": 387,
"name": "DUP4"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "OR"
},
{
"begin": 27,
"end": 387,
"name": "DUP6"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "32"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "33"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "DUP6"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "32"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "34"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "GT"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "35"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "MLOAD"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "20"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "34"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "35"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "32"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "36"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "37"
},
{
"begin": 27,
"end": 387,
"name": "JUMP",
"value": "[in]"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "36"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "JUMP",
"value": "[out]"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "37"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "38"
},
{
"begin": 27,
"end": 387,
"name": "SWAP2"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "39"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "DUP1"
},
{
"begin": 27,
"end": 387,
"name": "DUP3"
},
{
"begin": 27,
"end": 387,
"name": "GT"
},
{
"begin": 27,
"end": 387,
"name": "ISZERO"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "40"
},
{
"begin": 27,
"end": 387,
"name": "JUMPI"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "DUP2"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "0"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "SSTORE"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "PUSH",
"value": "1"
},
{
"begin": 27,
"end": 387,
"name": "ADD"
},
{
"begin": 27,
"end": 387,
"name": "PUSH [tag]",
"value": "39"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "40"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "POP"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "JUMP"
},
{
"begin": 27,
"end": 387,
"name": "tag",
"value": "38"
},
{
"begin": 27,
"end": 387,
"name": "JUMPDEST"
},
{
"begin": 27,
"end": 387,
"name": "SWAP1"
},
{
"begin": 27,
"end": 387,
"name": "JUMP",
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"hello()": "19ff1d21",
"set(string)": "4ed3885e",
"yourName()": "d97d6630"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.4.26+commit.4563c3fc\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"hello\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"yourName\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"contracts/_Greeter.sol\":\"Greeter\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/_Greeter.sol\":{\"keccak256\":\"0x56e2dd208dbaf65e754301585bdff5ac16c70d56cca6b491d112392d98ef399f\",\"urls\":[\"bzzr://3ef6141be7a7749632f3557b25cb951ffbfbd6ab274a4a4c2ef1161d72a7c557\"]}},\"version\":1}",
"userdoc": {
"methods": {}
}
}
}
},
"errors": [
{
"component": "general",
"formattedMessage": "contracts/_Greeter.sol:7:4: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use \"constructor(...) { ... }\" instead.\n function Greeter() public {\r\n ^ (Relevant source part starts here and spans across multiple lines).\n",
"message": "Defining constructors as functions with the same name as the contract is deprecated. Use \"constructor(...) { ... }\" instead.",
"severity": "warning",
"sourceLocation": {
"end": 209,
"file": "contracts/_Greeter.sol",
"start": 146
},
"type": "Warning"
}
],
"sources": {
"contracts/_Greeter.sol": {
"ast": {
"absolutePath": "contracts/_Greeter.sol",
"exportedSymbols": {
"Greeter": [
30
]
},
"id": 31,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.4",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:0"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 30,
"linearizedBaseContracts": [
30
],
"name": "Greeter",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3,
"name": "yourName",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "52:22:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 2,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "52:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 10,
"nodeType": "Block",
"src": "172:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 8,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6,
"name": "yourName",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "183:8:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "576f726c64",
"id": 7,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "194:7:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_f2208c967df089f60420785795c0a9ba8896b0f6f1867fa7f1f12ad6f79c1a18",
"typeString": "literal_string \"World\""
},
"value": "World"
},
"src": "183:18:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 9,
"nodeType": "ExpressionStatement",
"src": "183:18:0"
}
]
},
"documentation": null,
"id": 11,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "Greeter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4,
"nodeType": "ParameterList",
"parameters": [],
"src": "162:2:0"
},
"payable": false,
"returnParameters": {
"id": 5,
"nodeType": "ParameterList",
"parameters": [],
"src": "172:0:0"
},
"scope": 30,
"src": "146:63:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 20,
"nodeType": "Block",
"src": "254:34:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 18,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 16,
"name": "yourName",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "265:8:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 17,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13,
"src": "276:4:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"src": "265:15:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"id": 19,
"nodeType": "ExpressionStatement",
"src": "265:15:0"
}
]
},
"documentation": null,
"id": 21,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "set",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13,
"name": "name",
"nodeType": "VariableDeclaration",
"scope": 21,
"src": "235:11:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 12,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "235:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "234:13:0"
},
"payable": false,
"returnParameters": {
"id": 15,
"nodeType": "ParameterList",
"parameters": [],
"src": "254:0:0"
},
"scope": 30,
"src": "222:66:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 28,
"nodeType": "Block",
"src": "350:34:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 26,
"name": "yourName",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "368:8:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"functionReturnParameters": 25,
"id": 27,
"nodeType": "Return",
"src": "361:15:0"
}
]
},
"documentation": null,
"id": 29,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "hello",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 22,
"nodeType": "ParameterList",
"parameters": [],
"src": "314:2:0"
},
"payable": false,
"returnParameters": {
"id": 25,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 24,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "342:6:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 23,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "342:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "341:8:0"
},
"scope": 30,
"src": "300:84:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 31,
"src": "27:360:0"
}
],
"src": "0:387:0"
},
"id": 0
}
}
}
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"goerli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506040805190810160405280600581526020017f576f726c640000000000000000000000000000000000000000000000000000008152506000908051906020019061005c929190610062565b50610107565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100a357805160ff19168380011785556100d1565b828001600101855582156100d1579182015b828111156100d05782518255916020019190600101906100b5565b5b5090506100de91906100e2565b5090565b61010491905b808211156101005760008160009055506001016100e8565b5090565b90565b610410806101166000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806319ff1d211461005c5780634ed3885e146100ec578063d97d663014610155575b600080fd5b34801561006857600080fd5b506100716101e5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100b1578082015181840152602081019050610096565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100f857600080fd5b50610153600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610287565b005b34801561016157600080fd5b5061016a6102a1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101aa57808201518184015260208101905061018f565b50505050905090810190601f1680156101d75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b606060008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561027d5780601f106102525761010080835404028352916020019161027d565b820191906000526020600020905b81548152906001019060200180831161026057829003601f168201915b5050505050905090565b806000908051906020019061029d92919061033f565b5050565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103375780601f1061030c57610100808354040283529160200191610337565b820191906000526020600020905b81548152906001019060200180831161031a57829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061038057805160ff19168380011785556103ae565b828001600101855582156103ae579182015b828111156103ad578251825591602001919060010190610392565b5b5090506103bb91906103bf565b5090565b6103e191905b808211156103dd5760008160009055506001016103c5565b5090565b905600a165627a7a723058201fdf8478a06f8baa2ccce05963c64ade4da145345006c875d7ef58a17d426cec0029",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x5 DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x576F726C64000000000000000000000000000000000000000000000000000000 DUP2 MSTORE POP PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x5C SWAP3 SWAP2 SWAP1 PUSH2 0x62 JUMP JUMPDEST POP PUSH2 0x107 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0xA3 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0xD1 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0xD1 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xD0 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xB5 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xDE SWAP2 SWAP1 PUSH2 0xE2 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x104 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x100 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0xE8 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x410 DUP1 PUSH2 0x116 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN STOP PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP1 PUSH4 0x19FF1D21 EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x4ED3885E EQ PUSH2 0xEC JUMPI DUP1 PUSH4 0xD97D6630 EQ PUSH2 0x155 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x68 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x71 PUSH2 0x1E5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xB1 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x96 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xDE JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xF8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x153 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP3 ADD DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY DUP3 ADD SWAP2 POP POP POP POP POP POP SWAP2 SWAP3 SWAP2 SWAP3 SWAP1 POP POP POP PUSH2 0x287 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x161 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x16A PUSH2 0x2A1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x1AA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x18F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x1D7 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x27D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x252 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x27D JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x260 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x29D SWAP3 SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x337 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x30C JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x337 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x31A JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x380 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x3AE JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x3AE JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x3AD JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x392 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x3BB SWAP2 SWAP1 PUSH2 0x3BF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x3E1 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x3DD JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x3C5 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0x1f 0xdf DUP5 PUSH25 0xA06F8BAA2CCCE05963C64ADE4DA145345006C875D7EF58A17D TIMESTAMP PUSH13 0xEC002900000000000000000000 ",
"sourceMap": "27:360:0:-;;;146:63;8:9:-1;5:2;;;30:1;27;20:12;5:2;146:63:0;183:18;;;;;;;;;;;;;;;;;;:8;:18;;;;;;;;;;;;:::i;:::-;;27:360;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806319ff1d211461005c5780634ed3885e146100ec578063d97d663014610155575b600080fd5b34801561006857600080fd5b506100716101e5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100b1578082015181840152602081019050610096565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100f857600080fd5b50610153600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610287565b005b34801561016157600080fd5b5061016a6102a1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101aa57808201518184015260208101905061018f565b50505050905090810190601f1680156101d75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b606060008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561027d5780601f106102525761010080835404028352916020019161027d565b820191906000526020600020905b81548152906001019060200180831161026057829003601f168201915b5050505050905090565b806000908051906020019061029d92919061033f565b5050565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103375780601f1061030c57610100808354040283529160200191610337565b820191906000526020600020905b81548152906001019060200180831161031a57829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061038057805160ff19168380011785556103ae565b828001600101855582156103ae579182015b828111156103ad578251825591602001919060010190610392565b5b5090506103bb91906103bf565b5090565b6103e191905b808211156103dd5760008160009055506001016103c5565b5090565b905600a165627a7a723058201fdf8478a06f8baa2ccce05963c64ade4da145345006c875d7ef58a17d426cec0029",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP1 PUSH4 0x19FF1D21 EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x4ED3885E EQ PUSH2 0xEC JUMPI DUP1 PUSH4 0xD97D6630 EQ PUSH2 0x155 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x68 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x71 PUSH2 0x1E5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xB1 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x96 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xDE JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xF8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x153 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP3 ADD DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY DUP3 ADD SWAP2 POP POP POP POP POP POP SWAP2 SWAP3 SWAP2 SWAP3 SWAP1 POP POP POP PUSH2 0x287 JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x161 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x16A PUSH2 0x2A1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE DUP4 DUP2 DUP2 MLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x1AA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x18F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x1D7 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x27D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x252 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x27D JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x260 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST DUP1 PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x29D SWAP3 SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x337 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x30C JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x337 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x31A JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x380 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x3AE JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x3AE JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x3AD JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x392 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x3BB SWAP2 SWAP1 PUSH2 0x3BF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x3E1 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x3DD JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x3C5 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0x1f 0xdf DUP5 PUSH25 0xA06F8BAA2CCCE05963C64ADE4DA145345006C875D7EF58A17D TIMESTAMP PUSH13 0xEC002900000000000000000000 ",
"sourceMap": "27:360:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:84;;8:9:-1;5:2;;;30:1;27;20:12;5:2;300:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;300:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;222:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;222:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;52:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:84;342:6;368:8;361:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:84;:::o;222:66::-;276:4;265:8;:15;;;;;;;;;;;;:::i;:::-;;222:66;:::o;52:22::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;27:360::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "208000",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"hello()": "infinite",
"set(string)": "infinite",
"yourName()": "infinite"
}
},
"methodIdentifiers": {
"hello()": "19ff1d21",
"set(string)": "4ed3885e",
"yourName()": "d97d6630"
}
},
"abi": [
{
"constant": true,
"inputs": [],
"name": "hello",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "name",
"type": "string"
}
],
"name": "set",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "yourName",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}
]
}
{
"compiler": {
"version": "0.4.26+commit.4563c3fc"
},
"language": "Solidity",
"output": {
"abi": [
{
"constant": true,
"inputs": [],
"name": "hello",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "name",
"type": "string"
}
],
"name": "set",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "yourName",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}
],
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
},
"settings": {
"compilationTarget": {
"contracts/_Greeter.sol": "Greeter"
},
"evmVersion": "byzantium",
"libraries": {},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/_Greeter.sol": {
"keccak256": "0x56e2dd208dbaf65e754301585bdff5ac16c70d56cca6b491d112392d98ef399f",
"urls": [
"bzzr://3ef6141be7a7749632f3557b25cb951ffbfbd6ab274a4a4c2ef1161d72a7c557"
]
}
},
"version": 1
}
// This script can be used to deploy the "Storage" contract using ethers.js library.
// Please make sure to compile "./contracts/1_Storage.sol" file before running this script.
// And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S
import { deploy } from './ethers-lib'
(async () => {
try {
const result = await deploy('Storage', [])
console.log(`address: ${result.address}`)
} catch (e) {
console.log(e.message)
}
})()
// This script can be used to deploy the "Storage" contract using Web3 library.
// Please make sure to compile "./contracts/1_Storage.sol" file before running this script.
// And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S
import { deploy } from './web3-lib'
(async () => {
try {
const result = await deploy('Storage', [])
console.log(`address: ${result.address}`)
} catch (e) {
console.log(e.message)
}
})()
import { ethers } from 'ethers'
/**
* Deploy the given contract
* @param {string} contractName name of the contract to deploy
* @param {Array<any>} args list of constructor' parameters
* @param {Number} accountIndex account index from the exposed account
* @return {Contract} deployed contract
*/
export const deploy = async (contractName: string, args: Array<any>, accountIndex?: number): Promise<ethers.Contract> => {
console.log(`deploying ${contractName}`)
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)
const contract = await factory.deploy(...args)
// The contract is NOT deployed yet; we must wait until it is mined
await contract.deployed()
return contract
}
import Web3 from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**
* Deploy the given contract
* @param {string} contractName name of the contract to deploy
* @param {Array<any>} args list of constructor' parameters
* @param {string} from account used to send the transaction
* @param {number} gas gas limit
* @return {Options} deployed contract
*/
export const deploy = async (contractName: string, args: Array<any>, from?: string, gas?: number): Promise<Options> => {
const web3 = new Web3(web3Provider)
console.log(`deploying ${contractName}`)
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json`
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
const accounts = await web3.eth.getAccounts()
const contract: Contract = new web3.eth.Contract(metadata.abi)
const contractSend: ContractSendMethod = contract.deploy({
data: metadata.data.bytecode.object,
arguments: args
})
const newContractInstance = await contractSend.send({
from: from || accounts[0],
gas: gas || 1500000
})
return newContractInstance.options
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "hardhat/console.sol";
import "../contracts/3_Ballot.sol";
contract BallotTest {
bytes32[] proposalNames;
Ballot ballotToTest;
function beforeAll () public {
proposalNames.push(bytes32("candidate1"));
ballotToTest = new Ballot(proposalNames);
}
function checkWinningProposal () public {
console.log("Running checkWinningProposal");
ballotToTest.vote(0);
Assert.equal(ballotToTest.winningProposal(), uint(0), "proposal at index 0 should be the winning proposal");
Assert.equal(ballotToTest.winnerName(), bytes32("candidate1"), "candidate1 should be the winner name");
}
function checkWinninProposalWithReturnValue () public view returns (bool) {
return ballotToTest.winningProposal() == 0;
}
}
// Right click on the script name and hit "Run" to execute
const { expect } = require("chai");
const { ethers } = require("hardhat");
describe("Storage", function () {
it("test initial value", async function () {
const Storage = await ethers.getContractFactory("Storage");
const storage = await Storage.deploy();
await storage.deployed();
console.log('storage deployed at:'+ storage.address)
expect((await storage.retrieve()).toNumber()).to.equal(0);
});
it("test updating and retrieving updated value", async function () {
const Storage = await ethers.getContractFactory("Storage");
const storage = await Storage.deploy();
await storage.deployed();
const storage2 = await ethers.getContractAt("Storage", storage.address);
const setValue = await storage2.store(56);
await setValue.wait();
expect((await storage2.retrieve()).toNumber()).to.equal(56);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment