Skip to content

Commit 4916ab6

Browse files
committed
Added #186 Reset transaction versions to 1 (36865)
1 parent 61dd0f0 commit 4916ab6

13 files changed

+40
-40
lines changed

e2e/infrastructure/transaction/CreateTransactionFromDTO.spec.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('CreateTransactionFromDTO', () => {
3939
// tslint:disable-next-line:max-line-length
4040
signature: '7442156D839A3AC900BC0299E8701ECDABA674DCF91283223450953B005DE72C538EA54236F5E089530074CE78067CD3325CF53750B9118154C08B20A5CDC00D',
4141
signer: '2FC3872A792933617D70E02AFF8FBDE152821A0DF0CA5FB04CB56FC3D21C8863',
42-
version: 36867,
42+
version: 36865,
4343
type: 16724,
4444
maxFee: [0, 0],
4545
deadline: [3362498678, 22],
@@ -78,7 +78,7 @@ describe('CreateTransactionFromDTO', () => {
7878
// tslint:disable-next-line:max-line-length
7979
signature: '7442156D839A3AC900BC0299E8701ECDABA674DCF91283223450953B005DE72C538EA54236F5E089530074CE78067CD3325CF53750B9118154C08B20A5CDC00D',
8080
signer: '2FC3872A792933617D70E02AFF8FBDE152821A0DF0CA5FB04CB56FC3D21C8863',
81-
version: 36867,
81+
version: 36865,
8282
type: 16724,
8383
maxFee: [0, 0],
8484
deadline: [3362498678, 22],
@@ -160,12 +160,12 @@ describe('CreateTransactionFromDTO', () => {
160160
recipient: '9050B9837EFAB4BBE8A4B9BB32D812F9885C00D8FC1650E142',
161161
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
162162
type: 16724,
163-
version: 36867,
163+
version: 36865,
164164
},
165165
},
166166
],
167167
type: 16705,
168-
version: 36866,
168+
version: 36865,
169169
},
170170
};
171171

@@ -212,7 +212,7 @@ describe('CreateTransactionFromDTO', () => {
212212
'2F6EE63025FEEBCED3293B622AF8581334D0BDAB7541A9E7411E7EE4EF0BC5D0E',
213213
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
214214
type: 16718,
215-
version: 36867,
215+
version: 36865,
216216
},
217217
};
218218

@@ -277,12 +277,12 @@ describe('CreateTransactionFromDTO', () => {
277277
namespaceType: 0,
278278
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
279279
type: 16718,
280-
version: 36867,
280+
version: 36865,
281281
},
282282
},
283283
],
284284
type: 16705,
285-
version: 36867,
285+
version: 36865,
286286
},
287287
};
288288

@@ -331,7 +331,7 @@ describe('CreateTransactionFromDTO', () => {
331331
'E02F6EE63025FEEBCED3293B622AF8581334D0BDAB7541A9E7411E7EE4EF0BC5D0E',
332332
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
333333
type: 16718,
334-
version: 36867,
334+
version: 36865,
335335
},
336336
};
337337
const transferTransaction = CreateTransactionFromDTO(registerNamespaceTransactionDTO);
@@ -395,12 +395,12 @@ describe('CreateTransactionFromDTO', () => {
395395
],
396396
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
397397
type: 16718,
398-
version: 36867,
398+
version: 36865,
399399
},
400400
},
401401
],
402402
type: 16705,
403-
version: 36867,
403+
version: 36865,
404404
},
405405
};
406406

@@ -470,7 +470,7 @@ describe('CreateTransactionFromDTO', () => {
470470
'EBCED3293B622AF8581334D0BDAB7541A9E7411E7EE4EF0BC5D0E',
471471
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
472472
type: 16717,
473-
version: 36867,
473+
version: 36865,
474474
},
475475
};
476476

@@ -556,12 +556,12 @@ describe('CreateTransactionFromDTO', () => {
556556
],
557557
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
558558
type: 16717,
559-
version: 36867,
559+
version: 36865,
560560
},
561561
},
562562
],
563563
type: 16705,
564-
version: 36867,
564+
version: 36865,
565565
},
566566
};
567567

@@ -608,7 +608,7 @@ describe('CreateTransactionFromDTO', () => {
608608
'2F6EE63025FEEBCED3293B622AF8581334D0BDAB7541A9E7411E7EE4EF0BC5D0E',
609609
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
610610
type: 16973,
611-
version: 36867,
611+
version: 36865,
612612
},
613613
};
614614

@@ -672,12 +672,12 @@ describe('CreateTransactionFromDTO', () => {
672672
],
673673
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
674674
type: 16973,
675-
version: 36867,
675+
version: 36865,
676676
},
677677
},
678678
],
679679
type: 16705,
680-
version: 36867,
680+
version: 36865,
681681
},
682682
};
683683

