Skip to content

Commit

Permalink
1278f okx wallet (passportxyz#1316)
Browse files Browse the repository at this point in the history
* fix(test): disabling integration tests on pre-push hook

* fix(app): reverting display all wallets to test okx whitelist

* fix(app,tests): deleted pre-push integation  tests
q
''

* fix(dependency): updating yarn.lock

* fix(app,dependencies): deleted unnecessary packages. removed inected wallets opt2

---------

Co-authored-by: Michael Green <[email protected]>
  • Loading branch information
michaelgreen06 and Michael Green authored May 31, 2023
1 parent c9db67a commit a02891f
Show file tree
Hide file tree
Showing 5 changed files with 894 additions and 416 deletions.
5 changes: 4 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
. "$(dirname "$0")/_/husky.sh"

yarn run test
yarn run test:ceramic-integration
# yarn run test:ceramic-integration
# disabled integration test May 30 2023
# it was causing too many errors and is
# addressed during build anyway <3MSG
1 change: 1 addition & 0 deletions app/__test-fixtures__/onboardHookValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const mockAddress = "0xmyAddress";
export const mockAccount: Account = {
address: mockAddress,
ens: null,
uns: null,
balance: null,
};
export const mockWallet: WalletState = {
Expand Down
10 changes: 5 additions & 5 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"@heroicons/react": "^2.0.17",
"@popperjs/core": "^2.11.7",
"@self.id/framework": "0.3.3",
"@web3-onboard/core": "^2.3.2",
"@web3-onboard/injected-wallets": "^2.0.12",
"@web3-onboard/ledger": "^2.1.4",
"@web3-onboard/react": "^2.2.2",
"@web3-onboard/walletconnect": "^2.0.5",
"@web3-onboard/core": "^2.19.2",
"@web3-onboard/injected-wallets": "^2.9.0",
"@web3-onboard/ledger": "^2.4.6",
"@web3-onboard/react": "^2.8.4",
"@web3-onboard/walletconnect": "^2.3.8",
"@web3-onboard/walletlink": "^2.0.4",
"broadcast-channel": "^4.11.0",
"did-session": "^1.0.0",
Expand Down
11 changes: 6 additions & 5 deletions app/utils/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import { init } from "@web3-onboard/react";
import injectedModule from "@web3-onboard/injected-wallets";
import ledgerModule from "@web3-onboard/ledger";
import walletConnectModule from "@web3-onboard/walletconnect";
import walletLinkModule from "@web3-onboard/walletlink";

// RPC urls
const MAINNET_RPC_URL = process.env.NEXT_PUBLIC_PASSPORT_MAINNET_RPC_URL as string;

// Injected wallet
// // Injected wallet - shows all available injected wallets

const injected = injectedModule();
// web3Oboard modules
const walletLink = walletLinkModule();

// web3Onboard modules

const walletConnect = walletConnectModule();
// Include ledger capabilities
const ledger = ledgerModule();
Expand Down Expand Up @@ -59,7 +60,7 @@ if (process.env.NEXT_PUBLIC_FF_MULTICHAIN_SIGNATURE === "on") {

// Exports onboard-core instance (https://github.com/blocknative/web3-onboard)
export const initWeb3Onboard = init({
wallets: [injected, ledger, walletLink, walletConnect],
wallets: [injected, ledger, walletConnect],
chains: chains,
appMetadata: {
name: "Passport",
Expand Down
Loading

0 comments on commit a02891f

Please sign in to comment.