Skip to content

Commit 4d22d6f

Browse files
author
Grégory Saive
authored
Merge pull request #194 from rg911/task/g192_rename_account_property_tx
[Elephant] Issue #193 Updated AccountPropertyTransaction Names
2 parents ed28463 + f7dc9cf commit 4d22d6f

File tree

114 files changed

+1694
-1694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1694
-1694
lines changed

e2e/infrastructure/AccountHttp.spec.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ import {AccountHttp} from '../../src/infrastructure/AccountHttp';
2020
import { Listener, TransactionHttp } from '../../src/infrastructure/infrastructure';
2121
import { Account } from '../../src/model/account/Account';
2222
import {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';
2525
import {PublicAccount} from '../../src/model/account/PublicAccount';
2626
import {NetworkType} from '../../src/model/blockchain/NetworkType';
2727
import { NetworkCurrencyMosaic } from '../../src/model/mosaic/NetworkCurrencyMosaic';
2828
import { AliasActionType } from '../../src/model/namespace/AliasActionType';
2929
import { 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';
3232
import { AddressAliasTransaction } from '../../src/model/transaction/AddressAliasTransaction';
3333
import { AggregateTransaction } from '../../src/model/transaction/AggregateTransaction';
3434
import { 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

Comments
 (0)