Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@coinbase/wallet-sdk": "^3.7.2",
"@testing-library/react-hooks": "^7.0.1",
"@tsconfig/recommended": "^1.0.1",
"@types/jest": "^27.0.1",
Expand All @@ -62,6 +63,8 @@
"@types/react-test-renderer": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@walletconnect/ethereum-provider": "^2.4.4",
"@walletconnect/modal": "^2.6.2",
"babel-loader": "^8.2.2",
"dotenv": "^10.0.0",
"eslint": "^8.4.1",
Expand All @@ -76,11 +79,12 @@
"rollup-plugin-typescript2": "^0.31.1",
"ts-loader": "^9.2.5",
"typescript": "^4.3.5",
"@walletconnect/ethereum-provider": "^2.4.4",
"web3": "^1.3.6"
},
"peerDependencies": {
"@coinbase/wallet-sdk": "^3.7.2",
"@walletconnect/ethereum-provider": "^2.4.4",
"@walletconnect/modal": "^2.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.3.5",
Expand Down
5 changes: 1 addition & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
format: "es",
},
],
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
],
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {}), "react/jsx-runtime"],
plugins: [
typescript({
typescript: require("typescript"),
Expand Down
2 changes: 1 addition & 1 deletion src/context/Web3Context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const web3Reducer = (state: IWeb3Context, action: TAction): IWeb3Context => {
}
};

export const Web3ContextProvider = ({ children, config }: IWeb3ContextProvider): JSX.Element => {
export const Web3ContextProvider = ({ children, config }: IWeb3ContextProvider) => {
initialState.config = config;

const [state, dispatch] = useReducer(web3Reducer, initialState);
Expand Down
6 changes: 6 additions & 0 deletions src/enum/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ export enum EErrors {
METAMASK_DISCONNECT = "Disconnect in MetaMask is not implemented",
WALLET_CONNECT_CONFIG = "WalletConnect config is needed",
}

export enum EWalletProviders {
METAMASK = "METAMASK",
WALLET_CONNECT_V2 = "WALLET_CONNECT_V2",
COINBASE = "COINBASE",
}
1 change: 0 additions & 1 deletion src/hoc/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/hoc/withWeb3.tsx

This file was deleted.

Loading