@@ -20,15 +20,15 @@ import {AccountHttp} from '../../src/infrastructure/AccountHttp';
2020import { Listener , TransactionHttp } from '../../src/infrastructure/infrastructure' ;
2121import { Account } from '../../src/model/account/Account' ;
2222import { Address } from '../../src/model/account/Address' ;
23- import { PropertyModificationType } from '../../src/model/account/PropertyModificationType ' ;
24- import { PropertyType } from '../../src/model/account/PropertyType ' ;
23+ import { RestrictionModificationType } from '../../src/model/account/RestrictionModificationType ' ;
24+ import { RestrictionType } from '../../src/model/account/RestrictionType ' ;
2525import { PublicAccount } from '../../src/model/account/PublicAccount' ;
2626import { NetworkType } from '../../src/model/blockchain/NetworkType' ;
2727import { NetworkCurrencyMosaic } from '../../src/model/mosaic/NetworkCurrencyMosaic' ;
2828import { AliasActionType } from '../../src/model/namespace/AliasActionType' ;
2929import { NamespaceId } from '../../src/model/namespace/NamespaceId' ;
30- import { AccountPropertyModification } from '../../src/model/transaction/AccountPropertyModification ' ;
31- import { AccountPropertyTransaction } from '../../src/model/transaction/AccountPropertyTransaction ' ;
30+ import { AccountRestrictionModification } from '../../src/model/transaction/AccountRestrictionModification ' ;
31+ import { AccountRestrictionTransaction } from '../../src/model/transaction/AccountRestrictionTransaction ' ;
3232import { AddressAliasTransaction } from '../../src/model/transaction/AddressAliasTransaction' ;
3333import { AggregateTransaction } from '../../src/model/transaction/AggregateTransaction' ;
3434import { Deadline } from '../../src/model/transaction/Deadline' ;
@@ -193,14 +193,14 @@ describe('AccountHttp', () => {
193193 return listener . close ( ) ;
194194 } ) ;
195195
196- it ( 'Announce AccountPropertyTransaction ' , ( done ) => {
197- const addressPropertyFilter = AccountPropertyModification . createForAddress (
198- PropertyModificationType . Add ,
196+ it ( 'Announce AccountRestrictionTransaction ' , ( done ) => {
197+ const addressPropertyFilter = AccountRestrictionModification . createForAddress (
198+ RestrictionModificationType . Add ,
199199 account3 . address ,
200200 ) ;
201- const addressModification = AccountPropertyTransaction . createAddressPropertyModificationTransaction (
201+ const addressModification = AccountRestrictionTransaction . createAddressRestrictionModificationTransaction (
202202 Deadline . create ( ) ,
203- PropertyType . BlockAddress ,
203+ RestrictionType . BlockAddress ,
204204 [ addressPropertyFilter ] ,
205205 NetworkType . MIJIN_TEST ,
206206 ) ;
@@ -282,22 +282,22 @@ describe('AccountHttp', () => {
282282 } ) ;
283283 } ) ;
284284
285- describe ( 'getAccountProperty ' , ( ) => {
286- it ( 'should call getAccountProperty successfully' , ( done ) => {
285+ describe ( 'getAccountRestrictions ' , ( ) => {
286+ it ( 'should call getAccountRestrictions successfully' , ( done ) => {
287287 setTimeout ( ( ) => {
288- accountHttp . getAccountProperties ( accountAddress ) . subscribe ( ( accountProperty ) => {
289- deepEqual ( accountProperty . accountProperties . address , accountAddress ) ;
288+ accountHttp . getAccountRestrictions ( accountAddress ) . subscribe ( ( accountRestrictions ) => {
289+ deepEqual ( accountRestrictions . accountRestrictions . address , accountAddress ) ;
290290 done ( ) ;
291291 } ) ;
292292 } , 1000 ) ;
293293 } ) ;
294294 } ) ;
295295
296- describe ( 'getAccountProperties ' , ( ) => {
297- it ( 'should call getAccountProperties successfully' , ( done ) => {
296+ describe ( 'getAccountRestrictions ' , ( ) => {
297+ it ( 'should call getAccountRestrictions successfully' , ( done ) => {
298298 setTimeout ( ( ) => {
299- accountHttp . getAccountPropertiesFromAccounts ( [ accountAddress ] ) . subscribe ( ( accountProperties ) => {
300- deepEqual ( accountProperties [ 0 ] ! . accountProperties . address , accountAddress ) ;
299+ accountHttp . getAccountRestrictionsFromAccounts ( [ accountAddress ] ) . subscribe ( ( accountRestrictions ) => {
300+ deepEqual ( accountRestrictions [ 0 ] ! . accountRestrictions . address , accountAddress ) ;
301301 done ( ) ;
302302 } ) ;
303303 } , 1000 ) ;
@@ -409,7 +409,7 @@ describe('AccountHttp', () => {
409409 transactionHttp . announce ( signedTransaction ) ;
410410 } ) ;
411411 } ) ;
412- describe ( 'Remove test AccountProperty - Address' , ( ) => {
412+ describe ( 'Remove test AccountRestriction - Address' , ( ) => {
413413 let listener : Listener ;
414414 before ( ( ) => {
415415 listener = new Listener ( config . apiUrl ) ;
@@ -419,14 +419,14 @@ describe('AccountHttp', () => {
419419 return listener . close ( ) ;
420420 } ) ;
421421
422- it ( 'Announce AccountPropertyTransaction ' , ( done ) => {
423- const addressPropertyFilter = AccountPropertyModification . createForAddress (
424- PropertyModificationType . Remove ,
422+ it ( 'Announce AccountRestrictionTransaction ' , ( done ) => {
423+ const addressPropertyFilter = AccountRestrictionModification . createForAddress (
424+ RestrictionModificationType . Remove ,
425425 account3 . address ,
426426 ) ;
427- const addressModification = AccountPropertyTransaction . createAddressPropertyModificationTransaction (
427+ const addressModification = AccountRestrictionTransaction . createAddressRestrictionModificationTransaction (
428428 Deadline . create ( ) ,
429- PropertyType . BlockAddress ,
429+ RestrictionType . BlockAddress ,
430430 [ addressPropertyFilter ] ,
431431 NetworkType . MIJIN_TEST ,
432432 ) ;
0 commit comments