/* * // Copyright (c) 2016-2019, Jaguar0625, gimre, BloodyRookie, Tech Bureau, Corp. * // Copyright (c) 2020-present, Jaguar0625, gimre, BloodyRookie. * // All rights reserved. * // * // This file is part of Catapult. * // * // Catapult is free software: you can redistribute it and/or modify * // it under the terms of the GNU Lesser General Public License as published by * // the Free Software Foundation, either version 3 of the License, or * // (at your option) any later version. * // * // Catapult is distributed in the hope that it will be useful, * // but WITHOUT ANY WARRANTY; without even the implied warranty of * // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * // GNU Lesser General Public License for more details. * // * // You should have received a copy of the GNU Lesser General Public License * // along with Catapult. If not, see . */ use catbuffer_rust::aggregate_bonded_transaction_builder::AggregateBondedTransactionBuilder; const VECTOR_TRANSACTION_BUILDER: [&str; 33] = [ "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A00000000000000010000000000000097EE38BB7E04C0C915F3B69B5D6CF77E04B893A86090E417A42660A073515E9C680000000000000062000000000000004871937A9B3872130EB65765BF5E0AE326C49ABB39A3F353711AE782D95FF2CB00000000019044429083025FF3A8AB5AD104631FB370F290004952CD1FDDC4C90A00000000000000E8030000000000000A000600313233414243000000000000", "F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000003856BB39656064ADA2971A0791F228069B1F2293DBF1344B687C8E743AEC6B23480000000000000041000000000000004E0184D19FD1D9427BB6888BDDC56756686829A1CAD6686D8D53339E9844CE000000000001904E43A487791451FDF1B60A000000000000000100000000000000", "000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000006A155E534B494F0CC34AFBB78371B1446EAD405FFFE4B263AA05A43D3167C5D958000000000000005100000000000000ACBD55170BE49239EC69279A3921578B5701CA7AF4A1A5FF87B2B2957120AC870000000001904E424BFA5F372D55B3849049E14BEBCA93758EB36805BAE760A57239976F009A545C0100000000000000", "080100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000AD9E3FFDF99E080F6715FE208A9D96A09B39A3BD7B065AF7F6B11827F1EEE1DF60000000000000005A00000000000000FA8EC085AE64CF30E44ADD18A3133D9B2190F9A20C08667A5EF44E5E9962E72000000000019044419083025FF3A8AB5AD104631FB370F290004952CD1FDDC4C90A000000000000000A000600313233424143000000000000", "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000004DC6F0524C486D78A6D9D775F5508C0362125420728D03DE74435EB1E3778891680000000000000068000000000000005085C164D5D55CD6AF5A4FDABF88D1A2EE2C1C1422D431BAFDC14714ED63E3F5000000000190504101000101000000009083025FF3A8AB5AD104631FB370F290004952CD1FDDC4C990B387A39C0E4607DB7056EEAAF0A0EF43B45C667EB790FF", "6001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000190414200000000000000000100000000000000B4C97320255A2F755F6BE2F4DDAC0BB3EBDD25508DBE460EA6988366F404706AB8000000000000006D00000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E6000000000190544190E8FEBD671DD41BEE94EC3BA5831CB608A312C2F203BA840D00010000000000672B0000CE560000640000000000000000536F6D65204D6573736167650000004100000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60000000001904D428869746E9B1A70570A000000000000000100000000000000", "30020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001904142000000000000000001000000000000006C610D61B3E6839AE85AC18465CF6AD06D8F17A4F145F720BD324880B4FBB12BB8000000000000006D00000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E6000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0D00010000000000672B0000CE560000640000000000000000536F6D65204D6573736167650000004100000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60000000001904D428869746E9B1A70570A00000000000000010000000000000000000000000000009A49366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456111AAA9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456111AAA9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA6545611100000000000000009A49366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222BBB9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222BBB9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222", "60010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001904142000000000000000001000000000000006C610D61B3E6839AE85AC18465CF6AD06D8F17A4F145F720BD324880B4FBB12BB8000000000000006D00000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E6000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0D00010000000000672B0000CE560000640000000000000000536F6D65204D6573736167650000004100000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60000000001904D428869746E9B1A70570A000000000000000100000000000000", "30020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001904142000000000000000001000000000000006C610D61B3E6839AE85AC18465CF6AD06D8F17A4F145F720BD324880B4FBB12BB8000000000000006D00000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E6000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0D00010000000000672B0000CE560000640000000000000000536F6D65204D6573736167650000004100000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60000000001904D428869746E9B1A70570A00000000000000010000000000000000000000000000009A49366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456111AAA9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456111AAA9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA6545611100000000000000009A49366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222BBB9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222BBB9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222", "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000009A5B5EAFD005A7A45417F12E70BD568E510597BF23C54174CB4D9F5D9FF3165D68000000000000006800000000000000CE4046D3C66C81725042A1C54A584A00DC171F065EA75603B8799A273735DA72000000000190484144B262C46CEABB85809698000000000064000000000000008498B38D89C1DC8A448EA5824938FF828926CD9F7747B1844B59B4B6807E878B", "000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000584F02318224C48C34CB4E321F293EA6BA2A12EF68E82713003F0AC31A8AD34A58000000000000005100000000000000AE4A52DDFF64ECDEB4B017228B5411DDFFB1474ED7B7C7D2671C71B8D789F3EB0000000001904C41F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60100000000000000", "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000A7197AB28F6EACC591B5D16D77BA56160BDA7827B159C0586DF6152802C9CFEB680000000000000068000000000000003ACBD9C4989E7DDFD0AAB3E3CD014DF6A8F301E6FF63874A50981DF75EEF86DC00000000019055410102010100000000905ED2343582DFB4D14DC837BF18E3C9BE5271FF9B8A9EC1908760369DC78761E7EBCC6CFAEA44EE946ED0637B67EE55", "E80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A00000000000000010000000000000097B9CB6B4A5C7EF2B809322AD34DE85BB6CBB2F1A6A2265A77CE3C5276E9CDAE40000000000000003C0000000000000010DE38DE7D9DB4B9DB52BC61191A6EF5F835DF56459E25E279C72194E03B1F37000000000190504304400101000000005242544100000000", "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000F12AD5DBD30E62E64BCE9404809CBB4F741BE711520F3FB17764760E91570EE2680000000000000062000000000000005E541F8B249C363CDFA0188C88A1E26DB75F30A366A05AA0D6400E9DC41D025700000000019044439083025FF3A8AB5AD104631FB370F290004952CD1FDDC4C90A00000000000000E8030000000000000A000600414243313233000000000000", "F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000D0A68EB4096C1589E531F5B11091ADB71A4D93DE23C7A52A97FE49CDEF35C1E848000000000000004100000000000000CC3E835D179670514BE008521130441316AFD4FB09050377B850C612715994050000000001904D428869746E9B1A70570A000000000000000100000000000000", "300100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000DDF18516A2274AB73210FEF6D7AFA32212678E709475986BD067ED688D6E4B858800000000000000810000000000000083703D89B194758D2119B4A6EE56C2544120C9FA6CADE47103AE7FA7875570C0000000000190524190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A3FC8BA10229AB5778D05D9C4B7F56676A88BF9295C185ACFC0F961DB5408CAFE44B262C46CEABB85809698000000000064000000000000000000000000000000", "300100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000000A05CEB203C6BAC9DB1548077121C7F7A885AFDC463F300DD0976653570FD5BB8800000000000000810000000000000054DE12E65453D160A3F52794BC32789AC4A3E97ADD0F7967ADF84B0D90738BBA000000000190524190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A3FC8BA10229AB5778D05D9C4B7F56676A88BF9295C185ACFC0F961DB5408CAFE44B262C46CEABB85809698000000000064000000000000000000000000000000", "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000FCF315E8CB3EC984365EB7AB7B3CED8816E62C0F1E329C01D80919590CB21743680000000000000068000000000000002A5029790873C060C001F01FDEC0FC51D9DFE6501A14D28CD2EAC5E711E0CB170000000001905142010000000000000001000000000000000900000000000000080000000000000090D66C33420E5411995BACFCA2B28CF1C9F5DD7AB1204EA4", "180100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000009E82B0F493ABF3FA0C8635C0849025A980EEB66236FF81B6220814D06424AF7F70000000000000006F00000000000000DE9B1F9A22014D3E7BC0B336B6D397325D5ABF24A9100B00282C11DD1160730D00000000019052429022D04812D05000F96C283657B0C17990932BC84926CDE63FC8BA10229AB5778D05D9C4B7F56676A88BF9295C185ACFC0F961DB5408CAFE0400009A49366400", "F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000D7C1075FF2D14C78AD1CB5974BB53370DB3F964BBB0E2DB693E4FDB1F23827F748000000000000004600000000000000AF906081C12C065AE0DF8AE5822513A5A5E1046D86C272A42A3283E9DFF9C9D30000000001904D41000000000000000010270000000000000000000005040000", "F80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000000B98E5B3791D95C41B943E480FD744480DB058CE5C1E80F57BCFA32D5CD09BC750000000000000004E000000000000001E6132AA03A256A450AD0A12BC8A0560584FCBD79BEC86AA502521E5EEA35DF60000000001904E4110270000000000007EE9B3B8AFDF53C0000C6E65776E616D6573706163650000", "F80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A0000000000000001000000000000000897D255849178FAFB1CA484FBFA9AAB023EE41880B445B4F598A207299022B650000000000000004E00000000000000E940F3DBCD87D52455691DB6E54F1ACDE7030DC2B6895A7562C4CF41BE2A8B5B0000000001904E417EE9B3B8AFDF53400312981B7879A3F1010C7375626E616D6573706163650000", "200100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000E1BC0003684C91F467AD20A6312AFC8FC1E578B633DDC53AF0C7CED047C4339378000000000000007400000000000000C613FD58985D6BBEDFD9BDFD1CA9D8C72B5B30E4A3BC99114D0BFCAB133E395A00000000019054419151776168D24257D80000000000000000000000000000001400010000000000672B0000CE560000640000000000000000536F6D65204D65737361676520E6BCA2E5AD9700000000", "100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000CF4DE1675E204A2D06C2B468F37EE71DC4DF918CB0A6D6783FBD142AD07F774C68000000000000006100000000000000AF07FF69FF95F4FCC5B83CC750EC20E37F2E9968644FA18D603A3F1CDC6A7E46000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0100010000000000672B0000CE56000064000000000000000000000000000000", "300100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A00000000000000010000000000000045D0CD037E228D93D8D4A3CFFCBE09A7308F9E9B3B357B1D7DD55E80B48111CF88000000000000008400000000000000C898C0939F037B6F2D0ECCA8BC80783B6901ED744ADDC1B0C985C9CC27A11B7E000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A1400020000000000671305C6390B00002C01000000000000672B0000CE560000640000000000000000536F6D65204D65737361676520E6BCA2E5AD9700000000", "080100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000A733A9FB12496D8E8BA9907E7395BE54E2EC8AA9DE0915B3F8C14E38F96A678E60000000000000006000000000000000216152AB1229A8CC65811F325B9852EA28C1BC223ABCF2FD10A9845B797DA9DB000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0000010000000000672B0000CE5600006400000000000000", "080100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000EAB01ABB1677368FAC2F6BF706A28ED8B659F40ECD0D1BD3BC718D9BF83108CD60000000000000005A00000000000000687FE391241D67448B0E02C5D34E09A4EF880509EF8C5B42570749F012AA09B40000000001905141800D00000000000002000000000000000100000000000000090000000000000008000000000000000106000000000000", "F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420A000000000000000100000000000000A5D2296871C6DCEAD69D52F96110BC22D26F4E2DE963DCF268AEF848C33668224800000000000000480000000000000016ED504C968BAD1F09EBE902E91CF8D7660381CFC10214FB2D141E8DAEDC91B400000000019050420200010100000000E803000000000000D007000000000000", "08010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001A8414200000000000000002B02000000000000887DE1026EA57A350FF35BD13163D4C8D5E149A3DC281D3686400AD2906D15BC60000000000000005D000000000000009801508C58666C746F471538E43002B85B1CD542F9874B2861183919BA8787B60000000001A854418026D27E1D0A26CA4E316F901E23E55C8711DB20DFBE8F3A0D0000000000000000746573742D6D657373616765000000", "A8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001A8414200000000000000002B0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "a80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019041420000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "60010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001904142000000000000000001000000000000006C610D61B3E6839AE85AC18465CF6AD06D8F17A4F145F720BD324880B4FBB12BB8000000000000006D00000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E6000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0D00010000000000672B0000CE560000640000000000000000536F6D65204D6573736167650000004100000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60000000001904D428869746E9B1A70570A000000000000000100000000000000", "30020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001904142000000000000000001000000000000006C610D61B3E6839AE85AC18465CF6AD06D8F17A4F145F720BD324880B4FBB12BB8000000000000006D00000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E6000000000190544190F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0D00010000000000672B0000CE560000640000000000000000536F6D65204D6573736167650000004100000000000000F6503F78FBF99544B906872DDB392F4BE707180D285E7919DBACEF2E9573B1E60000000001904D428869746E9B1A70570A00000000000000010000000000000000000000000000009A49366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456111AAA9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456111AAA9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA6545611100000000000000009A49366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222BBB9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222BBB9366406ACA952B88BADF5F1E9BE6CE4968141035A60BE503273EA65456222", ]; #[test] fn test_should_create_transactions() { for vector in VECTOR_TRANSACTION_BUILDER.iter() { let bytes_vector = hex::decode(vector).unwrap(); let build_object = AggregateBondedTransactionBuilder::from_binary(&*bytes_vector); assert_eq!(build_object.serializer(), bytes_vector); } }