Skip to content

Commit

Permalink
Fork inside exodus/ namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Jan 10, 2022
1 parent 258e115 commit 20bb14e
Show file tree
Hide file tree
Showing 31 changed files with 927 additions and 941 deletions.
1,732 changes: 859 additions & 873 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/clients/client/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@walletconnect/client"
declare module "@exodus/walletconnect-client"
12 changes: 6 additions & 6 deletions packages/clients/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/client",
"version": "1.7.0",
"name": "@exodus/walletconnect-client",
"version": "1.7.0-exodus.0",
"description": "Client for WalletConnect",
"scripts": {
"clean": "rm -rf dist",
Expand Down Expand Up @@ -61,10 +61,10 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@walletconnect/core": "^1.7.0",
"@walletconnect/iso-crypto": "^1.7.0",
"@walletconnect/types": "^1.7.0",
"@walletconnect/utils": "^1.7.0"
"@exodus/walletconnect-core": "^1.7.0-exodus.0",
"@exodus/walletconnect-iso-crypto": "^1.7.0-exodus.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
"@exodus/walletconnect-utils": "^1.7.0-exodus.0"
},
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7"
}
6 changes: 3 additions & 3 deletions packages/clients/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Connector from "@walletconnect/core";
import { IWalletConnectOptions, IPushServerOptions } from "@walletconnect/types";
import * as cryptoLib from "@walletconnect/iso-crypto";
import Connector from "@exodus/walletconnect-core";
import { IWalletConnectOptions, IPushServerOptions } from "@exodus/walletconnect-types";
import * as cryptoLib from "@exodus/walletconnect-iso-crypto";

class WalletConnect extends Connector {
constructor(connectorOpts: IWalletConnectOptions, pushServerOpts?: IPushServerOptions) {
Expand Down
2 changes: 1 addition & 1 deletion packages/clients/client/test/shared/connect.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "mocha";
import { expect } from "chai";
import { ICreateSessionOptions } from "@walletconnect/types";
import { ICreateSessionOptions } from "@exodus/walletconnect-types";

import IsomorphicClient from "../../src";

Expand Down
2 changes: 1 addition & 1 deletion packages/clients/core/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@walletconnect/core"
declare module "@exodus/walletconnect-core"
10 changes: 5 additions & 5 deletions packages/clients/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/core",
"version": "1.7.0",
"name": "@exodus/walletconnect-core",
"version": "1.7.0-exodus.0",
"description": "Core Library for WalletConnect",
"scripts": {
"clean": "rm -rf dist",
Expand Down Expand Up @@ -61,9 +61,9 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@walletconnect/socket-transport": "^1.7.0",
"@walletconnect/types": "^1.7.0",
"@walletconnect/utils": "^1.7.0"
"@exodus/walletconnect-socket-transport": "^1.7.0-exodus.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
"@exodus/walletconnect-utils": "^1.7.0-exodus.0"
},
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7"
}
4 changes: 2 additions & 2 deletions packages/clients/core/src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import {
isJsonRpcResponseError,
isInternalEvent,
isReservedEvent,
} from "@walletconnect/utils";
} from "@exodus/walletconnect-utils";
import {
IInternalEvent,
IJsonRpcResponseSuccess,
IJsonRpcResponseError,
IJsonRpcRequest,
IEventEmitter,
} from "@walletconnect/types";
} from "@exodus/walletconnect-types";

// -- EventManager --------------------------------------------------------- //

