Skip to content

Commit 4701a2b

Browse files
committed
update location and export of ISimpleWalletDTO
1 parent d322be7 commit 4701a2b

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/infrastructure/infrastructure.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ export * from './BlockHttp';
1919
export * from './ChainHttp';
2020
export * from './DiagnosticHttp';
2121
export * from './Http';
22-
export * from './Listener';
23-
export * from './MetadataHttp';
2422
export * from './MosaicHttp';
25-
export * from './MultisigHttp';
23+
export * from './MetadataHttp';
2624
export * from './NamespaceHttp';
25+
export * from './TransactionHttp';
26+
export * from './Listener';
27+
export * from './QueryParams';
2728
export * from './NetworkHttp';
2829
export * from './NodeHttp';
29-
export * from './QueryParams';
30-
export * from './ReceiptHttp';
3130
export * from './RestrictionAccountHttp';
3231
export * from './RestrictionMosaicHttp';
32+
export * from './MultisigHttp';
33+
export * from './ReceiptHttp';
3334
export * from './transaction/NamespaceMosaicIdGenerator';
34-
export * from './TransactionHttp';
35-
export * from './wallet/simpleWalletDTO';

src/model/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export * from './transaction/MosaicAddressRestrictionTransaction';
158158

159159
// Wallet
160160
export * from './wallet/EncryptedPrivateKey';
161+
export * from './wallet/ISimpleWalletDTO';
161162
export * from './wallet/Password';
162163
export * from './wallet/SimpleWallet';
163164
export * from './wallet/Wallet';

src/model/wallet/SimpleWallet.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import {LocalDateTime} from 'js-joda';
1818
import {Crypto, KeyPair, SHA3Hasher} from '../../core/crypto';
1919
import {Convert as convert} from '../../core/format';
20-
import {ISimpleWalletDTO} from '../../infrastructure/wallet/simpleWalletDTO';
2120
import {Account} from '../account/Account';
2221
import {Address} from '../account/Address';
2322
import {NetworkType} from '../blockchain/NetworkType';
2423
import {EncryptedPrivateKey} from './EncryptedPrivateKey';
24+
import {ISimpleWalletDTO} from './ISimpleWalletDTO';
2525
import {Password} from './Password';
2626
import {Wallet} from './Wallet';
2727

@@ -109,8 +109,9 @@ export class SimpleWallet extends Wallet {
109109
/**
110110
* Instantiate a SimpleWallet from a DTO
111111
* @param simpleWalletDTO simple wallet without prototype
112+
* @returns {SimpleWallet}
112113
*/
113-
static createFromDTO(simpleWalletDTO: ISimpleWalletDTO) {
114+
static createFromDTO(simpleWalletDTO: ISimpleWalletDTO): SimpleWallet {
114115
return new SimpleWallet(
115116
simpleWalletDTO.name,
116117
simpleWalletDTO.network,

0 commit comments

Comments
 (0)