def test_michelson_inverse_storage_KT1Rvo(self): expected = get_data( path= 'contracts/KT1RvoWEU4MfDBrTbJh4JEAdh3giXtjxkR7k/storage_KT1Rvo.json' ) actual = michelson_to_micheline(micheline_to_michelson(expected)) self.assertEqual(expected, actual)
def test_michelson_inverse_parameter_op9zfX(self): expected = get_data( path= 'contracts/KT1FU74GimCeEVRAEZGURb6TWU8jK1N6zFJy/parameter_op9zfX.json' ) actual = michelson_to_micheline(micheline_to_michelson(expected)) self.assertEqual(expected, actual)
def test_michelson_inverse_parameter_onfSmx(self): expected = get_data( path= 'contracts/KT1RvoWEU4MfDBrTbJh4JEAdh3giXtjxkR7k/parameter_onfSmx.json' ) actual = michelson_to_micheline(micheline_to_michelson(expected)) self.assertEqual(expected, actual)
def test_michelson_inverse_storage_KT1EwP(self): expected = get_data( path= 'contracts/KT1EwPxDNyx2y5NSEgKQNLzGSrwBab5Ay8yS/storage_KT1EwP.json' ) actual = michelson_to_micheline(micheline_to_michelson(expected)) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Rbg(self): expected = get_data( path='contracts/KT1RbgzW6RMPsjhrRRQWZ8fHTLWxW54JyxJm/code_KT1Rbg.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1RbgzW6RMPsjhrRRQWZ8fHTLWxW54JyxJm/code_KT1Rbg.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT19ft(self): expected = get_data( path='contracts/KT19fth8xoanAobcfdbssDjRTv7So1BCSQt4/code_KT19ft.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT19fth8xoanAobcfdbssDjRTv7So1BCSQt4/code_KT19ft.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Ce9(self): expected = get_data( path='contracts/KT1Ce91KQw3gEEtJiNEagDat2Cr6saM6Cyjm/code_KT1Ce9.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1Ce91KQw3gEEtJiNEagDat2Cr6saM6Cyjm/code_KT1Ce9.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1VgG(self): expected = get_data( path='contracts/KT1VgGFh674e2En7fQh7U8WHVyWpwUZB4n4Y/code_KT1VgG.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1VgGFh674e2En7fQh7U8WHVyWpwUZB4n4Y/code_KT1VgG.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Rrf(self): expected = get_data( path='contracts/KT1RrfbcDM5eqho4j4u5EbqbaoEFwBsXA434/code_KT1Rrf.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1RrfbcDM5eqho4j4u5EbqbaoEFwBsXA434/code_KT1Rrf.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1TpK(self): expected = get_data( path='contracts/KT1TpKkwKzGwMrWrGnPp9KixhraD2dtE5wE5/code_KT1TpK.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1TpKkwKzGwMrWrGnPp9KixhraD2dtE5wE5/code_KT1TpK.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT19VK(self): expected = get_data( path='contracts/KT19VKNKqKDDunvwi4y2r6ugDhCcdhT2zG3c/code_KT19VK.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT19VKNKqKDDunvwi4y2r6ugDhCcdhT2zG3c/code_KT19VK.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1DY8(self): expected = get_data( path='contracts/KT1DY8gJ63E7EqpHKLusrDDRahRcEJHwdoNu/code_KT1DY8.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1DY8gJ63E7EqpHKLusrDDRahRcEJHwdoNu/code_KT1DY8.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Lb2(self): expected = get_data( path='contracts/KT1Lb2v9xrF9994tEZYogrX3og9UHgtRdZBg/code_KT1Lb2.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1Lb2v9xrF9994tEZYogrX3og9UHgtRdZBg/code_KT1Lb2.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Rmu(self): expected = get_data( path='contracts/KT1RmuBSQgU9hnQU9FrweaMoTDcTzG11GmC1/code_KT1Rmu.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1RmuBSQgU9hnQU9FrweaMoTDcTzG11GmC1/code_KT1Rmu.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1QTY(self): expected = get_data( path='contracts/KT1QTYM2kcDb6CvAzvC6sYtMGEprqxhoVw4b/code_KT1QTY.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1QTYM2kcDb6CvAzvC6sYtMGEprqxhoVw4b/code_KT1QTY.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1NQj(self): expected = get_data( path='contracts/KT1NQjN9YgESGZgUm9qSHQL195rgZjpGi7LH/code_KT1NQj.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1NQjN9YgESGZgUm9qSHQL195rgZjpGi7LH/code_KT1NQj.json'), inline=True) self.assertEqual(expected, actual)
def cmdline(self): """ Generate command line for tezos client. """ arg = micheline_to_michelson(self.parameters['value'], inline=True) source = self.key.public_key_hash() amount = format_tez(self.amount) entrypoint = self.parameters['entrypoint'] return f'transfer {amount} from {source} to {self.address} ' \ f'--entrypoint \'{entrypoint}\' --arg \'{arg}\''
def test_michelson_format_code_KT1ME1(self): expected = get_data( path='contracts/KT1ME1G3xGeGdjzfmGYGCWW4FEkTvn88ueZ2/code_KT1ME1.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1ME1G3xGeGdjzfmGYGCWW4FEkTvn88ueZ2/code_KT1ME1.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Ktw(self): expected = get_data( path='contracts/KT1Ktww51i5k2G31DY8aGxvug55sejXTw8Gs/code_KT1Ktw.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1Ktww51i5k2G31DY8aGxvug55sejXTw8Gs/code_KT1Ktw.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1T1Q(self): expected = get_data( path='contracts/KT1T1QYR6VD2LLtRSP4CHNyKkGbAPHoVu7wc/code_KT1T1Q.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1T1QYR6VD2LLtRSP4CHNyKkGbAPHoVu7wc/code_KT1T1Q.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1LcJ(self): expected = get_data( path='contracts/KT1LcJ9TriBd42e1MT2CtsZhEfC5tKP8LKnW/code_KT1LcJ.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1LcJ9TriBd42e1MT2CtsZhEfC5tKP8LKnW/code_KT1LcJ.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1PF3(self): expected = get_data( path='contracts/KT1PF3SoynnYGUw3diCjETSbTSEZ1LJMXK9F/code_KT1PF3.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1PF3SoynnYGUw3diCjETSbTSEZ1LJMXK9F/code_KT1PF3.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1NV5(self): expected = get_data( path='contracts/KT1NV5dYRFcd5hf5AQcgo6jodqmYpNc1hiv9/code_KT1NV5.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1NV5dYRFcd5hf5AQcgo6jodqmYpNc1hiv9/code_KT1NV5.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1HRu(self): expected = get_data( path='contracts/KT1HRuyp2NLSP9MKBfQyfKoNVUio6Fn7jeDi/code_KT1HRu.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1HRuyp2NLSP9MKBfQyfKoNVUio6Fn7jeDi/code_KT1HRu.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1NAn(self): expected = get_data( path='contracts/KT1NAnXMYFDbABvejVCE7TYqMQPr1cUmP25U/code_KT1NAn.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1NAnXMYFDbABvejVCE7TYqMQPr1cUmP25U/code_KT1NAn.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1LXm(self): expected = get_data( path='contracts/KT1LXmR7aDjTzGLCqaLtqCyZXqoLpUyK2j2n/code_KT1LXm.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1LXmR7aDjTzGLCqaLtqCyZXqoLpUyK2j2n/code_KT1LXm.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Pj9(self): expected = get_data( path='contracts/KT1Pj9Nn9L13YXoGcCqdXA7r5bL28ghrRi4c/code_KT1Pj9.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1Pj9Nn9L13YXoGcCqdXA7r5bL28ghrRi4c/code_KT1Pj9.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1FkF(self): expected = get_data( path='contracts/KT1FkFxTdRGsD2dp6Y1zTRKxtPXqhRJiwQ8L/code_KT1FkF.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1FkFxTdRGsD2dp6Y1zTRKxtPXqhRJiwQ8L/code_KT1FkF.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1Mqv(self): expected = get_data( path='contracts/KT1MqvzsEPoZnbacH18uztqvQdG8x8nKAgFi/code_KT1Mqv.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1MqvzsEPoZnbacH18uztqvQdG8x8nKAgFi/code_KT1Mqv.json'), inline=True) self.assertEqual(expected, actual)
def test_michelson_format_code_KT1At3(self): expected = get_data( path='contracts/KT1At3oM7k94ccMmFCqjAZy42QyaDh2uNqhD/code_KT1At3.tz' ) actual = micheline_to_michelson(get_data( path= 'contracts/KT1At3oM7k94ccMmFCqjAZy42QyaDh2uNqhD/code_KT1At3.json'), inline=True) self.assertEqual(expected, actual)