Expand Down
6 changes: 3 additions & 3 deletions packages/clients/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
IPushSubscription,
IPushServerOptions,
IQRCodeModalOptions,
} from "@walletconnect/types";
} from "@exodus/walletconnect-types";
import {
parsePersonalSign,
parseTransactionData,
Expand All @@ -36,8 +36,8 @@ import {
isJsonRpcResponseSuccess,
isJsonRpcResponseError,
isSilentPayload,
} from "@walletconnect/utils";
import SocketTransport from "@walletconnect/socket-transport";
} from "@exodus/walletconnect-utils";
import SocketTransport from "@exodus/walletconnect-socket-transport";
import {
ERROR_SESSION_CONNECTED,
ERROR_SESSION_DISCONNECTED,
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/browser-utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@walletconnect/browser-utils";
declare module "@exodus/walletconnect-browser-utils";
8 changes: 4 additions & 4 deletions packages/helpers/browser-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/browser-utils",
"version": "1.7.0",
"name": "@exodus/walletconnect-browser-utils",
"version": "1.7.0-exodus.0",
"description": "Browser Utilities for WalletConnect",
"scripts": {
"clean": "rm -rf dist",
Expand Down Expand Up @@ -63,8 +63,8 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@walletconnect/types": "^1.7.0",
"@walletconnect/window-getters": "1.0.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
"@exodus/walletconnect-window-getters": "1.0.0-exodus.0",
"detect-browser": "5.2.0"
},
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7"
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/browser-utils/src/browser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as windowGetters from "@walletconnect/window-getters";
import * as windowGetters from "@exodus/walletconnect-window-getters";
import {
detect,
BrowserInfo,
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/iso-crypto/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@walletconnect/iso-crypto"
declare module "@exodus/walletconnect-iso-crypto"
10 changes: 5 additions & 5 deletions packages/helpers/iso-crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/iso-crypto",
"version": "1.7.0",
"name": "@exodus/walletconnect-iso-crypto",
"version": "1.7.0-exodus.0",
"description": "Isomorphic Crypto for WalletConnect",
"scripts": {
"clean": "rm -rf dist",
Expand Down Expand Up @@ -62,9 +62,9 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@walletconnect/crypto": "^1.0.1",
"@walletconnect/types": "^1.7.0",
"@walletconnect/utils": "^1.7.0"
"@exodus/walletconnect-crypto": "^1.0.1-exodus.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
"@exodus/walletconnect-utils": "^1.7.0-exodus.0"
},
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7"
}
8 changes: 4 additions & 4 deletions packages/helpers/iso-crypto/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as crypto from "@walletconnect/crypto";
import * as encoding from "@walletconnect/encoding";
import * as crypto from "@exodus/walletconnect-crypto";
import * as encoding from "@exodus/walletconnect-encoding";
import {
IJsonRpcRequest,
IJsonRpcResponseSuccess,
IJsonRpcResponseError,
IEncryptionPayload,
} from "@walletconnect/types";
import { convertArrayBufferToBuffer, convertBufferToArrayBuffer } from "@walletconnect/utils";
} from "@exodus/walletconnect-types";
import { convertArrayBufferToBuffer, convertBufferToArrayBuffer } from "@exodus/walletconnect-utils";

export async function generateKey(length?: number): Promise<ArrayBuffer> {
const _length = (length || 256) / 8;
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/iso-crypto/test/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "mocha";
import { expect } from "chai";

import { IJsonRpcRequest, IEncryptionPayload } from "@walletconnect/types";
import { convertHexToArrayBuffer } from "@walletconnect/utils";
import { IJsonRpcRequest, IEncryptionPayload } from "@exodus/walletconnect-types";
import { convertHexToArrayBuffer } from "@exodus/walletconnect-utils";

import * as IsoCrypto from "../src";

Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/socket-transport/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@walletconnect/socket-transport"
declare module "@exodus/walletconnect-socket-transport"
8 changes: 4 additions & 4 deletions packages/helpers/socket-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/socket-transport",
"version": "1.7.0",
"name": "@exodus/walletconnect-socket-transport",
"version": "1.7.0-exodus.0",
"description": "Socket Transport for WalletConnect",
"scripts": {
"clean": "rm -rf dist",
Expand Down Expand Up @@ -62,8 +62,8 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@walletconnect/types": "^1.7.0",
"@walletconnect/utils": "^1.7.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
"@exodus/walletconnect-utils": "^1.7.0-exodus.0",
"ws": "7.5.3"
},
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7"
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/socket-transport/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import {
INetworkMonitor,
ITransportLib,
ISocketTransportOptions,
} from "@walletconnect/types";
} from "@exodus/walletconnect-types";
import {
isBrowser,
getLocation,
getQueryString,
detectEnv,
appendToQueryString,
} from "@walletconnect/utils";
} from "@exodus/walletconnect-utils";

