Skip to content

Commit

Permalink
[UPDATE] - Label from Optimism -> OP Mainnet (#2152)
Browse files Browse the repository at this point in the history
* Bump versions for release and Remove console.log

* Update Optimism label to OP Mainnet
  • Loading branch information
Adamj1232 authored Apr 12, 2024
1 parent 6383cd5 commit 45ce92d
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 27 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@web3-onboard/capsule": "^2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.7",
"@web3-onboard/core": "^2.21.5",
"@web3-onboard/core": "^2.21.6-alpha.1",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.4",
"@web3-onboard/fortmatic": "^2.0.19",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ const intiOnboard = async (theme) => {
{
id: '0xA',
token: 'OETH',
label: 'Optimism',
label: 'OP Mainnet',
rpcUrl: 'https://mainnet.optimism.io'
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ web3-onboard supports ALL EVM networks. Supporting a new network is simply a mat
- Arbitrum Nova
- Base
- Polygon
- Optimism
- OP Mainnet
- Avalanche
- BNB Chain
- Celo
Expand Down
2 changes: 1 addition & 1 deletion docs/src/routes/docs/[...3]modules/[...1]core/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ const onboard = Onboard({
{
id: 10,
token: 'OETH',
label: 'Optimism',
label: 'OP Mainnet',
rpcUrl: 'https://mainnet.optimism.io'
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/src/routes/examples/[...1]connect-wallet/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const chains = [
{
id: '0xA',
token: 'OETH',
label: 'Optimism',
label: 'OP Mainnet',
rpcUrl: 'https://mainnet.optimism.io'
},
{
Expand Down Expand Up @@ -415,7 +415,7 @@ const chains = [
{
id: '0xA',
token: 'OETH',
label: 'Optimism',
label: 'OP Mainnet',
rpcUrl: 'https://mainnet.optimism.io'
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.21.5",
"version": "2.21.6-alpha.1",
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export const chainIdToLabel: Record<string, string> = {
'0x38': 'Binance',
'0x89': 'Polygon',
'0xfa': 'Fantom',
'0xa': 'Optimism',
'0x45': 'Optimism Kovan',
'0xa': 'OP Mainnet',
'0x45': 'OP Kovan',
'0xa86a': 'Avalanche',
'0xa4ec': 'Celo',
'0x2105': 'Base',
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@web3-onboard/blocto": "^2.0.1",
"@web3-onboard/capsule": "2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/core": "^2.21.5",
"@web3-onboard/core": "^2.21.6-alpha.1",
"@web3-onboard/coinbase": "^2.2.7",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
{
id: 10,
token: 'OETH',
label: 'Optimism',
label: 'OP Mainnet',
rpcUrl: 'https://mainnet.optimism.io'
},
{
Expand Down Expand Up @@ -765,7 +765,7 @@
>Set Chain to Matic</button
>
<button on:click={() => onboard.setChain({ chainId: 10 })}
>Set Chain to Optimism</button
>Set Chain to OP Mainnet</button
>
</div>
<div class="position-buttons">
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/react",
"version": "2.8.16",
"version": "2.8.17-alpha.1",
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -62,7 +62,7 @@
},
"dependencies": {
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.21.5",
"@web3-onboard/core": "^2.21.6-alpha.1",
"use-sync-external-store": "1.0.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/solid",
"version": "2.0.3",
"version": "2.0.4-alpha.1",
"description": "A collection of solid Composables for integrating Web3-Onboard in to a Solid project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -63,7 +63,7 @@
},
"dependencies": {
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.21.5",
"@web3-onboard/core": "^2.21.6-alpha.1",
"solid-js": "^1.8.1"
}
}
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/vue",
"version": "2.7.15",
"version": "2.7.16-alpha.1",
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -62,7 +62,7 @@
"@vueuse/core": "^8.4.2",
"@vueuse/rxjs": "^8.2.0",
"@web3-onboard/common": "^2.3.4",
"@web3-onboard/core": "^2.21.5",
"@web3-onboard/core": "^2.21.6-alpha.1",
"vue-demi": "^0.12.4"
},
"peerDependencies": {
Expand Down
9 changes: 0 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6293,15 +6293,6 @@
ethers "5.5.4"
joi "17.9.1"

"@web3-onboard/injected-wallets@^2.10.14":
version "2.10.14"
resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.10.14.tgz#ad4f7585927651050caec232a62774f422fb9c01"
integrity sha512-lU/YCCYNr7+Qgg1lJ1vQofmJhMPZrkRTYO0lgkGsmLFVWZZ4rJIU1dm31h5iHm4nVUbw3ItYDICKsI1NgX46AQ==
dependencies:
"@web3-onboard/common" "^2.3.3"
joi "17.9.1"
lodash.uniqby "^4.7.0"

"@web3-react/abstract-connector@^6.0.7":
version "6.0.7"
resolved "https://registry.yarnpkg.com/@web3-react/abstract-connector/-/abstract-connector-6.0.7.tgz#401b3c045f1e0fab04256311be49d5144e9badc6"
Expand Down

0 comments on commit 45ce92d

Please sign in to comment.