Skip to content

Commit

Permalink
chore: changing or adding the order of wallet connectors #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Apr 9, 2024
1 parent 8b4b16c commit 0915ac4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
Binary file added public/okx.webp
Binary file not shown.
25 changes: 20 additions & 5 deletions src/utils/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (process.env.NEXT_PUBLIC_PROVIDER) {
}


const AXSWallet = ({ chains }) => ({
const axsWallet = ({ chains }: any) => ({
id: 'axs',
name: 'AXS Wallet',
iconUrl: '/AxsWallet.png',
Expand All @@ -55,6 +55,21 @@ const AXSWallet = ({ chains }) => ({
}
},
})
const okxWallet = ({ chains }: any) => ({
id: 'okx',
name: 'OKX Wallet',
iconUrl: '/okx.webp',
iconBackground: '#FFFFFF',
description: 'AXS wallet web3 provider.',
createConnector: () => {
const connector = new InjectedConnector({
chains
})
return {
connector,
}
},
})

const { provider, chains } = configureChains(
[
Expand All @@ -68,11 +83,11 @@ const connectors = connectorsForWallets([
{
groupName: 'Popular',
wallets: [
AXSWallet({ chains }),
metaMaskWallet({chains}),
rainbowWallet({ chains }),
axsWallet({ chains }),
metaMaskWallet({ chains }),
okxWallet({ chains }),
walletConnectWallet({ chains }),
coinbaseWallet({appName: 'MNS', chains, }),
coinbaseWallet({ appName: 'MNS', chains }),
],
},
])
Expand Down

1 comment on commit 0915ac4

@vercel
Copy link

@vercel vercel bot commented on 0915ac4 Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.