Skip to content

Commit

Permalink
Add MetaMask sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamj1232 committed Oct 24, 2023
1 parent a4d3ad6 commit 2d86084
Show file tree
Hide file tree
Showing 3 changed files with 439 additions and 14 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onboard-notify-react",
"version": "0.35.10",
"version": "0.35.10-0.0.1",
"dependencies": {
"@safe-global/safe-apps-provider": "^0.18.0",
"@safe-global/safe-apps-sdk": "^8.1.0",
Expand All @@ -22,6 +22,7 @@
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.5.2",
"@web3-onboard/magic": "^2.1.7",
"@web3-onboard/metamask": "^2.0.0-alpha.1",
"@web3-onboard/mew-wallet": "^2.0.4",
"@web3-onboard/phantom": "^2.0.3",
"@web3-onboard/portis": "^2.1.7",
Expand Down
13 changes: 13 additions & 0 deletions src/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import transactionPreviewModule from '@web3-onboard/transaction-preview'
import venlyModule from '@web3-onboard/venly'
import bloctoModule from '@web3-onboard/blocto'
import bitgetModule from '@web3-onboard/bitget'
import metamaskModule from '@web3-onboard/metamask'
import arcanaAuthModule from '@web3-onboard/arcana-auth'

// Replace with your DApp's Infura ID
Expand Down Expand Up @@ -117,6 +118,17 @@ const enkrypt = enkryptModule()
const mewWallet = mewWalletModule()
const blocto = bloctoModule()
const bitget = bitgetModule()
const metamask = metamaskModule({
options: {
extensionOnly: false,
i18nOptions: {
enabled: true
},
dappMetadata: {
name: 'Web3Onboard React Demo'
}
}
})

const trezorOptions = {
email: '[email protected]',
Expand Down Expand Up @@ -158,6 +170,7 @@ export const initWeb3Onboard = init({
autoConnectAllPreviousWallet: true
},
wallets: [
metamask,
injected,
ledger,
trezor,
Expand Down
Loading

0 comments on commit 2d86084

Please sign in to comment.