Skip to content

Commit cbda53c

Browse files
committed
refactor(web-client,sdk-typescript): move types module to nautilus-wallet-client-core
1 parent 0ef79e7 commit cbda53c

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

web-client-workspace/web-client/src/schema/actions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
/** Core request / response message types. */
22

3+
import {
4+
Bytes,
5+
WalletId,
6+
WalletPin,
7+
} from 'nautilus-wallet-client-core/schema/types';
38
import { AlgorandTransactionSigned, WalletDisplay } from './entities';
4-
import { Bytes, WalletId, WalletPin } from './types';
59

610
export type CreateWallet = {
711
owner_name: string;

web-client-workspace/web-client/src/schema/attestation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { Bytes } from 'nautilus-wallet-client-core/schema/types';
12
import { PublicKey } from './crypto';
2-
import { Bytes } from './types';
33

44
export type AttestationReport = {
55
report: SgxReport;

web-client-workspace/web-client/src/schema/crypto.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
* Interface patterned after `SodaBoxCrypto` on the server, but implemented using TweetNaCl.
33
*/
44

5+
import {
6+
Bytes,
7+
Bytes24,
8+
Bytes32,
9+
} from 'nautilus-wallet-client-core/schema/types';
510
import * as nacl from 'tweetnacl';
611
import { BoxKeyPair } from 'tweetnacl';
7-
import { Bytes, Bytes24, Bytes32 } from './types';
812

913
export type PublicKey = Bytes32;
1014
export type PrivateKey = Bytes32;

web-client-workspace/web-client/src/schema/entities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
AlgorandAddressBase32,
66
Bytes,
77
WalletId,
8-
} from './types';
8+
} from 'nautilus-wallet-client-core/schema/types';
99

1010
/** A Nautilus wallet's basic displayable details. */
1111
export type WalletDisplay = {

web-client-workspace/web-client/src/schema/msgpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** MessagePack helper functions. */
22

33
import { Decoder, Encoder } from '@msgpack/msgpack';
4-
import { Bytes } from './types';
4+
import { Bytes } from 'nautilus-wallet-client-core/schema/types';
55

66
/// Enable for verbose from_msgpack / to_msgpack console debugging logs.
77
const LOG_DEBUG = false;

web-client-workspace/web-client/src/schema/sealing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** [`SealedMessage`] sealing and unsealing. */
22

3+
import { Bytes } from 'nautilus-wallet-client-core/schema/types';
34
import { Nonce, PublicKey, TweetNaClCrypto } from './crypto';
45
import { from_msgpack, from_msgpack_as, to_msgpack } from './msgpack';
5-
import { Bytes } from './types';
66

77
/** A sealed message */
88
export type SealedMessage = {

0 commit comments

Comments
 (0)