/* * // 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::transfer_transaction_builder::TransferTransactionBuilder; const VECTOR_TRANSACTION_BUILDER: [&str; 12] = [ "C10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019054410000000000000000010000000000000090F36CA680C35D630662A0C38DC89D4978D10B511B3D241A010002000000000064000000000000000200000000000000C800000000000000010000000000000000", "C4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001905441000000000000000001000000000000009151776168D24257D80000000000000000000000000000001400010000000000672B0000CE560000640000000000000000536F6D65204D65737361676520E6BCA2E5AD97", "B10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019054410000000000000000010000000000000090F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0100010000000000672B0000CE560000640000000000000000", "D10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019054410000000000000000010000000000000090F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0100030000000000BA36BD286FB7F2670300000000000000D787D9329996A177020000000000000029CF5FD941AD25D5010000000000000000", "29020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001905441000000000000000006DC7B9B7501000090E5740C367E76398B61D4D1216777E8DE1DC3BC25D12E668901000000000000FE4532303137333537363138303241464537323734393635324138374136434533363439453836453145443533443331453935413333453630443945303644354338414535454637373137323335453039363246303133444532343537304331323946314533383432344430413542334434384237364233464634393433414241434544393437383231373637314644464430323730443046384344353437384430313734313530453246433930393638363242383945374332384444373246463144353334413938313843353142343833303246324146463031433030454238443445444641334637413142353842453437433234443644454338304537394132454243303731343243453038434330454633453535424231334538324436313042423642353546393335413936383132333543453941304543433636423143314138334643414639334434353546313943383537364631443342384336433134344637414135414136434234444333333242443035314441394233434541304330363437464646", "BD000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001905441000000000000000001000000000000009188DD7D72227ECAE70000000000000000000000000000000D0001000000000044B262C46CEABB85010000000000000000746573742D6D657373616765", "D400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002134E47AEE6F2392A5B3D1238CD7714EABEB739361B7CCF24BAE127F10DF17F200000000019054410000000000000000010000000000000090F36CA680C35D630662A0C38DC89D4978D10B511B3D241A1400020000000000671305C6390B00002C01000000000000672B0000CE560000640000000000000000536F6D65204D65737361676520E6BCA2E5AD97", "B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019054410000000000000000010000000000000090F36CA680C35D630662A0C38DC89D4978D10B511B3D241A0000010000000000672B0000CE5600006400000000000000", "BD0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019054410000000000000000010000000000000090E342239BF195E01384EB6EC353639D4A687A29466A76680D00010000000000672B0000CE560000640000000000000000536F6D65204D657373616765", "BD00000000000000182AF94BD22DF48D81EE9CD758CA14D79FEA9362DBF5339325A8244F3EB8DF20E6432DA8FA9E0B2B5F2AB8A815CE29453795B6298B90F46959EC1FAA377A880C2134E47AEE6F2392A5B3D1238CD7714EABEB739361B7CCF24BAE127F10DF17F2000000000190544100000000000000000100000000000000906E4FC9E4A56B4E70F7FA30D06D92D1FAF62B576905C9530D00010000000000672B0000CE560000640000000000000000536F6D65204D657373616765", "BD00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000190544100000000000000000100000000000000906E4FC9E4A56B4E70F7FA30D06D92D1FAF62B576905C9530D00010000000000672B0000CE560000640000000000000000536F6D65204D657373616765", "BD000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001A8544100000000000000002B020000000000008026D27E1D0A26CA4E316F901E23E55C8711DB20DFBE8F3A0D0001000000000044B262C46CEABB8500E1F5050000000000746573742D6D657373616765" ]; #[test] fn test_should_create_transactions() { for vector in VECTOR_TRANSACTION_BUILDER.iter() { let bytes_vector = hex::decode(vector).unwrap(); let build_object = TransferTransactionBuilder::from_binary(&*bytes_vector); assert_eq!(build_object.serializer(), bytes_vector); } }