diff --git a/.github/ISSUE_TEMPLATE/BUG.yml b/.github/ISSUE_TEMPLATE/BUG.yml index e3cf85ad5..59142c886 100644 --- a/.github/ISSUE_TEMPLATE/BUG.yml +++ b/.github/ISSUE_TEMPLATE/BUG.yml @@ -46,7 +46,7 @@ body: - '@web3-onboard/decent' - '@web3-onboard/formatic' - '@web3-onboard/gnosis' - - '@web3-onboard/injected' + - '@web3-onboard/injected-wallets' - '@web3-onboard/keepkey' - '@web3-onboard/keystone' - '@web3-onboard/ledger' diff --git a/docs/src/lib/services/onboard.js b/docs/src/lib/services/onboard.js index fdbef44a4..c20865aaa 100644 --- a/docs/src/lib/services/onboard.js +++ b/docs/src/lib/services/onboard.js @@ -247,6 +247,12 @@ const intiOnboard = async (theme) => { token: 'OETH', label: 'Optimism', rpcUrl: 'https://mainnet.optimism.io' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], appMetadata: { diff --git a/docs/src/routes/+page.md b/docs/src/routes/+page.md index 8ecc94d75..cc8b53b5d 100644 --- a/docs/src/routes/+page.md +++ b/docs/src/routes/+page.md @@ -13,14 +13,14 @@ ```sh copy -npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` ```sh copy -yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +yarn add @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` @@ -32,14 +32,14 @@ yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-pre ```sh copy -npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` ```sh copy -yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +yarn add @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` @@ -48,14 +48,14 @@ yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-pre ```sh copy -npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` ```sh copy -yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +yarn add @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` 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 4707e3355..f75533be0 100644 --- a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md +++ b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md @@ -45,6 +45,7 @@ web3-onboard supports ALL EVM networks. Supporting a new network is simply a mat - Avalanche - BNB Chain - Celo +- Degen - Fantom - Gnosis Chain - Harmony One @@ -132,6 +133,12 @@ const onboard = Onboard({ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] }) 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 087a32e68..f62e8bf65 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -677,6 +677,12 @@ const onboard = Onboard({ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], appMetadata: { diff --git a/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md b/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md index b2512f893..43efaff0d 100644 --- a/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md @@ -27,14 +27,14 @@ Full Simulation Platform API documentation can be found [here](https://docs.bloc ```sh copy -yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +yarn add @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` ```sh copy -npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview +npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview ``` @@ -48,7 +48,7 @@ To use the Transaction Preview package with web3-onboard all a developer needs t ```typescript copy import Onboard from '@web3-onboard/core' -import injectedModule from '@web3-onboard/injected' +import injectedModule from '@web3-onboard/injected-wallets' import transactionPreviewModule from '@web3-onboard/transaction-preview' const injected = injectedModule() diff --git a/docs/src/routes/examples/[...1]connect-wallet/+page.md b/docs/src/routes/examples/[...1]connect-wallet/+page.md index f65283af4..8d83ad791 100644 --- a/docs/src/routes/examples/[...1]connect-wallet/+page.md +++ b/docs/src/routes/examples/[...1]connect-wallet/+page.md @@ -161,6 +161,12 @@ const chains = [ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] @@ -423,6 +429,12 @@ const chains = [ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] @@ -511,4 +523,4 @@ Now that we have our wallet connected, let's display some basic information, suc ## Interacting with the providers - Transfer, Send, Sign using ethers.js -For examples of interacting with the wallet providers please see our demo project [here](https://github.com/blocknative/web3-onboard/blob/9b871a1b3117e92a7c87285677fa5b35c544a8e0/packages/demo/src/App.svelte#L447) \ No newline at end of file +For examples of interacting with the wallet providers please see our demo project [here](https://github.com/blocknative/web3-onboard/blob/9b871a1b3117e92a7c87285677fa5b35c544a8e0/packages/demo/src/App.svelte#L447) diff --git a/docs/src/routes/examples/[...2]uniswap-widget/+page.md b/docs/src/routes/examples/[...2]uniswap-widget/+page.md index 9494da086..0c20bcdb3 100644 --- a/docs/src/routes/examples/[...2]uniswap-widget/+page.md +++ b/docs/src/routes/examples/[...2]uniswap-widget/+page.md @@ -59,6 +59,13 @@ const polygonMainnet = { rpcUrl: 'https://matic-mainnet.chainstacklabs.com' } +const degenChain = { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' +} + const chains = [ethereumRopsten, polygonMainnet] const wallets = [injectedModule()] diff --git a/examples/with-ledger/pages/index.js b/examples/with-ledger/pages/index.js index a0c497351..dece8e4dc 100644 --- a/examples/with-ledger/pages/index.js +++ b/examples/with-ledger/pages/index.js @@ -64,6 +64,12 @@ init({ token: 'FTM', label: 'Fantom', rpcUrl: 'https://rpc.ftm.tools/' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], appMetadata: { diff --git a/examples/with-nextjs-13/web3-onboard.ts b/examples/with-nextjs-13/web3-onboard.ts index 16fb7059d..0d8339230 100644 --- a/examples/with-nextjs-13/web3-onboard.ts +++ b/examples/with-nextjs-13/web3-onboard.ts @@ -129,6 +129,12 @@ export default init({ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], appMetadata: { diff --git a/examples/with-nextjs/pages/_app.js b/examples/with-nextjs/pages/_app.js index 579c90489..4222d2ef7 100644 --- a/examples/with-nextjs/pages/_app.js +++ b/examples/with-nextjs/pages/_app.js @@ -28,6 +28,12 @@ const celoMainnet = { token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' +}, +{ + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } const chains = [ethereumRopsten, polygonMainnet, baseMainnet,celoMainnet] diff --git a/examples/with-solidjs/src/providers/onboard-provider/options.ts b/examples/with-solidjs/src/providers/onboard-provider/options.ts index f151e80a7..fde5386c5 100644 --- a/examples/with-solidjs/src/providers/onboard-provider/options.ts +++ b/examples/with-solidjs/src/providers/onboard-provider/options.ts @@ -34,6 +34,12 @@ export const chains = [ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ]; diff --git a/examples/with-sveltekit/src/lib/web3-onboard.ts b/examples/with-sveltekit/src/lib/web3-onboard.ts index 02ec180c7..c4736a1dc 100644 --- a/examples/with-sveltekit/src/lib/web3-onboard.ts +++ b/examples/with-sveltekit/src/lib/web3-onboard.ts @@ -39,6 +39,12 @@ const chains = [ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] diff --git a/examples/with-vanilla-js/src/onboard.js b/examples/with-vanilla-js/src/onboard.js index 1b2773aab..6aa8985a2 100644 --- a/examples/with-vanilla-js/src/onboard.js +++ b/examples/with-vanilla-js/src/onboard.js @@ -35,6 +35,12 @@ const chains = [ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] diff --git a/examples/with-vite-react/src/web3-onboard.ts b/examples/with-vite-react/src/web3-onboard.ts index 7c7f9c7c9..05e273f9d 100644 --- a/examples/with-vite-react/src/web3-onboard.ts +++ b/examples/with-vite-react/src/web3-onboard.ts @@ -141,6 +141,12 @@ export default init({ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], appMetadata: { diff --git a/examples/with-vuejs-v2/src/components/HelloWorld.vue b/examples/with-vuejs-v2/src/components/HelloWorld.vue index 381652e33..b61b505a9 100644 --- a/examples/with-vuejs-v2/src/components/HelloWorld.vue +++ b/examples/with-vuejs-v2/src/components/HelloWorld.vue @@ -66,6 +66,12 @@ const web3Onboard = init({ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] }) diff --git a/examples/with-vuejs/src/App.vue b/examples/with-vuejs/src/App.vue index 6689800ee..d48ee5807 100644 --- a/examples/with-vuejs/src/App.vue +++ b/examples/with-vuejs/src/App.vue @@ -34,6 +34,12 @@ init({ token: 'ETH', label: 'Celo', rpcUrl: 'https://1rpc.io/celo' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ] }) diff --git a/packages/core/README.md b/packages/core/README.md index efb355c55..6b31ef7ab 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -635,6 +635,12 @@ const onboard = Onboard({ token: 'FTM', label: 'Fantom Mainnet', rpcUrl: 'https://rpc.ftm.tools/' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], appMetadata: { diff --git a/packages/core/package.json b/packages/core/package.json index ced495256..bf2199970 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.21.4", + "version": "2.21.5-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/icons/degen.ts b/packages/core/src/icons/degen.ts new file mode 100644 index 000000000..8bc8d206a --- /dev/null +++ b/packages/core/src/icons/degen.ts @@ -0,0 +1,12 @@ +export default ` + + + + + + + + + + +` \ No newline at end of file diff --git a/packages/core/src/icons/index.ts b/packages/core/src/icons/index.ts index 3dda66abc..8565422dd 100644 --- a/packages/core/src/icons/index.ts +++ b/packages/core/src/icons/index.ts @@ -23,3 +23,4 @@ export { default as caretIcon } from './caret.js' export { default as warningIcon } from './warning.js' export { default as successIcon } from './success.js' export { default as pendingIcon } from './pending.js' +export { default as degenIcon } from './degen.js' diff --git a/packages/core/src/utils.ts b/packages/core/src/utils.ts index ea7a4d2cf..3242645fa 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/utils.ts @@ -28,7 +28,8 @@ import { avalancheIcon, harmonyOneIcon, arbitrumIcon, - baseIcon + baseIcon, + degenIcon } from './icons/index.js' import type { @@ -137,7 +138,8 @@ export const chainIdToLabel: Record = { '0x64': 'Gnosis', '0x63564C40': 'Harmony One', '0xa4b1': 'Arbitrum One', - '0xa4ba': 'Arbitrum Nova' + '0xa4ba': 'Arbitrum Nova', + '0x27bc86aa': 'Degen' } export const networkToChainId: Record = { @@ -150,7 +152,9 @@ export const networkToChainId: Record = { 'bsc-main': '0x38', 'matic-main': '0x89', 'fantom-main': '0xfa', - 'matic-mumbai': '0x80001' + 'matic-mumbai': '0x80001', + 'degen': '0x27bc86aa' + } export const chainStyles: Record = { @@ -233,6 +237,10 @@ export const chainStyles: Record = { '0x80001': { icon: polygonIcon, color: '#8247E5' + }, + '0x27bc86aa': { + icon: degenIcon, + color: '#a36dfe' } } diff --git a/packages/demo/package.json b/packages/demo/package.json index 6524d37e9..9a2dd3775 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.4", + "@web3-onboard/core": "^2.21.5-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 00f14b8d1..428983330 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -348,6 +348,12 @@ token: 'OETH', label: 'Optimism', rpcUrl: 'https://mainnet.optimism.io' + }, + { + id: 666666666, + token: 'DEGEN', + label: 'Degen', + rpcUrl: 'https://rpc.degen.tips' } ], connect: { diff --git a/packages/react/package.json b/packages/react/package.json index 7c6613baa..f53455d4e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.8.15", + "version": "2.8.16-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.4", + "@web3-onboard/core": "^2.21.5-alpha.1", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/solid/package.json b/packages/solid/package.json index 6631cb3a0..2bf87b0f4 100644 --- a/packages/solid/package.json +++ b/packages/solid/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/solid", - "version": "2.0.2", + "version": "2.0.3-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.4", + "@web3-onboard/core": "^2.21.5-alpha.1", "solid-js": "^1.8.1" } } diff --git a/packages/transaction-preview/README.md b/packages/transaction-preview/README.md index b7ec836c9..455f98693 100644 --- a/packages/transaction-preview/README.md +++ b/packages/transaction-preview/README.md @@ -11,10 +11,10 @@ Full Simulation Platform API documentation can be found [here](https://docs.bloc ### Install **NPM** -`npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview` +`npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview` **Yarn** -`yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview` +`yarn add @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/transaction-preview` ### Usage with Web3-Onboard Core package @@ -24,7 +24,7 @@ To use the Transaction Preview package with web3-onboard all a developer needs t ```typescript import Onboard from '@web3-onboard/core' -import injectedModule from '@web3-onboard/injected' +import injectedModule from '@web3-onboard/injected-wallets' import transactionPreviewModule from '@web3-onboard/transaction-preview' const injected = injectedModule() diff --git a/packages/vue/package.json b/packages/vue/package.json index 181fcfddf..6f4ac088c 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.7.14", + "version": "2.7.15-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.4", + "@web3-onboard/core": "^2.21.5-alpha.1", "vue-demi": "^0.12.4" }, "peerDependencies": { diff --git a/yarn.lock b/yarn.lock index c5ded117e..dfb24b39b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6293,6 +6293,25 @@ ethers "5.5.4" joi "17.9.1" +"@web3-onboard/core@^2.21.4": + version "2.21.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.21.4.tgz#0bf80a30c32f5fd8d5330cda4b6c6729c40ca316" + integrity sha512-+nOKj3hudHXfS5J8Ej5P5v/NWuG1b/863Ikaob/UHsCrulle5ILmBNrJqs2LESLdbHjZPFQBoJG+IxTPo7yIAA== + dependencies: + "@web3-onboard/common" "^2.3.4" + bignumber.js "^9.0.0" + bnc-sdk "^4.6.7" + bowser "^2.11.0" + ethers "5.5.3" + eventemitter3 "^4.0.7" + joi "17.9.1" + lodash.merge "^4.6.2" + lodash.partition "^4.6.0" + nanoid "^4.0.0" + rxjs "^7.5.5" + svelte "^3.49.0" + svelte-i18n "^3.3.13" + "@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"