@@ -723,7 +723,7 @@ describe('CreateTransactionFromDTO', () => {
723723
'2F6EE63025FEEBCED3293B622AF8581334D0BDAB7541A9E7411E7EE4EF0BC5D0E',
724724
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
725725
type: 16725,
726-
version: 36867,
726+
version: 36865,
727727
},
728728
};
729729

@@ -788,12 +788,12 @@ describe('CreateTransactionFromDTO', () => {
788788
],
789789
signer: 'B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF',
790790
type: 16725,
791-
version: 36867,
791+
version: 36865,
792792
},
793793
},
794794
],
795795
type: 16705,
796-
version: 36867,
796+
version: 36865,
797797
},
798798
};
799799

src/infrastructure/builders/AccountLinkTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Builder {
4848
linkAction: any;
4949
constructor() {
5050
this.fee = [0, 0];
51-
this.version = 36867;
51+
this.version = 36865;
5252
this.type = 0x414C;
5353
}
5454

src/infrastructure/builders/AggregateTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class Builder {
8484
transactions: any;
8585
constructor() {
8686
this.fee = [0, 0];
87-
this.version = 36867;
87+
this.version = 36865;
8888
this.type = 0x4141;
8989
}
9090

src/infrastructure/builders/HashLockTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Builder {
4848
hash: any;
4949
constructor() {
5050
this.fee = [0, 0];
51-
this.version = 36867;
51+
this.version = 36865;
5252
this.type = 0x414C;
5353
}
5454

src/infrastructure/builders/MosaicCreationTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class Builder {
5151
constructor() {
5252
this.flags = 0;
5353
this.fee = [0, 0];
54-
this.version = 36867;
54+
this.version = 36865;
5555
this.type = 0x414d;
5656
this.nonce = 0;
5757
}

src/infrastructure/builders/MosaicSupplyChangeTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class Builder {
4444
delta: any;
4545
constructor() {
4646
this.fee = [0, 0];
47-
this.version = 36867;
47+
this.version = 36865;
4848
this.type = 0x424d;
4949
}
5050

src/infrastructure/builders/MultisigModificationTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class Builder {
4747
modifications: any;
4848
constructor() {
4949
this.fee = [0, 0];
50-
this.version = 36867;
50+
this.version = 36865;
5151
this.type = 0x4155;
5252
}
5353

src/infrastructure/builders/NamespaceCreationTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class Builder {
4949
namespaceName: any;
5050
constructor() {
5151
this.fee = [0, 0];
52-
this.version = 36867;
52+
this.version = 36865;
5353
this.type = 0x414e;
5454
}
5555

src/infrastructure/builders/TransferTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class Builder {
4949
mosaics: any;
5050
constructor() {
5151
this.fee = [0, 0];
52-
this.version = 36867;
52+
this.version = 36865;
5353
this.type = 0x4154;
5454
}
5555

src/model/transaction/TransactionVersion.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,42 +31,42 @@ export class TransactionVersion {
3131
* Transfer Transaction transaction version.
3232
* @type {number}
3333
*/
34-
public static readonly TRANSFER = 3;
34+
public static readonly TRANSFER = 1;
3535

3636
/**
3737
* Register namespace transaction version.
3838
* @type {number}
3939
*/
40-
public static readonly REGISTER_NAMESPACE = 2;
40+
public static readonly REGISTER_NAMESPACE = 1;
4141

4242
/**
4343
* Mosaic definition transaction version.
4444
* @type {number}
4545
*/
46-
public static readonly MOSAIC_DEFINITION = 3;
46+
public static readonly MOSAIC_DEFINITION = 1;
4747

4848
/**
4949
* Mosaic supply change transaction.
5050
* @type {number}
5151
*/
52-
public static readonly MOSAIC_SUPPLY_CHANGE = 2;
52+
public static readonly MOSAIC_SUPPLY_CHANGE = 1;
5353

5454
/**
5555
* Modify multisig account transaction version.
5656
* @type {number}
5757
*/
58-
public static readonly MODIFY_MULTISIG_ACCOUNT = 3;
58+
public static readonly MODIFY_MULTISIG_ACCOUNT = 1;
5959

6060
/**
6161
* Aggregate complete transaction version.
6262
* @type {number}
6363
*/
64-
public static readonly AGGREGATE_COMPLETE = 2;
64+
public static readonly AGGREGATE_COMPLETE = 1;
6565

6666
/**
6767
* Aggregate bonded transaction version
6868
*/
69-
public static readonly AGGREGATE_BONDED = 2;
69+
public static readonly AGGREGATE_BONDED = 1;
7070

7171
/**
7272
* Lock transaction version
@@ -120,5 +120,5 @@ export class TransactionVersion {
120120
* Link account transaction version
121121
* @type {number}
122122
*/
123-
public static readonly LINK_ACCOUNT = 2;
123+
public static readonly LINK_ACCOUNT = 1;
124124
}

0 commit comments

Comments
 (0)