@@ -414,9 +414,76 @@ describe('TransactionMapping - createFromPayload', () => {
414414 NetworkType . MIJIN_TEST ,
415415 ) ;
416416
417+ const accountLinkTransaction = AccountLinkTransaction . create (
418+ Deadline . create ( ) ,
419+ account . publicKey ,
420+ LinkAction . Link ,
421+ NetworkType . MIJIN_TEST ,
422+ ) ;
423+ const registerNamespaceTransaction = NamespaceRegistrationTransaction . createRootNamespace (
424+ Deadline . create ( ) ,
425+ 'root-test-namespace' ,
426+ UInt64 . fromUint ( 1000 ) ,
427+ NetworkType . MIJIN_TEST ,
428+ ) ;
429+ const mosaicGlobalRestrictionTransaction = MosaicGlobalRestrictionTransaction . create (
430+ Deadline . create ( ) ,
431+ new MosaicId ( UInt64 . fromUint ( 1 ) . toDTO ( ) ) ,
432+ UInt64 . fromUint ( 4444 ) ,
433+ UInt64 . fromUint ( 0 ) ,
434+ MosaicRestrictionType . NONE ,
435+ UInt64 . fromUint ( 0 ) ,
436+ MosaicRestrictionType . GE ,
437+ NetworkType . MIJIN_TEST ,
438+ ) ;
439+ const mosaicAddressRestrictionTransaction = MosaicAddressRestrictionTransaction . create (
440+ Deadline . create ( ) ,
441+ new NamespaceId ( 'test' ) ,
442+ UInt64 . fromUint ( 4444 ) ,
443+ account . address ,
444+ UInt64 . fromUint ( 0 ) ,
445+ NetworkType . MIJIN_TEST ,
446+ UInt64 . fromUint ( 0 ) ,
447+ ) ;
448+ const accountMetadataTransaction = AccountMetadataTransaction . create (
449+ Deadline . create ( ) ,
450+ account . publicKey ,
451+ UInt64 . fromUint ( 1000 ) ,
452+ 1 ,
453+ Convert . uint8ToUtf8 ( new Uint8Array ( 10 ) ) ,
454+ NetworkType . MIJIN_TEST ,
455+ ) ;
456+ const mosaicMetadataTransaction = MosaicMetadataTransaction . create (
457+ Deadline . create ( ) ,
458+ account . publicKey ,
459+ UInt64 . fromUint ( 1000 ) ,
460+ new MosaicId ( [ 2262289484 , 3405110546 ] ) ,
461+ 1 ,
462+ Convert . uint8ToUtf8 ( new Uint8Array ( 10 ) ) ,
463+ NetworkType . MIJIN_TEST ,
464+ ) ;
465+ const namespaceMetadataTransaction = NamespaceMetadataTransaction . create (
466+ Deadline . create ( ) ,
467+ account . publicKey ,
468+ UInt64 . fromUint ( 1000 ) ,
469+ new NamespaceId ( [ 2262289484 , 3405110546 ] ) ,
470+ 1 ,
471+ Convert . uint8ToUtf8 ( new Uint8Array ( 10 ) ) ,
472+ NetworkType . MIJIN_TEST ,
473+ ) ;
474+
417475 const aggregateTransaction = AggregateTransaction . createComplete (
418476 Deadline . create ( ) ,
419- [ transferTransaction . toAggregate ( account . publicAccount ) ] ,
477+ [
478+ transferTransaction . toAggregate ( account . publicAccount ) ,
479+ accountLinkTransaction . toAggregate ( account . publicAccount ) ,
480+ registerNamespaceTransaction . toAggregate ( account . publicAccount ) ,
481+ mosaicGlobalRestrictionTransaction . toAggregate ( account . publicAccount ) ,
482+ mosaicAddressRestrictionTransaction . toAggregate ( account . publicAccount ) ,
483+ mosaicMetadataTransaction . toAggregate ( account . publicAccount ) ,
484+ namespaceMetadataTransaction . toAggregate ( account . publicAccount ) ,
485+ accountMetadataTransaction . toAggregate ( account . publicAccount ) ,
486+ ] ,
420487 NetworkType . MIJIN_TEST ,
421488 [ ] ) ;
422489
@@ -426,6 +493,7 @@ describe('TransactionMapping - createFromPayload', () => {
426493
427494 expect ( transaction . type ) . to . be . equal ( TransactionType . AGGREGATE_COMPLETE ) ;
428495 expect ( transaction . innerTransactions [ 0 ] . type ) . to . be . equal ( TransactionType . TRANSFER ) ;
496+ expect ( transaction . innerTransactions . length ) . to . be . equal ( 8 ) ;
429497 } ) ;
430498
431499 it ( 'should create AggregatedTransaction - Bonded' , ( ) => {
0 commit comments