From 45ce92db1cc297e2906b234f6880f844c055e57c Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Fri, 12 Apr 2024 10:55:35 -0600 Subject: [PATCH] [UPDATE] - Label from `Optimism` -> `OP Mainnet` (#2152) * Bump versions for release and Remove console.log * Update Optimism label to OP Mainnet --- docs/package.json | 2 +- docs/src/lib/services/onboard.js | 2 +- .../docs/[...1]overview/[...1]introduction/+page.md | 2 +- docs/src/routes/docs/[...3]modules/[...1]core/+page.md | 2 +- docs/src/routes/examples/[...1]connect-wallet/+page.md | 4 ++-- packages/core/package.json | 2 +- packages/core/src/utils.ts | 4 ++-- packages/demo/package.json | 2 +- packages/demo/src/App.svelte | 4 ++-- packages/react/package.json | 4 ++-- packages/solid/package.json | 4 ++-- packages/vue/package.json | 4 ++-- yarn.lock | 9 --------- 13 files changed, 18 insertions(+), 27 deletions(-) diff --git a/docs/package.json b/docs/package.json index fe0833ba4..dfaccc757 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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", diff --git a/docs/src/lib/services/onboard.js b/docs/src/lib/services/onboard.js index c20865aaa..8f84bf1d9 100644 --- a/docs/src/lib/services/onboard.js +++ b/docs/src/lib/services/onboard.js @@ -245,7 +245,7 @@ const intiOnboard = async (theme) => { { id: '0xA', token: 'OETH', - label: 'Optimism', + label: 'OP Mainnet', rpcUrl: 'https://mainnet.optimism.io' }, { diff --git a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md index f75533be0..48a823406 100644 --- a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md +++ b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md @@ -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 diff --git a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md index f62e8bf65..315bc632e 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -669,7 +669,7 @@ const onboard = Onboard({ { id: 10, token: 'OETH', - label: 'Optimism', + label: 'OP Mainnet', rpcUrl: 'https://mainnet.optimism.io' }, { diff --git a/docs/src/routes/examples/[...1]connect-wallet/+page.md b/docs/src/routes/examples/[...1]connect-wallet/+page.md index 8d83ad791..802e90570 100644 --- a/docs/src/routes/examples/[...1]connect-wallet/+page.md +++ b/docs/src/routes/examples/[...1]connect-wallet/+page.md @@ -147,7 +147,7 @@ const chains = [ { id: '0xA', token: 'OETH', - label: 'Optimism', + label: 'OP Mainnet', rpcUrl: 'https://mainnet.optimism.io' }, { @@ -415,7 +415,7 @@ const chains = [ { id: '0xA', token: 'OETH', - label: 'Optimism', + label: 'OP Mainnet', rpcUrl: 'https://mainnet.optimism.io' }, { diff --git a/packages/core/package.json b/packages/core/package.json index 82b6b76d3..4bb85213e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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", diff --git a/packages/core/src/utils.ts b/packages/core/src/utils.ts index 3242645fa..fb06eb775 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/utils.ts @@ -129,8 +129,8 @@ export const chainIdToLabel: Record = { '0x38': 'Binance', '0x89': 'Polygon', '0xfa': 'Fantom', - '0xa': 'Optimism', - '0x45': 'Optimism Kovan', + '0xa': 'OP Mainnet', + '0x45': 'OP Kovan', '0xa86a': 'Avalanche', '0xa4ec': 'Celo', '0x2105': 'Base', diff --git a/packages/demo/package.json b/packages/demo/package.json index a3d69aa2a..543964079 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -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", diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index 428983330..0c1cdffb5 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -346,7 +346,7 @@ { id: 10, token: 'OETH', - label: 'Optimism', + label: 'OP Mainnet', rpcUrl: 'https://mainnet.optimism.io' }, { @@ -765,7 +765,7 @@ >Set Chain to Matic Set Chain to OP Mainnet
diff --git a/packages/react/package.json b/packages/react/package.json index 870ece2dd..ba4f70084 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -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", @@ -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": { diff --git a/packages/solid/package.json b/packages/solid/package.json index 0339b2177..4ec50aa77 100644 --- a/packages/solid/package.json +++ b/packages/solid/package.json @@ -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", @@ -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" } } diff --git a/packages/vue/package.json b/packages/vue/package.json index 895f47d41..9e3ff876c 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -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", @@ -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": { diff --git a/yarn.lock b/yarn.lock index ca0bee08d..84a36a31c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"