Skip to content

Commit 2aaf8e3

Browse files
committed
Add the rest of stable wallets
1 parent 50b7f0f commit 2aaf8e3

File tree

4 files changed

+208
-171
lines changed

4 files changed

+208
-171
lines changed

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"@safe-global/safe-apps-provider": "^0.18.0",
66
"@safe-global/safe-apps-sdk": "^8.1.0",
7-
"@web3-onboard/arcana-auth": "^2.0.0-alpha.1",
7+
"@web3-onboard/arcana-auth": "^2.1.0-viem.1",
88
"@web3-onboard/bitget": "^2.1.0-viem.1",
99
"@web3-onboard/blocto": "^2.1.0-viem.1",
1010
"@web3-onboard/capsule": "^2.0.3-viem.1",
@@ -16,13 +16,13 @@
1616
"@web3-onboard/frame": "^2.1.0-viem.1",
1717
"@web3-onboard/frontier": "^2.1.0-viem.1",
1818
"@web3-onboard/gas": "^2.2.0-viem.1",
19-
"@web3-onboard/gnosis": "^2.2.2-alpha.1",
19+
"@web3-onboard/gnosis": "^2.3.0-viem.1",
2020
"@web3-onboard/infinity-wallet": "^2.1.0-viem.1",
2121
"@web3-onboard/injected-wallets": "^2.11.0-viem.4",
2222
"@web3-onboard/keepkey": "^2.3.8-alpha.1",
2323
"@web3-onboard/keystone": "^2.3.8-alpha.1",
2424
"@web3-onboard/ledger": "^2.7.0-viem.1",
25-
"@web3-onboard/magic": "^2.1.7-alpha.1",
25+
"@web3-onboard/magic": "^2.2.0-viem.1",
2626
"@web3-onboard/metamask": "^2.1.0-viem.1",
2727
"@web3-onboard/mew-wallet": "^2.1.0-viem.1",
2828
"@web3-onboard/phantom": "^2.1.0-viem.1",
@@ -31,13 +31,13 @@
3131
"@web3-onboard/sequence": "^2.1.0-viem.1",
3232
"@web3-onboard/taho": "^2.1.0-viem.1",
3333
"@web3-onboard/torus": "^2.3.0-viem.1",
34-
"@web3-onboard/transaction-preview": "^2.0.9-alpha.1",
34+
"@web3-onboard/transaction-preview": "^2.1.0-viem.1",
3535
"@web3-onboard/trezor": "^2.4.4-alpha.1",
3636
"@web3-onboard/trust": "^2.1.0-viem.1",
37-
"@web3-onboard/uauth": "^2.1.2-alpha.1",
38-
"@web3-onboard/venly": "^2.0.0-alpha.1",
37+
"@web3-onboard/uauth": "^2.2.0-viem.1",
38+
"@web3-onboard/venly": "^2.1.0-viem.1",
3939
"@web3-onboard/walletconnect": "^2.6.0-viem.1",
40-
"@web3-onboard/web3auth": "^2.2.3-alpha.1",
40+
"@web3-onboard/web3auth": "^2.3.0-viem.1",
4141
"@web3-onboard/xdefi": "^2.1.0-viem.1",
4242
"@web3-onboard/zeal": "^2.1.0-viem.1",
4343
"ethers": "^5.5.2",
@@ -48,7 +48,7 @@
4848
},
4949
"scripts": {
5050
"w3o-latest-prod": "yarn add '@web3-onboard/react' '@web3-onboard/coinbase' '@web3-onboard/transaction-preview' '@web3-onboard/dcent' '@web3-onboard/frontier' '@web3-onboard/fortmatic' '@web3-onboard/frame' '@web3-onboard/gas' '@web3-onboard/gnosis' '@web3-onboard/keepkey' '@web3-onboard/keystone' '@web3-onboard/ledger' '@web3-onboard/infinity-wallet' '@web3-onboard/injected-wallets' '@web3-onboard/magic' '@web3-onboard/phantom' '@web3-onboard/portis' '@web3-onboard/sequence' '@web3-onboard/trezor' '@web3-onboard/trust' '@web3-onboard/torus' '@web3-onboard/taho' '@web3-onboard/web3auth' '@web3-onboard/walletconnect' '@web3-onboard/enkrypt' '@web3-onboard/mew-wallet' '@web3-onboard/xdefi' '@web3-onboard/uauth' '@web3-onboard/zeal' '@web3-onboard/cede-store' '@web3-onboard/venly' '@web3-onboard/blocto' '@web3-onboard/arcana-auth' '@web3-onboard/bitget' '@web3-onboard/metamask' '@web3-onboard/capsule'",
51-
"w3o-latest-alpha": "yarn add '@web3-onboard/react@next' '@web3-onboard/coinbase@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/dcent@next' '@web3-onboard/frontier@next' '@web3-onboard/fortmatic@next' '@web3-onboard/frame@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/magic@next' '@web3-onboard/phantom@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/torus@next' '@web3-onboard/taho@next' '@web3-onboard/web3auth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/enkrypt@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/xdefi@next' '@web3-onboard/uauth@next' '@web3-onboard/zeal@next' '@web3-onboard/cede-store@next' '@web3-onboard/venly@next' '@web3-onboard/blocto@next' '@web3-onboard/arcana-auth@next' '@web3-onboard/bitget@next' '@web3-onboard/metamask@next' '@web3-onboard/capsule@next'",
51+
"w3o-latest-release": "yarn add '@web3-onboard/react@next' '@web3-onboard/coinbase@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/dcent@next' '@web3-onboard/frontier@next' '@web3-onboard/fortmatic@next' '@web3-onboard/frame@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/magic@next' '@web3-onboard/phantom@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/torus@next' '@web3-onboard/taho@next' '@web3-onboard/web3auth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/enkrypt@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/xdefi@next' '@web3-onboard/uauth@next' '@web3-onboard/zeal@next' '@web3-onboard/cede-store@next' '@web3-onboard/venly@next' '@web3-onboard/blocto@next' '@web3-onboard/arcana-auth@next' '@web3-onboard/bitget@next' '@web3-onboard/metamask@next' '@web3-onboard/capsule@next'",
5252
"start": "HTTPS=true react-app-rewired start",
5353
"start-staging": "REACT_APP_API_URL=wss://staging.api.blocknative.com/v0 REACT_APP_STAGING=true HTTPS=true HTTPS=true react-scripts start",
5454
"start-local": "REACT_APP_API_URL=ws://localhost:54100/v0 REACT_APP_STAGING=true HTTPS=true react-scripts start",

src/App.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,13 @@ const App = () => {
9595

9696
useEffect(() => {
9797
async function getEtherGasFromRPC() {
98-
try{
99-
100-
const customHttpProvider = new ethers.providers.JsonRpcProvider(infuraRPC)
98+
try {
99+
const customHttpProvider = new ethers.providers.JsonRpcProvider(
100+
infuraRPC
101+
)
101102
if (!customHttpProvider) return console.warn('No provider found')
102103
const fee = await customHttpProvider.getFeeData()
103-
104+
104105
// Occasionally gas values are returned undefined
105106
if (
106107
!fee ||

src/services.js

+27-40
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import bloctoModule from '@web3-onboard/blocto'
3535
import bitgetModule from '@web3-onboard/bitget'
3636
import metamaskModule from '@web3-onboard/metamask'
3737
import arcanaAuthModule from '@web3-onboard/arcana-auth'
38-
import metamaskSDK from '@web3-onboard/metamask'
3938
import capsuleModule, {
4039
Environment,
4140
OAuthMethod,
@@ -172,18 +171,6 @@ const arcanaAuth = arcanaAuthModule({
172171
clientID: 'xar_test_c9c3bc702eb13255c58dab0e74cfa859711c13cb'
173172
})
174173

175-
const metamaskSDKWallet = metamaskSDK({
176-
options: {
177-
extensionOnly: false,
178-
i18nOptions: {
179-
enabled: true
180-
},
181-
dappMetadata: {
182-
name: 'Demo Web3Onboard'
183-
}
184-
}
185-
})
186-
187174
const capsule = capsuleModule({
188175
environment: Environment.DEVELOPMENT,
189176
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7',
@@ -208,33 +195,33 @@ export const initWeb3Onboard = init({
208195
walletConnect,
209196
ledger,
210197
trezor,
211-
// coinbase,
212-
// phantom,
213-
// gnosis,
214-
// trust,
215-
// taho,
216-
// bitget,
217-
// enkrypt,
218-
// infinityWallet,
219-
// mewWallet,
220-
// keepkey,
221-
// keystone,
222-
// magic,
223-
// fortmatic,
224-
// portis,
225-
// torus,
226-
// // dcent,
227-
// sequence,
228-
// uauth,
229-
// web3auth,
230-
// zeal,
231-
// frontier,
232-
// xdefi,
233-
// frameWallet,
234-
// cedeStore,
235-
// venly,
236-
// blocto,
237-
// arcanaAuth,
198+
coinbase,
199+
phantom,
200+
gnosis,
201+
trust,
202+
taho,
203+
bitget,
204+
enkrypt,
205+
infinityWallet,
206+
mewWallet,
207+
keepkey,
208+
keystone,
209+
magic,
210+
fortmatic,
211+
portis,
212+
torus,
213+
// dcent,
214+
sequence,
215+
uauth,
216+
web3auth,
217+
zeal,
218+
frontier,
219+
xdefi,
220+
frameWallet,
221+
cedeStore,
222+
venly,
223+
blocto,
224+
arcanaAuth,
238225
// capsule
239226
],
240227
chains: [

0 commit comments

Comments
 (0)