1313
1414namespace ArkEcosystem \Crypto \Transactions ;
1515
16- use ArkEcosystem \Crypto \Transactions \Types as Transactions ;
16+ use ArkEcosystem \Crypto \Transactions \Types \ Transaction ;
1717use BitWasp \Bitcoin \Crypto \Hash ;
1818use KodeKeep \ByteBuffer \ByteBuffer ;
1919
@@ -30,17 +30,17 @@ class Deserializer
3030 * @var array
3131 */
3232 private $ transactionsClasses = [
33- Transactions \Transfer::class,
34- Transactions \SecondSignatureRegistration::class,
35- Transactions \DelegateRegistration::class,
36- Transactions \Vote::class,
37- Transactions \MultiSignatureRegistration::class,
38- Transactions \IPFS ::class,
39- Transactions \MultiPayment::class,
40- Transactions \DelegateResignation::class,
41- Transactions \HtlcLock::class,
42- Transactions \HtlcClaim::class,
43- Transactions \HtlcRefund::class,
33+ Types \Transfer::class,
34+ Types \SecondSignatureRegistration::class,
35+ Types \DelegateRegistration::class,
36+ Types \Vote::class,
37+ Types \MultiSignatureRegistration::class,
38+ Types \IPFS ::class,
39+ Types \MultiPayment::class,
40+ Types \DelegateResignation::class,
41+ Types \HtlcLock::class,
42+ Types \HtlcClaim::class,
43+ Types \HtlcRefund::class,
4444 ];
4545
4646 /**
@@ -68,9 +68,9 @@ public static function new(string $serialized)
6868 /**
6969 * Perform AIP11 compliant deserialization.
7070 *
71- * @return \ArkEcosystem\Crypto\Transactions\ Transaction
71+ * @return Transaction
7272 */
73- public function deserialize (): Transactions \ Transaction
73+ public function deserialize (): Transaction
7474 {
7575 $ data = [];
7676
@@ -108,7 +108,7 @@ private function deserializeCommon(array &$data): void
108108 $ data ['fee ' ] = strval ($ this ->buffer ->readUInt64 ());
109109 }
110110
111- private function deserializeVendorField (Transactions \ Transaction $ transaction ): void
111+ private function deserializeVendorField (Transaction $ transaction ): void
112112 {
113113 $ vendorFieldLength = $ this ->buffer ->readUInt8 ();
114114 if ($ vendorFieldLength > 0 ) {
@@ -264,11 +264,11 @@ private function detectSchnorr(): bool
264264 /**
265265 * Handle the deserialization of transaction data with a version of 2.0.
266266 *
267- * @param \ArkEcosystem\Crypto\ Transaction $transaction
267+ * @param Transaction $transaction
268268 *
269- * @return \ArkEcosystem\Crypto\Transactions\ Transaction
269+ * @return Transaction
270270 */
271- public function handleVersionTwo (Transactions \ Transaction $ transaction ): Transactions \ Transaction
271+ public function handleVersionTwo (Transaction $ transaction ): Transaction
272272 {
273273 $ transaction ->data ['id ' ] = Hash::sha256 (Serializer::new ($ transaction )->serialize ())->getHex ();
274274
0 commit comments