-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up - reorg to remove inverted/deep imports, clean up dead code,…
… alias (#109) * reorg * clean up mocks * config * apply :core * vendor * vendor-js * interface * rename RPCFetch * message and communicator as core * move move move * cipher * remove reversed hierarchy imports * error * constants * wow * errors * remove dead code * errors * errrorrororor * erererrs * FUCK alias * yay * fix jest alias * clear persisted connection type on disconnect (#110) * Nate/bugfix3 (#112) * just clear keys instead of resetting, generate new keys the next time keymanager is used * ts --------- Co-authored-by: Nate Reiners <nate.reiners@coinbase.com>
- Loading branch information
1 parent
cc8586e
commit ff0fb61
Showing
101 changed files
with
530 additions
and
1,064 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/provider/CoinbaseWalletProvider.test.ts → ...et-sdk/src/CoinbaseWalletProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/wallet-sdk/src/core/communicator/ConnectionPreference.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type ConnectionPreference = 'default' | 'embedded'; |
10 changes: 2 additions & 8 deletions
10
.../src/transport/CrossDomainCommunicator.ts → ...e/communicator/CrossDomainCommunicator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { UUID } from 'crypto'; | ||
|
||
export interface Message { | ||
type: 'config' | 'scw'; | ||
id: UUID; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export const LINK_API_URL = 'https://www.walletlink.org'; | ||
export const SCW_CONNECT_URL = 'https://keys.coinbase.com/connect'; | ||
export const WALLETLINK_URL = 'https://www.walletlink.org'; | ||
export const CBW_MOBILE_DEEPLINK_URL = 'https://go.cb-w.com/walletlink'; |
2 changes: 1 addition & 1 deletion
2
...src/provider/helpers/eip1193Utils.test.ts → .../wallet-sdk/src/core/eip1193Utils.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-sdk/src/provider/helpers/eip1193Utils.ts → packages/wallet-sdk/src/core/eip1193Utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
import { standardErrorCodes } from './constants'; | ||
import { standardErrors } from './errors'; | ||
import { SerializedError, serializeError } from './serialize'; | ||
import { getErrorCode, getMessageFromCode } from './utils'; | ||
|
||
export { getErrorCode, getMessageFromCode, serializeError, standardErrorCodes, standardErrors }; | ||
export type ErrorType = Error | SerializedError; | ||
export type ErrorHandler = (error?: ErrorType) => void; | ||
export { standardErrorCodes } from './constants'; | ||
export { standardErrors } from './errors'; | ||
export type { SerializedEthereumRpcError } from './type'; |
Oops, something went wrong.