@@ -22,8 +22,9 @@ import {MosaicId} from '../model/mosaic/MosaicId';
2222import { MosaicInfo } from '../model/mosaic/MosaicInfo' ;
2323import { MosaicNames } from '../model/mosaic/MosaicNames' ;
2424import { MosaicProperties } from '../model/mosaic/MosaicProperties' ;
25- import { MosaicPropertyIdEnum } from '../model/mosaic/MosaicPropertyIdEnum ' ;
25+ import { MosaicPropertyType } from '../model/mosaic/MosaicPropertyType ' ;
2626import { NamespaceId } from '../model/namespace/NamespaceId' ;
27+ import { NamespaceName } from '../model/namespace/NamespaceName' ;
2728import { UInt64 } from '../model/UInt64' ;
2829import { Http } from './Http' ;
2930import { MosaicRepository } from './MosaicRepository' ;
@@ -69,9 +70,9 @@ export class MosaicHttp extends Http implements MosaicRepository {
6970 PublicAccount . createFromPublicKey ( mosaicInfoDTO . mosaic . owner , networkType ) ,
7071 mosaicInfoDTO . mosaic . revision ,
7172 new MosaicProperties (
72- new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyIdEnum . MosaicFlags ] . value ) ,
73- ( new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyIdEnum . Divisibility ] . value ) ) . compact ( ) ,
74- new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyIdEnum . Duration ] . value ) ,
73+ new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyType . MosaicFlags ] . value ) ,
74+ ( new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyType . Divisibility ] . value ) ) . compact ( ) ,
75+ new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyType . Duration ] . value ) ,
7576 ) ,
7677 ) ;
7778 } ) ) ) ) ;
@@ -98,9 +99,9 @@ export class MosaicHttp extends Http implements MosaicRepository {
9899 PublicAccount . createFromPublicKey ( mosaicInfoDTO . mosaic . owner , networkType ) ,
99100 mosaicInfoDTO . mosaic . revision ,
100101 new MosaicProperties (
101- new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyIdEnum . MosaicFlags ] . value ) ,
102- ( new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyIdEnum . Divisibility ] . value ) ) . compact ( ) ,
103- new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyIdEnum . Duration ] . value ) ,
102+ new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyType . MosaicFlags ] . value ) ,
103+ ( new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyType . Divisibility ] . value ) ) . compact ( ) ,
104+ new UInt64 ( mosaicInfoDTO . mosaic . properties [ MosaicPropertyType . Duration ] . value ) ,
104105 ) ,
105106 ) ;
106107 } ) ;
@@ -123,7 +124,7 @@ export class MosaicHttp extends Http implements MosaicRepository {
123124 return new MosaicNames (
124125 new MosaicId ( mosaic . mosaicId ) ,
125126 mosaic . names . map ( ( name ) => {
126- new NamespaceId ( name ) ;
127+ new NamespaceName ( new NamespaceId ( name ) , name ) ;
127128 } ) ,
128129 ) ;
129130 } ) ;
0 commit comments