import NetworkMonitor from "./network.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/socket-transport/src/network.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NetworkEvent, INetworkEventEmitter, INetworkMonitor } from "@walletconnect/types";
import { NetworkEvent, INetworkEventEmitter, INetworkMonitor } from "@exodus/walletconnect-types";

// -- NetworkMonitor --------------------------------------------------------- //

Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "@walletconnect/types" {
declare module "@exodus/walletconnect-types" {
export interface IConnector {
bridge: string;
key: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/types",
"version": "1.7.0",
"name": "@exodus/walletconnect-types",
"version": "1.7.0-exodus.0",
"description": "Typescript Types for WalletConnect",
"scripts": {},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "@walletconnect/utils"
declare module "@exodus/walletconnect-utils"
12 changes: 6 additions & 6 deletions packages/helpers/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/utils",
"version": "1.7.0",
"name": "@exodus/walletconnect-utils",
"version": "1.7.0-exodus.0",
"description": "Utility Library for WalletConnect",
"scripts": {
"clean": "rm -rf dist",
Expand Down Expand Up @@ -63,10 +63,10 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@walletconnect/browser-utils": "^1.7.0",
"@walletconnect/encoding": "^1.0.0",
"@walletconnect/jsonrpc-utils": "^1.0.0",
"@walletconnect/types": "^1.7.0",
"@exodus/walletconnect-browser-utils": "^1.7.0-exodus.0",
"@exodus/walletconnect-encoding": "^1.0.0-exodus.0",
"@exodus/walletconnect-jsonrpc-utils": "^1.0.0-exodus.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
"bn.js": "4.11.8",
"js-sha3": "0.8.0",
"query-string": "6.13.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/utils/src/encoding.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BN from "bn.js";
import * as encoding from "@walletconnect/encoding";
import * as encoding from "@exodus/walletconnect-encoding";

// -- ArrayBuffer ------------------------------------------ //

Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/utils/src/ethereum.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { keccak_256 } from "js-sha3";
import { removeHexPrefix, addHexPrefix } from "@walletconnect/encoding";
import { removeHexPrefix, addHexPrefix } from "@exodus/walletconnect-encoding";

import { ITxData } from "@walletconnect/types";
import { ITxData } from "@exodus/walletconnect-types";
import { convertUtf8ToHex, convertNumberToHex, convertUtf8ToBuffer } from "./encoding.js";
import { sanitizeHex, removeHexLeadingZeros } from "./misc.js";
import { isEmptyArray, isHexString, isEmptyString } from "./validators.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "@walletconnect/browser-utils";
export * from "@exodus/walletconnect-browser-utils";

export * from "./constants.js";
export * from "./encoding.js";
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/utils/src/misc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as encoding from "@walletconnect/encoding";
import * as jsonRpcUtils from "@walletconnect/jsonrpc-utils";
import * as encoding from "@exodus/walletconnect-encoding";
import * as jsonRpcUtils from "@exodus/walletconnect-jsonrpc-utils";

// -- hex -------------------------------------------------- //

Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/utils/src/payload.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
IJsonRpcErrorMessage,
} from "@walletconnect/types";
} from "@exodus/walletconnect-types";

export function formatRpcError(
error: Partial<IJsonRpcErrorMessage>,
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/utils/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
IParseURIResult,
IRequiredParamsResult,
IQueryParamsResult,
} from "@walletconnect/types";
} from "@exodus/walletconnect-types";
import { parseQueryString } from "./url.js";

export function parseWalletConnectUri(str: string): IParseURIResult {
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/utils/src/validators.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as encoding from "@walletconnect/encoding";
import * as encoding from "@exodus/walletconnect-encoding";
import {
IJsonRpcSubscription,
IJsonRpcRequest,
IJsonRpcResponseSuccess,
IJsonRpcResponseError,
IInternalEvent,
} from "@walletconnect/types";
} from "@exodus/walletconnect-types";

import { signingMethods, reservedEvents } from "./constants.js";

Expand Down

0 comments on commit 20bb14e

Please sign in to comment.