Skip to content

Commit 10a2888

Browse files
committed
JAV-12 Added Namespace pruned receipt type
1 parent 2601e19 commit 10a2888

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/infrastructure/receipt/CreateReceiptFromDTO.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const CreateReceiptFromDTO = (receiptDTO, networkType): Receipt => {
7373
return createBalanceTransferReceipt(receiptDTO, networkType);
7474
case ReceiptType.Mosaic_Expired:
7575
case ReceiptType.Namespace_Expired:
76+
case ReceiptType.Namespace_Deleted:
7677
return createArtifactExpiryReceipt(receiptDTO);
7778
case ReceiptType.Inflation:
7879
return createInflationReceipt(receiptDTO);

src/model/receipt/ReceiptType.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,20 @@ export enum ReceiptType {
5050
* The sender and recipient of the mosaicId and amount representing the cost of registering the mosaic.
5151
* It is recorded when a mosaic is registered.
5252
*/
53-
Mosaic_Rental_Fee = 0x134D,
53+
Mosaic_Rental_Fee = 0x124D,
5454
/**
55-
* The namespaceId expiring in this block. It is recorded when a namespace expires.
55+
* The identifier of the namespace expiring in this block. It is recorded when the namespace lifetime elapses.
5656
*/
5757
Namespace_Expired = 0x414E,
5858
/**
5959
* The sender and recipient of the mosaicId and amount representing the cost of extending the namespace.
6060
* It is recorded when a namespace is registered or its duration is extended.
6161
*/
62-
Namespace_Rental_Fee = 0x124E,
62+
Namespace_Rental_Fee = 0x134E,
63+
/**
64+
* The identifier of the namespace deleted in this block. It is recorded when the namespace grace period elapses.
65+
*/
66+
Namespace_Deleted = 0x424E,
6367
/**
6468
* The lockhash sender, mosaicId and amount locked. It is recorded when a valid HashLockTransaction is announced.
6569
*/

test/model/receipt/Receipt.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('Receipt', () => {
162162
it('should createComplete a balance transfer receipt - Mosaic Rental Fee', () => {
163163
const receiptDTO = {
164164
version: 1,
165-
type: 4941,
165+
type: 4685,
166166
senderPublicKey: account.publicKey,
167167
recipientAddress: '9103B60AAF2762688300000000000000000000000000000000',
168168
mosaicId: '941299B2B7E1291C',

0 commit comments

Comments
 (0)