Guest User

output remove entrypoint specification

a guest
Oct 2nd, 2020
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (venv) $ poetry run python3 test_collatz.py
  2. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-node identity generate 0.0 --data-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-node.w6gut31r
  3. Generating a new identity... (level: 0.00)
  4. Stored the new identity (idqruMUqR1h2n3wYPhQgCE2MY4rcCj) into '/var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-node.w6gut31r/identity.json'.
  5.  
  6. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-node config init --data-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-node.w6gut31r --net-addr 127.0.0.1:19730 --rpc-addr 127.0.0.1:18730 --expected-pow 0.0 --connections 500 --bootstrap-threshold 0 --private-mode --network sandbox
  7. Created /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-node.w6gut31r/config.json for network: sandbox.
  8.  
  9. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-node run --data-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-node.w6gut31r --no-bootstrap-peers --connections 500 --bootstrap-threshold 0 --private-mode --network sandbox --peer 127.0.0.1:19730 --peer 127.0.0.1:19731 --peer 127.0.0.1:19732 --peer 127.0.0.1:19733 --peer 127.0.0.1:19734 --peer 127.0.0.1:19735 --peer 127.0.0.1:19736 --peer 127.0.0.1:19737 --peer 127.0.0.1:19738 --peer 127.0.0.1:19739 --peer 127.0.0.1:19740 --peer 127.0.0.1:19741 --peer 127.0.0.1:19742 --peer 127.0.0.1:19743 --peer 127.0.0.1:19744 --peer 127.0.0.1:19745 --peer 127.0.0.1:19746 --peer 127.0.0.1:19747 --peer 127.0.0.1:19748 --peer 127.0.0.1:19749 --peer 127.0.0.1:19750 --peer 127.0.0.1:19751 --peer 127.0.0.1:19752 --peer 127.0.0.1:19753 --peer 127.0.0.1:19754 --peer 127.0.0.1:19755 --peer 127.0.0.1:19756 --peer 127.0.0.1:19757 --peer 127.0.0.1:19758 --peer 127.0.0.1:19759 --peer 127.0.0.1:19760 --peer 127.0.0.1:19761 --peer 127.0.0.1:19762 --peer 127.0.0.1:19763 --peer 127.0.0.1:19764 --peer 127.0.0.1:19765 --peer 127.0.0.1:19766 --peer 127.0.0.1:19767 --peer 127.0.0.1:19768 --peer 127.0.0.1:19769 --peer 127.0.0.1:19770 --peer 127.0.0.1:19771 --peer 127.0.0.1:19772 --peer 127.0.0.1:19773 --peer 127.0.0.1:19774
  10. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 rpc get /network/version
  11. { "chain_name": "TEZOS", "distributed_db_version": 0, "p2p_version": 1 }
  12.  
  13. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 -w none config update
  14. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key bootstrap1 unencrypted:edsk3gUfUPyBSfrS9CCgmCiQsTCHGkviBDusMxDJstFtojtc1zcpsh
  15. Tezos address added: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  16.  
  17. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key bootstrap2 unencrypted:edsk39qAm1fiMjgmPkw1EgQYkMzkJezLNewd7PLNHTkr6w9XA2zdfo
  18. Tezos address added: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN
  19.  
  20. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key bootstrap3 unencrypted:edsk4ArLQgBTLWG5FJmnGnT689VKoqhXwmDPBuGx3z4cvwU9MmrPZZ
  21. Tezos address added: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU
  22.  
  23. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key bootstrap4 unencrypted:edsk2uqQB9AY4FvioK2YMdfmyMrer5R8mGFyuaLLFfSRo8EoyNdht3
  24. Tezos address added: tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv
  25.  
  26. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key bootstrap5 unencrypted:edsk4QLrcijEffxV31gGdN2HU7UpyJjA8drFoNcmnB28n89YjPNRFm
  27. Tezos address added: tz1ddb9NMYHZi5UzPdzTZMYQQZoMub195zgv
  28.  
  29. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key baker1_key unencrypted:edsk432L71B91i1sE8rQxPDMo2Yxo4qaYqhktvpt8yovaMpo1NUbBt
  30. Tezos address added: tz1UJbFsTQfdpa1qYrqHG9Ykw834AXi5WqRR
  31.  
  32. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key baker2_key unencrypted:edsk3jjD4cLvE1t3SiZKCRiH9SXnJ4jHEsVpfcuRwfe7sfbnsMGX6f
  33. Tezos address added: tz1fWJ2oeeG6h2r61XY1wen2sV87AvCqGjAU
  34.  
  35. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key baker3_key unencrypted:edsk3EVDFeDsefk1UoWWhDhnBpERhAwqHbVzWnBwA4tdUL8aBhw7RC
  36. Tezos address added: tz1SERFDUknkjJTas8sUco7dskxWrUWhTc2s
  37.  
  38. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key baker4_key unencrypted:edsk2rAmeBDrQ5d1FhDoTdifMvBsqSosmPSBhxL74huszZhfMFtiKb
  39. Tezos address added: tz1eJ9yR95LmJgVrGLvgt56T6ngCFcgjLo2S
  40.  
  41. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key baker5_key unencrypted:edsk4Ssc63dnYJUptVMaKfmHLJNMBYv9piYiRCiYjcH3gacKWP1z3v
  42. Tezos address added: tz1cwoRFe3BzJv9nZZBA5fk8uV6w9AVVrBF9
  43.  
  44. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 import secret key activator unencrypted:edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6
  45. Tezos address added: tz1TGu6TN5GSez2ndXXeDX6LgUDvLzPLqgYV
  46.  
  47. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 -block genesis activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK with fitness 1 and key activator and parameters /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tmpm84a0zjh --timestamp 2020-10-02T21:15:28Z
  48. Injected BMTnU1p5K2cB
  49.  
  50. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 remember contract baker1 SG1fpFaowYY8G7PfkYdKkGmsMziHKUfrHRHW
  51. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 remember contract baker2 SG1TLmKJHVJxQosY6iN21AW77HsAapdupxnR
  52. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 remember contract baker3 SG1hExdK69Z2RZkkQjKtLG6H4L4FGTZeGKHu
  53. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 remember contract baker4 SG1mHgeWHGMnCUMJ8jZ1Cdh3DkWEcQ88tziJ
  54. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 remember contract baker5 SG1jfZeHRzeWAM1T4zrwunEyUpwWc82D4tbv
  55. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-baker-alpha -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://127.0.0.1:18730 run with local node /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-node.w6gut31r baker5
  56. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 originate contract even_contract transferring 0 from bootstrap1 running collatz_even.tz --init Unit --burn-cap 9
  57. Node is bootstrapped.
  58. Estimated gas: 13465000 units (will add 100000 for safety)
  59. Estimated storage: 376 bytes added (will add 20 for safety)
  60. Operation successfully injected in the node.
  61. Operation hash is 'opGyqrFvAV8ws5fBruZroouFfwWoyrUx2Zt6EUbXLUMczz53JrQ'
  62. NOT waiting for the operation to be included.
  63. Use command
  64. tezos-client wait for opGyqrFvAV8ws5fBruZroouFfwWoyrUx2Zt6EUbXLUMczz53JrQ to be included --confirmations 30 --branch BMPbYUSBqgnrGguiw2jzKXL7APsdkYkAanDfEDrB9qp5LJJDRFF
  65. and/or an external block explorer to make sure that it has been included.
  66. This sequence of operations was run:
  67. Manager signed operations:
  68. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  69. Fee to the baker: ꜩ0.001705
  70. Expected counter: 1
  71. Gas limit: 13565000
  72. Storage limit: 396 bytes
  73. Balance updates:
  74. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ................ -ꜩ0.001705
  75. fees(the baker who will include this operation,0) ... +ꜩ0.001705
  76. Origination:
  77. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  78. Credit: ꜩ0
  79. Script:
  80. { parameter (pair (contract %k nat) (nat %x)) ;
  81. storage unit ;
  82. code { DUP ;
  83. CDR ;
  84. SWAP ;
  85. CAR ;
  86. DUP ;
  87. CAR ;
  88. NIL operation ;
  89. SWAP ;
  90. PUSH mutez 0 ;
  91. PUSH nat 2 ;
  92. DIG 4 ;
  93. CDR ;
  94. EDIV ;
  95. IF_SOME { CAR } { PUSH int 14 ; FAILWITH } ;
  96. TRANSFER_TOKENS ;
  97. CONS ;
  98. PAIR } }
  99. Initial storage: Unit
  100. No delegate for this contract
  101. This origination was successfully applied
  102. Originated contracts:
  103. KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL
  104. Storage size: 119 bytes
  105. Paid storage size diff: 119 bytes
  106. Consumed gas: 13465000
  107. Balance updates:
  108. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.119
  109. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.257
  110.  
  111. New contract KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL originated.
  112. Contract memorized as even_contract.
  113.  
  114. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 bake for baker5 --minimal-timestamp
  115. Injected block BLqQqomy6okH
  116.  
  117. Oct 2 22:15:37.281 - alpha.baking.forge: found 1 valid operations (0 refused) for timestamp 2020-10-02T21:15:38-00:00 (fitness 01::0000000000000005)
  118.  
  119. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 originate contract odd_contract transferring 0 from bootstrap1 running collatz_odd.tz --init Unit --burn-cap 9
  120. Node is bootstrapped.
  121. Estimated gas: 13083000 units (will add 100000 for safety)
  122. Estimated storage: 357 bytes added (will add 20 for safety)
  123. Operation successfully injected in the node.
  124. Operation hash is 'onnShDA2TrZgZCMk2DeEmDV1YkUFoJGJig3LVaX36vmcihNLtXX'
  125. NOT waiting for the operation to be included.
  126. Use command
  127. tezos-client wait for onnShDA2TrZgZCMk2DeEmDV1YkUFoJGJig3LVaX36vmcihNLtXX to be included --confirmations 30 --branch BLqQqomy6okHdWRDbPTnZt646GvpoWehBq6Z2QMDmWGyYAENgBw
  128. and/or an external block explorer to make sure that it has been included.
  129. This sequence of operations was run:
  130. Manager signed operations:
  131. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  132. Fee to the baker: ꜩ0.001648
  133. Expected counter: 2
  134. Gas limit: 13183000
  135. Storage limit: 377 bytes
  136. Balance updates:
  137. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ................ -ꜩ0.001648
  138. fees(the baker who will include this operation,0) ... +ꜩ0.001648
  139. Origination:
  140. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  141. Credit: ꜩ0
  142. Script:
  143. { parameter (pair (contract %k int) (int %x)) ;
  144. storage unit ;
  145. code { DUP ;
  146. CDR ;
  147. SWAP ;
  148. CAR ;
  149. DUP ;
  150. CAR ;
  151. NIL operation ;
  152. SWAP ;
  153. PUSH mutez 0 ;
  154. PUSH int 1 ;
  155. DIG 4 ;
  156. CDR ;
  157. PUSH int 3 ;
  158. MUL ;
  159. ADD ;
  160. TRANSFER_TOKENS ;
  161. CONS ;
  162. PAIR } }
  163. Initial storage: Unit
  164. No delegate for this contract
  165. This origination was successfully applied
  166. Originated contracts:
  167. KT1Tbi43NhGmijafbaESkLxMnDcQWUfiCAdG
  168. Storage size: 100 bytes
  169. Paid storage size diff: 100 bytes
  170. Consumed gas: 13083000
  171. Balance updates:
  172. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.1
  173. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.257
  174.  
  175. New contract KT1Tbi43NhGmijafbaESkLxMnDcQWUfiCAdG originated.
  176. Contract memorized as odd_contract.
  177.  
  178. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 bake for baker5 --minimal-timestamp
  179. Injected block BKkZBRe712dJ
  180.  
  181. Oct 2 22:15:38.107 - alpha.baking.forge: found 1 valid operations (0 refused) for timestamp 2020-10-02T21:15:40-00:00 (fitness 01::0000000000000006)
  182.  
  183. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 show known contract even_contract
  184. KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL
  185.  
  186.  
  187. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 show known contract odd_contract
  188. KT1Tbi43NhGmijafbaESkLxMnDcQWUfiCAdG
  189.  
  190.  
  191. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 originate contract main_contract transferring 0 from bootstrap1 running collatz_main.tz --init (Pair 0 (Pair "KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL" "KT1Tbi43NhGmijafbaESkLxMnDcQWUfiCAdG")) --burn-cap 9
  192. Node is bootstrapped.
  193. Estimated gas: 24795000 units (will add 100000 for safety)
  194. Estimated storage: 837 bytes added (will add 20 for safety)
  195. Operation successfully injected in the node.
  196. Operation hash is 'ook83puFrA5XmenWEHYDHnSWkeZvwWeWRrAKCiWCPj3MfVcVt62'
  197. NOT waiting for the operation to be included.
  198. Use command
  199. tezos-client wait for ook83puFrA5XmenWEHYDHnSWkeZvwWeWRrAKCiWCPj3MfVcVt62 to be included --confirmations 30 --branch BKkZBRe712dJhU7NvFRJefaWUJ6C49dM2eL12qnmderkEjHa1A8
  200. and/or an external block explorer to make sure that it has been included.
  201. This sequence of operations was run:
  202. Manager signed operations:
  203. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  204. Fee to the baker: ꜩ0.003327
  205. Expected counter: 3
  206. Gas limit: 24895000
  207. Storage limit: 857 bytes
  208. Balance updates:
  209. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ................ -ꜩ0.003327
  210. fees(the baker who will include this operation,0) ... +ꜩ0.003327
  211. Origination:
  212. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  213. Credit: ꜩ0
  214. Script:
  215. { parameter (or (unit %reset) (nat %run)) ;
  216. storage (pair (int %counter) (pair (address %onEven) (address %onOdd))) ;
  217. code { DUP ;
  218. CDR ;
  219. SWAP ;
  220. CAR ;
  221. IF_LEFT
  222. { DROP ; CDR ; PUSH int 0 ; PAIR ; NIL operation }
  223. { DUP ;
  224. PUSH nat 1 ;
  225. COMPARE ;
  226. LT ;
  227. IF { SWAP ;
  228. DUP ;
  229. CDR ;
  230. SWAP ;
  231. CAR ;
  232. PUSH int 1 ;
  233. ADD ;
  234. PAIR ;
  235. SWAP ;
  236. PUSH nat 0 ;
  237. PUSH nat 2 ;
  238. DIG 2 ;
  239. DUP ;
  240. DUG 3 ;
  241. EDIV ;
  242. IF_SOME { CDR } { PUSH int 39 ; FAILWITH } ;
  243. COMPARE ;
  244. EQ ;
  245. IF { NIL operation ;
  246. DIG 2 ;
  247. DUP ;
  248. DUG 3 ;
  249. CDAR ;
  250. CONTRACT (pair (contract %k nat) (nat %x)) ;
  251. IF_SOME {} { PUSH int 31 ; FAILWITH } ;
  252. PUSH mutez 0 ;
  253. DIG 3 ;
  254. SELF ;
  255. ADDRESS ;
  256. CONTRACT %run nat ;
  257. IF_SOME {} { PUSH int 33 ; FAILWITH } ;
  258. PAIR %k %x ;
  259. TRANSFER_TOKENS ;
  260. CONS }
  261. { NIL operation ;
  262. DIG 2 ;
  263. DUP ;
  264. DUG 3 ;
  265. CDDR ;
  266. CONTRACT (pair (contract %k nat) (nat %x)) ;
  267. IF_SOME {} { PUSH int 32 ; FAILWITH } ;
  268. PUSH mutez 0 ;
  269. DIG 3 ;
  270. SELF ;
  271. ADDRESS ;
  272. CONTRACT %run nat ;
  273. IF_SOME {} { PUSH int 33 ; FAILWITH } ;
  274. PAIR %k %x ;
  275. TRANSFER_TOKENS ;
  276. CONS } }
  277. { DROP ; NIL operation } } ;
  278. PAIR } }
  279. Initial storage:
  280. (Pair 0
  281. (Pair "KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL" "KT1Tbi43NhGmijafbaESkLxMnDcQWUfiCAdG"))
  282. No delegate for this contract
  283. This origination was successfully applied
  284. Originated contracts:
  285. KT1EuDRj3AeGEKYhuJhqQM45KJdAXD4bxfgJ
  286. Storage size: 580 bytes
  287. Paid storage size diff: 580 bytes
  288. Consumed gas: 24795000
  289. Balance updates:
  290. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.58
  291. tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.257
  292.  
  293. New contract KT1EuDRj3AeGEKYhuJhqQM45KJdAXD4bxfgJ originated.
  294. Contract memorized as main_contract.
  295.  
  296. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 bake for baker5 --minimal-timestamp
  297. Injected block BMQpXBz2EDt8
  298.  
  299. Oct 2 22:15:39.665 - alpha.baking.forge: found 1 valid operations (0 refused) for timestamp 2020-10-02T21:15:42-00:00 (fitness 01::0000000000000007)
  300.  
  301. # /Users/dariuscognac/Documents/GitHub/tezos/tezos-client -base-dir /var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6 -endpoint http://localhost:18730 transfer 0 from bootstrap1 to main_contract --entrypoint run --burn-cap 9 --arg 42
  302. Node is bootstrapped.
  303. This simulation failed:
  304. Manager signed operations:
  305. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  306. Fee to the baker: ꜩ0
  307. Expected counter: 4
  308. Gas limit: 1040000000
  309. Storage limit: 60000 bytes
  310. Transaction:
  311. Amount: ꜩ0
  312. From: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
  313. To: KT1EuDRj3AeGEKYhuJhqQM45KJdAXD4bxfgJ
  314. Entrypoint: run
  315. Parameter: 42
  316. This transaction was BACKTRACKED, its expected effects (as follow) were NOT applied.
  317. Updated storage:
  318. (Pair 1
  319. (Pair 0x01e9c4dc27df20e664b03e5b7adb405ba59cacf42900
  320. 0x01d097dfb068dc4399cd757af20b6f28903069b5bc00))
  321. Storage size: 580 bytes
  322. Consumed gas: 53093638
  323. Internal operations:
  324. Transaction:
  325. Amount: ꜩ0
  326. From: KT1EuDRj3AeGEKYhuJhqQM45KJdAXD4bxfgJ
  327. To: KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL
  328. Parameter: (Pair 0x01454dd47b87ea4a75abd4b92bff7bc2f4f950e55d0072756e 42)
  329. This transaction was BACKTRACKED, its expected effects (as follow) were NOT applied.
  330. Updated storage: Unit
  331. Storage size: 119 bytes
  332. Consumed gas: 21149248
  333. Transaction:
  334. Amount: ꜩ0
  335. From: KT1VtpqXtPC5TMqyCdnef15qf3u6a9t9iETL
  336. To: KT1EuDRj3AeGEKYhuJhqQM45KJdAXD4bxfgJ
  337. Entrypoint: run
  338. Parameter: 21
  339. This operation FAILED.
  340.  
  341.  
  342. Runtime error in contract KT1EuDRj3AeGEKYhuJhqQM45KJdAXD4bxfgJ:
  343. 01: { parameter (or (unit %reset) (nat %run)) ;
  344. 02: storage (pair (int %counter) (pair (address %onEven) (address %onOdd))) ;
  345. 03: code { DUP ;
  346. 04: CDR ;
  347. 05: SWAP ;
  348. 06: CAR ;
  349. 07: IF_LEFT
  350. 08: { DROP ; CDR ; PUSH int 0 ; PAIR ; NIL operation }
  351. 09: { DUP ;
  352. 10: PUSH nat 1 ;
  353. 11: COMPARE ;
  354. 12: LT ;
  355. 13: IF { SWAP ;
  356. 14: DUP ;
  357. 15: CDR ;
  358. 16: SWAP ;
  359. 17: CAR ;
  360. 18: PUSH int 1 ;
  361. 19: ADD ;
  362. 20: PAIR ;
  363. 21: SWAP ;
  364. 22: PUSH nat 0 ;
  365. 23: PUSH nat 2 ;
  366. 24: DIG 2 ;
  367. 25: DUP ;
  368. 26: DUG 3 ;
  369. 27: EDIV ;
  370. 28: IF_SOME { CDR } { PUSH int 39 ; FAILWITH } ;
  371. 29: COMPARE ;
  372. 30: EQ ;
  373. 31: IF { NIL operation ;
  374. 32: DIG 2 ;
  375. 33: DUP ;
  376. 34: DUG 3 ;
  377. 35: CDAR ;
  378. 36: CONTRACT (pair (contract %k nat) (nat %x)) ;
  379. 37: IF_SOME {} { PUSH int 31 ; FAILWITH } ;
  380. 38: PUSH mutez 0 ;
  381. 39: DIG 3 ;
  382. 40: SELF ;
  383. 41: ADDRESS ;
  384. 42: CONTRACT %run nat ;
  385. 43: IF_SOME {} { PUSH int 33 ; FAILWITH } ;
  386. 44: PAIR %k %x ;
  387. 45: TRANSFER_TOKENS ;
  388. 46: CONS }
  389. 47: { NIL operation ;
  390. 48: DIG 2 ;
  391. 49: DUP ;
  392. 50: DUG 3 ;
  393. 51: CDDR ;
  394. 52: CONTRACT (pair (contract %k nat) (nat %x)) ;
  395. 53: IF_SOME {} { PUSH int 32 ; FAILWITH } ;
  396. 54: PUSH mutez 0 ;
  397. 55: DIG 3 ;
  398. 56: SELF ;
  399. 57: ADDRESS ;
  400. 58: CONTRACT %run nat ;
  401. 59: IF_SOME {} { PUSH int 33 ; FAILWITH } ;
  402. 60: PAIR %k %x ;
  403. 61: TRANSFER_TOKENS ;
  404. 62: CONS } }
  405. 63: { DROP ; NIL operation } } ;
  406. 64: PAIR } }
  407. At line 53 characters 50 to 58,
  408. script reached FAILWITH instruction
  409. with 32
  410. Fatal error:
  411. transfer simulation failed
  412.  
  413. Traceback (most recent call last):
  414. File "test_collatz.py", line 64, in <module>
  415. scenario_basic_call()
  416. File "test_collatz.py", line 58, in scenario_basic_call
  417. '--arg', '42'])
  418. File "/Users/dariuscognac/Documents/GitHub/tezos/tests_python/client/client.py", line 384, in transfer
  419. res = self.run(cmd)
  420. File "/Users/dariuscognac/Documents/GitHub/tezos/tests_python/client/client.py", line 164, in run
  421. (stdout, _, _) = self.run_generic(params, admin, check, trace)
  422. File "/Users/dariuscognac/Documents/GitHub/tezos/tests_python/client/client.py", line 153, in run_generic
  423. completed_process.check_returncode()
  424. File "/Users/dariuscognac/anaconda3/lib/python3.7/subprocess.py", line 409, in check_returncode
  425. self.stderr)
  426. subprocess.CalledProcessError: Command '['/Users/dariuscognac/Documents/GitHub/tezos/tezos-client', '-base-dir', '/var/folders/r5/yk8yg2xs1gs8xzkn5l8vr72w0000gn/T/tezos-client.a49jk6j6', '-endpoint', 'http://localhost:18730', 'transfer', '0', 'from', 'bootstrap1', 'to', 'main_contract', '--entrypoint', 'run', '--burn-cap', '9', '--arg', '42']' returned non-zero exit status 1.
  427. (venv) $
  428.  
RAW Paste Data