@@ -25,8 +25,8 @@ import {Listener} from '../../src/infrastructure/Listener';
2525import { TransactionHttp } from '../../src/infrastructure/TransactionHttp' ;
2626import { Account } from '../../src/model/account/Account' ;
2727import { Address } from '../../src/model/account/Address' ;
28- import { PropertyModificationType } from '../../src/model/account/PropertyModificationType ' ;
29- import { PropertyType } from '../../src/model/account/PropertyType ' ;
28+ import { RestrictionModificationType } from '../../src/model/account/RestrictionModificationType ' ;
29+ import { RestrictionType } from '../../src/model/account/RestrictionType ' ;
3030import { PublicAccount } from '../../src/model/account/PublicAccount' ;
3131import { NetworkType } from '../../src/model/blockchain/NetworkType' ;
3232import { Mosaic } from '../../src/model/mosaic/Mosaic' ;
@@ -284,12 +284,12 @@ describe('TransactionHttp', () => {
284284
285285 it ( 'standalone' , ( done ) => {
286286 const addressPropertyFilter = AccountRestrictionModification . createForAddress (
287- PropertyModificationType . Add ,
287+ RestrictionModificationType . Add ,
288288 account3 . address ,
289289 ) ;
290290 const addressModification = AccountRestrictionTransaction . createAddressPropertyModificationTransaction (
291291 Deadline . create ( ) ,
292- PropertyType . BlockAddress ,
292+ RestrictionType . BlockAddress ,
293293 [ addressPropertyFilter ] ,
294294 NetworkType . MIJIN_TEST ,
295295 ) ;
@@ -299,7 +299,7 @@ describe('TransactionHttp', () => {
299299 expect ( transaction . modifications , 'Modifications' ) . not . to . be . undefined ;
300300 expect ( transaction . modifications [ 0 ] . modificationType , 'Modifications.ModificationType' ) . not . to . be . undefined ;
301301 expect ( transaction . modifications [ 0 ] . value , 'Modifications.Value' ) . not . to . be . undefined ;
302- expect ( transaction . propertyType , 'PropertyType' ) . not . to . be . undefined ;
302+ expect ( transaction . restrictionType , 'PropertyType' ) . not . to . be . undefined ;
303303 done ( ) ;
304304 } ) ;
305305 listener . status ( account . address ) . subscribe ( ( error ) => {
@@ -321,12 +321,12 @@ describe('TransactionHttp', () => {
321321 } ) ;
322322 it ( 'aggregate' , ( done ) => {
323323 const addressPropertyFilter = AccountRestrictionModification . createForAddress (
324- PropertyModificationType . Remove ,
324+ RestrictionModificationType . Remove ,
325325 account3 . address ,
326326 ) ;
327327 const addressModification = AccountRestrictionTransaction . createAddressPropertyModificationTransaction (
328328 Deadline . create ( ) ,
329- PropertyType . BlockAddress ,
329+ RestrictionType . BlockAddress ,
330330 [ addressPropertyFilter ] ,
331331 NetworkType . MIJIN_TEST ,
332332 ) ;
@@ -359,12 +359,12 @@ describe('TransactionHttp', () => {
359359
360360 it ( 'standalone' , ( done ) => {
361361 const mosaicPropertyFilter = AccountRestrictionModification . createForMosaic (
362- PropertyModificationType . Add ,
362+ RestrictionModificationType . Add ,
363363 mosaicId ,
364364 ) ;
365365 const addressModification = AccountRestrictionTransaction . createMosaicPropertyModificationTransaction (
366366 Deadline . create ( ) ,
367- PropertyType . BlockMosaic ,
367+ RestrictionType . BlockMosaic ,
368368 [ mosaicPropertyFilter ] ,
369369 NetworkType . MIJIN_TEST ,
370370 ) ;
@@ -374,7 +374,7 @@ describe('TransactionHttp', () => {
374374 expect ( transaction . modifications , 'Modifications' ) . not . to . be . undefined ;
375375 expect ( transaction . modifications [ 0 ] . modificationType , 'Modifications.ModificationType' ) . not . to . be . undefined ;
376376 expect ( transaction . modifications [ 0 ] . value , 'Modifications.Value' ) . not . to . be . undefined ;
377- expect ( transaction . propertyType , 'PropertyType' ) . not . to . be . undefined ;
377+ expect ( transaction . restrictionType , 'PropertyType' ) . not . to . be . undefined ;
378378 done ( ) ;
379379 } ) ;
380380 listener . status ( account . address ) . subscribe ( ( error ) => {
@@ -396,12 +396,12 @@ describe('TransactionHttp', () => {
396396 } ) ;
397397 it ( 'aggregate' , ( done ) => {
398398 const mosaicPropertyFilter = AccountRestrictionModification . createForMosaic (
399- PropertyModificationType . Remove ,
399+ RestrictionModificationType . Remove ,
400400 mosaicId ,
401401 ) ;
402402 const addressModification = AccountRestrictionTransaction . createMosaicPropertyModificationTransaction (
403403 Deadline . create ( ) ,
404- PropertyType . BlockMosaic ,
404+ RestrictionType . BlockMosaic ,
405405 [ mosaicPropertyFilter ] ,
406406 NetworkType . MIJIN_TEST ,
407407 ) ;
@@ -434,12 +434,12 @@ describe('TransactionHttp', () => {
434434
435435 it ( 'standalone' , ( done ) => {
436436 const entityTypePropertyFilter = AccountRestrictionModification . createForEntityType (
437- PropertyModificationType . Add ,
437+ RestrictionModificationType . Add ,
438438 TransactionType . LINK_ACCOUNT ,
439439 ) ;
440440 const addressModification = AccountRestrictionTransaction . createEntityTypePropertyModificationTransaction (
441441 Deadline . create ( ) ,
442- PropertyType . BlockTransaction ,
442+ RestrictionType . BlockTransaction ,
443443 [ entityTypePropertyFilter ] ,
444444 NetworkType . MIJIN_TEST ,
445445 ) ;
@@ -449,7 +449,7 @@ describe('TransactionHttp', () => {
449449 expect ( transaction . modifications , 'Modifications' ) . not . to . be . undefined ;
450450 expect ( transaction . modifications [ 0 ] . modificationType , 'Modifications.ModificationType' ) . not . to . be . undefined ;
451451 expect ( transaction . modifications [ 0 ] . value , 'Modifications.Value' ) . not . to . be . undefined ;
452- expect ( transaction . propertyType , 'PropertyType' ) . not . to . be . undefined ;
452+ expect ( transaction . restrictionType , 'PropertyType' ) . not . to . be . undefined ;
453453 done ( ) ;
454454 } ) ;
455455 listener . status ( account3 . address ) . subscribe ( ( error ) => {
@@ -471,12 +471,12 @@ describe('TransactionHttp', () => {
471471 } ) ;
472472 it ( 'aggregate' , ( done ) => {
473473 const entityTypePropertyFilter = AccountRestrictionModification . createForEntityType (
474- PropertyModificationType . Remove ,
474+ RestrictionModificationType . Remove ,
475475 TransactionType . LINK_ACCOUNT ,
476476 ) ;
477477 const addressModification = AccountRestrictionTransaction . createEntityTypePropertyModificationTransaction (
478478 Deadline . create ( ) ,
479- PropertyType . BlockTransaction ,
479+ RestrictionType . BlockTransaction ,
480480 [ entityTypePropertyFilter ] ,
481481 NetworkType . MIJIN_TEST ,
482482 ) ;
0 commit comments