Skip to content

Instantly share code, notes, and snippets.

@TheHumanistX
Created November 30, 2022 15:38
Show Gist options
  • Save TheHumanistX/9a85c6a30566a9ea74780c19d4a265c1 to your computer and use it in GitHub Desktop.
Save TheHumanistX/9a85c6a30566a9ea74780c19d4a265c1 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.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
accounts[2] = 0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db;
accounts[3] = 0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB;
accounts[4] = 0x617F2E2fD72FD9D5503197092aC168c91465E7f2;
accounts[5] = 0x17F6AD8Ef982297579C203069C1DbfFE4348c372;
accounts[6] = 0x5c6B0f7Bf3E7ce046039Bd8FABdfD3f9F5021678;
accounts[7] = 0x03C6FcED478cBbC9a4FAB34eF9f40767739D1Ff7;
accounts[8] = 0x1aE0EA34a72D944a8C7603FfB3eC30a6669E454C;
accounts[9] = 0x0A098Eda01Ce92ff4A4CCb7A4fFFb5A43EBC70DC;
accounts[10] = 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c;
accounts[11] = 0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C;
accounts[12] = 0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB;
accounts[13] = 0x583031D1113aD414F02576BD6afaBfb302140225;
accounts[14] = 0xdD870fA1b7C4700F2BD7f44238821C26f7392148;
return accounts[index];
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library Assert {
event AssertionEvent(
bool passed,
string message,
string methodName
);
event AssertionEventUint(
bool passed,
string message,
string methodName,
uint256 returned,
uint256 expected
);
event AssertionEventInt(
bool passed,
string message,
string methodName,
int256 returned,
int256 expected
);
event AssertionEventBool(
bool passed,
string message,
string methodName,
bool returned,
bool expected
);
event AssertionEventAddress(
bool passed,
string message,
string methodName,
address returned,
address expected
);
event AssertionEventBytes32(
bool passed,
string message,
string methodName,
bytes32 returned,
bytes32 expected
);
event AssertionEventString(
bool passed,
string message,
string methodName,
string returned,
string expected
);
event AssertionEventUintInt(
bool passed,
string message,
string methodName,
uint256 returned,
int256 expected
);
event AssertionEventIntUint(
bool passed,
string message,
string methodName,
int256 returned,
uint256 expected
);
function ok(bool a, string memory message) public returns (bool result) {
result = a;
emit AssertionEvent(result, message, "ok");
}
function equal(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventUint(result, message, "equal", a, b);
}
function equal(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventInt(result, message, "equal", a, b);
}
function equal(bool a, bool b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventBool(result, message, "equal", a, b);
}
// TODO: only for certain versions of solc
//function equal(fixed a, fixed b, string message) public returns (bool result) {
// result = (a == b);
// emit AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function equal(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a == b);
// emit AssertionEvent(result, message);
//}
function equal(address a, address b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventAddress(result, message, "equal", a, b);
}
function equal(bytes32 a, bytes32 b, string memory message) public returns (bool result) {
result = (a == b);
emit AssertionEventBytes32(result, message, "equal", a, b);
}
function equal(string memory a, string memory b, string memory message) public returns (bool result) {
result = (keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)));
emit AssertionEventString(result, message, "equal", a, b);
}
function notEqual(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventUint(result, message, "notEqual", a, b);
}
function notEqual(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventInt(result, message, "notEqual", a, b);
}
function notEqual(bool a, bool b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventBool(result, message, "notEqual", a, b);
}
// TODO: only for certain versions of solc
//function notEqual(fixed a, fixed b, string message) public returns (bool result) {
// result = (a != b);
// emit AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function notEqual(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a != b);
// emit AssertionEvent(result, message);
//}
function notEqual(address a, address b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventAddress(result, message, "notEqual", a, b);
}
function notEqual(bytes32 a, bytes32 b, string memory message) public returns (bool result) {
result = (a != b);
emit AssertionEventBytes32(result, message, "notEqual", a, b);
}
function notEqual(string memory a, string memory b, string memory message) public returns (bool result) {
result = (keccak256(abi.encodePacked(a)) != keccak256(abi.encodePacked(b)));
emit AssertionEventString(result, message, "notEqual", a, b);
}
/*----------------- Greater than --------------------*/
function greaterThan(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a > b);
emit AssertionEventUint(result, message, "greaterThan", a, b);
}
function greaterThan(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a > b);
emit AssertionEventInt(result, message, "greaterThan", a, b);
}
// TODO: safely compare between uint and int
function greaterThan(uint256 a, int256 b, string memory message) public returns (bool result) {
if(b < int(0)) {
// int is negative uint "a" always greater
result = true;
} else {
result = (a > uint(b));
}
emit AssertionEventUintInt(result, message, "greaterThan", a, b);
}
function greaterThan(int256 a, uint256 b, string memory message) public returns (bool result) {
if(a < int(0)) {
// int is negative uint "b" always greater
result = false;
} else {
result = (uint(a) > b);
}
emit AssertionEventIntUint(result, message, "greaterThan", a, b);
}
/*----------------- Lesser than --------------------*/
function lesserThan(uint256 a, uint256 b, string memory message) public returns (bool result) {
result = (a < b);
emit AssertionEventUint(result, message, "lesserThan", a, b);
}
function lesserThan(int256 a, int256 b, string memory message) public returns (bool result) {
result = (a < b);
emit AssertionEventInt(result, message, "lesserThan", a, b);
}
// TODO: safely compare between uint and int
function lesserThan(uint256 a, int256 b, string memory message) public returns (bool result) {
if(b < int(0)) {
// int is negative int "b" always lesser
result = false;
} else {
result = (a < uint(b));
}
emit AssertionEventUintInt(result, message, "lesserThan", a, b);
}
function lesserThan(int256 a, uint256 b, string memory message) public returns (bool result) {
if(a < int(0)) {
// int is negative int "a" always lesser
result = true;
} else {
result = (uint(a) < b);
}
emit AssertionEventIntUint(result, message, "lesserThan", a, b);
}
}
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
ref: refs/heads/main
DIRCc�Я1� �c�Я1� ���������NK��ܿ$�h�i�$.deps/remix-tests/remix_accounts.solc�Я._V�c�Я._V�������b 2�H"��(���,�Dz!.deps/remix-tests/remix_tests.solc�а���c�а���&���}�7i��$���IQ��B.�
README.txtc�Я._V�c�Я._V���+j�2#�=��C��� p���contracts/1_Storage.solc�Я2l�c�Я2l����I����*̛���>K���?�'contracts/2_Owner.solc�Я4��@c�Я4��@�����l6 l��8Յ�%��+�Zcontracts/3_Ballot.solc�$I*��@c�$I*��@���<|f��X�:d'�3ºD+���� contracts/Day2.solc�x{ ��c�x{ ������%a�g��HG�g����HR�contracts/Day3.solc�x|(�@c�x|(�@���~�2QV$UI����ej��N�X�Dcontracts/artifacts/build-info/f3995c5f8d72ab40bd23791acf195307.jsonc�x|T��c�x|T������ ��+iH wj�̚4+�*#contracts/artifacts/helloWorld.jsonc�x|`��c�x|`�����(��HO@�2s����/' s,contracts/artifacts/helloWorld_metadata.jsonc�Я5w"@c�Я5w"@�����!�)?�U���U-u�scripts/deploy_with_ethers.tsc�Я6���c�Я6��� ���W�5��XPwK��ئ��| scripts/deploy_with_web3.tsc�Я8%ǀc�Я8%ǀ!����uۚCl�j��{�f� X�.Bscripts/ethers-lib.tsc�Я9�c�Я9�"��O���:���V�)��?�(GY�scripts/web3-lib.tsc�Я:;�@c�Я:;�@$���In��ˠ/�ds�9���5��[tests/Ballot_test.solc�а-��c�а-��%�����Z+��>G����`}%wtests/storage.test.js��R�����E�U!��SR
x�%ʱ
�0Fa�@��{[K���`AAPеMo녘�䊈��<��:�:��rV8��lϚl����
L~�CsNT�&ߎ���Y^X䫼�긴��[-��1������x�#�GgXc�D� �]�xF;O�?M�� �+8
x��}iw۶�����
]��!97M1r�}�9��:É��w�teQ��V�\ iݮ����HA���ĭ��콱�l����:�8���������p88�bߧc:�&.
G�&�> �S�S ��'����runx�_�v��;���og���[(������j=[.x1��{
q��|��,������j�y��A$J��[�axp8���2�u.���d���x���8Z����f�7��N����L^�w�B`��w���'�����8Z��o�O؋�t�����~X}X���Uxy�1ȁ�7H^'��F���_��|2�;y9`?��j��\oG��xp�����?���
���0H��?rd?�?�%��f���(\^ofW���UFX�G�w�4���'��j����'��v��zͣ�FvB��?ҏ�������a���Ͽ<�_�#�~4;|�|��6�$܄ٓI�i�g߷�h�{��,�������=�>]=�G����h���F�����&/'Q��$��/o��3�[�ݯ�I������p}�f� 7Q�M��3B��9��osc�&"�
b-��H��ڌ��ӃX5x�?']�.�+�B�����ҐҔhl����͵�/E6k@i:�p�/����|Rp[oO_l7��9�\V��,�C�2im�]H��&�Z*z�8�<:8�m������!�i�����O�݁�Q����d�ݬY������l��>4�� ����ӧ�|�5�� y��I����������"��I�̗�D@�O�א�����D�*����;ʗ�B�C�1�o���:S��AP�G�zy�!
��%b ���ܛb��Mx�&Op��ʈ'������aC�l�a!jlZ��q8�
���gkf× "8Ad�r )����n$rXE��xğ���-���Z�0��%.8Z.�a�ՠ 7�E�q���#���Dž:p��T���'U�^�*�� ��:E*�s��q$�h�I�s �Dm��0�SAX��ą�Z8�{��������I@�Zn.�� 7GF*�Iaњ�mP.�]n�MBXd α&y������e^�
T��S^A3 rm���V����HK�K,��H�hZ���qAcI�?��@�?j�Y�5sk�!T���&�vHk�����n����fˍ�;��]�F�Ɯ��0��ҡ��"�#���׍PhH���,�he�3ۤ/Yې:J�U�&>+ TTHUi޶[�a����Zw1�%5��6LK'ㇱ���bE�d�M ����"��K��<G��Jg��藩4o;��x<1���E���d���K�4�f��_} y�#���P��v��t" ̚���#CE����N�J��ԥ�sX�u�u�S�^�]9�%��L�~UjQ��a�S�&����d�+� V��j�JBc����vTU��6Ț<�5$�� '�P����iD���9T$"Uv��*���� ӹ�ˬ������NA� /fE�X�|�O���W��:�(/��C�����lm�+�T6�0�ٿ��p��MK�[�����0{�?��Q=��N���"^�����L�ԋ����$<��#�g������خ]1""FDR*��R1��a�̼�<�~W��z��V]ڪ���t?Fo�"K�/T�<�ҴhZ�7H
8)KUJ�@��[ ũ��2+$1hx�R���t�T����xC]��t���^�|��بD��
� 3a��J�����"$mMuH�ha}G�`��� �������@�E �7Q�~�or���2w �� J���_-�gl�c \Ε����&4�����\'�Z�G� *��ΥS ��9F�*" ��2��e��u�?Ϲ0�r�l�B�z��Q�Fm>�,�<���;� ��?t�R)/(�:�]�\a}��~�Ε*3�J�r�p�G�����c9d���z<��t�;C����؎0`�yzT�4�B����kW-��XA��r�l�5(P�vQ�P=��с���Q��41qJ�섪��U��^��Kb�C}���x������ee��a���
��.��l{y��f�$��[��Î`�XD��|�d�\ 䨽3�n�M��o�d���s!���9'�/��'y���FA�w[\B,R�1;:��~q��Q ;��I=�x��`*�&`.$�v&QÅ!����L8@��$ {~���a҉y�G"���h�� l���$�;4�0ǀ��Xk����������&�*z;5:7�ݡє�#�ڎ��a����O�~K�cW-�1X�bE)d��K�Ò����Ӵ ;�<�����C7'�b�E�C ���G��e� C-�c���X���������)�/�U�qY���8��B�ŮJ�\�����u���Z�%��vȔ��[Ov˔�<0��?�U������a�I�Oj��{�K��%ٴ���'l�Il�`{�VI̝f8��x,�;iG�v���B�3�K����^3�}�������'��,ߣ�V EwW-�jY:�FFB���ѮI=`c�a]TݡqPnN[�� VG�1�M �J�pQ @"�b9P�j�\�4�6�E�\'BT6�]��(�ň�._B��}�HDl��;}�<��*�f�$A�������p��,�2��y�V�?�s^ȷ�0xy�Z�!�qY�\!��׳��A�wB!k�D|K�
!��y_b/o:���e<x��,ͦv�v�S����L��t�Qo>w�w��[��g����4a���T���w�cF���d��˰*�������6_��`S�K��|�]�I1ߋH@�إ� x�AxH�B�!����g�;yJ���U��RM6��~.�������p?��ֽ�p�딭�>�RV�v.�� xӔ���M5K��B����nAP��4��E� �|���C�K�KK��N4�{p5��������:���\rwDQX=��خ�A�ov}k.9�jv��c�_��ͣ��)�h��q���u=�q���<��y�y-l��y�o����z��Af����S�ӷ�?��X{�f��?r��HȮ��]��NK�I�B�6�ao��O��|;��I]�h�w�d���C��R���$#���F>%�q��9�>���\g�F�L�>�~��t��O�;Sg�h�����;�'�?,�������Az��$m/O��Y���a���0�����V���y�����+�OoV7��3q�O=�)�x/����:\�W�&Z]̗�(T�ʽv��gV�����?F��r��;1U!�c���� ���h��M4�H��Ͽ���9��������?�/ǿ�g_׫�8�>�\� ��a�+Fzf,/8ZNn
�kAW�nh�j$Jx�^E�z <�>\]nM��<P�.�W�hU�PK���u}8ח�I�� �E�S���b�����Ϛ*��E�F��х���cF���Ƅ�3����s�C��������� ��(�\����L.u=������2B�5{)O�k��(��UEf����c&�9$W�RM���X�s]G)��WQ�Pp���E��e8;����kM��n)���2���&���P�!ȎUP���^Mp��s�p<�k[PB�}i[ e��E%d����P{PB�B���Z�!�si�R,�g�I4�-f"+M�B�$?H
8�qh���g#�����/=b=s���q�Z3�Pt�%���\.�T��
�Q�x�:�=��O�����9Lf�ڳX|=wk��i=��)\�xF5���Vq&δ��nzs^|�K�A W������h<W��詈yt���lx���ixډ��-]mہ��ߚ��������ۀ�v�j�z����x9)d�3��?Nϫ́ǃ�z��$�c��[4�h]�����Ż�ѡ��_�Ũh���I��6�`�3 zPk�Б�â�T�@?^��]����u��Ze�r�z�9��.3w����S����wP���6| �.e����߁��,�`t����jxE&A�'����&�z(�>m�R!�1^.&�M�q����#V���O��<Sբ��;�sHcwx����0��TlRlm�%���v��p���<(�A+�wG('+�Т��W�hRZ6��^ ��IH��/���&Nԝ���2&�\uvl@�� h�f� ��H����) ߺ��a��JC���^���*�� �AM��ihT@��h{Џ~oqY� �Z����@�f �U>Ox�i8�h�¼���+� +vru,�~D# g �$��ȳ� ����渍��n@v��Ma� J��|<Ĩ�Ȥ|QdH���Ίÿ����"�~ԣ�jb�$'�A�[�� �0 )/��#�I,I;񹄿Q'q�|<��� �w�����?�&zQ��@�=�6����˳9\*�g�8oģr�?��yc���Y\i1%4n>�]ӴH��4����r�� ����\d����fM�����A�ͻ�ׁ�g���D�h-�{������DcqG�<�(���|ƿ���[Ğ����I�ۢ�U�3�L��l����?O}�ǟ�`;tD&��?�c�:b��t�߰gС���0�DԊDm�ԇ=�$�=����>������x]��S*�M\�6�N�ϴ�a������p�n��'8X����`�����9� d?��ZE���R����-Hn�F��j��x��S�'9�ވ2`e�쿘&(y�Љ�5}�&��[�K��~���ˑ��40,��'����u�� �b��G��9������H�ES~@��ƞ#4���.�t<�29�� ��<1�9(���;L8f�q��
Iì��J��<!ő�F��N㞂.��x s� �.iEJ��ZVv�YR�U� �Eي���j��f�i$r�ƲG�D�%\�A�����Q&�q-!穜t����p,)���V�hc�r�g:�tG���!���wb�@*zY�k��ɒ�+���H�NZ�ၙ�IZXN��?�!���K��Z5z&j�ĔRJ �5 �D��>��d����pWZ��8�U���H� �6M>�9RO�^R� =(��x�3 �*W�<p.3���ۥ)瀰�ci)�m��L�]�`
��NEy�-ڂi���傭�5?v"����.~�"�� �H�����WoNsO�_� N޽��ӣ�M�\�c�[DY]��+���gb�>c����p���u
 .�u��8I"�&�C�Ιx��_Tx���{�Z�99�x+����?:S����7��*�X�~��%��9}��m����8�
��.!)B� �WQ������(�~<=>>��y5�Z�,��(e����� ��4��:�Y��؉�#W~�6-{��M*ݚ�<;�|�vp�R�+�E8j��X�Mk��oj�\���ƞǂ#��z��������NF�4'e��EŞ҈��g2sB�U��h�����,bh^pR�Q��E�l���^�5;���_��䜲q�Y�q�B�2�I�Q��?}����X��$�|�T ��*)��,+Kѫ�e��b�oe/\�{�5JϔF�S�#�ƪ�H���%H�H��r���������c��wo^��d��y������BC��2[hٹ�͓��G�:U�zVj-)��U�L�x�M��yvtʽ���?��p��FT�h&�lL;հ=7��%�V�٬`W rp�u����q'�PϏe�Y�S��U���W���u^G��E@UM�#5*�Ӏ����,�D�v���`�����/�ы��K~a03 BvN��&J�T8[=��y��}ƕgn�9� )�qK���I����~rzuH�Q�۬e�ʱUf`ìY�X���U.��yyP��*g)�Y��?T>�a�
& �]� �k���"�lc/���t:w���t2N�u\6��y���0Ⱪu�P'�e�)M
��bŌ�n�1:+9liG��%9���ځ��6W-��U�d�"�C�L�l�S䯭v<t�����L���E���v7�����a�5�G$#/.���L;�Zf{�<>���������3?9�S�9�=��ɱO� f�� ��8��Hp�qG9�q�R�+����/�"�Kh��!~;A�p����g8���o�@ԭ.�͏
���4o��n���Y�� �8���ρ8��㳁8��S��<��k��X( ā�@�
��@�/ q"g4�m?�������;���9�Z��;H��-&�� ������%�@.����r#~��Kюِvư���D4'��|yM�5�����o�aEB��ᅨO&S�
���Lj�6F7��t��������f�q��>���W�p�[�:%�wf�Af��iT��s=&:2B>���u4����}P��q밮�!`��uN ��X�?h�-WɒusyA�A� k��K8ԘT�O�h�i���6�E(顷m2@��cdm�V��b�q{-:p;���~�Չ�|�+F%��OL�W5�����7��t���|8]6��d~�q?�4�eN�m��W�t�O�A����]���o*^�������cT�(�;,�OҎQ~}f�F���}�$ސ��nk�Ȟ��Z�[�#����f��#5N�4E����4b�戎����)�*�q� F&8��9j���7�j�u����Qέ5���<���b�dim�c8iѫ�W�v���O&���m�'|��� � 9Ĵj��v��5
�����1��M�ag�{a����D�5Gz�EO��gZ%� ��c�n�D��9}���jQD5�sn��ʛ����G���Z�A-KN I����ğ�&Q���3 ��'�w�$�mљ�]��C�`�4�`�_hh�^Mc]E&k�QkY�6A��L��v�I�꠬��6��jBX�\�j��+����O6%+�
���{�>�F��S��؍�ש]Q_�N�Q��ɝ�1�W�J���C�Ban��C��ƨ6fũ�:5��!�Y�f����7M�(׬F��#㺅�6�ǖ{�HĜ����u搝���Yg�o�u�i�,����`�:m���K��7�M������j��_��S�[���a;w�Ԇ����aw��l�:_.�53��ei_����9`�Z�6T�oX�NW��(
u�����&��g�z�R�W`E�/�����_]&5�t͓����$e�`1�P�V������r}��w���� ��@�׆�K&�Ri��7�HR��*
��Յ¿F��?�AE��S��kÖ�뎧���(�zYQqk�}�i<M����[$?��aJao�a Y�s��l��Þ ���0�M��[� _�8&>�<�+�p6\��Oc�.�{�{���(�½l�Э*�o���fӆ��j��w|O F^���Z �ƻ���T����C!w�z�����ͧIn�8�33-kܕd����IoЎ�V���ӌ����8�k7<d�_׏i*�]����-�-_*�x�yj�b�՞���l��A�10�=���@5/�ݮf6q۶�8Ň��������m댚��8�f��ؾ�6'ʼn_�~�Ǡ"W3H�� ؃`H���{sN٣���~�� �J�Bd�;E5Ϟ5�>]�s�=�$Zp`���n0��z��^M��98���;d� �+���Q��f���v�^�� ����*��+�z��3�V���.�������;��ټ�|Ys�y���� ����8l�3kȰ�k=�=:��Cw`t����5<�Y�i@K�g���`qk#�Ak�ԹM"�n@6�C��W�6�{~5-���Ag�@�SC��s ���� A�>�pK��dL/ݮ������3��6��7�M�kc�[�w��Z׳ �>��`;I\�r�D�k{�c��7��wZ�&i09�̮��P���5���6����z5�Fᄩ�ʰ��oób����MGi� B�q�n�'큔;>0#h8����ah��>0o™���2��v��C�sU��m�D�A��N� �8u���]�:�1&hyB�!A�>��f�&��!�B�]�������iP�Ld��Q�"k��Ӿ���=�C�w>�*�7�u�U��t��ȢPG�E�{C�W'\4 Z���k�l�7�����پ�j �����t�v�9�^:�������Z�8h/�2��� (t�w�z��`ܚ��;�U+�M��v��v�W3�t��Ati �.��.wL"���[����%� )]��a2J�Gb�`L(�>B�e���"��B�!C�'>`r�aD���v�|H=�z�s/�p�i�n8����o军�)֕�S��Z��]�iJ�[�,n8�%�ݺ&R����À��~mk� �C�D?�ѕ:N���2mk���x� RjHaѦ&R�'M4j4+-]�y�Ye��[���8X\����t�����E�~�s�q2~L�'���`N�Z] ֋#1�}j�v9��Et�~^�)t��b�P��iL踴�!�Yлj \�,������`=���i��5��������<G��:l�u���^�_W���]���p�R�٬��f���:�uu>Q���Y�i���n���|����U�?�i�y����A�eqͷ���S3�#�0�uG�d�2[���5B�(:L�Yo$i��ȗ�:�֝����h�l�_@ݯpH�vi0Y�h���`�9
{��������o���d����\�JL,�n8�$3q�/�z�̊���;z��3ma4ж�����#�_q�Ѷ\}.9���؀}}~��w�rH���m;��-����0p��������0��*G��f�7G7�裚�k?��q�������9����䶟Rqi_�ZW#U��(����ÿ?,>,�'Q���r���}<��� d�A���� �s .��K'%>�5I\��z�~��(׹s����\��Z��N&� O��؄�6��#�1O��&��o�-���Cٳ�r5�{�y0�<�)�d9� {��c�@REiQ!���g���l�B�Ǐr��f���
����y��bR >n�q� ��Em� E�dJN�� ��B�(J3.At��<b��v�-� ,&=ƍbg�_S������ Y�zQUX']P���iT�B�eq�Z�oc���t����@�=·�]"���U�J�Kb���z;z��x2H_���6߆\�'��
KY��>z��r��Vw�>.A Bf�cU-����1���_y�]�€��U�R��'Q��@��ծ<5LL�,笞 G=*�z\�|�>���7N�;�۷\���p#�4���ܹz ���~���Ƞ�d..��e��J'�Ϳo7��ls��Hߧ�C�rή���:���ъ���������l���r�?ј߃z�8��0���:�7� Q��^�wh$�a��1����0�L�!�%0�MGY}���ID��A��;���[�.��xL���'�P�.ɲc���X�)�@@� ��� o��?#���i\�CI�L�r�JL�4C���nV���qUf�ؿ�]ٞ�Z� Ŀ��o@��� ±oY{�_�k�6F.���,�;�5�����rJ)����)�+��� O��`x`BI+�i�e��G@�%����HP�kAY �XJ���`C���/3e JS�a�
ލ�Sc!z!r�3 ��?�9@�j�%u�Ѓ+�'<�P�r���2� �Y}o�9�?a�O�{�D�sG.���'�
��J|"������ ��BR� �'�;�OF#I ���-�t*���{�_�O�9��]�8.��#JG��<wL�>�|J�05�F��gb�G�3�F#�zɧ`�:d�ȧc�֢���3v0�Ba'Lx�bn��0,&6��]����� �H�����WoN�G����ߝN޽���?��y%�!V���{��yZ�boNߟ�y+ޝ�^��~�:k[�yr�����O���ik�Y����������)\��FB��{v|vt� ����i{8�.�c�IE/�HN��r�E)V�$\���5a�"��jA��}�,������7/��_�`�gE��Nj�-�<�d E@�������w��[�p����*��{);i�8�QC����WXG���#� �'$��"�;�ɓ����!1 _ģuIW���?�$V�e4��-3%{�����я�:q-�M���p6�6L�B �cZ�ϸ���8��z\@U)zyR�'��_��^@��"[�F�I�^WU��O��9 �f�L�35�r�H,��M!tT9KA��:����CT�0i��YY~b,�/c���"�lc/���t��Woկ�4��KQ'��Z�8ǚ:�$͌��>=u �9h�c%sG
3���L�L��#�D�qM�P�Č���j�� ��� �E��ޙ"��S\䯭v`9@2��Ys߫��e������n/�16̂�L�E��'�!trZ�%�,+�1�7���^����Ps��_✞jU��K�=?���^2���2R2�� ̴Ӭe�1����sn{��t9�N�q��H����s�={���c�r�0���1��8q9% 8�8u=O��Y�v�]/��q�"��_4t� ����LJC������6~^��x^��_�NS��������N��! ��(p�!B�x���|��s�"/$ �Bt����r����8�� ��{��~
;�����)��Z‧Dq�_�?s�?�_�-����/�O� �1m��7X H+�l�7D�=ޠ��{� Ԇ�m��8����}�쥸�;׼��@^Uț�Ӓ��*�^B[Bjr�#U�-���q�\ .� ĵ����0����&� ��vZ� ��&���@�Q�|�$E^���Lq�J�H-��a�+�2�| R��6�@���<�I��~��9��ӯ�L)�8]q�,��~���T8�� ��� �l��̧���8M(/��+�IȂ8cU ��2_�^ �,JA�#&�Yx�((}�`/� )Z��q2^J&
d&� >#ȳƁ<K��Uy�1��:���\��r�1�g�y�)����y.��8l��A�?>�7�>5^����� �7����������&A�� ����z/��jr�j��w�i��ɮ$N�F/���z3�
72��*
K��yh�$�^�g���Z%!��)U�?��Vl���b�\]�=�,7�T y��?�?7�j��\��h�豾r��yt�o����j4���;|�I�-i+�ه��r�Y� 5�=<LZuqa>���rc���4�m�)���%枱 �`!}3u��P�M�bb���5��X��2_�}�����.X��d��|׍#�5�s(��;g0/��E�3A�C_�Һ�^�����I� �C5�=�>=�� ��{����Mx�� �aWz��et�v�^�+�_yt���g�_���1c�2�D���xo~H��������\��^35�]���RY��w�:�Yᒋ����4��IU �F��4����t��;+[��;-[|��C�.Z�iv�9� 9j�u�r�g�q{׽;k҉�oM� w{��Z �vH�E�龱>ݔ�U“�Y|�}8���w��|��}�^�mÈwUxڈ��Y﹙��} �����ߣ$����.����w�Ny�7ܘ�>cv������O� :�N��%��e���������z�+�:F���u6v=d��[ k���G���W1�Ƕ�ά|��z�
�������:�R}#f���}�|�&v2N���Qd{�Q�K\�nH����X��} �G���џw~3Xw�����:I���,��l��7e���w�9�d����p��S�p�n7b��z�U���͝��r\ɖ�����s�h����a��i&������U��x�C�\������_V<������vg��:�=P κ��ó-����W��P-Y�.@Ju�GZ�2O=ٷ��_�iT#A�AB}���Z$�΀��7�#R� �Q��$� Њ�X`�e�� ���w���B6����4\ү�CG� �â*L}���)�*����o�m�h�V#���ҡ�|�X��ٯ�����\��G}�;Z����x<�>4ZZ� � <�YF��n��sԟ�a��1�; �Dku�x��>4݀���dE��5��� C}�d�LE�>��Њ8��O�ah���[���� �t%�:��bY�x-D ���g:ԛ�hd�8����D7�"��Hu�n�D-�M���C:`�2�nN�8�vFr��٭��|p�(j���� 2m�;�����&������ c)�Ѱ�Zb���a�o�2��`Kxw���hfR�����Dn�-���+l���Mk�qG� =��3b�����բf�u���;�H����kwb_����W�����^��7�o߽y�����/i�ç�p�n����H��3.u"�d�K##JG��<wL�ɛ��ш����#יx��?��O��_0E>'7G;Sg��=�7F�)�ߙc��i�U�����T���u�q"�T^�ӋX��|��8�����?���`Q��Jbi��/Ol�ѱ^�O8ˋ���.��wD*��v����f�m� ��-N��]<�iO�������F_Mv&;�bJ��͔ӎ�r�Û/ͽk� �gG�A���8��}�`��Z��N�|���ݳ�� �]��F� ���ZbԲ`ZBon�l=������-J���;"�w����p�%N�|l�A͝nyRZK�'�e����>��j�:ۯƭ���[���=�^�-�_��,/��C����A��=ځ���y�{v�ν�W���Xv�k��gG�U�κ.p*䘹��@w�ٟ�Y8����ο�޽��<�ܣ_S<U��§
_��J����������Aާj}��"�'e����7M�:���a�2b&�ӵ�|�q�V���gJl�4����#�Q��!�����'���C�h6�`� 2��ܿ//º�n��s�����ۻ�w�=�7{k�p�:s�S��KT�=�8��.��!����1J?�������K���A����R�>�K_���=�:�V��ܣnx�s�/1D��� ��0��oMa��a��F��cGwq�pŗ z_b|�ɤ��X��~����+ீ ��7�k��'���Z�+�豪�>Ѐ�M�a��.��S_ݡ���L���aF�˹j
�%+<mG��p�!KȮ�J�S�f����W��Cn��V����*;lR�&vBm�2�A=^M,�m[�Z���w��A�YY[�a�� ħjrd���42������F�i[ஞ��zo)ցITt b��:��z�����͒m!�B� �9Z��no�����g�z�ݖg` {�侼�wƩo��M��,e�8��`���������kt��N���v7��5� v�j=��v���I^sg�jg��ۥ��C��-{��pP��w�����X5��R�%[��g�MQ���d[��x)&���M%z�L�
���/�V 7��a [Ou�{�����'���i[������-dd�k�^�:3%@;#���^f����S��Q���%�0x����b`�����v{����>��=q��އ�ѢN��T
�n@[N8ѯ_�,������d���lf�^N�-�[��ﶨ��S�d��&�}� h�#Mp��c��krhŜ�5�T�PS<�=/�R��FMV�]g�R�� K}(d��!���Al�s��]~��'侢��:��-jU��g���U�!Z�f�} ������6��zw�S�� R���ֺ��zԎ)��;��cZ8kq��z�0����'�b�)�d�}[�z���x�-���[���jxحq���8����� BP���mF����Gy\����niCžS"o��֨Q�W���6�W�w�ۢ�H��ӏڢ�@����ZTwO��§�uղ>@V\s�Q+.�v������y�ژ���v��Nn[���jK��h���6aU�Z����s?����-���L_�Oh���ܘ�&k�����"g�K���%�+��ڲg�>��'z}lo��a�)s_�m��H@w�˥G���l�[Oc�5^M�ďM���*�_r���kCCk�m}d�!��f�>9c�(`�\OJf�X-��&�jW����6Kr[��s
��wg��C3�VO,YCoσ���Rs��Ͷq�6O�5���u[�{d�A�v�w�Ę�b�[��c�-RmА��֊��C��9Qq��uz G�� ҏ�����>��jq�D� �`���h��3�Ƞ��mC]��H�bϻ?�K�R� �*2��6��>�AD�+ �C�?8ƀw�8#b����N6�Bl��Ul�j�NCc8C̐3o�nMG�>�,�.�b*�c�Xow�G����5bM��R܄]m��H2Ќ@��-�= �)@�9\Ao/&b }�|�'��fɸ�`cf<��d�����X�m� G�!E�)H����}�B��ǖ����O���elb��v�Mj`
5eIhz�^�X�f�bb�[ �=V&f��|���'5 -2��x9CK?O����^��O��2�9oNߟ�i͂R���N<7X��k��W�r���i�C��i3�bm g;V�o�f�M,1ʹ�7[�&��[�YCo�Ov�[Ob�n1�Γ�
� �� �[�[DW�ׇ��`1�;�]�p�6a��- �EW;�Ue4j�7Y#�f����{B��I�6j���dh飓���c�z�?��x҃��R#�V�*���4ضz�$�ُv���yE� @[TP��l�0��H��¡g��z�U�xkyH� �M9��\��^=�������Wtئm�C�'c�ȵ:�z�A&L ��YC��?�샳�����f�X�����l}0�ճ&ct?��j(���yW,�E��:ժ��zk�:k���{;�p��_�)=L>��^E�_���h��Mg�j�ZM :�\E���ci< #��qSIK��pnB^�������l�>ٷO���r��|8O���+p5�< GaH� �p��ɇ�y��܆��(x���&��͇C���y�����ь}��}�-��5�� +�)j
��j��&Z-��ۛkYp�Y���dZY|�K|�֛p��ns�+�i���2�.�A��4�>M�c��o��D�aE%�~��ߜ��O�ݮ�U�.��2���6��ZV�r�ކ��h�<^lV�x���$��O�˹��k4�/��\�'�c�OW�>�/��w�l�
W�(E#���f����p���:���e�����j�W"#�"�#N�4��#V`�]�V��*�
��c�~�EP(�c]A �[4��!�H�����7�� ��������� iȷ��w<
�ԙ`��Ɉ��8���Mc���b-������v5�1�����U����<�}ߧ����L�L��‘�}2r"�d�׏�)�8fc�� '�N�#�����q�}�ϫ7�㣟Ɨ�喡�7���^���������ůǗ'��u���{���//�\����0a^�����7LI�O^�G?'� 3q��z��1e@KY/�D���0)���(��B[�7����a����|)�jI�s‹�(��c�{����<^%o�J����j3�eo9.�k- ���b{5�V���D�a���g� ��]� ���6uX�ڂ�̔ǽ� U�y��%�I`h�+��:Å�]�r��^��_�=��V���r��&7W��\e�bYT�I?82㥒9m�u8S�ڂٗ��$\��-f���,�y�z6�������‚crR{� b�W6����K֞��k&ZW��l���S��>\��B>��a������: Q3i"�7�p'���W����b6�/c?C��ig�D��OaB?�J �E~�E2����t;��<���GW̡�x��j� *8NU�/"6z�M�IH�Ku�����<_��X� �p��;�8�|:cb��� �Q�=��,�"X!���h�z|���Pj�Y��2�N= ^I|�G�: �E�Y�:�*���3���O��<\�y�p��� �=���!v
m )i���ʨ��8���v�'�[�h=^ͮy���N�gN�vxR,!mtf�����c]��� j��P2�.�J�W7o��se3����uX��z�*L,v�C�F�x�L<r��5��}����S\י��}&(?�����G�c�6��� ���ەFڲ�S�As�����m����ܲډ�rt���xI�}E��Dx��E�G�9�cD�S�Q4q=2�c�u �ˬ�R0�p�ᨲ� ����ܜ�����>�,��S�`ҧO��,3g��Ƴ���)�=1:��H��AC7gθc49]��+9\�=��Me��%�l���F��I߰�?���
x�+)JMU��d040031Q(J�ͬ�OLN�/�+)�+��a��q����~�S��ٯ�N>�@�=�%��P�;vNcNR0z����Ə�7t��I�)�
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�+)JMU0�`01�����
ݒ��b����V��g�n���� �\�?�kw�
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���[
B!о]�l��1_p�>��8jWJ1��-������a͜!f�XТ��I�d����G
�Ʉ�����DŽU�z��8+��S����Q}�x� (k�G�g Gi��KW���}P|�a9�
x�m�Mk�0 �w���i��|������a0=���[qu$v��2�ߗ�I�Au�,������)$IrE�^}l�%e�,_9*�����j<����?�� ʉ����0��8| ��t*`
�L\ �Y7�*9��� �!�jY8R �ԐL /Μe]�O`�
lf�b#��(Ǫ���x�Eޣ�!���L+62�a7�
M8R��<�re�f�m���P�^SI#�vD�a ���{wNeLZ���j�*��5LЇǁE�̻��6�7�3��{��������>>�Ԅ�C, �� ^?8��;�����
x�K��OR03`��p����LN�+N��LI�+�L�L-�R�� ����R((JL�MT(���L�,�T0г�34���͍
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�}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�+)JMU03e040031QH3��4M6M�H17JL21HJ126�4LLN3�4560��*��c0
S ���$�fSj֯���"N��
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�͖]O�@���_q�5�]��`�FcH�j�����=� �e;S�����JiK?���t8��9�f9��}99��Ǜ��{��Ͱ?5��Ԥ�^���}�t0�t�.�-0Ǣ�+�� g��������ӱ��w׌�����W�*�PǾ����h�c���'F�0�R{ d��0�/��,PD�ˬĿh��A�YF_��E�v� ���u�F.ȴ �T�2?���1��nC��B׆�=�S� Q$�kNJ#;5Б Q�)a�˓��>J�& ��@��4rZӧ���43�����l]2�3W�]Io�x�= �Ta�i��� �p4�gqUȝ�&�� �K�tG��5�u-�u�]U����?��\`E�Z#�
��45���>V�'��L� �a��Ց���ח袼¦�n.����� �HE� ��2���cJ���ʼn�L����\� ,Z�H�M>(p�õ 㭫���r|�1 ���@'*rܪC��\^jB{�����ᵊ�U1G]'s!h
��m�1��s4���Ĝ�����5 �OP�~�ᷭ;�Q���
������~Q��ȇ�p�L�Z�.��8�ޱ��6�NE��m:H���v�2cѢ���L)�ߦ�6���fR�K�5⸟������ ��ذ�X|�O�ݛ˟��V�誂�ز_��� )?ݏ2�cZȈ�B ug�$.��� ����6d^V�RS�`,S)Cu�J�J������.���ȊEP��M㮇A�>-���m���X�K�NH�6�9#��q�7R�oھ��D4kO���5v*37-?]�r�2oQY��խ�ʸ��lвE%�ߞ��§�,�꒒���(����̅�imA�|>�' N�Z��d\GL����� }��
x�+)JMU047b01��Ԃb�]۬f�x�F������y �LL�\]|]�J*Jվ0�liQ9�Q�@���Nz� �$��%&�3�xe��K��1�Ļ��a�w��m~����������ׯO�bR�Y�'�k����?DEIj1P�'��=\v��zQ!g)��_��~�H*
x�+)JMU046b01���̜�̼�|�%���J�k�S�o49ʵw�.�g_ �LL2Rsr���rR�������L�����.��j?3��D{��,����ԒĔĒD����E<�^.7*n�'�G訾:O1۶3�
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��R�n�0����@צ�ޏ܊�M�6F
$�aI�d"���S;𿗔%�r( @����w�P�<
�����,����@\��p�Q�� �p^��h���h���lw�
Ȧ�}��q� ���m�ۉw�Gw���!\�k����="�h�h��Ә�x*,j b��2c5��XwBwD쿙{x7����7�u�
��e�9�N�L u/���s62 ��5St�< ��d>��{��E�R̫y���CG.��7��������1h��j�=�� ~�%��� U�j��,�`�̍��
�P��,8�����h�$s��Fp�As<��}��"U ���|=�js�V��-���I �����X�K�#�C���n���4�W��x"���##��g���?9M�W�U������J�**ʜ�A�9� J �s��e�HV�i�Ve�ٸ'�)J3x���r{-���v�I���bQ&IUUY\%�&�š�a]B�"�R��q
��Ӣ¢v�iTFuA�$bqƢ|r){Er������j��ڔM�L���["����e�b�V_�����zs_=��v<{:�ϩ�vF#�
x��=ks���U�,�U%'x �ATR'�Ԯ���H�S��-C�Y��R�o����03� 9$���:m-M���ht7�F2�D�s�__^�����a�??�m�1�'��/7�(���A��ɿ���r1�z��>�/��2T����xڦ;�����w����綷#�_f�zӶ�v�0��q[��l���}��+�p�[����^ă�0N�����b<�v��򡓕����ż7X�c���|��|?����E��t1�|=O��Ixl��C�=]N&I�co��/���d�@�i�3���4MV��aXk:����l~O~c�
3�i}�č�h̯R��4����v��k���*���{ZdN��w�����XNN'��/��I��|��-����/�GhN?C����g �ZL2.�T0 [5�N������ d#�\5|��tA(������%����~<�)q��r ]՛�˙&as� �� ���7Y�,r������I� ؒv.<z~@y�q� ""�h�i0�4�=��y!ArB|&xD>�YD"*B�������s���B�-*I�@'~[5��-(��bR3���L��6�G.��QE��³ޤ�| j���vS�M�%{��oB��m�V�WV+�p޶&�� �c�PK�~���T���� �]���M(�<�� (���E!��������W _ʷ�l�q7����1~� b���EK����y^���v.g� p�aZ�X&+
z*�;���j�N��6���F~]��ok���Qr8���E`����[K�j��7����Y��V�I�� �/�B���֏Cp�ӪN<��ܹ`HlB��ᷠ����?����W�� ��A�vCN�>���տ��7[.�Fד� �N��x����u��X��!�v%-�{ug-��BKC�E#�Y[�E�z\.���W5:�h�e���8Xm&D���.�WX �����+��F]k����*�#*t�����A��F�6S~.YcUVGsWvC���/��W'l`d
�iPFP��f�?p �z�܎'�ctP�ğ_���e �`6�D#��z��ՠ� �E��F��ӿ�������e9��"���Ջ�ۉ㜵CZ{�f����+M�6�V,et'C�b�]��Z��48U�!�����a�6]�X��?��x���u����̳��p� ;�w��օ���d�O�e�W%V�/�FXq%�1�zr��g�/ �FlO[�E���堆��Tn8uLg���_�ƒ������,�l�j��o��^��>���lzD�`*�N�^�7cM���<�pMU3vX�d�L|pϻ��:�ن��oMp��6g��o���u��8$-��>�����i ��i���G�/���]�����v�Q �w�B�V��_AԸ�c2~/�_)��Q��Zo��ҿ�f����[��'U�e�ċVy���04�U~<ji��u�V��y�L��F# b�P>����5Y�8;*�*wnC�>i�Ǎ��G���a�{H;-�(����d����ϐ�*C-���f��<jt蓐��#��O�����s�#/�?��F��?
|�%5��@�$� �DC��7�Xd�����/�BB����fHFĆ4� ,��S�bU���@z�0i��#�BG�>�N��F,dX7"�
�0а�U4�"� ��'����h�A�F�8H6愌&�ADC��2�t�P� Q�������+n@��J�{ ��Ps
rT��F �3m���@���jFvM��� �~P�7�)���o�a�:xM<����C�_���`�)`��g���p,!FP��U�D�����36����G
;ř�g�DIA��fD�y����IL�j���s0�TI�ںU��J �NJ�O�0=E��@9�%P�+���_ɒ%���G�.j(�'�V�=!�46� rp��y(�y W�l!:��e�\�ZJ�S9-��Q�!�kz*U0�J=� W�} �!����7T�^��SA�4^U󙒝���A�t[-�U�p(�ᒲF�FJ�T-�A��ZJ<]â�O���]�R�TIx���p`dUS�z!Vv#�Ʀ�t���z:
�:~/��*M��x�h����2���6�]!��hK���5m�0^g FTK�H����-�=�{~�8`F#}!�����}�G��j���^bŁ? ��h� 2���Ā3 ��x�=�v��͐��Ǡ��w���{
EHZ�W�����]�ts)�W'�V��5�SO:G�\�3�ɊYV�3��C��w���s��6��H��SD�u�� GѤ�
�d���s���'+d�����o��G�{{��\^~8�|oZq�c��*�"�T� �,U���{s���� P�U��w���-PE�j�ͥf����{vv�x4�Z�<��,e������\S�PW�zF���Z�/�Ҳ'�iukR������u�N���� iW7�Mk��_6U���؅U땀��ww��~�*�iOj��eŞr���i��9�3e-��zN����E*�+N�f�[ �%����e�κG�դ+39]3N�3VhSF�W��z%�Os��F`@��]�9���e�W��� γ�F����x��.�t/ܾ?̀�s �N�ZY4V��`V �]�ߊ ln�]u�gW���1���ͻ��;0���:���:�T��֝�0;'w'�?vm��NKВ�9[����&k����I=�V�o)<�P�7�I�0Ӻ��F���p�>��AЃ�� ���N�"=?���"�3�l�W J �6o�_���٩��Vy4e�@�X��T �aP������G�5#c&�$5���#�Jz�vp)�/ fU��fN� �%dZ�]=��yn��]ƕ� �O�c�)z�)�'���qnuH�Q�۬e��ƃ*30Ga�[V}h�˞��<(Sߖ��۬S�C�4��@a���dT8\&\Y�pW�R�NGG����A��8�Y�e�o���;g#L�S���/S�H�W�+f�r��y�aKA�d��渣�m c7��ղ�P[I�o�: �-̦;E�n���a�������u��QQ��;��wy��f�@�ˆf�-В `�E<&H0.O��> ɩ^;9���ɉZ;�~'<=��H�,���r�"q���h �,]C��J��͢ʓ�'�����*X;m�~�&Rʈ��/W����1~��R�]]d?6�gV�L��4PD��x9Y� �R�J��^��W⤺�%��2�/I�/)�&�T4��,"����H�ΎKu�]��R�������RZ��P���oeRD���@��g�>�"�ֺ���R�s=67L��ݓ�mؐv�� nm�:�D<<� ��?��xq�V\��Q��׆�u�a�?��q�0�_�?-��������l���q1�_̜ɣ�����7���HN��+#07�������Mn���j��)VR�)���]�UQ��OI�x���~��9�͓������ "O���`��9!zS�D�mr��ч��~x�k���F��HPs-c0�-����b�rr?���#Q�T�_�4�+���=W��<�,7@�`�@5��€Y�^�T��ɬ��5�0(���=���/Q�&w(_9�]G׎x�rR�,����Q|K'E��A��E��O�6����Ʀ"e�wfO��mg�qAk���5�ݷ!���뽨p.�����`i������+\���%_���j���))�����#8�]"���4��a���r���nJ4�,���;�k�փP�/7d���8(E�m6����3��!cgǃ�b�csO�J�6�:2R���
���}�L��!�F&��c�pTIRw`Zi���,d�p �2�UA�v�1�9.���%���(�mф���" ����>����:V� �Wu�M�`XL�3Á3�:�Jr�+qZ[\ĕ��W�׺9y���6��swl 7g7���R�.*�4'��jUԳ���;{sy��!�*q����V�Nd�^�`;E�-��Ļ��oє�ᮙ�iH-c�N��ܢ�{�\{u���E0kn{��;8D�a���&��E2`Q�H[������₿S� 7��2�l�����c��y��F�9ʑ!���}F@��hbW/���旳�cav��EY�6�3��=���Ǚ�|ŭ
U`q朣��!�B�(�5C�y�VDh�b����sN?e�`j�#~�A��>%u��]̹�r�x{�S$�-c�n6ƏJ�~%���������j���� ����O��W�C��B��Ȁ�pS�����a��8��}ՁM7u�����v�gLBнΘ>�;u�S�o{��E�e̘��J���C3&/"{ %`7�1U���))P;�ޡu�� �m󵸺���!�a3��EbC2!{�����>c L��Ʈ��T� ۢp�dO�s}t5��<Ķ�Uݧy�\}�&\K�_+�����֘�F�ځU�n�6�U��9Ah&�*wEV]7.o*���������
����KC���z��9C�<������� !X�&��v����_6�p�C��黯�<�����|��g=���� �����O�o'l��QX����6 )i�Қ拼�
�=��Ld�K3R�ϼ6��tR�]s�~�#x��8�=�R��xn�;��ކ��+��q �������
�4����H��� ە B��c(M\:��Aqu������k���5u!�EL��P���t�_�;�r\�y��(t\�ijF��A�mhS�<r��
�Ë�˔�[Kސ�w"j��夝�4�k�o{i��9f ��|���P�]���<]E�k�Ш]����}��4eZ5��GI�t ��� z�c�Jí9������X�S�a�#�y�s�PU���V�\�:^C�n�#����f�u�����mHm��@m�@�}{����5���F�����#e�׏��m��g��j��W��1҂Ü��1@��Iub ������Q�9�#�[�L��`��K��M�AJ{���zC��m�`2�*��(3���^u�&�(�0r���I���z\z�!g,�V�Vo�YS��Ԩx=-�M��k��9�����h
t���s�������x��6,
��^B�4� ��ͬ�&mGG�G��u��g7l]�8p��}8�8x�Nan��r$�[�h$H���Y��� �)Q_��;/\8�Ȧ���Y�Q�drSz#�Û��(ϝ�o|��c�MŖ����>5=����-'����ϽZ���`��&_i����^�A���v]��ay�i<�Z����_�s��qt/끍i����$!\Z<�ҔV���Z��ow����V��� �P.sg���+�Mh�����g-�G��u�ӿȼ �?W���)���J��ݧ�>�1�'��X���"[��j�B� �u,�^���S����DC�/����A��lY����� ��ka@�K���An��/� pw/��ܺZX_g����z���łu,X{�T�D�,xAѥi X[8by�9 |_GL��&G����Y����е�q�ucQ<�P;x�o�h�q������z[�A��N�T� ���O�pd���$�r�:��r�Xa`W���n7��*D9�p#������|��8����pY�v���[{9g�Q)�����/ �Nm�Լ����8Ĺ�>��i �(ۍFG���foB�n�� �����8����� ���)��m�(X9f�f�Ϛɣr���N�!tW��&����,��(�|�m��0�����+�կUo�������zɆ|Z�T��'V�ς�øP�6ϝ�Lʛ�N�G��1߇_~��4m�_�B�u!C^+{u�z�.�Ja��Ik����0���W��&X����ӱ��ȱ�pC����f�t�i��{á.�W͏�hv�
~ q�>-2���lY�ƈ�di�ټ���{k�x=�*�rH �rv�$U,�VӰ�B<>:6l�$E����j�j<j=؈+���O��$��[�t����+�,s�yMԒ.ɦƤ w����4p���l��T�ڎG#\ �<�F��3ٯ�DY�D��ц �[T-�)AW�r��6�Z��2S��8��:=[�:n�}�G�Ȝ�%�!?��T�6X�[��'O��k�q�J3l]J�7!W�X\a)�Ӷ�G+p=�uT��)�aG�Z�.9��}�J1��+^�_P2�JTj8��
�lܨv��Qb"tyz��zz)�u��Q��Y� ��/ld0�۷��W�c4� ��r�-(|$~��g04�5�M�����HK%~����d����ϐ�*��+q8��q�@��&�sg��|�>��d<�ř1��+��6�> �O<"�BB�O �D>!�3���|�q��<��y\�$&t��`ԋ9�*���ڢ��Wi!~z��1�Q�[D4B�4YNrLxDF<�"\��e>�E��P�0�jx��wLA( ��� �E*%�”
Y�'W�`�&)�ݽ� ���U���WË���0���oD��o�D���C*T.��=�*�0C>�
���a?$�A}���bK��g��B�񪺘t
���CJu[-���a~N �B�k#U��j֢�FJ<]â�`Q�G� �
��)E8�V�n�R��B�B`Z� 8E�t��'�W�0���B���tz�g���\[email protected]�j3�G���=E�#/� ���R�`�WꛇiJWt>��畤� ��c�x0�EQ_������R:R�#�=엄룸�|Ϗ��! 0���}���`��>�#��04��HZ/1�����~4�^�B� ɈEb������=�v����y�!VMZ���~O����|�H�����M�uvry����}��yM[�?vo�T9�(i����담"��n��7w*�ӽ�k]_]g�������ŏ���]
����%E/�N:ir��n��ј0̓���.�V�o)<�P�ѱ�̤b�~��*� Y�R�J����O����������}j��t��߼�$�6�[�����)�=o�t2�2b�й��z���ε �dk�P����0y�3���0�
� ���Y�юg���K�N"K�`���g�H��� �]�d����*��Iwo�)Y�ݳ����M-&Kȴ8��MS���s���2��縩�jKѻN�=y�/���s�1�[��5rL��^U��2sf`�L��ms��T��M!�m9KQ��:>�NsQ�
&��O��c���L.�,J�+{�� V�����*z4
������k��9ꨒ"3"~��
���c%�"����Ԉ)��U�� "㸣�m c7��ղ�P[I��|)�sK�T^����� ~���~�
˗V���Y�\�x���<��+�6����:����t)8ϊf�)�Mz��.�K
�9-5�DE!��S�.ށv�i]^}�&P�KjF�-���]d��c���D�����jw�{���r7��� OO�3�9w��f����y������?K�����n7~��l9�o{�j��ځh���6���"��>��n����Ƥ�5���%뀚ɠ��7RDm_F�-$���d��*?)K�h�!r��J� �bL����K4�, mO2_%��Mᇇq�dR?ŝ<��8�;.͋�R�B,գ�R�͛fI�v��z��+��9n�W���ԯEK�"�T��J����O�J0��%��bR�o%��T�������B��X���>�_WKKr�)(¤mIS����T�_��F�z/C��g�zG�T�~QB��dR=�4h ���eR�O�*�|�#��Y� �R��N��2S$W��:̪Ta_���+U|a���&Ų�&���!'ӟ��҄�&��潀�M�p�������,ud-��|I7J�0e ^*Ċ�`��2"uD �#I�F�H���:J��A#�T�z�B�det&WU���L+��`i�_J}P�{���?��������#��=�7
��!�� i��Ks��Q��>..��ci�Is6
����:*͹Aiιʴ�>� �a iv�9:"ͦ�4�PM���R��ܮ�ڣمk�j5����}Z�?�z�Q���<��N��2@'~�=�g�q�CJ�G�����o�`���M�x�v������lћ�2_�{��ϧ�I��aNj�G�
)���?g��A��n�©�J���f�YO��)���?����,I�W��4T֔'��z㡴�&,��J����[\V��X��8�_CER;Y�7��������&�
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�+)JMU02�`040031Q0�.�/JLO�+��a�Zi���v��Glk[%
�>����(޿</��l�珳�nk���o�B;�ΣO�g�C��;%��䗀��?�cƙs�������3&iK�a���sI�4��I{�/�U��5�C�\�7/xy����FU<�|�� �=�'��n]s�#薉($�d�%&�3 Z�yC�kzdZͲ��ex�����^�
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�]�K�\7��u�����.I%����z�{f���0�m�6��=��ڸ[ !$>��Ω���c
�x�z����{�n)mwlwok۝���ß�?��݉-l6���s�����.����o`�[Χ�`k�p��<-��_���x:�R����8������]9-�����֧��ew��]m_^M�χ6������N���8�L����j���Z��|����~ȥU�~�����<No&�"g�}R����DY]/3�XfM�K�[�G����۬Q����* %�qclSD� ���d~ � �3c�\P3F�
�%��\
ښƹ^�5,.0i� �T� 09��cA��8�-YRN�5�X1�<��Go�� �!0<9�t1 � �oʖx��z�ќ�d�8�s��"�Vk������E��3W�\��D �)��0]`N�<�.sv&���h:�� �Y�t �� ��)�� &�h��>��$�� (�]�fU�`t� �k�����d�ǘ�EfG�o`�F�Y!3U�F�t�!��@�����DB�z�C�b�[׻��*�FJm�t�~��ڿB�P�D���D6�j<Í�&�B��MNؚ�� ��#�\���J=�=�a��^cV�&�erH�Ϟ:"Zs��ð��w��e� �Ï�����m�m�?iM>�
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�$'���;� ��[�
5a4d0349c9782b36400d22abf683e7547e4c55f8
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.
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <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;
}
}
{
"id": "f3995c5f8d72ab40bd23791acf195307",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.13",
"solcLongVersion": "0.8.13+commit.abaa5c0e",
"input": {
"language": "Solidity",
"sources": {
"contracts/Day3.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity 0.8.13;\r\n\r\ncontract helloWorld {\r\n\r\n string public greet = \"Hello world!\";\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/Day3.sol": {
"helloWorld": {
"abi": [
{
"inputs": [],
"name": "greet",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/Day3.sol\":62:137 contract helloWorld {... */\n mstore(0x40, 0x80)\n /* \"contracts/Day3.sol\":91:127 string public greet = \"Hello world!\" */\n mload(0x40)\n dup1\n 0x40\n add\n 0x40\n mstore\n dup1\n 0x0c\n dup2\n mstore\n 0x20\n add\n 0x48656c6c6f20776f726c64210000000000000000000000000000000000000000\n dup2\n mstore\n pop\n 0x00\n swap1\n dup1\n mload\n swap1\n 0x20\n add\n swap1\n tag_1\n swap3\n swap2\n swap1\n tag_2\n jump\t// in\ntag_1:\n pop\n /* \"contracts/Day3.sol\":62:137 contract helloWorld {... */\n callvalue\n dup1\n iszero\n tag_3\n jumpi\n 0x00\n dup1\n revert\ntag_3:\n pop\n jump(tag_4)\ntag_2:\n dup3\n dup1\n sload\n tag_5\n swap1\n tag_6\n jump\t// in\ntag_5:\n swap1\n 0x00\n mstore\n keccak256(0x00, 0x20)\n swap1\n 0x1f\n add\n 0x20\n swap1\n div\n dup2\n add\n swap3\n dup3\n tag_8\n jumpi\n 0x00\n dup6\n sstore\n jump(tag_7)\ntag_8:\n dup3\n 0x1f\n lt\n tag_9\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_9:\n dup3\n dup1\n add\n 0x01\n add\n dup6\n sstore\n dup3\n iszero\n tag_7\n jumpi\n swap2\n dup3\n add\ntag_10:\n dup3\n dup2\n gt\n iszero\n tag_11\n jumpi\n dup3\n mload\n dup3\n sstore\n swap2\n 0x20\n add\n swap2\n swap1\n 0x01\n add\n swap1\n jump(tag_10)\ntag_11:\ntag_7:\n pop\n swap1\n pop\n tag_12\n swap2\n swap1\n tag_13\n jump\t// in\ntag_12:\n pop\n swap1\n jump\t// out\ntag_13:\ntag_14:\n dup1\n dup3\n gt\n iszero\n tag_15\n jumpi\n 0x00\n dup2\n 0x00\n swap1\n sstore\n pop\n 0x01\n add\n jump(tag_14)\ntag_15:\n pop\n swap1\n jump\t// out\n /* \"#utility.yul\":7:187 */\ntag_16:\n /* \"#utility.yul\":55:132 */\n 0x4e487b7100000000000000000000000000000000000000000000000000000000\n /* \"#utility.yul\":52:53 */\n 0x00\n /* \"#utility.yul\":45:133 */\n mstore\n /* \"#utility.yul\":152:156 */\n 0x22\n /* \"#utility.yul\":149:150 */\n 0x04\n /* \"#utility.yul\":142:157 */\n mstore\n /* \"#utility.yul\":176:180 */\n 0x24\n /* \"#utility.yul\":173:174 */\n 0x00\n /* \"#utility.yul\":166:181 */\n revert\n /* \"#utility.yul\":193:513 */\ntag_6:\n /* \"#utility.yul\":237:243 */\n 0x00\n /* \"#utility.yul\":274:275 */\n 0x02\n /* \"#utility.yul\":268:272 */\n dup3\n /* \"#utility.yul\":264:276 */\n div\n /* \"#utility.yul\":254:276 */\n swap1\n pop\n /* \"#utility.yul\":321:322 */\n 0x01\n /* \"#utility.yul\":315:319 */\n dup3\n /* \"#utility.yul\":311:323 */\n and\n /* \"#utility.yul\":342:360 */\n dup1\n /* \"#utility.yul\":332:413 */\n tag_20\n jumpi\n /* \"#utility.yul\":398:402 */\n 0x7f\n /* \"#utility.yul\":390:396 */\n dup3\n /* \"#utility.yul\":386:403 */\n and\n /* \"#utility.yul\":376:403 */\n swap2\n pop\n /* \"#utility.yul\":332:413 */\ntag_20:\n /* \"#utility.yul\":460:462 */\n 0x20\n /* \"#utility.yul\":452:458 */\n dup3\n /* \"#utility.yul\":449:463 */\n lt\n /* \"#utility.yul\":429:447 */\n dup2\n /* \"#utility.yul\":426:464 */\n sub\n /* \"#utility.yul\":423:507 */\n tag_21\n jumpi\n /* \"#utility.yul\":479:497 */\n tag_22\n tag_16\n jump\t// in\ntag_22:\n /* \"#utility.yul\":423:507 */\ntag_21:\n /* \"#utility.yul\":244:513 */\n pop\n /* \"#utility.yul\":193:513 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"contracts/Day3.sol\":62:137 contract helloWorld {... */\ntag_4:\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/Day3.sol\":62:137 contract helloWorld {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\n tag_1:\n pop\n jumpi(tag_2, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0xcfae3217\n eq\n tag_3\n jumpi\n tag_2:\n 0x00\n dup1\n revert\n /* \"contracts/Day3.sol\":91:127 string public greet = \"Hello world!\" */\n tag_3:\n tag_4\n tag_5\n jump\t// in\n tag_4:\n mload(0x40)\n tag_6\n swap2\n swap1\n tag_7\n jump\t// in\n tag_6:\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n tag_5:\n 0x00\n dup1\n sload\n tag_8\n swap1\n tag_9\n jump\t// in\n tag_8:\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 tag_10\n swap1\n tag_9\n jump\t// in\n tag_10:\n dup1\n iszero\n tag_11\n jumpi\n dup1\n 0x1f\n lt\n tag_12\n jumpi\n 0x0100\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_11)\n tag_12:\n dup3\n add\n swap2\n swap1\n 0x00\n mstore\n keccak256(0x00, 0x20)\n swap1\n tag_13:\n dup2\n sload\n dup2\n mstore\n swap1\n 0x01\n add\n swap1\n 0x20\n add\n dup1\n dup4\n gt\n tag_13\n jumpi\n dup3\n swap1\n sub\n 0x1f\n and\n dup3\n add\n swap2\n tag_11:\n pop\n pop\n pop\n pop\n pop\n dup2\n jump\t// out\n /* \"#utility.yul\":7:106 */\n tag_14:\n /* \"#utility.yul\":59:65 */\n 0x00\n /* \"#utility.yul\":93:98 */\n dup2\n /* \"#utility.yul\":87:99 */\n mload\n /* \"#utility.yul\":77:99 */\n swap1\n pop\n /* \"#utility.yul\":7:106 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":112:281 */\n tag_15:\n /* \"#utility.yul\":196:207 */\n 0x00\n /* \"#utility.yul\":230:236 */\n dup3\n /* \"#utility.yul\":225:228 */\n dup3\n /* \"#utility.yul\":218:237 */\n mstore\n /* \"#utility.yul\":270:274 */\n 0x20\n /* \"#utility.yul\":265:268 */\n dup3\n /* \"#utility.yul\":261:275 */\n add\n /* \"#utility.yul\":246:275 */\n swap1\n pop\n /* \"#utility.yul\":112:281 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":287:594 */\n tag_16:\n /* \"#utility.yul\":355:356 */\n 0x00\n /* \"#utility.yul\":365:478 */\n tag_24:\n /* \"#utility.yul\":379:385 */\n dup4\n /* \"#utility.yul\":376:377 */\n dup2\n /* \"#utility.yul\":373:386 */\n lt\n /* \"#utility.yul\":365:478 */\n iszero\n tag_26\n jumpi\n /* \"#utility.yul\":464:465 */\n dup1\n /* \"#utility.yul\":459:462 */\n dup3\n /* \"#utility.yul\":455:466 */\n add\n /* \"#utility.yul\":449:467 */\n mload\n /* \"#utility.yul\":445:446 */\n dup2\n /* \"#utility.yul\":440:443 */\n dup5\n /* \"#utility.yul\":436:447 */\n add\n /* \"#utility.yul\":429:468 */\n mstore\n /* \"#utility.yul\":401:403 */\n 0x20\n /* \"#utility.yul\":398:399 */\n dup2\n /* \"#utility.yul\":394:404 */\n add\n /* \"#utility.yul\":389:404 */\n swap1\n pop\n /* \"#utility.yul\":365:478 */\n jump(tag_24)\n tag_26:\n /* \"#utility.yul\":496:502 */\n dup4\n /* \"#utility.yul\":493:494 */\n dup2\n /* \"#utility.yul\":490:503 */\n gt\n /* \"#utility.yul\":487:588 */\n iszero\n tag_27\n jumpi\n /* \"#utility.yul\":576:577 */\n 0x00\n /* \"#utility.yul\":567:573 */\n dup5\n /* \"#utility.yul\":562:565 */\n dup5\n /* \"#utility.yul\":558:574 */\n add\n /* \"#utility.yul\":551:578 */\n mstore\n /* \"#utility.yul\":487:588 */\n tag_27:\n /* \"#utility.yul\":336:594 */\n pop\n /* \"#utility.yul\":287:594 */\n pop\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":600:702 */\n tag_17:\n /* \"#utility.yul\":641:647 */\n 0x00\n /* \"#utility.yul\":692:694 */\n 0x1f\n /* \"#utility.yul\":688:695 */\n not\n /* \"#utility.yul\":683:685 */\n 0x1f\n /* \"#utility.yul\":676:681 */\n dup4\n /* \"#utility.yul\":672:686 */\n add\n /* \"#utility.yul\":668:696 */\n and\n /* \"#utility.yul\":658:696 */\n swap1\n pop\n /* \"#utility.yul\":600:702 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":708:1072 */\n tag_18:\n /* \"#utility.yul\":796:799 */\n 0x00\n /* \"#utility.yul\":824:863 */\n tag_30\n /* \"#utility.yul\":857:862 */\n dup3\n /* \"#utility.yul\":824:863 */\n tag_14\n jump\t// in\n tag_30:\n /* \"#utility.yul\":879:950 */\n tag_31\n /* \"#utility.yul\":943:949 */\n dup2\n /* \"#utility.yul\":938:941 */\n dup6\n /* \"#utility.yul\":879:950 */\n tag_15\n jump\t// in\n tag_31:\n /* \"#utility.yul\":872:950 */\n swap4\n pop\n /* \"#utility.yul\":959:1011 */\n tag_32\n /* \"#utility.yul\":1004:1010 */\n dup2\n /* \"#utility.yul\":999:1002 */\n dup6\n /* \"#utility.yul\":992:996 */\n 0x20\n /* \"#utility.yul\":985:990 */\n dup7\n /* \"#utility.yul\":981:997 */\n add\n /* \"#utility.yul\":959:1011 */\n tag_16\n jump\t// in\n tag_32:\n /* \"#utility.yul\":1036:1065 */\n tag_33\n /* \"#utility.yul\":1058:1064 */\n dup2\n /* \"#utility.yul\":1036:1065 */\n tag_17\n jump\t// in\n tag_33:\n /* \"#utility.yul\":1031:1034 */\n dup5\n /* \"#utility.yul\":1027:1066 */\n add\n /* \"#utility.yul\":1020:1066 */\n swap2\n pop\n /* \"#utility.yul\":800:1072 */\n pop\n /* \"#utility.yul\":708:1072 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":1078:1391 */\n tag_7:\n /* \"#utility.yul\":1191:1195 */\n 0x00\n /* \"#utility.yul\":1229:1231 */\n 0x20\n /* \"#utility.yul\":1218:1227 */\n dup3\n /* \"#utility.yul\":1214:1232 */\n add\n /* \"#utility.yul\":1206:1232 */\n swap1\n pop\n /* \"#utility.yul\":1278:1287 */\n dup2\n /* \"#utility.yul\":1272:1276 */\n dup2\n /* \"#utility.yul\":1268:1288 */\n sub\n /* \"#utility.yul\":1264:1265 */\n 0x00\n /* \"#utility.yul\":1253:1262 */\n dup4\n /* \"#utility.yul\":1249:1266 */\n add\n /* \"#utility.yul\":1242:1289 */\n mstore\n /* \"#utility.yul\":1306:1384 */\n tag_35\n /* \"#utility.yul\":1379:1383 */\n dup2\n /* \"#utility.yul\":1370:1376 */\n dup5\n /* \"#utility.yul\":1306:1384 */\n tag_18\n jump\t// in\n tag_35:\n /* \"#utility.yul\":1298:1384 */\n swap1\n pop\n /* \"#utility.yul\":1078:1391 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":1397:1577 */\n tag_19:\n /* \"#utility.yul\":1445:1522 */\n 0x4e487b7100000000000000000000000000000000000000000000000000000000\n /* \"#utility.yul\":1442:1443 */\n 0x00\n /* \"#utility.yul\":1435:1523 */\n mstore\n /* \"#utility.yul\":1542:1546 */\n 0x22\n /* \"#utility.yul\":1539:1540 */\n 0x04\n /* \"#utility.yul\":1532:1547 */\n mstore\n /* \"#utility.yul\":1566:1570 */\n 0x24\n /* \"#utility.yul\":1563:1564 */\n 0x00\n /* \"#utility.yul\":1556:1571 */\n revert\n /* \"#utility.yul\":1583:1903 */\n tag_9:\n /* \"#utility.yul\":1627:1633 */\n 0x00\n /* \"#utility.yul\":1664:1665 */\n 0x02\n /* \"#utility.yul\":1658:1662 */\n dup3\n /* \"#utility.yul\":1654:1666 */\n div\n /* \"#utility.yul\":1644:1666 */\n swap1\n pop\n /* \"#utility.yul\":1711:1712 */\n 0x01\n /* \"#utility.yul\":1705:1709 */\n dup3\n /* \"#utility.yul\":1701:1713 */\n and\n /* \"#utility.yul\":1732:1750 */\n dup1\n /* \"#utility.yul\":1722:1803 */\n tag_38\n jumpi\n /* \"#utility.yul\":1788:1792 */\n 0x7f\n /* \"#utility.yul\":1780:1786 */\n dup3\n /* \"#utility.yul\":1776:1793 */\n and\n /* \"#utility.yul\":1766:1793 */\n swap2\n pop\n /* \"#utility.yul\":1722:1803 */\n tag_38:\n /* \"#utility.yul\":1850:1852 */\n 0x20\n /* \"#utility.yul\":1842:1848 */\n dup3\n /* \"#utility.yul\":1839:1853 */\n lt\n /* \"#utility.yul\":1819:1837 */\n dup2\n /* \"#utility.yul\":1816:1854 */\n sub\n /* \"#utility.yul\":1813:1897 */\n tag_39\n jumpi\n /* \"#utility.yul\":1869:1887 */\n tag_40\n tag_19\n jump\t// in\n tag_40:\n /* \"#utility.yul\":1813:1897 */\n tag_39:\n /* \"#utility.yul\":1634:1903 */\n pop\n /* \"#utility.yul\":1583:1903 */\n swap2\n swap1\n pop\n jump\t// out\n\n auxdata: 0xa2646970667358221220b55b14b87c4c80b954467feb2602a91109e76d8bb9c0dc950d350d0f295c326264736f6c634300080d0033\n}\n",
"bytecode": {
"functionDebugData": {
"extract_byte_array_length": {
"entryPoint": 308,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x22": {
"entryPoint": 261,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:516:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "35:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "52:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "55:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "45:6:1"
},
"nodeType": "YulFunctionCall",
"src": "45:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "45:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "149:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "152:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "142:6:1"
},
"nodeType": "YulFunctionCall",
"src": "142:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "142:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "173:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "176:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "166:6:1"
},
"nodeType": "YulFunctionCall",
"src": "166:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "166:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "7:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "244:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "254:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "268:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "274:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "264:3:1"
},
"nodeType": "YulFunctionCall",
"src": "264:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "254:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "285:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "315:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "321:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "311:3:1"
},
"nodeType": "YulFunctionCall",
"src": "311:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "289:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "362:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "376:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "390:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "398:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "386:3:1"
},
"nodeType": "YulFunctionCall",
"src": "386:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "376:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "342:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "335:6:1"
},
"nodeType": "YulFunctionCall",
"src": "335:26:1"
},
"nodeType": "YulIf",
"src": "332:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "465:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "479:16:1"
},
"nodeType": "YulFunctionCall",
"src": "479:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "479:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "429:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "452:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "460:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "449:2:1"
},
"nodeType": "YulFunctionCall",
"src": "449:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "426:2:1"
},
"nodeType": "YulFunctionCall",
"src": "426:38:1"
},
"nodeType": "YulIf",
"src": "423:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "228:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "237:6:1",
"type": ""
}
],
"src": "193:320:1"
}
]
},
"contents": "{\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "60806040526040518060400160405280600c81526020017f48656c6c6f20776f726c642100000000000000000000000000000000000000008152506000908051906020019061004f929190610062565b5034801561005c57600080fd5b50610165565b82805461006e90610134565b90600052602060002090601f01602090048101928261009057600085556100d7565b82601f106100a957805160ff19168380011785556100d7565b828001600101855582156100d7579182015b828111156100d65782518255916020019190600101906100bb565b5b5090506100e491906100e8565b5090565b5b808211156101015760008160009055506001016100e9565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061014c57607f821691505b60208210810361015f5761015e610105565b5b50919050565b61022d806101746000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063cfae321714610030575b600080fd5b61003861004e565b6040516100459190610175565b60405180910390f35b6000805461005b906101c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610087906101c6565b80156100d45780601f106100a9576101008083540402835291602001916100d4565b820191906000526020600020905b8154815290600101906020018083116100b757829003601f168201915b505050505081565b600081519050919050565b600082825260208201905092915050565b60005b838110156101165780820151818401526020810190506100fb565b83811115610125576000848401525b50505050565b6000601f19601f8301169050919050565b6000610147826100dc565b61015181856100e7565b93506101618185602086016100f8565b61016a8161012b565b840191505092915050565b6000602082019050818103600083015261018f818461013c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806101de57607f821691505b6020821081036101f1576101f0610197565b5b5091905056fea2646970667358221220b55b14b87c4c80b954467feb2602a91109e76d8bb9c0dc950d350d0f295c326264736f6c634300080d0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0xC DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x48656C6C6F20776F726C64210000000000000000000000000000000000000000 DUP2 MSTORE POP PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x4F SWAP3 SWAP2 SWAP1 PUSH2 0x62 JUMP JUMPDEST POP CALLVALUE DUP1 ISZERO PUSH2 0x5C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x165 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x6E SWAP1 PUSH2 0x134 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x90 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0xD7 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0xA9 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0xD7 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0xD7 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xD6 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xBB JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xE4 SWAP2 SWAP1 PUSH2 0xE8 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x101 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0xE9 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x14C JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x15F JUMPI PUSH2 0x15E PUSH2 0x105 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x22D DUP1 PUSH2 0x174 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x38 PUSH2 0x4E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x45 SWAP2 SWAP1 PUSH2 0x175 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH2 0x5B SWAP1 PUSH2 0x1C6 JUMP JUMPDEST 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 PUSH2 0x87 SWAP1 PUSH2 0x1C6 JUMP JUMPDEST DUP1 ISZERO PUSH2 0xD4 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xA9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xD4 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 0xB7 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x116 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0xFB JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x125 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x147 DUP3 PUSH2 0xDC JUMP JUMPDEST PUSH2 0x151 DUP2 DUP6 PUSH2 0xE7 JUMP JUMPDEST SWAP4 POP PUSH2 0x161 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0xF8 JUMP JUMPDEST PUSH2 0x16A DUP2 PUSH2 0x12B JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x18F DUP2 DUP5 PUSH2 0x13C JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x1DE JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x1F1 JUMPI PUSH2 0x1F0 PUSH2 0x197 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB5 JUMPDEST EQ 0xB8 PUSH29 0x4C80B954467FEB2602A91109E76D8BB9C0DC950D350D0F295C32626473 PUSH16 0x6C634300080D00330000000000000000 ",
"sourceMap": "62:75:0:-:0;;;91:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62:75;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:180:1:-;55:77;52:1;45:88;152:4;149:1;142:15;176:4;173:1;166:15;193:320;237:6;274:1;268:4;264:12;254:22;;321:1;315:4;311:12;342:18;332:81;;398:4;390:6;386:17;376:27;;332:81;460:2;452:6;449:14;429:18;426:38;423:84;;479:18;;:::i;:::-;423:84;244:269;193:320;;;:::o;62:75:0:-;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@greet_4": {
"entryPoint": 78,
"id": 4,
"parameterSlots": 0,
"returnSlots": 0
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": {
"entryPoint": 316,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 373,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 220,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 231,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"copy_memory_to_memory": {
"entryPoint": 248,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 454,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x22": {
"entryPoint": 407,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 299,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:1906:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "66:40:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "77:22:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "93:5:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "87:5:1"
},
"nodeType": "YulFunctionCall",
"src": "87:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "77:6:1"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "49:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "59:6:1",
"type": ""
}
],
"src": "7:99:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "208:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "225:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "230:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "218:6:1"
},
"nodeType": "YulFunctionCall",
"src": "218:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "218:19:1"
},
{
"nodeType": "YulAssignment",
"src": "246:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "265:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "270:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "261:3:1"
},
"nodeType": "YulFunctionCall",
"src": "261:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "246:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "180:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "185:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "196:11:1",
"type": ""
}
],
"src": "112:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "336:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "346:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "355:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "350:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "415:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "440:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "445:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "436:3:1"
},
"nodeType": "YulFunctionCall",
"src": "436:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "459:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "464:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "455:3:1"
},
"nodeType": "YulFunctionCall",
"src": "455:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "449:5:1"
},
"nodeType": "YulFunctionCall",
"src": "449:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "429:6:1"
},
"nodeType": "YulFunctionCall",
"src": "429:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "429:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "376:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "379:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "373:2:1"
},
"nodeType": "YulFunctionCall",
"src": "373:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "387:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "389:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "398:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "401:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "394:3:1"
},
"nodeType": "YulFunctionCall",
"src": "394:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "389:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "369:3:1",
"statements": []
},
"src": "365:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "512:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "562:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "567:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "558:3:1"
},
"nodeType": "YulFunctionCall",
"src": "558:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "576:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "551:6:1"
},
"nodeType": "YulFunctionCall",
"src": "551:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "551:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "493:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "496:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "490:2:1"
},
"nodeType": "YulFunctionCall",
"src": "490:13:1"
},
"nodeType": "YulIf",
"src": "487:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "318:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "323:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "328:6:1",
"type": ""
}
],
"src": "287:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "648:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "658:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "676:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "683:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "672:3:1"
},
"nodeType": "YulFunctionCall",
"src": "672:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "692:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "688:3:1"
},
"nodeType": "YulFunctionCall",
"src": "688:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "668:3:1"
},
"nodeType": "YulFunctionCall",
"src": "668:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "658:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "631:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "641:6:1",
"type": ""
}
],
"src": "600:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "800:272:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "810:53:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "857:5:1"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "824:32:1"
},
"nodeType": "YulFunctionCall",
"src": "824:39:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "814:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "872:78:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "938:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "943:6:1"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "879:58:1"
},
"nodeType": "YulFunctionCall",
"src": "879:71:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "872:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "985:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "992:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "981:3:1"
},
"nodeType": "YulFunctionCall",
"src": "981:16:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "999:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1004:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "959:21:1"
},
"nodeType": "YulFunctionCall",
"src": "959:52:1"
},
"nodeType": "YulExpressionStatement",
"src": "959:52:1"
},
{
"nodeType": "YulAssignment",
"src": "1020:46:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1031:3:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1058:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1036:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1036:29:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1027:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1027:39:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1020:3:1"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "781:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "788:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "796:3:1",
"type": ""
}
],
"src": "708:364:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1196:195:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1206:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1218:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1229:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1214:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1214:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1206:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1253:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1264:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1249:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1249:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1272:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1278:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1268:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1268:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1242:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1242:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "1242:47:1"
},
{
"nodeType": "YulAssignment",
"src": "1298:86:1",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1370:6:1"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1379:4:1"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "1306:63:1"
},
"nodeType": "YulFunctionCall",
"src": "1306:78:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1298:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1168:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1180:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1191:4:1",
"type": ""
}
],
"src": "1078:313:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1425:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1442:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1445:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1435:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1435:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "1435:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1539:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1542:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1532:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1532:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1532:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1563:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1566:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1556:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1556:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1556:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "1397:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1634:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1644:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "1658:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1664:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "1654:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1654:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1644:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1675:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "1705:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1711:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1701:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1701:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "1679:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1752:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1766:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1780:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1788:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1776:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1776:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1766:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "1732:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1725:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1725:26:1"
},
"nodeType": "YulIf",
"src": "1722:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1855:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "1869:16:1"
},
"nodeType": "YulFunctionCall",
"src": "1869:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "1869:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "1819:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1842:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1850:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "1839:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1839:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "1816:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1816:38:1"
},
"nodeType": "YulIf",
"src": "1813:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "1618:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1627:6:1",
"type": ""
}
],
"src": "1583:320:1"
}
]
},
"contents": "{\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value0, tail)\n\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506004361061002b5760003560e01c8063cfae321714610030575b600080fd5b61003861004e565b6040516100459190610175565b60405180910390f35b6000805461005b906101c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610087906101c6565b80156100d45780601f106100a9576101008083540402835291602001916100d4565b820191906000526020600020905b8154815290600101906020018083116100b757829003601f168201915b505050505081565b600081519050919050565b600082825260208201905092915050565b60005b838110156101165780820151818401526020810190506100fb565b83811115610125576000848401525b50505050565b6000601f19601f8301169050919050565b6000610147826100dc565b61015181856100e7565b93506101618185602086016100f8565b61016a8161012b565b840191505092915050565b6000602082019050818103600083015261018f818461013c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806101de57607f821691505b6020821081036101f1576101f0610197565b5b5091905056fea2646970667358221220b55b14b87c4c80b954467feb2602a91109e76d8bb9c0dc950d350d0f295c326264736f6c634300080d0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x38 PUSH2 0x4E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x45 SWAP2 SWAP1 PUSH2 0x175 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH2 0x5B SWAP1 PUSH2 0x1C6 JUMP JUMPDEST 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 PUSH2 0x87 SWAP1 PUSH2 0x1C6 JUMP JUMPDEST DUP1 ISZERO PUSH2 0xD4 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xA9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xD4 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 0xB7 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x116 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0xFB JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x125 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x147 DUP3 PUSH2 0xDC JUMP JUMPDEST PUSH2 0x151 DUP2 DUP6 PUSH2 0xE7 JUMP JUMPDEST SWAP4 POP PUSH2 0x161 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0xF8 JUMP JUMPDEST PUSH2 0x16A DUP2 PUSH2 0x12B JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x18F DUP2 DUP5 PUSH2 0x13C JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x1DE JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x1F1 JUMPI PUSH2 0x1F0 PUSH2 0x197 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB5 JUMPDEST EQ 0xB8 PUSH29 0x4C80B954467FEB2602A91109E76D8BB9C0DC950D350D0F295C32626473 PUSH16 0x6C634300080D00330000000000000000 ",
"sourceMap": "62:75:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91:36;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:307::-;355:1;365:113;379:6;376:1;373:13;365:113;;;464:1;459:3;455:11;449:18;445:1;440:3;436:11;429:39;401:2;398:1;394:10;389:15;;365:113;;;496:6;493:1;490:13;487:101;;;576:1;567:6;562:3;558:16;551:27;487:101;336:258;287:307;;;:::o;600:102::-;641:6;692:2;688:7;683:2;676:5;672:14;668:28;658:38;;600:102;;;:::o;708:364::-;796:3;824:39;857:5;824:39;:::i;:::-;879:71;943:6;938:3;879:71;:::i;:::-;872:78;;959:52;1004:6;999:3;992:4;985:5;981:16;959:52;:::i;:::-;1036:29;1058:6;1036:29;:::i;:::-;1031:3;1027:39;1020:46;;800:272;708:364;;;;:::o;1078:313::-;1191:4;1229:2;1218:9;1214:18;1206:26;;1278:9;1272:4;1268:20;1264:1;1253:9;1249:17;1242:47;1306:78;1379:4;1370:6;1306:78;:::i;:::-;1298:86;;1078:313;;;;:::o;1397:180::-;1445:77;1442:1;1435:88;1542:4;1539:1;1532:15;1566:4;1563:1;1556:15;1583:320;1627:6;1664:1;1658:4;1654:12;1644:22;;1711:1;1705:4;1701:12;1732:18;1722:81;;1788:4;1780:6;1776:17;1766:27;;1722:81;1850:2;1842:6;1839:14;1819:18;1816:38;1813:84;;1869:18;;:::i;:::-;1813:84;1634:269;1583:320;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "111400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"greet()": "infinite"
}
},
"legacyAssembly": {
".code": [
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 62,
"end": 137,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "MLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "C"
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "48656C6C6F20776F726C64210000000000000000000000000000000000000000"
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 91,
"end": 127,
"name": "SWAP3",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ISZERO",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "REVERT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SLOAD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "MSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "KECCAK256",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "1F"
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DIV",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "DUP6",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "1F"
},
{
"begin": 62,
"end": 137,
"name": "LT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "MLOAD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "FF"
},
{
"begin": 62,
"end": 137,
"name": "NOT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "AND",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP4",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "OR",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP6",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "9"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP6",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ISZERO",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "10"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "GT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ISZERO",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "11"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "MLOAD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "10"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "11"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "7"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 62,
"end": 137,
"name": "SWAP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "13"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "13"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "14"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP3",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "GT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ISZERO",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "15"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "DUP2",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 62,
"end": 137,
"name": "ADD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "14"
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "15"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "SWAP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 7,
"end": 187,
"name": "tag",
"source": 1,
"value": "16"
},
{
"begin": 7,
"end": 187,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 55,
"end": 132,
"name": "PUSH",
"source": 1,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 52,
"end": 53,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 45,
"end": 133,
"name": "MSTORE",
"source": 1
},
{
"begin": 152,
"end": 156,
"name": "PUSH",
"source": 1,
"value": "22"
},
{
"begin": 149,
"end": 150,
"name": "PUSH",
"source": 1,
"value": "4"
},
{
"begin": 142,
"end": 157,
"name": "MSTORE",
"source": 1
},
{
"begin": 176,
"end": 180,
"name": "PUSH",
"source": 1,
"value": "24"
},
{
"begin": 173,
"end": 174,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 166,
"end": 181,
"name": "REVERT",
"source": 1
},
{
"begin": 193,
"end": 513,
"name": "tag",
"source": 1,
"value": "6"
},
{
"begin": 193,
"end": 513,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 237,
"end": 243,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 274,
"end": 275,
"name": "PUSH",
"source": 1,
"value": "2"
},
{
"begin": 268,
"end": 272,
"name": "DUP3",
"source": 1
},
{
"begin": 264,
"end": 276,
"name": "DIV",
"source": 1
},
{
"begin": 254,
"end": 276,
"name": "SWAP1",
"source": 1
},
{
"begin": 254,
"end": 276,
"name": "POP",
"source": 1
},
{
"begin": 321,
"end": 322,
"name": "PUSH",
"source": 1,
"value": "1"
},
{
"begin": 315,
"end": 319,
"name": "DUP3",
"source": 1
},
{
"begin": 311,
"end": 323,
"name": "AND",
"source": 1
},
{
"begin": 342,
"end": 360,
"name": "DUP1",
"source": 1
},
{
"begin": 332,
"end": 413,
"name": "PUSH [tag]",
"source": 1,
"value": "20"
},
{
"begin": 332,
"end": 413,
"name": "JUMPI",
"source": 1
},
{
"begin": 398,
"end": 402,
"name": "PUSH",
"source": 1,
"value": "7F"
},
{
"begin": 390,
"end": 396,
"name": "DUP3",
"source": 1
},
{
"begin": 386,
"end": 403,
"name": "AND",
"source": 1
},
{
"begin": 376,
"end": 403,
"name": "SWAP2",
"source": 1
},
{
"begin": 376,
"end": 403,
"name": "POP",
"source": 1
},
{
"begin": 332,
"end": 413,
"name": "tag",
"source": 1,
"value": "20"
},
{
"begin": 332,
"end": 413,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 460,
"end": 462,
"name": "PUSH",
"source": 1,
"value": "20"
},
{
"begin": 452,
"end": 458,
"name": "DUP3",
"source": 1
},
{
"begin": 449,
"end": 463,
"name": "LT",
"source": 1
},
{
"begin": 429,
"end": 447,
"name": "DUP2",
"source": 1
},
{
"begin": 426,
"end": 464,
"name": "SUB",
"source": 1
},
{
"begin": 423,
"end": 507,
"name": "PUSH [tag]",
"source": 1,
"value": "21"
},
{
"begin": 423,
"end": 507,
"name": "JUMPI",
"source": 1
},
{
"begin": 479,
"end": 497,
"name": "PUSH [tag]",
"source": 1,
"value": "22"
},
{
"begin": 479,
"end": 497,
"name": "PUSH [tag]",
"source": 1,
"value": "16"
},
{
"begin": 479,
"end": 497,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 479,
"end": 497,
"name": "tag",
"source": 1,
"value": "22"
},
{
"begin": 479,
"end": 497,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 423,
"end": 507,
"name": "tag",
"source": 1,
"value": "21"
},
{
"begin": 423,
"end": 507,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 244,
"end": 513,
"name": "POP",
"source": 1
},
{
"begin": 193,
"end": 513,
"name": "SWAP2",
"source": 1
},
{
"begin": 193,
"end": 513,
"name": "SWAP1",
"source": 1
},
{
"begin": 193,
"end": 513,
"name": "POP",
"source": 1
},
{
"begin": 193,
"end": 513,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "CODECOPY",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220b55b14b87c4c80b954467feb2602a91109e76d8bb9c0dc950d350d0f295c326264736f6c634300080d0033",
".code": [
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 62,
"end": 137,
"name": "MSTORE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "CALLVALUE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "ISZERO",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "REVERT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "POP",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 62,
"end": 137,
"name": "CALLDATASIZE",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "LT",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "2"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "CALLDATALOAD",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "E0"
},
{
"begin": 62,
"end": 137,
"name": "SHR",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "CFAE3217"
},
{
"begin": 62,
"end": 137,
"name": "EQ",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH [tag]",
"source": 0,
"value": "3"
},
{
"begin": 62,
"end": 137,
"name": "JUMPI",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "tag",
"source": 0,
"value": "2"
},
{
"begin": 62,
"end": 137,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 62,
"end": 137,
"name": "DUP1",
"source": 0
},
{
"begin": 62,
"end": 137,
"name": "REVERT",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "3"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "5"
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "4"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "MLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "6"
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "7"
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "6"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "MLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SUB",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "RETURN",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "5"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "8"
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "8"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "1F"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DIV",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MUL",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "MLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP3",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP3",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "10"
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "9"
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0,
"value": "[in]"
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "10"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "ISZERO",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "11"
},
{
"begin": 91,
"end": 127,
"name": "JUMPI",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "1F"
},
{
"begin": 91,
"end": 127,
"name": "LT",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "12"
},
{
"begin": 91,
"end": 127,
"name": "JUMPI",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "100"
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP4",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DIV",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MUL",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP4",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "11"
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "12"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP3",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 91,
"end": 127,
"name": "KECCAK256",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "13"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SLOAD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "MSTORE",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "1"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "20"
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP4",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "GT",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH [tag]",
"source": 0,
"value": "13"
},
{
"begin": 91,
"end": 127,
"name": "JUMPI",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP3",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP1",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SUB",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "PUSH",
"source": 0,
"value": "1F"
},
{
"begin": 91,
"end": 127,
"name": "AND",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP3",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "ADD",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "SWAP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "tag",
"source": 0,
"value": "11"
},
{
"begin": 91,
"end": 127,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "POP",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "DUP2",
"source": 0
},
{
"begin": 91,
"end": 127,
"name": "JUMP",
"source": 0,
"value": "[out]"
},
{
"begin": 7,
"end": 106,
"name": "tag",
"source": 1,
"value": "14"
},
{
"begin": 7,
"end": 106,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 59,
"end": 65,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 93,
"end": 98,
"name": "DUP2",
"source": 1
},
{
"begin": 87,
"end": 99,
"name": "MLOAD",
"source": 1
},
{
"begin": 77,
"end": 99,
"name": "SWAP1",
"source": 1
},
{
"begin": 77,
"end": 99,
"name": "POP",
"source": 1
},
{
"begin": 7,
"end": 106,
"name": "SWAP2",
"source": 1
},
{
"begin": 7,
"end": 106,
"name": "SWAP1",
"source": 1
},
{
"begin": 7,
"end": 106,
"name": "POP",
"source": 1
},
{
"begin": 7,
"end": 106,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 112,
"end": 281,
"name": "tag",
"source": 1,
"value": "15"
},
{
"begin": 112,
"end": 281,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 196,
"end": 207,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 230,
"end": 236,
"name": "DUP3",
"source": 1
},
{
"begin": 225,
"end": 228,
"name": "DUP3",
"source": 1
},
{
"begin": 218,
"end": 237,
"name": "MSTORE",
"source": 1
},
{
"begin": 270,
"end": 274,
"name": "PUSH",
"source": 1,
"value": "20"
},
{
"begin": 265,
"end": 268,
"name": "DUP3",
"source": 1
},
{
"begin": 261,
"end": 275,
"name": "ADD",
"source": 1
},
{
"begin": 246,
"end": 275,
"name": "SWAP1",
"source": 1
},
{
"begin": 246,
"end": 275,
"name": "POP",
"source": 1
},
{
"begin": 112,
"end": 281,
"name": "SWAP3",
"source": 1
},
{
"begin": 112,
"end": 281,
"name": "SWAP2",
"source": 1
},
{
"begin": 112,
"end": 281,
"name": "POP",
"source": 1
},
{
"begin": 112,
"end": 281,
"name": "POP",
"source": 1
},
{
"begin": 112,
"end": 281,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 287,
"end": 594,
"name": "tag",
"source": 1,
"value": "16"
},
{
"begin": 287,
"end": 594,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 355,
"end": 356,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 365,
"end": 478,
"name": "tag",
"source": 1,
"value": "24"
},
{
"begin": 365,
"end": 478,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 379,
"end": 385,
"name": "DUP4",
"source": 1
},
{
"begin": 376,
"end": 377,
"name": "DUP2",
"source": 1
},
{
"begin": 373,
"end": 386,
"name": "LT",
"source": 1
},
{
"begin": 365,
"end": 478,
"name": "ISZERO",
"source": 1
},
{
"begin": 365,
"end": 478,
"name": "PUSH [tag]",
"source": 1,
"value": "26"
},
{
"begin": 365,
"end": 478,
"name": "JUMPI",
"source": 1
},
{
"begin": 464,
"end": 465,
"name": "DUP1",
"source": 1
},
{
"begin": 459,
"end": 462,
"name": "DUP3",
"source": 1
},
{
"begin": 455,
"end": 466,
"name": "ADD",
"source": 1
},
{
"begin": 449,
"end": 467,
"name": "MLOAD",
"source": 1
},
{
"begin": 445,
"end": 446,
"name": "DUP2",
"source": 1
},
{
"begin": 440,
"end": 443,
"name": "DUP5",
"source": 1
},
{
"begin": 436,
"end": 447,
"name": "ADD",
"source": 1
},
{
"begin": 429,
"end": 468,
"name": "MSTORE",
"source": 1
},
{
"begin": 401,
"end": 403,
"name": "PUSH",
"source": 1,
"value": "20"
},
{
"begin": 398,
"end": 399,
"name": "DUP2",
"source": 1
},
{
"begin": 394,
"end": 404,
"name": "ADD",
"source": 1
},
{
"begin": 389,
"end": 404,
"name": "SWAP1",
"source": 1
},
{
"begin": 389,
"end": 404,
"name": "POP",
"source": 1
},
{
"begin": 365,
"end": 478,
"name": "PUSH [tag]",
"source": 1,
"value": "24"
},
{
"begin": 365,
"end": 478,
"name": "JUMP",
"source": 1
},
{
"begin": 365,
"end": 478,
"name": "tag",
"source": 1,
"value": "26"
},
{
"begin": 365,
"end": 478,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 496,
"end": 502,
"name": "DUP4",
"source": 1
},
{
"begin": 493,
"end": 494,
"name": "DUP2",
"source": 1
},
{
"begin": 490,
"end": 503,
"name": "GT",
"source": 1
},
{
"begin": 487,
"end": 588,
"name": "ISZERO",
"source": 1
},
{
"begin": 487,
"end": 588,
"name": "PUSH [tag]",
"source": 1,
"value": "27"
},
{
"begin": 487,
"end": 588,
"name": "JUMPI",
"source": 1
},
{
"begin": 576,
"end": 577,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 567,
"end": 573,
"name": "DUP5",
"source": 1
},
{
"begin": 562,
"end": 565,
"name": "DUP5",
"source": 1
},
{
"begin": 558,
"end": 574,
"name": "ADD",
"source": 1
},
{
"begin": 551,
"end": 578,
"name": "MSTORE",
"source": 1
},
{
"begin": 487,
"end": 588,
"name": "tag",
"source": 1,
"value": "27"
},
{
"begin": 487,
"end": 588,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 336,
"end": 594,
"name": "POP",
"source": 1
},
{
"begin": 287,
"end": 594,
"name": "POP",
"source": 1
},
{
"begin": 287,
"end": 594,
"name": "POP",
"source": 1
},
{
"begin": 287,
"end": 594,
"name": "POP",
"source": 1
},
{
"begin": 287,
"end": 594,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 600,
"end": 702,
"name": "tag",
"source": 1,
"value": "17"
},
{
"begin": 600,
"end": 702,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 641,
"end": 647,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 692,
"end": 694,
"name": "PUSH",
"source": 1,
"value": "1F"
},
{
"begin": 688,
"end": 695,
"name": "NOT",
"source": 1
},
{
"begin": 683,
"end": 685,
"name": "PUSH",
"source": 1,
"value": "1F"
},
{
"begin": 676,
"end": 681,
"name": "DUP4",
"source": 1
},
{
"begin": 672,
"end": 686,
"name": "ADD",
"source": 1
},
{
"begin": 668,
"end": 696,
"name": "AND",
"source": 1
},
{
"begin": 658,
"end": 696,
"name": "SWAP1",
"source": 1
},
{
"begin": 658,
"end": 696,
"name": "POP",
"source": 1
},
{
"begin": 600,
"end": 702,
"name": "SWAP2",
"source": 1
},
{
"begin": 600,
"end": 702,
"name": "SWAP1",
"source": 1
},
{
"begin": 600,
"end": 702,
"name": "POP",
"source": 1
},
{
"begin": 600,
"end": 702,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 708,
"end": 1072,
"name": "tag",
"source": 1,
"value": "18"
},
{
"begin": 708,
"end": 1072,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 796,
"end": 799,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 824,
"end": 863,
"name": "PUSH [tag]",
"source": 1,
"value": "30"
},
{
"begin": 857,
"end": 862,
"name": "DUP3",
"source": 1
},
{
"begin": 824,
"end": 863,
"name": "PUSH [tag]",
"source": 1,
"value": "14"
},
{
"begin": 824,
"end": 863,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 824,
"end": 863,
"name": "tag",
"source": 1,
"value": "30"
},
{
"begin": 824,
"end": 863,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 879,
"end": 950,
"name": "PUSH [tag]",
"source": 1,
"value": "31"
},
{
"begin": 943,
"end": 949,
"name": "DUP2",
"source": 1
},
{
"begin": 938,
"end": 941,
"name": "DUP6",
"source": 1
},
{
"begin": 879,
"end": 950,
"name": "PUSH [tag]",
"source": 1,
"value": "15"
},
{
"begin": 879,
"end": 950,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 879,
"end": 950,
"name": "tag",
"source": 1,
"value": "31"
},
{
"begin": 879,
"end": 950,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 872,
"end": 950,
"name": "SWAP4",
"source": 1
},
{
"begin": 872,
"end": 950,
"name": "POP",
"source": 1
},
{
"begin": 959,
"end": 1011,
"name": "PUSH [tag]",
"source": 1,
"value": "32"
},
{
"begin": 1004,
"end": 1010,
"name": "DUP2",
"source": 1
},
{
"begin": 999,
"end": 1002,
"name": "DUP6",
"source": 1
},
{
"begin": 992,
"end": 996,
"name": "PUSH",
"source": 1,
"value": "20"
},
{
"begin": 985,
"end": 990,
"name": "DUP7",
"source": 1
},
{
"begin": 981,
"end": 997,
"name": "ADD",
"source": 1
},
{
"begin": 959,
"end": 1011,
"name": "PUSH [tag]",
"source": 1,
"value": "16"
},
{
"begin": 959,
"end": 1011,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 959,
"end": 1011,
"name": "tag",
"source": 1,
"value": "32"
},
{
"begin": 959,
"end": 1011,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1036,
"end": 1065,
"name": "PUSH [tag]",
"source": 1,
"value": "33"
},
{
"begin": 1058,
"end": 1064,
"name": "DUP2",
"source": 1
},
{
"begin": 1036,
"end": 1065,
"name": "PUSH [tag]",
"source": 1,
"value": "17"
},
{
"begin": 1036,
"end": 1065,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 1036,
"end": 1065,
"name": "tag",
"source": 1,
"value": "33"
},
{
"begin": 1036,
"end": 1065,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1031,
"end": 1034,
"name": "DUP5",
"source": 1
},
{
"begin": 1027,
"end": 1066,
"name": "ADD",
"source": 1
},
{
"begin": 1020,
"end": 1066,
"name": "SWAP2",
"source": 1
},
{
"begin": 1020,
"end": 1066,
"name": "POP",
"source": 1
},
{
"begin": 800,
"end": 1072,
"name": "POP",
"source": 1
},
{
"begin": 708,
"end": 1072,
"name": "SWAP3",
"source": 1
},
{
"begin": 708,
"end": 1072,
"name": "SWAP2",
"source": 1
},
{
"begin": 708,
"end": 1072,
"name": "POP",
"source": 1
},
{
"begin": 708,
"end": 1072,
"name": "POP",
"source": 1
},
{
"begin": 708,
"end": 1072,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 1078,
"end": 1391,
"name": "tag",
"source": 1,
"value": "7"
},
{
"begin": 1078,
"end": 1391,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1191,
"end": 1195,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 1229,
"end": 1231,
"name": "PUSH",
"source": 1,
"value": "20"
},
{
"begin": 1218,
"end": 1227,
"name": "DUP3",
"source": 1
},
{
"begin": 1214,
"end": 1232,
"name": "ADD",
"source": 1
},
{
"begin": 1206,
"end": 1232,
"name": "SWAP1",
"source": 1
},
{
"begin": 1206,
"end": 1232,
"name": "POP",
"source": 1
},
{
"begin": 1278,
"end": 1287,
"name": "DUP2",
"source": 1
},
{
"begin": 1272,
"end": 1276,
"name": "DUP2",
"source": 1
},
{
"begin": 1268,
"end": 1288,
"name": "SUB",
"source": 1
},
{
"begin": 1264,
"end": 1265,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 1253,
"end": 1262,
"name": "DUP4",
"source": 1
},
{
"begin": 1249,
"end": 1266,
"name": "ADD",
"source": 1
},
{
"begin": 1242,
"end": 1289,
"name": "MSTORE",
"source": 1
},
{
"begin": 1306,
"end": 1384,
"name": "PUSH [tag]",
"source": 1,
"value": "35"
},
{
"begin": 1379,
"end": 1383,
"name": "DUP2",
"source": 1
},
{
"begin": 1370,
"end": 1376,
"name": "DUP5",
"source": 1
},
{
"begin": 1306,
"end": 1384,
"name": "PUSH [tag]",
"source": 1,
"value": "18"
},
{
"begin": 1306,
"end": 1384,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 1306,
"end": 1384,
"name": "tag",
"source": 1,
"value": "35"
},
{
"begin": 1306,
"end": 1384,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1298,
"end": 1384,
"name": "SWAP1",
"source": 1
},
{
"begin": 1298,
"end": 1384,
"name": "POP",
"source": 1
},
{
"begin": 1078,
"end": 1391,
"name": "SWAP3",
"source": 1
},
{
"begin": 1078,
"end": 1391,
"name": "SWAP2",
"source": 1
},
{
"begin": 1078,
"end": 1391,
"name": "POP",
"source": 1
},
{
"begin": 1078,
"end": 1391,
"name": "POP",
"source": 1
},
{
"begin": 1078,
"end": 1391,
"name": "JUMP",
"source": 1,
"value": "[out]"
},
{
"begin": 1397,
"end": 1577,
"name": "tag",
"source": 1,
"value": "19"
},
{
"begin": 1397,
"end": 1577,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1445,
"end": 1522,
"name": "PUSH",
"source": 1,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 1442,
"end": 1443,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 1435,
"end": 1523,
"name": "MSTORE",
"source": 1
},
{
"begin": 1542,
"end": 1546,
"name": "PUSH",
"source": 1,
"value": "22"
},
{
"begin": 1539,
"end": 1540,
"name": "PUSH",
"source": 1,
"value": "4"
},
{
"begin": 1532,
"end": 1547,
"name": "MSTORE",
"source": 1
},
{
"begin": 1566,
"end": 1570,
"name": "PUSH",
"source": 1,
"value": "24"
},
{
"begin": 1563,
"end": 1564,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 1556,
"end": 1571,
"name": "REVERT",
"source": 1
},
{
"begin": 1583,
"end": 1903,
"name": "tag",
"source": 1,
"value": "9"
},
{
"begin": 1583,
"end": 1903,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1627,
"end": 1633,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 1664,
"end": 1665,
"name": "PUSH",
"source": 1,
"value": "2"
},
{
"begin": 1658,
"end": 1662,
"name": "DUP3",
"source": 1
},
{
"begin": 1654,
"end": 1666,
"name": "DIV",
"source": 1
},
{
"begin": 1644,
"end": 1666,
"name": "SWAP1",
"source": 1
},
{
"begin": 1644,
"end": 1666,
"name": "POP",
"source": 1
},
{
"begin": 1711,
"end": 1712,
"name": "PUSH",
"source": 1,
"value": "1"
},
{
"begin": 1705,
"end": 1709,
"name": "DUP3",
"source": 1
},
{
"begin": 1701,
"end": 1713,
"name": "AND",
"source": 1
},
{
"begin": 1732,
"end": 1750,
"name": "DUP1",
"source": 1
},
{
"begin": 1722,
"end": 1803,
"name": "PUSH [tag]",
"source": 1,
"value": "38"
},
{
"begin": 1722,
"end": 1803,
"name": "JUMPI",
"source": 1
},
{
"begin": 1788,
"end": 1792,
"name": "PUSH",
"source": 1,
"value": "7F"
},
{
"begin": 1780,
"end": 1786,
"name": "DUP3",
"source": 1
},
{
"begin": 1776,
"end": 1793,
"name": "AND",
"source": 1
},
{
"begin": 1766,
"end": 1793,
"name": "SWAP2",
"source": 1
},
{
"begin": 1766,
"end": 1793,
"name": "POP",
"source": 1
},
{
"begin": 1722,
"end": 1803,
"name": "tag",
"source": 1,
"value": "38"
},
{
"begin": 1722,
"end": 1803,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1850,
"end": 1852,
"name": "PUSH",
"source": 1,
"value": "20"
},
{
"begin": 1842,
"end": 1848,
"name": "DUP3",
"source": 1
},
{
"begin": 1839,
"end": 1853,
"name": "LT",
"source": 1
},
{
"begin": 1819,
"end": 1837,
"name": "DUP2",
"source": 1
},
{
"begin": 1816,
"end": 1854,
"name": "SUB",
"source": 1
},
{
"begin": 1813,
"end": 1897,
"name": "PUSH [tag]",
"source": 1,
"value": "39"
},
{
"begin": 1813,
"end": 1897,
"name": "JUMPI",
"source": 1
},
{
"begin": 1869,
"end": 1887,
"name": "PUSH [tag]",
"source": 1,
"value": "40"
},
{
"begin": 1869,
"end": 1887,
"name": "PUSH [tag]",
"source": 1,
"value": "19"
},
{
"begin": 1869,
"end": 1887,
"name": "JUMP",
"source": 1,
"value": "[in]"
},
{
"begin": 1869,
"end": 1887,
"name": "tag",
"source": 1,
"value": "40"
},
{
"begin": 1869,
"end": 1887,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1813,
"end": 1897,
"name": "tag",
"source": 1,
"value": "39"
},
{
"begin": 1813,
"end": 1897,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 1634,
"end": 1903,
"name": "POP",
"source": 1
},
{
"begin": 1583,
"end": 1903,
"name": "SWAP2",
"source": 1
},
{
"begin": 1583,
"end": 1903,
"name": "SWAP1",
"source": 1
},
{
"begin": 1583,
"end": 1903,
"name": "POP",
"source": 1
},
{
"begin": 1583,
"end": 1903,
"name": "JUMP",
"source": 1,
"value": "[out]"
}
]
}
}
},
"methodIdentifiers": {
"greet()": "cfae3217"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"greet\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Day3.sol\":\"helloWorld\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/Day3.sol\":{\"keccak256\":\"0x6c46c48f96d085c07e594991786d6a5a1206b67cba1f6d3283db592464988165\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8339995293e43ed0fc40f8a51b7394b6024adf6479e7fba1c181f7b031d25d16\",\"dweb:/ipfs/QmRgcAZcg8gudb53tPTJ3nzPgLTuqtShCgDqzyHyV9ZVNd\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 4,
"contract": "contracts/Day3.sol:helloWorld",
"label": "greet",
"offset": 0,
"slot": "0",
"type": "t_string_storage"
}
],
"types": {
"t_string_storage": {
"encoding": "bytes",
"label": "string",
"numberOfBytes": "32"
}
}
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/Day3.sol": {
"ast": {
"absolutePath": "contracts/Day3.sol",
"exportedSymbols": {
"helloWorld": [
5
]
},
"id": 6,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"0.8",
".13"
],
"nodeType": "PragmaDirective",
"src": "35:23:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "helloWorld",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 5,
"linearizedBaseContracts": [
5
],
"name": "helloWorld",
"nameLocation": "71:10:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"functionSelector": "cfae3217",
"id": 4,
"mutability": "mutable",
"name": "greet",
"nameLocation": "105:5:0",
"nodeType": "VariableDeclaration",
"scope": 5,
"src": "91:36:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 2,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "91:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"hexValue": "48656c6c6f20776f726c6421",
"id": 3,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "113:14:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_ecd0e108a98e192af1d2c25055f4e3bed784b5c877204e73219a5203251feaab",
"typeString": "literal_string \"Hello world!\""
},
"value": "Hello world!"
},
"visibility": "public"
}
],
"scope": 6,
"src": "62:75:0",
"usedErrors": []
}
],
"src": "35:102: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": {
"functionDebugData": {
"extract_byte_array_length": {
"entryPoint": 308,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x22": {
"entryPoint": 261,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:516:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "35:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "52:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "55:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "45:6:1"
},
"nodeType": "YulFunctionCall",
"src": "45:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "45:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "149:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "152:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "142:6:1"
},
"nodeType": "YulFunctionCall",
"src": "142:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "142:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "173:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "176:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "166:6:1"
},
"nodeType": "YulFunctionCall",
"src": "166:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "166:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "7:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "244:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "254:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "268:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "274:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "264:3:1"
},
"nodeType": "YulFunctionCall",
"src": "264:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "254:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "285:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "315:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "321:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "311:3:1"
},
"nodeType": "YulFunctionCall",
"src": "311:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "289:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "362:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "376:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "390:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "398:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "386:3:1"
},
"nodeType": "YulFunctionCall",
"src": "386:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "376:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "342:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "335:6:1"
},
"nodeType": "YulFunctionCall",
"src": "335:26:1"
},
"nodeType": "YulIf",
"src": "332:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "465:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "479:16:1"
},
"nodeType": "YulFunctionCall",
"src": "479:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "479:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "429:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "452:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "460:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "449:2:1"
},
"nodeType": "YulFunctionCall",
"src": "449:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "426:2:1"
},
"nodeType": "YulFunctionCall",
"src": "426:38:1"
},
"nodeType": "YulIf",
"src": "423:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "228:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "237:6:1",
"type": ""
}
],
"src": "193:320:1"
}
]
},
"contents": "{\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "60806040526040518060400160405280600c81526020017f48656c6c6f20776f726c642100000000000000000000000000000000000000008152506000908051906020019061004f929190610062565b5034801561005c57600080fd5b50610165565b82805461006e90610134565b90600052602060002090601f01602090048101928261009057600085556100d7565b82601f106100a957805160ff19168380011785556100d7565b828001600101855582156100d7579182015b828111156100d65782518255916020019190600101906100bb565b5b5090506100e491906100e8565b5090565b5b808211156101015760008160009055506001016100e9565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061014c57607f821691505b60208210810361015f5761015e610105565b5b50919050565b61022d806101746000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063cfae321714610030575b600080fd5b61003861004e565b6040516100459190610175565b60405180910390f35b6000805461005b906101c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610087906101c6565b80156100d45780601f106100a9576101008083540402835291602001916100d4565b820191906000526020600020905b8154815290600101906020018083116100b757829003601f168201915b505050505081565b600081519050919050565b600082825260208201905092915050565b60005b838110156101165780820151818401526020810190506100fb565b83811115610125576000848401525b50505050565b6000601f19601f8301169050919050565b6000610147826100dc565b61015181856100e7565b93506101618185602086016100f8565b61016a8161012b565b840191505092915050565b6000602082019050818103600083015261018f818461013c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806101de57607f821691505b6020821081036101f1576101f0610197565b5b5091905056fea2646970667358221220b55b14b87c4c80b954467feb2602a91109e76d8bb9c0dc950d350d0f295c326264736f6c634300080d0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0xC DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x48656C6C6F20776F726C64210000000000000000000000000000000000000000 DUP2 MSTORE POP PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x4F SWAP3 SWAP2 SWAP1 PUSH2 0x62 JUMP JUMPDEST POP CALLVALUE DUP1 ISZERO PUSH2 0x5C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x165 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x6E SWAP1 PUSH2 0x134 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x90 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0xD7 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0xA9 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0xD7 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0xD7 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xD6 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xBB JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xE4 SWAP2 SWAP1 PUSH2 0xE8 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x101 JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0xE9 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x14C JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x15F JUMPI PUSH2 0x15E PUSH2 0x105 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x22D DUP1 PUSH2 0x174 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x38 PUSH2 0x4E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x45 SWAP2 SWAP1 PUSH2 0x175 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH2 0x5B SWAP1 PUSH2 0x1C6 JUMP JUMPDEST 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 PUSH2 0x87 SWAP1 PUSH2 0x1C6 JUMP JUMPDEST DUP1 ISZERO PUSH2 0xD4 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xA9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xD4 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 0xB7 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x116 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0xFB JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x125 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x147 DUP3 PUSH2 0xDC JUMP JUMPDEST PUSH2 0x151 DUP2 DUP6 PUSH2 0xE7 JUMP JUMPDEST SWAP4 POP PUSH2 0x161 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0xF8 JUMP JUMPDEST PUSH2 0x16A DUP2 PUSH2 0x12B JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x18F DUP2 DUP5 PUSH2 0x13C JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x1DE JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x1F1 JUMPI PUSH2 0x1F0 PUSH2 0x197 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB5 JUMPDEST EQ 0xB8 PUSH29 0x4C80B954467FEB2602A91109E76D8BB9C0DC950D350D0F295C32626473 PUSH16 0x6C634300080D00330000000000000000 ",
"sourceMap": "62:75:0:-:0;;;91:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62:75;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:180:1:-;55:77;52:1;45:88;152:4;149:1;142:15;176:4;173:1;166:15;193:320;237:6;274:1;268:4;264:12;254:22;;321:1;315:4;311:12;342:18;332:81;;398:4;390:6;386:17;376:27;;332:81;460:2;452:6;449:14;429:18;426:38;423:84;;479:18;;:::i;:::-;423:84;244:269;193:320;;;:::o;62:75:0:-;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@greet_4": {
"entryPoint": 78,
"id": 4,
"parameterSlots": 0,
"returnSlots": 0
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": {
"entryPoint": 316,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 373,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 220,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 231,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"copy_memory_to_memory": {
"entryPoint": 248,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 454,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x22": {
"entryPoint": 407,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 299,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:1906:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "66:40:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "77:22:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "93:5:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "87:5:1"
},
"nodeType": "YulFunctionCall",
"src": "87:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "77:6:1"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "49:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "59:6:1",
"type": ""
}
],
"src": "7:99:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "208:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "225:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "230:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "218:6:1"
},
"nodeType": "YulFunctionCall",
"src": "218:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "218:19:1"
},
{
"nodeType": "YulAssignment",
"src": "246:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "265:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "270:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "261:3:1"
},
"nodeType": "YulFunctionCall",
"src": "261:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "246:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "180:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "185:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "196:11:1",
"type": ""
}
],
"src": "112:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "336:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "346:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "355:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "350:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "415:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "440:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "445:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "436:3:1"
},
"nodeType": "YulFunctionCall",
"src": "436:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "459:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "464:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "455:3:1"
},
"nodeType": "YulFunctionCall",
"src": "455:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "449:5:1"
},
"nodeType": "YulFunctionCall",
"src": "449:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "429:6:1"
},
"nodeType": "YulFunctionCall",
"src": "429:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "429:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "376:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "379:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "373:2:1"
},
"nodeType": "YulFunctionCall",
"src": "373:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "387:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "389:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "398:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "401:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "394:3:1"
},
"nodeType": "YulFunctionCall",
"src": "394:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "389:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "369:3:1",
"statements": []
},
"src": "365:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "512:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "562:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "567:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "558:3:1"
},
"nodeType": "YulFunctionCall",
"src": "558:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "576:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "551:6:1"
},
"nodeType": "YulFunctionCall",
"src": "551:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "551:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "493:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "496:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "490:2:1"
},
"nodeType": "YulFunctionCall",
"src": "490:13:1"
},
"nodeType": "YulIf",
"src": "487:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "318:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "323:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "328:6:1",
"type": ""
}
],
"src": "287:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "648:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "658:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "676:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "683:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "672:3:1"
},
"nodeType": "YulFunctionCall",
"src": "672:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "692:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "688:3:1"
},
"nodeType": "YulFunctionCall",
"src": "688:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "668:3:1"
},
"nodeType": "YulFunctionCall",
"src": "668:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "658:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "631:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "641:6:1",
"type": ""
}
],
"src": "600:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "800:272:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "810:53:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "857:5:1"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "824:32:1"
},
"nodeType": "YulFunctionCall",
"src": "824:39:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "814:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "872:78:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "938:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "943:6:1"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "879:58:1"
},
"nodeType": "YulFunctionCall",
"src": "879:71:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "872:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "985:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "992:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "981:3:1"
},
"nodeType": "YulFunctionCall",
"src": "981:16:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "999:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1004:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "959:21:1"
},
"nodeType": "YulFunctionCall",
"src": "959:52:1"
},
"nodeType": "YulExpressionStatement",
"src": "959:52:1"
},
{
"nodeType": "YulAssignment",
"src": "1020:46:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1031:3:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1058:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1036:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1036:29:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1027:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1027:39:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1020:3:1"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "781:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "788:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "796:3:1",
"type": ""
}
],
"src": "708:364:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1196:195:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1206:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1218:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1229:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1214:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1214:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1206:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1253:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1264:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1249:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1249:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1272:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1278:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1268:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1268:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1242:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1242:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "1242:47:1"
},
{
"nodeType": "YulAssignment",
"src": "1298:86:1",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1370:6:1"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1379:4:1"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "1306:63:1"
},
"nodeType": "YulFunctionCall",
"src": "1306:78:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1298:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1168:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1180:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1191:4:1",
"type": ""
}
],
"src": "1078:313:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1425:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1442:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1445:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1435:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1435:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "1435:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1539:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1542:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1532:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1532:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1532:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1563:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1566:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1556:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1556:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1556:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "1397:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1634:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1644:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "1658:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1664:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "1654:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1654:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1644:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1675:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "1705:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1711:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1701:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1701:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "1679:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1752:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1766:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1780:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1788:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1776:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1776:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1766:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "1732:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1725:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1725:26:1"
},
"nodeType": "YulIf",
"src": "1722:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1855:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "1869:16:1"
},
"nodeType": "YulFunctionCall",
"src": "1869:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "1869:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "1819:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1842:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1850:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "1839:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1839:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "1816:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1816:38:1"
},
"nodeType": "YulIf",
"src": "1813:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "1618:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1627:6:1",
"type": ""
}
],
"src": "1583:320:1"
}
]
},
"contents": "{\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value0, tail)\n\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506004361061002b5760003560e01c8063cfae321714610030575b600080fd5b61003861004e565b6040516100459190610175565b60405180910390f35b6000805461005b906101c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610087906101c6565b80156100d45780601f106100a9576101008083540402835291602001916100d4565b820191906000526020600020905b8154815290600101906020018083116100b757829003601f168201915b505050505081565b600081519050919050565b600082825260208201905092915050565b60005b838110156101165780820151818401526020810190506100fb565b83811115610125576000848401525b50505050565b6000601f19601f8301169050919050565b6000610147826100dc565b61015181856100e7565b93506101618185602086016100f8565b61016a8161012b565b840191505092915050565b6000602082019050818103600083015261018f818461013c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806101de57607f821691505b6020821081036101f1576101f0610197565b5b5091905056fea2646970667358221220b55b14b87c4c80b954467feb2602a91109e76d8bb9c0dc950d350d0f295c326264736f6c634300080d0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xCFAE3217 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x38 PUSH2 0x4E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x45 SWAP2 SWAP1 PUSH2 0x175 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH2 0x5B SWAP1 PUSH2 0x1C6 JUMP JUMPDEST 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 PUSH2 0x87 SWAP1 PUSH2 0x1C6 JUMP JUMPDEST DUP1 ISZERO PUSH2 0xD4 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xA9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xD4 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 0xB7 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x116 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0xFB JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x125 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x147 DUP3 PUSH2 0xDC JUMP JUMPDEST PUSH2 0x151 DUP2 DUP6 PUSH2 0xE7 JUMP JUMPDEST SWAP4 POP PUSH2 0x161 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0xF8 JUMP JUMPDEST PUSH2 0x16A DUP2 PUSH2 0x12B JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x18F DUP2 DUP5 PUSH2 0x13C JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x1DE JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x1F1 JUMPI PUSH2 0x1F0 PUSH2 0x197 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB5 JUMPDEST EQ 0xB8 PUSH29 0x4C80B954467FEB2602A91109E76D8BB9C0DC950D350D0F295C32626473 PUSH16 0x6C634300080D00330000000000000000 ",
"sourceMap": "62:75:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91:36;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:307::-;355:1;365:113;379:6;376:1;373:13;365:113;;;464:1;459:3;455:11;449:18;445:1;440:3;436:11;429:39;401:2;398:1;394:10;389:15;;365:113;;;496:6;493:1;490:13;487:101;;;576:1;567:6;562:3;558:16;551:27;487:101;336:258;287:307;;;:::o;600:102::-;641:6;692:2;688:7;683:2;676:5;672:14;668:28;658:38;;600:102;;;:::o;708:364::-;796:3;824:39;857:5;824:39;:::i;:::-;879:71;943:6;938:3;879:71;:::i;:::-;872:78;;959:52;1004:6;999:3;992:4;985:5;981:16;959:52;:::i;:::-;1036:29;1058:6;1036:29;:::i;:::-;1031:3;1027:39;1020:46;;800:272;708:364;;;;:::o;1078:313::-;1191:4;1229:2;1218:9;1214:18;1206:26;;1278:9;1272:4;1268:20;1264:1;1253:9;1249:17;1242:47;1306:78;1379:4;1370:6;1306:78;:::i;:::-;1298:86;;1078:313;;;;:::o;1397:180::-;1445:77;1442:1;1435:88;1542:4;1539:1;1532:15;1566:4;1563:1;1556:15;1583:320;1627:6;1664:1;1658:4;1654:12;1644:22;;1711:1;1705:4;1701:12;1732:18;1722:81;;1788:4;1780:6;1776:17;1766:27;;1722:81;1850:2;1842:6;1839:14;1819:18;1816:38;1813:84;;1869:18;;:::i;:::-;1813:84;1634:269;1583:320;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "111400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"greet()": "infinite"
}
},
"methodIdentifiers": {
"greet()": "cfae3217"
}
},
"abi": [
{
"inputs": [],
"name": "greet",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.13+commit.abaa5c0e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"name": "greet",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/Day3.sol": "helloWorld"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/Day3.sol": {
"keccak256": "0x6c46c48f96d085c07e594991786d6a5a1206b67cba1f6d3283db592464988165",
"license": "MIT",
"urls": [
"bzz-raw://8339995293e43ed0fc40f8a51b7394b6024adf6479e7fba1c181f7b031d25d16",
"dweb:/ipfs/QmRgcAZcg8gudb53tPTJ3nzPgLTuqtShCgDqzyHyV9ZVNd"
]
}
},
"version": 1
}
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
contract helloWorld {
string public greet = "Hello world!";
}
// 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