Skip to content

Commit fc45122

Browse files
authored
Feat: Add native Base chain support and to all quickstarts (#1859)
* Add Base chain to all quickstarts * Bump core package in demo
1 parent e851635 commit fc45122

File tree

33 files changed

+178
-82
lines changed

33 files changed

+178
-82
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ const onboard = Onboard({
4141
token: 'ETH',
4242
label: 'Ethereum Mainnet',
4343
rpcUrl: MAINNET_RPC_URL
44+
},
45+
{
46+
id: '0x2105',
47+
token: 'ETH',
48+
label: 'Base',
49+
rpcUrl: 'https://mainnet.base.org'
4450
}
4551
]
4652
})

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@web3-onboard/blocto": "^2.0.0",
5454
"@web3-onboard/cede-store": "^2.1.0-alpha.1",
5555
"@web3-onboard/coinbase": "^2.2.5-alpha.1",
56-
"@web3-onboard/core": "^2.20.5-alpha.1",
56+
"@web3-onboard/core": "^2.21.0-alpha.1",
5757
"@web3-onboard/dcent": "^2.2.7",
5858
"@web3-onboard/enkrypt": "^2.0.4",
5959
"@web3-onboard/fortmatic": "^2.0.19",

docs/src/lib/services/onboard.js

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const intiOnboard = async (theme) => {
119119
})
120120

121121
return Onboard({
122-
connect: { autoConnectAllPreviousWallet: true },
122+
connect: { autoConnectAllPreviousWallet: true },
123123
wallets: [
124124
injected,
125125
walletConnect,
@@ -177,23 +177,23 @@ const intiOnboard = async (theme) => {
177177
rpcUrl: 'https://rpc.sepolia.org/'
178178
},
179179
{
180-
id: '0x13881',
180+
id: '0x2105',
181+
token: 'ETH',
182+
label: 'Base',
183+
rpcUrl: 'https://mainnet.base.org'
184+
},
185+
{
186+
id: '0x89',
181187
token: 'MATIC',
182-
label: 'Polygon - Mumbai',
183-
rpcUrl: 'https://matic-mumbai.chainstacklabs.com'
188+
label: 'Polygon',
189+
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
184190
},
185191
{
186192
id: '0x38',
187193
token: 'BNB',
188194
label: 'Binance',
189195
rpcUrl: 'https://bsc-dataseed.binance.org/'
190196
},
191-
{
192-
id: '0x89',
193-
token: 'MATIC',
194-
label: 'Polygon',
195-
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
196-
},
197197
{
198198
id: '0xfa',
199199
token: 'FTM',
@@ -211,12 +211,6 @@ const intiOnboard = async (theme) => {
211211
token: 'ARB-ETH',
212212
label: 'Arbitrum',
213213
rpcUrl: 'https://rpc.ankr.com/arbitrum'
214-
},
215-
{
216-
id: 84531,
217-
token: 'ETH',
218-
label: 'Base Goerli',
219-
rpcUrl: 'https://goerli.base.org'
220214
}
221215
],
222216
appMetadata: {

docs/src/routes/+page.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ const onboard = Onboard({
117117
token: 'ETH',
118118
label: 'Ethereum Mainnet',
119119
rpcUrl: MAINNET_RPC_URL
120+
},
121+
{
122+
id: '0x2105',
123+
token: 'ETH',
124+
label: 'Base',
125+
rpcUrl: 'https://mainnet.base.org'
120126
}
121127
]
122128
})

docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ const onboard = Onboard({
105105
token: 'ETH',
106106
label: 'Ethereum Mainnet',
107107
rpcUrl: MAINNET_RPC_URL
108+
},
109+
{
110+
id: '0x2105',
111+
token: 'ETH',
112+
label: 'Base',
113+
rpcUrl: 'https://mainnet.base.org'
108114
}
109115
]
110116
})

docs/src/routes/docs/[...2]getting-started/[...1]installation/+page.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ const chains = [
6666
token: 'MATIC',
6767
label: 'Matic Mainnet',
6868
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
69+
},
70+
{
71+
id: '0x2105',
72+
token: 'ETH',
73+
label: 'Base',
74+
rpcUrl: 'https://mainnet.base.org'
6975
}
7076
]
7177
```

docs/src/routes/docs/[...3]modules/[...1]core/+page.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ type ConnectModalOptions = {
287287
*/
288288
removeWhereIsMyWalletWarning?: boolean
289289
/**
290-
* Hide the "I don't have a wallet" link displayed
290+
* Hide the "I don't have a wallet" link displayed
291291
* on the left panel of the connect modal
292292
*/
293293
removeIDontHaveAWalletInfoLink?: boolean
@@ -633,18 +633,24 @@ const onboard = Onboard({
633633
label: 'Sepolia',
634634
rpcUrl: 'https://rpc.sepolia.org/'
635635
},
636+
{
637+
id: '0x89',
638+
token: 'MATIC',
639+
label: 'Matic',
640+
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
641+
},
642+
{
643+
id: '0x2105',
644+
token: 'ETH',
645+
label: 'Base',
646+
rpcUrl: 'https://mainnet.base.org'
647+
},
636648
{
637649
id: '0x38',
638650
token: 'BNB',
639651
label: 'Binance Smart Chain',
640652
rpcUrl: 'https://bsc-dataseed.binance.org/'
641653
},
642-
{
643-
id: '0x89',
644-
token: 'MATIC',
645-
label: 'Matic Mainnet',
646-
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
647-
},
648654
{
649655
id: 10,
650656
token: 'OETH',
@@ -656,12 +662,6 @@ const onboard = Onboard({
656662
token: 'ARB-ETH',
657663
label: 'Arbitrum',
658664
rpcUrl: 'https://rpc.ankr.com/arbitrum'
659-
},
660-
{
661-
id: 84531,
662-
token: 'ETH',
663-
label: 'Base Goerli',
664-
rpcUrl: 'https://goerli.base.org'
665665
}
666666
],
667667
appMetadata: {

docs/src/routes/docs/[...3]modules/[...3]react/+page.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ init({
5454
token: 'ETH',
5555
label: 'Ethereum Mainnet',
5656
rpcUrl
57+
},
58+
{
59+
id: '0x2105',
60+
token: 'ETH',
61+
label: 'Base',
62+
rpcUrl: 'https://mainnet.base.org'
5763
}
5864
]
5965
})

docs/src/routes/docs/[...3]modules/[...6]vue/+page.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ const web3Onboard = init({
4343
token: 'ETH',
4444
label: 'Ethereum Mainnet',
4545
rpcUrl
46+
},
47+
{
48+
id: '0x2105',
49+
token: 'ETH',
50+
label: 'Base',
51+
rpcUrl: 'https://mainnet.base.org'
4652
}
4753
]
4854
})

docs/src/routes/docs/[...4]wallets/[...11]injected/+page.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ const onboard = Onboard({
4747
token: 'ETH',
4848
label: 'Ethereum Mainnet',
4949
rpcUrl: MAINNET_RPC_URL
50+
},
51+
{
52+
id: '0x2105',
53+
token: 'ETH',
54+
label: 'Base',
55+
rpcUrl: 'https://mainnet.base.org'
5056
}
5157
],
5258
appMetadata: {

0 commit comments

Comments
 (0)