@@ -19,6 +19,7 @@ import { PropertyModificationType } from '../account/PropertyModificationType';
1919import { PropertyType } from '../account/PropertyType' ;
2020import { NetworkType } from '../blockchain/NetworkType' ;
2121import { MosaicId } from '../mosaic/MosaicId' ;
22+ import { UInt64 } from '../Uint64' ;
2223import { AccountPropertyModification } from './AccountPropertyModification' ;
2324import { Deadline } from './Deadline' ;
2425import { ModifyAccountPropertyAddressTransaction } from './ModifyAccountPropertyAddressTransaction' ;
@@ -32,16 +33,26 @@ export class AccountPropertyTransaction {
3233 * @param propertyType - Type of account property transaction
3334 * @param modification - array of address modifications
3435 * @param networkType - The network type.
36+ * @param maxFee - (Optional) Max fee defined by the sender
3537 * @returns {ModifyAccountPropertyAddressTransaction }
3638 */
37- public static createAddressPropertyModificationTransaction ( deadline : Deadline ,
38- propertyType : PropertyType ,
39- modifications : Array < AccountPropertyModification < string > > ,
40- networkType : NetworkType ) : ModifyAccountPropertyAddressTransaction {
39+ public static createAddressPropertyModificationTransaction (
40+ deadline : Deadline ,
41+ propertyType : PropertyType ,
42+ modifications : Array < AccountPropertyModification < string > > ,
43+ networkType : NetworkType ,
44+ maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] )
45+ ) : ModifyAccountPropertyAddressTransaction {
4146 if ( ! [ PropertyType . AllowAddress , PropertyType . BlockAddress ] . includes ( propertyType ) ) {
4247 throw new Error ( 'Property type is not allowed.' ) ;
4348 }
44- return ModifyAccountPropertyAddressTransaction . create ( deadline , propertyType , modifications , networkType ) ;
49+ return ModifyAccountPropertyAddressTransaction . create (
50+ deadline ,
51+ propertyType ,
52+ modifications ,
53+ networkType ,
54+ maxFee
55+ ) ;
4556 }
4657
4758 /**
@@ -50,16 +61,26 @@ export class AccountPropertyTransaction {
5061 * @param propertyType - Type of account property transaction
5162 * @param modification - array of mosaic modifications
5263 * @param networkType - The network type.
64+ * @param maxFee - (Optional) Max fee defined by the sender
5365 * @returns {ModifyAccountPropertyMosaicTransaction }
5466 */
55- public static createMosaicPropertyModificationTransaction ( deadline : Deadline ,
56- propertyType : PropertyType ,
57- modifications : Array < AccountPropertyModification < number [ ] > > ,
58- networkType : NetworkType ) : ModifyAccountPropertyMosaicTransaction {
67+ public static createMosaicPropertyModificationTransaction (
68+ deadline : Deadline ,
69+ propertyType : PropertyType ,
70+ modifications : Array < AccountPropertyModification < number [ ] > > ,
71+ networkType : NetworkType ,
72+ maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] )
73+ ) : ModifyAccountPropertyMosaicTransaction {
5974 if ( ! [ PropertyType . AllowMosaic , PropertyType . BlockMosaic ] . includes ( propertyType ) ) {
6075 throw new Error ( 'Property type is not allowed.' ) ;
6176 }
62- return ModifyAccountPropertyMosaicTransaction . create ( deadline , propertyType , modifications , networkType ) ;
77+ return ModifyAccountPropertyMosaicTransaction . create (
78+ deadline ,
79+ propertyType ,
80+ modifications ,
81+ networkType ,
82+ maxFee
83+ ) ;
6384 }
6485
6586 /**
@@ -68,16 +89,26 @@ export class AccountPropertyTransaction {
6889 * @param propertyType - Type of account property transaction
6990 * @param modification - array of entity type modifications
7091 * @param networkType - The network type.
92+ * @param maxFee - (Optional) Max fee defined by the sender
7193 * @returns {ModifyAccountPropertyEntityTypeTransaction }
7294 */
73- public static createEntityTypePropertyModificationTransaction ( deadline : Deadline ,
74- propertyType : PropertyType ,
75- modifications : Array < AccountPropertyModification < number > > ,
76- networkType : NetworkType ) : ModifyAccountPropertyEntityTypeTransaction {
95+ public static createEntityTypePropertyModificationTransaction (
96+ deadline : Deadline ,
97+ propertyType : PropertyType ,
98+ modifications : Array < AccountPropertyModification < number > > ,
99+ networkType : NetworkType ,
100+ maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] )
101+ ) : ModifyAccountPropertyEntityTypeTransaction {
77102 if ( ! [ PropertyType . AllowTransaction , PropertyType . BlockTransaction ] . includes ( propertyType ) ) {
78103 throw new Error ( 'Property type is not allowed.' ) ;
79104 }
80- return ModifyAccountPropertyEntityTypeTransaction . create ( deadline , propertyType , modifications , networkType ) ;
105+ return ModifyAccountPropertyEntityTypeTransaction . create (
106+ deadline ,
107+ propertyType ,
108+ modifications ,
109+ networkType ,
110+ maxFee
111+ ) ;
81112 }
82113
83114 /**
0 commit comments