Skip to content

Commit

Permalink
chore(deps): bumps and migrate to web3auth 8 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Aug 26, 2024
1 parent ce07cda commit 9b9786d
Show file tree
Hide file tree
Showing 3 changed files with 1,664 additions and 2,034 deletions.
8 changes: 8 additions & 0 deletions lib/web3-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import useWeb3AuthStore from "../store/web3-auth"
import { CustomChainConfig } from "@web3auth/base"
import { UIConfig } from "@web3auth/ui"
import { CommonPrivateKeyProvider } from "@web3auth/base-provider"

// Initialize the Web3Auth provider using the provided chain and UI configs.
// This function initializes the Web3Auth login modal and connects to the provider.
Expand All @@ -18,11 +19,18 @@ export async function web3AuthInitProvider(
uiConfig: UIConfig,
) {
try {
const commonPrivateKeyProvider = new CommonPrivateKeyProvider({
config: {
chainConfig,
},
})

const web3auth = new Web3Auth({
clientId: WEB3AUTH_CLIENT_ID,
web3AuthNetwork: WEB3AUTH_NETWORK,
chainConfig: chainConfig,
uiConfig: uiConfig,
privateKeyProvider: commonPrivateKeyProvider,
})
const openloginAdapter = new OpenloginAdapter({
adapterSettings: WEB3AUTH_ADAPTER_SETTINGS,
Expand Down
54 changes: 28 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,50 +12,52 @@
"prettier": "prettier --write ."
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@babel/runtime": "^7.25.0",
"@chakra-ui/icons": "2.1.1",
"@chakra-ui/react": "2.8.2",
"@chakra-ui/system": "^2.6.2",
"@cosmjs/cosmwasm-stargate": "0.32.3",
"@cosmjs/proto-signing": "^0.32.3",
"@cosmjs/stargate": "^0.32.3",
"@cosmology/lcd": "^0.13.3",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@interchain-ui/react": "^1.23.18",
"@cosmjs/cosmwasm-stargate": "0.32.4",
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/stargate": "^0.32.4",
"@cosmology/lcd": "^0.13.4",
"@emotion/react": "11.13.0",
"@emotion/styled": "11.13.0",
"@interchain-ui/react": "^1.23.29",
"@liftedinit/gcjs": "^0.1.0",
"@solana/web3.js": "^1.93.0",
"@walletconnect/sign-client": "^2.13.3",
"@walletconnect/types": "^2.13.3",
"@walletconnect/utils": "^2.13.3",
"@web3auth/base": "^7.3.2",
"@web3auth/modal": "^7.3.2",
"@web3auth/no-modal": "^7.3.2",
"@web3auth/openlogin-adapter": "^7.3.2",
"chain-registry": "1.63.3",
"@metamask/utils": "^9.1.0",
"@solana/web3.js": "^1.95.2",
"@walletconnect/sign-client": "^2.14.0",
"@walletconnect/types": "^2.14.0",
"@walletconnect/utils": "^2.14.0",
"@web3auth/base": "^8.12.2",
"@web3auth/metamask-adapter": "^8.12.2",
"@web3auth/modal": "^8.12.3",
"@web3auth/no-modal": "^8.12.3",
"@web3auth/openlogin-adapter": "^8.12.2",
"chain-registry": "1.63.58",
"formik": "^2.4.6",
"framer-motion": "11.2.11",
"next": "14.2.4",
"framer-motion": "11.3.24",
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-dropzone": "^14.2.3",
"react-icons": "5.2.1",
"react-icons": "5.3.0",
"react-query": "^3.39.3",
"sharp": "^0.33.4",
"yup": "^1.4.0",
"zustand": "^4.5.2"
"zustand": "^4.5.4"
},
"devDependencies": {
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@types/jest": "^29.5.12",
"@types/node": "20.14.5",
"@types/node": "22.2.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.2",
"typescript": "5.4.5"
"prettier": "^3.3.3",
"typescript": "5.5.4"
}
}
Loading

0 comments on commit 9b9786d

Please sign in to comment.