Skip to content

Commit 182ccf7

Browse files
committed
TODOs and package clean up
1 parent 7bb2350 commit 182ccf7

6 files changed

Lines changed: 8 additions & 3 deletions

File tree

packages/client/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@
3131
"@noble/ciphers": "^0.5.3",
3232
"@noble/curves": "^1.4.2",
3333
"@noble/hashes": "^1.4.0",
34-
"clsx": "^1.2.1",
3534
"eventemitter3": "^5.0.1"
3635
},
3736
"peerDependencies": {
3837
"@react-native-async-storage/async-storage": "*",
3938
"expo": "*",
4039
"expo-web-browser": "*",
4140
"react": "*",
42-
"react-dom": "*",
4341
"react-native": "*"
4442
},
4543
"devDependencies": {
@@ -51,7 +49,6 @@
5149
"@peculiar/webcrypto": "^1.4.3",
5250
"@react-native-async-storage/async-storage": "^1.24.0",
5351
"@testing-library/jest-dom": "^5.17.0",
54-
"@testing-library/preact": "^2.0.1",
5552
"@testing-library/react": "14.3.1",
5653
"@types/jest": "^27.5.2",
5754
"@types/node": "^14.18.54",

packages/client/src/components/communicator/webBased/Communicator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { HashedContent } from './types';
55
import { standardErrors } from ':core/error';
66
import { MessageID, RPCRequestMessage, RPCResponseMessage } from ':core/message';
77

8+
// TODO: singleton pattern
89
export class WebBasedWalletCommunicator implements CommunicatorInterface {
910
static communicators = new Map<string, WebBasedWalletCommunicator>();
1011

packages/client/src/core/cipher/cipher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export async function encryptContent(
143143

144144
export async function decryptContent<R extends RPCRequest | RPCResponse>(
145145
encryptedData: {
146+
// TODO: this is temp
146147
iv: unknown;
147148
cipherText: unknown;
148149
},

packages/client/src/core/provider/interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface AppMetadata {
3737
/** Application name */
3838
appName: string;
3939
/** Application logo image URL; favicon is used if unspecified */
40+
// TODO: make this required
4041
appLogoUrl?: string;
4142
/** Array of chainIds your dapp supports */
4243
appChainIds?: number[];

packages/client/src/interfaces/eip1193/EIP1193Provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class EIP1193Provider extends ProviderEventEmitter implements ProviderInt
3333
if (!this.client) throw standardErrors.rpc.internal('MWPClient not initialized');
3434

3535
if (args.method === 'eth_requestAccounts') {
36+
// TODO: emit connect
3637
const accounts = await this.client.handshake();
3738
return accounts;
3839
}

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+

0 commit comments

Comments
 (0)