From 74b278ee0414bcfb823811fce0c41bef6990d162 Mon Sep 17 00:00:00 2001 From: laurencedelisle <53497147+laurencedelisle@users.noreply.github.com> Date: Wed, 12 Oct 2022 21:36:38 -0700 Subject: [PATCH 01/16] Update [...2]onboard.js-migration-guide.md updated links, punctuation and grammar. --- .../[...2]onboard.js-migration-guide.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md b/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md index 7f2ff1809..70e379492 100644 --- a/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md +++ b/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md @@ -23,13 +23,13 @@ To help you get started quickly on any framework you're using, we’ve put toget ### Package Upgrade - Modularization This is the biggest change you might experience as an onboard.js user. With Web3-Onboard, we’ve separated all supported wallets into their modules, meaning you only need to integrate specific wallet modules you intend to support in your app. -For example with Onboard, if you wanted to support only Metamask and Coinbase in your app, you had to install Onboard complete with all other wallets: npm install bnc-onboard +For example with Onboard, if you wanted to support only Metamask and Coinbase in your app, you had to install Onboard complete with all other wallets: `npm install bnc-onboard`. With Web3-Onboard, you only need to install core along with the desired wallet modules: `npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/coinbase` This change allows us to support many web3 wallets without affecting the overall library performance. ### Expansive Initialization Options -We’ve made initialization simpler while introducing more powerful options like [Account Center](https://www.blocknative.com/blog/multichain-and-multiwallet-account-management-on-your-dapp-with-account-center) and Notify in web3-onboard. +We’ve made initialization simpler while introducing more powerful options like [Account Center](https://www.blocknative.com/blog/multichain-and-multiwallet-account-management-on-your-dapp-with-account-center) and Notify in Web3-Onboard. Onboard now requires two compulsory initial setup options: `wallets` (Wallet modules, as shown above, to be initialized and added to wallet selection modal) and `chains` (EVM networks your app should work with). You can also pass multiple wallets and chains. ``` @@ -46,7 +46,7 @@ const onboard = Onboard({ }) ``` -You can find the full list of initialization options in our docs here. +You can find the full list of initialization options in our docs [here](https://onboard.blocknative.com/docs/packages/core#options). ### API Upgrades @@ -55,15 +55,15 @@ Now, you only need to call the connectWallet API: `await onboard.connectWallet()` -Learn more about state changes tracked with the Onboard API here and the exposed actions you can use to modify the state here. +Learn more about state changes tracked with the Onboard API [here](https://onboard.blocknative.com/docs/packages/core#state) and the exposed actions you can use to modify the state [here](https://onboard.blocknative.com/docs/packages/core#actions-to-modify-state). ### Framework Support Although Onboard is still framework-agnostic, we’ve introduced a couple of framework-specific modules that are frequently asked for by our users. -`@web3-onboard/react` - React Hooks to connect users to web3 dApps better. You can check out [a comprehensive React Hooks guide](https://www.blocknative.com/blog/react-hooks-ethereum) we've written on that. +`@web3-onboard/react` - React Hooks to connect users to web3 dApps better. You can check out [a comprehensive React Hooks guide](https://www.blocknative.com/blog/react-hooks-ethereum) we've written on it. -`@web3-onboard/vue` - A set of reusable functions for integrating Web3-Onboard into a Vue 3 project. This is also compatible with a Vue 2 + composition-api dapp. +`@web3-onboard/vue` - A set of reusable functions for integrating Web3-Onboard into a Vue 3 project. This is also compatible with a Vue 2 + composition-api dApp. ### CSS Customizations @@ -89,7 +89,7 @@ We've also added more expansive custom CSS properties so you can style every par } ``` -The full list of CSS variables for web3-onboard are available here. +The full list of CSS variables for web3-onboard are available [here](https://onboard.blocknative.com/docs/packages/core#custom-styling). ### Other Important Changes @@ -98,4 +98,7 @@ There are also other notable infrastructural changes in Web3-Onboard: - Dynamic Imports of dependencies - Wallet Provider Standardization - Support for Chain ID in decimal format -- If you have questions or requests, please feel free to drop by the [community-support discord channel](https://discord.com/channels/542403978693050389/542406894677917699) or [create a PR or issue on GitHub](https://github.com/blocknative/web3-onboard/issues/new/choose). + +### Questions and Requests + +If you have questions or requests, please feel free to drop by the [community-support discord channel](https://discord.com/channels/542403978693050389/542406894677917699) or [create a PR or issue on GitHub](https://github.com/blocknative/web3-onboard/issues/new/choose). From c2757cb87febb86a73685d91750a7ab10a8c20f9 Mon Sep 17 00:00:00 2001 From: laurencedelisle <53497147+laurencedelisle@users.noreply.github.com> Date: Wed, 19 Oct 2022 14:27:01 -0700 Subject: [PATCH 02/16] addressed comments from PR and updated links --- yarn.lock | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/yarn.lock b/yarn.lock index 14fb25489..589869828 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2953,34 +2953,6 @@ dependencies: "@walletconnect/window-getters" "^1.0.0" -"@web3-onboard/common@^2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.2.2.tgz#abef8ca861835ab00e5b4641462de2c3db73fc89" - integrity sha512-04Y2Fryiu48nW27dgAtYmPugdhYbeIZq4HM1wsqRftQjgyEWnsam3YyeKRWBABa5iTsE2a/Fo4LofuBG5RMVYw== - dependencies: - bignumber.js "^9.1.0" - ethers "5.5.4" - joi "^17.4.2" - -"@web3-onboard/core@^2.6.0-alpha.1": - version "2.8.3" - resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.8.3.tgz#e41c3e11b5a38d7b5e2ee15d4dc2cf49307d38c5" - integrity sha512-3CKc33dKqC9jurbf0+7mfvddBJgvCU4n9ADu68XlmCws3xP8Gq1nji4Y/AEUqcfhfdPWno6vIgc/j1cYseCIhw== - dependencies: - "@web3-onboard/common" "^2.2.2" - bignumber.js "^9.0.0" - bnc-sdk "^4.4.1" - bowser "^2.11.0" - ethers "5.5.3" - eventemitter3 "^4.0.7" - joi "17.6.0" - lodash.merge "^4.6.2" - lodash.partition "^4.6.0" - nanoid "^4.0.0" - rxjs "^7.5.2" - svelte "^3.49.0" - svelte-i18n "^3.3.13" - "@web3auth/base-plugin@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@web3auth/base-plugin/-/base-plugin-1.0.1.tgz#1e2a87acf745299fdff6f92e6c46ee9bc38aa670" @@ -10101,7 +10073,7 @@ svelte-preprocess@^4.0.0, svelte-preprocess@^4.9.4: sorcery "^0.10.0" strip-indent "^3.0.0" -svelte@^3.42.5, svelte@^3.49.0: +svelte@^3.42.5: version "3.49.0" resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.49.0.tgz#5baee3c672306de1070c3b7888fc2204e36a4029" integrity sha512-+lmjic1pApJWDfPCpUUTc1m8azDqYCG1JN9YEngrx/hUyIcFJo6VZhj0A1Ai0wqoHcEIuQy+e9tk+4uDgdtsFA== From 597585442607cc85f703e397bf5ac288da4823fb Mon Sep 17 00:00:00 2001 From: laurencedelisle <53497147+laurencedelisle@users.noreply.github.com> Date: Fri, 21 Oct 2022 08:09:39 -0700 Subject: [PATCH 03/16] Create [...2]onboard.js-migration-guide.md --- .../[...2]onboard.js-migration-guide.md | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md diff --git a/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md b/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md new file mode 100644 index 000000000..9433864b9 --- /dev/null +++ b/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md @@ -0,0 +1,104 @@ +--- +sidebar_title: "Migration Guide: Web3-Onboard" +--- +# Migration Guide from onboard.js to web3-onboard + +Follow the steps below to easily migrate from onboard.js to Web3-Onboard. + +### Background + +With Web3-Onboard, we’ve introduced significant architectural changes that provide a more robust and efficient web3 onboarding experience. While this upgrade may result in breaking changes, the improved overall experience makes it worthwhile. + +### Steps + +If you have bnc-onboard installed, you will need to install web3-onboard instead. The basic steps you need to take to get started are: + +1. Install `npm i @web3-onboard/core`. You can then go ahead and install other specific wallet modules you want. +2. Initialize Onboard with the wallets you’ve installed along with the networks you would like to support. +3. Make use of our API actions like `await onboard.connectWallet()` to allow a user to connect their wallets. + +For a full code overview of the upgrade process using the React Hooks package please see [this PR](https://github.com/blocknative/react-demo/pull/160/files) with special attention to the `App.js` and `services.js` files. +To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](/onboard#quickstart). + +### Package Upgrade - Modularization + +This is the biggest change you might experience as an onboard.js user. With Web3-Onboard, we’ve separated all supported wallets into their modules, meaning you only need to integrate specific wallet modules you intend to support in your app. +For example with Onboard, if you wanted to support only Metamask and Coinbase in your app, you had to install Onboard complete with all other wallets: `npm install bnc-onboard`. +With Web3-Onboard, you only need to install core along with the desired wallet modules: `npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/coinbase` +This change allows us to support many web3 wallets without affecting the overall library performance. + +### Expansive Initialization Options + +We’ve made initialization simpler while introducing more powerful options like [Account Center](https://www.blocknative.com/blog/multichain-and-multiwallet-account-management-on-your-dapp-with-account-center) and Notify in Web3-Onboard. +Onboard now requires two compulsory initial setup options: `wallets` (Wallet modules, as shown above, to be initialized and added to wallet selection modal) and `chains` (EVM networks your app should work with). You can also pass multiple wallets and chains. + +``` +const onboard = Onboard({ + wallets: [injected, coinbase], + chains: [ + { + id: '0x1', + token: 'ETH', + label: 'Ethereum Mainnet', + rpcUrl: MAINNET_RPC_URL + } + ] +}) +``` + +You can find the full list of initialization options in our docs [here](/docs/packages/core#options). + +### API Upgrades + +We've also added a number of API enhancements to help you create an onboarding experience faster. For example, previously, you had to call `walletSelect` and `walletCheck` API to get a user connected: `await onboard.walletSelect(); await onboard.walletCheck();` +Now, you only need to call the connectWallet API: + +`await onboard.connectWallet()` + +Learn more about state changes tracked with the Onboard API [here](/docs/packages/core#state) and the exposed actions you can use to modify the state [here](/docs/packages/core#actions-to-modify-state). + +### Framework Support + +Although Onboard is still framework-agnostic, we’ve introduced a couple of framework-specific modules that are frequently asked for by our users. + +`@web3-onboard/react` - React Hooks to connect users to web3 dApps better. You can check out [a comprehensive React Hooks guide](https://www.blocknative.com/blog/react-hooks-ethereum) we've written on it. + +`@web3-onboard/vue` - A set of reusable functions for integrating Web3-Onboard into a Vue 3 project. This is also compatible with a Vue 2 + composition-api dApp. + +### CSS Customizations + +We've also added more expansive custom CSS properties so you can style every part of your onboarding experience to match the overall experience of your dApp. To apply Web3-Onboard CSS customizations, you don't need to attach them to the `.bn-onboard-custom` class like before. Instead, you can simply place them in the `:root` CSS pseudo-class, as shown below: + +``` +:root { + /* CUSTOMIZE THE COLOR PALLETTE */ + --onboard-success-100: #d1fae3; + /* CUSTOMIZE ACCOUNT CENTER*/ + --account-center-z-index: 30 +/* CUSTOMIZE THE SHARED MODAL */ + --onboard-modal-color: #ffe5e6; + /* CUSTOMIZE THE CONNECT MODAL */ + --onboard-font-size-1: 3rem; + /* HD WALLET ACCOUNT SELECT MODAL POSITIONING */ + --onboard-account-select-modal-z-index : 1; +/* COLORS */ + --account-select-modal-primary-100: #eff1fc; + /* SPACING */ + --account-select-modal-margin-5: 0.5rem; +/* AND MANY MORE ALLOWING COMPLETE CUSTOMIZATION OF YOUR ONBOARDING EXPERIENCE */ +} +``` + +The full list of CSS variables for web3-onboard are available [here](/docs/getting-started/customization). + +### Other Important Changes + +There are also other notable infrastructural changes in Web3-Onboard: + +- Dynamic Imports of dependencies +- Wallet Provider Standardization +- Support for Chain ID in decimal format + +### Questions and Requests + +If you have questions or requests, please feel free to drop by the [community-support discord channel](https://discord.com/channels/542403978693050389/542406894677917699) or [create a PR or issue on GitHub](https://github.com/blocknative/web3-onboard/issues/new/choose). From 9acabdaeb4861afd4f992effbdf5ebca3da30603 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 25 Oct 2022 13:14:23 -0600 Subject: [PATCH 04/16] Remove duplicate cmigration guide --- .../[...2]onboard.js-migration-guide.md | 104 ------------------ 1 file changed, 104 deletions(-) delete mode 100644 docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md diff --git a/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md b/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md deleted file mode 100644 index 9433864b9..000000000 --- a/docs/src/routes/docs/[...1]overview/[...2]onboard.js-migration-guide.md +++ /dev/null @@ -1,104 +0,0 @@ ---- -sidebar_title: "Migration Guide: Web3-Onboard" ---- -# Migration Guide from onboard.js to web3-onboard - -Follow the steps below to easily migrate from onboard.js to Web3-Onboard. - -### Background - -With Web3-Onboard, we’ve introduced significant architectural changes that provide a more robust and efficient web3 onboarding experience. While this upgrade may result in breaking changes, the improved overall experience makes it worthwhile. - -### Steps - -If you have bnc-onboard installed, you will need to install web3-onboard instead. The basic steps you need to take to get started are: - -1. Install `npm i @web3-onboard/core`. You can then go ahead and install other specific wallet modules you want. -2. Initialize Onboard with the wallets you’ve installed along with the networks you would like to support. -3. Make use of our API actions like `await onboard.connectWallet()` to allow a user to connect their wallets. - -For a full code overview of the upgrade process using the React Hooks package please see [this PR](https://github.com/blocknative/react-demo/pull/160/files) with special attention to the `App.js` and `services.js` files. -To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](/onboard#quickstart). - -### Package Upgrade - Modularization - -This is the biggest change you might experience as an onboard.js user. With Web3-Onboard, we’ve separated all supported wallets into their modules, meaning you only need to integrate specific wallet modules you intend to support in your app. -For example with Onboard, if you wanted to support only Metamask and Coinbase in your app, you had to install Onboard complete with all other wallets: `npm install bnc-onboard`. -With Web3-Onboard, you only need to install core along with the desired wallet modules: `npm i @web3-onboard/core @web3-onboard/injected-wallets @web3-onboard/coinbase` -This change allows us to support many web3 wallets without affecting the overall library performance. - -### Expansive Initialization Options - -We’ve made initialization simpler while introducing more powerful options like [Account Center](https://www.blocknative.com/blog/multichain-and-multiwallet-account-management-on-your-dapp-with-account-center) and Notify in Web3-Onboard. -Onboard now requires two compulsory initial setup options: `wallets` (Wallet modules, as shown above, to be initialized and added to wallet selection modal) and `chains` (EVM networks your app should work with). You can also pass multiple wallets and chains. - -``` -const onboard = Onboard({ - wallets: [injected, coinbase], - chains: [ - { - id: '0x1', - token: 'ETH', - label: 'Ethereum Mainnet', - rpcUrl: MAINNET_RPC_URL - } - ] -}) -``` - -You can find the full list of initialization options in our docs [here](/docs/packages/core#options). - -### API Upgrades - -We've also added a number of API enhancements to help you create an onboarding experience faster. For example, previously, you had to call `walletSelect` and `walletCheck` API to get a user connected: `await onboard.walletSelect(); await onboard.walletCheck();` -Now, you only need to call the connectWallet API: - -`await onboard.connectWallet()` - -Learn more about state changes tracked with the Onboard API [here](/docs/packages/core#state) and the exposed actions you can use to modify the state [here](/docs/packages/core#actions-to-modify-state). - -### Framework Support - -Although Onboard is still framework-agnostic, we’ve introduced a couple of framework-specific modules that are frequently asked for by our users. - -`@web3-onboard/react` - React Hooks to connect users to web3 dApps better. You can check out [a comprehensive React Hooks guide](https://www.blocknative.com/blog/react-hooks-ethereum) we've written on it. - -`@web3-onboard/vue` - A set of reusable functions for integrating Web3-Onboard into a Vue 3 project. This is also compatible with a Vue 2 + composition-api dApp. - -### CSS Customizations - -We've also added more expansive custom CSS properties so you can style every part of your onboarding experience to match the overall experience of your dApp. To apply Web3-Onboard CSS customizations, you don't need to attach them to the `.bn-onboard-custom` class like before. Instead, you can simply place them in the `:root` CSS pseudo-class, as shown below: - -``` -:root { - /* CUSTOMIZE THE COLOR PALLETTE */ - --onboard-success-100: #d1fae3; - /* CUSTOMIZE ACCOUNT CENTER*/ - --account-center-z-index: 30 -/* CUSTOMIZE THE SHARED MODAL */ - --onboard-modal-color: #ffe5e6; - /* CUSTOMIZE THE CONNECT MODAL */ - --onboard-font-size-1: 3rem; - /* HD WALLET ACCOUNT SELECT MODAL POSITIONING */ - --onboard-account-select-modal-z-index : 1; -/* COLORS */ - --account-select-modal-primary-100: #eff1fc; - /* SPACING */ - --account-select-modal-margin-5: 0.5rem; -/* AND MANY MORE ALLOWING COMPLETE CUSTOMIZATION OF YOUR ONBOARDING EXPERIENCE */ -} -``` - -The full list of CSS variables for web3-onboard are available [here](/docs/getting-started/customization). - -### Other Important Changes - -There are also other notable infrastructural changes in Web3-Onboard: - -- Dynamic Imports of dependencies -- Wallet Provider Standardization -- Support for Chain ID in decimal format - -### Questions and Requests - -If you have questions or requests, please feel free to drop by the [community-support discord channel](https://discord.com/channels/542403978693050389/542406894677917699) or [create a PR or issue on GitHub](https://github.com/blocknative/web3-onboard/issues/new/choose). From fd7320e6d5a4e440f4e9406cb0d5e6ba5169ac52 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 25 Oct 2022 13:16:12 -0600 Subject: [PATCH 05/16] Add changes that were part of duplicate mig guide --- .../[...1]overview/[...3]onboard.js-migration-guide.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md b/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md index eca1f01cd..9433864b9 100644 --- a/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md +++ b/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md @@ -1,5 +1,5 @@ --- -sidebar_title: "Migration Guide from v1" +sidebar_title: "Migration Guide: Web3-Onboard" --- # Migration Guide from onboard.js to web3-onboard @@ -18,7 +18,7 @@ If you have bnc-onboard installed, you will need to install web3-onboard instead 3. Make use of our API actions like `await onboard.connectWallet()` to allow a user to connect their wallets. For a full code overview of the upgrade process using the React Hooks package please see [this PR](https://github.com/blocknative/react-demo/pull/160/files) with special attention to the `App.js` and `services.js` files. -To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](https://docs.blocknative.com/onboard#quickstart). +To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](/onboard#quickstart). ### Package Upgrade - Modularization @@ -46,7 +46,7 @@ const onboard = Onboard({ }) ``` -You can find the full list of initialization options in our docs [here](https://onboard.blocknative.com/docs/packages/core#options). +You can find the full list of initialization options in our docs [here](/docs/packages/core#options). ### API Upgrades @@ -55,7 +55,7 @@ Now, you only need to call the connectWallet API: `await onboard.connectWallet()` -Learn more about state changes tracked with the Onboard API [here](https://onboard.blocknative.com/docs/packages/core#state) and the exposed actions you can use to modify the state [here](https://onboard.blocknative.com/docs/packages/core#actions-to-modify-state). +Learn more about state changes tracked with the Onboard API [here](/docs/packages/core#state) and the exposed actions you can use to modify the state [here](/docs/packages/core#actions-to-modify-state). ### Framework Support @@ -89,7 +89,7 @@ We've also added more expansive custom CSS properties so you can style every par } ``` -The full list of CSS variables for web3-onboard are available [here](https://onboard.blocknative.com/docs/packages/core#custom-styling). +The full list of CSS variables for web3-onboard are available [here](/docs/getting-started/customization). ### Other Important Changes From ec22dba30e10bd9c1b6a628f8659772a41192a2b Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 25 Oct 2022 13:22:47 -0600 Subject: [PATCH 06/16] Revert relative path for external --- .../docs/[...1]overview/[...3]onboard.js-migration-guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md b/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md index 9433864b9..1223a24b0 100644 --- a/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md +++ b/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md @@ -1,5 +1,5 @@ --- -sidebar_title: "Migration Guide: Web3-Onboard" +sidebar_title: "Migration Guide from v1" --- # Migration Guide from onboard.js to web3-onboard @@ -18,7 +18,7 @@ If you have bnc-onboard installed, you will need to install web3-onboard instead 3. Make use of our API actions like `await onboard.connectWallet()` to allow a user to connect their wallets. For a full code overview of the upgrade process using the React Hooks package please see [this PR](https://github.com/blocknative/react-demo/pull/160/files) with special attention to the `App.js` and `services.js` files. -To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](/onboard#quickstart). +To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](https://docs.blocknative.com/onboard#quickstart). ### Package Upgrade - Modularization @@ -89,7 +89,7 @@ We've also added more expansive custom CSS properties so you can style every par } ``` -The full list of CSS variables for web3-onboard are available [here](/docs/getting-started/customization). +The full list of CSS variables for web3-onboard are available [here](/docs/packages/core#custom-styling). ### Other Important Changes From 5ff542b4aa39c19f3d857299b5fb126943188fce Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 25 Oct 2022 13:28:45 -0600 Subject: [PATCH 07/16] Update link from expired docs to examples folder --- .../docs/[...1]overview/[...3]onboard.js-migration-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md b/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md index 1223a24b0..8d7b32e4c 100644 --- a/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md +++ b/docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md @@ -13,12 +13,12 @@ With Web3-Onboard, we’ve introduced significant architectural changes that pro If you have bnc-onboard installed, you will need to install web3-onboard instead. The basic steps you need to take to get started are: -1. Install `npm i @web3-onboard/core`. You can then go ahead and install other specific wallet modules you want. +1. Install `npm i @web3-onboard/core`. You can then go ahead and install other specific wallet modules you want (most likely `npm i @web3-onboard/injected-wallets` for browser wallet support). 2. Initialize Onboard with the wallets you’ve installed along with the networks you would like to support. 3. Make use of our API actions like `await onboard.connectWallet()` to allow a user to connect their wallets. For a full code overview of the upgrade process using the React Hooks package please see [this PR](https://github.com/blocknative/react-demo/pull/160/files) with special attention to the `App.js` and `services.js` files. -To help you get started quickly on any framework you're using, we’ve put together [a quickstart that includes the above-mentioned steps](https://docs.blocknative.com/onboard#quickstart). +To help you get started quickly we’ve put together [a set of examples across multiple frameworks that includes the above-mentioned steps](https://github.com/blocknative/web3-onboard/tree/v2-web3-onboard-develop/examples). ### Package Upgrade - Modularization From d2a568819562268f5ed71e4e91c85c11dfe9a7d4 Mon Sep 17 00:00:00 2001 From: mhchaudhry3 Date: Tue, 25 Oct 2022 17:31:43 -0400 Subject: [PATCH 08/16] injected wallets doc fix --- docs/package.json | 2 +- docs/src/lib/components/install-code.md | 4 ++-- .../routes/docs/[...2]getting-started/[...1]installation.md | 4 ++-- docs/src/routes/docs/[...4]packages/injected.md | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/package.json b/docs/package.json index b530aba22..c3f33328d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "0.0.1", + "version": "0.0.2", "scripts": { "dev": "svelte-kit dev", "build": "svelte-kit build", diff --git a/docs/src/lib/components/install-code.md b/docs/src/lib/components/install-code.md index 132fbc595..8e2ab2395 100644 --- a/docs/src/lib/components/install-code.md +++ b/docs/src/lib/components/install-code.md @@ -2,14 +2,14 @@ ```sh copy -npm install @web3-onboard/core @web3-onboard/injected +npm install @web3-onboard/core @web3-onboard/injected-wallets ``` ```sh copy -yarn add @web3-onboard/core @web3-onboard/injected +yarn add @web3-onboard/core @web3-onboard/injected-wallets ``` diff --git a/docs/src/routes/docs/[...2]getting-started/[...1]installation.md b/docs/src/routes/docs/[...2]getting-started/[...1]installation.md index b48e55fdd..e98484ea7 100644 --- a/docs/src/routes/docs/[...2]getting-started/[...1]installation.md +++ b/docs/src/routes/docs/[...2]getting-started/[...1]installation.md @@ -10,14 +10,14 @@ Install the core Onboard library and the injected wallets module to support brow ```sh copy -yarn add @web3-onboard/core @web3-onboard/injected +yarn add @web3-onboard/core @web3-onboard/injected-wallets ``` ```sh copy -npm install @web3-onboard/core @web3-onboard/injected +npm install @web3-onboard/core @web3-onboard/injected-wallets ``` diff --git a/docs/src/routes/docs/[...4]packages/injected.md b/docs/src/routes/docs/[...4]packages/injected.md index e6c422a66..100758e19 100644 --- a/docs/src/routes/docs/[...4]packages/injected.md +++ b/docs/src/routes/docs/[...4]packages/injected.md @@ -10,14 +10,14 @@ Note: Make sure to install the core module before installing other modules to w3 ```sh copy -yarn add @web3-onboard/injected +yarn add @web3-onboard/injected-wallets ``` ```sh copy -npm install @web3-onboard/injected +npm install @web3-onboard/injected-wallets ``` From dae9dba6a3cadb2bb9ef3621f9e637b2fff4610e Mon Sep 17 00:00:00 2001 From: mhchaudhry3 Date: Wed, 26 Oct 2022 10:13:52 -0400 Subject: [PATCH 09/16] no version bump needed --- docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index c3f33328d..b530aba22 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "0.0.2", + "version": "0.0.1", "scripts": { "dev": "svelte-kit dev", "build": "svelte-kit build", From b0ef86100770c53d21258b3b52142abe55bcda93 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 27 Oct 2022 08:25:20 -0600 Subject: [PATCH 10/16] Add Search to Docs (#1322) * Update layout * Update homepage * Add algolia packages * Update index name * Update search keys * yarn it --- docs/package.json | 6 + docs/src/routes/__layout-homepage.svelte | 23 ++- docs/src/routes/__layout-kit-docs.svelte | 12 +- docs/yarn.lock | 209 ++++++++++++++++++++++- 4 files changed, 239 insertions(+), 11 deletions(-) diff --git a/docs/package.json b/docs/package.json index b530aba22..f181a430b 100644 --- a/docs/package.json +++ b/docs/package.json @@ -14,6 +14,9 @@ "format": "prettier --write --plugin-search-dir=. ." }, "devDependencies": { + "@algolia/client-search": "^4.14.2", + "@docsearch/css": "^3.2.1", + "@docsearch/js": "^3.2.1", "@iconify-json/ri": "^1.1.3", "@playwright/test": "^1.22.2", "@sveltejs/adapter-static": "^1.0.0-next.39", @@ -21,6 +24,7 @@ "@sveltejs/kit": "1.0.0-next.357", "@svelteness/kit-docs": "^0.22.12", "@tailwindcss/typography": "^0.5.2", + "@types/react": "^18.0.21", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.27.0", "@typescript-eslint/parser": "^5.27.0", @@ -37,6 +41,8 @@ "postcss": "^8.4.14", "prettier": "^2.6.2", "prettier-plugin-svelte": "^2.7.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "shiki": "^0.10.1", "svelte": "^3.44.0", "svelte-check": "^2.7.1", diff --git a/docs/src/routes/__layout-homepage.svelte b/docs/src/routes/__layout-homepage.svelte index 1925d7227..abb5908b7 100644 --- a/docs/src/routes/__layout-homepage.svelte +++ b/docs/src/routes/__layout-homepage.svelte @@ -9,10 +9,13 @@ import '@svelteness/kit-docs/client/styles/theme.css' import '$lib/styles/fonts.css' import '$lib/styles/kit-docs.css' + import '@docsearch/css' + import '@svelteness/kit-docs/client/styles/docsearch.css' import { KitDocs, KitDocsLayout, SocialLink } from '@svelteness/kit-docs' import IconBN from '$lib/components/icons/blocknative.svelte' - import SEO from '$lib/components/SEO/index.svelte'; + import SEO from '$lib/components/SEO/index.svelte' + import { Algolia } from '@svelteness/kit-docs/client/algolia' /** @type {import('@svelteness/kit-docs').NavbarConfig} */ const navbar = { @@ -25,7 +28,8 @@ } const title = 'Web3-Onboard | The easy way to connect web3 users to dapps' - const metadescription = 'Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more.' + const metadescription = + 'Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more.' const url = 'https://onboard.blocknative.com/' @@ -38,19 +42,22 @@ {/if} - + - + +
diff --git a/docs/src/routes/__layout-kit-docs.svelte b/docs/src/routes/__layout-kit-docs.svelte index e66a5387f..bdc4ae4ba 100644 --- a/docs/src/routes/__layout-kit-docs.svelte +++ b/docs/src/routes/__layout-kit-docs.svelte @@ -19,6 +19,8 @@ import '@svelteness/kit-docs/client/styles/theme.css' import '$lib/styles/fonts.css' import '$lib/styles/kit-docs.css' + import '@docsearch/css' + import '@svelteness/kit-docs/client/styles/docsearch.css' import { page } from '$app/stores' @@ -29,6 +31,7 @@ createKitDocsLoader, createSidebarContext } from '@svelteness/kit-docs' + import { Algolia } from '@svelteness/kit-docs/client/algolia' import IconBN from '$lib/components/icons/blocknative.svelte' @@ -67,13 +70,20 @@ - + +
diff --git a/docs/yarn.lock b/docs/yarn.lock index b220fbf7b..9d3863a7d 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -2,6 +2,129 @@ # yarn lockfile v1 +"@algolia/autocomplete-core@1.7.1": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@algolia/autocomplete-core/-/autocomplete-core-1.7.1.tgz#025538b8a9564a9f3dd5bcf8a236d6951c76c7d1" + integrity sha512-eiZw+fxMzNQn01S8dA/hcCpoWCOCwcIIEUtHHdzN5TGB3IpzLbuhqFeTfh2OUhhgkE8Uo17+wH+QJ/wYyQmmzg== + dependencies: + "@algolia/autocomplete-shared" "1.7.1" + +"@algolia/autocomplete-preset-algolia@1.7.1": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.7.1.tgz#7dadc5607097766478014ae2e9e1c9c4b3f957c8" + integrity sha512-pJwmIxeJCymU1M6cGujnaIYcY3QPOVYZOXhFkWVM7IxKzy272BwCvMFMyc5NpG/QmiObBxjo7myd060OeTNJXg== + dependencies: + "@algolia/autocomplete-shared" "1.7.1" + +"@algolia/autocomplete-shared@1.7.1": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@algolia/autocomplete-shared/-/autocomplete-shared-1.7.1.tgz#95c3a0b4b78858fed730cf9c755b7d1cd0c82c74" + integrity sha512-eTmGVqY3GeyBTT8IWiB2K5EuURAqhnumfktAEoHxfDY2o7vg2rSnO16ZtIG0fMgt3py28Vwgq42/bVEuaQV7pg== + +"@algolia/cache-browser-local-storage@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/cache-browser-local-storage/-/cache-browser-local-storage-4.14.2.tgz#d5b1b90130ca87c6321de876e167df9ec6524936" + integrity sha512-FRweBkK/ywO+GKYfAWbrepewQsPTIEirhi1BdykX9mxvBPtGNKccYAxvGdDCumU1jL4r3cayio4psfzKMejBlA== + dependencies: + "@algolia/cache-common" "4.14.2" + +"@algolia/cache-common@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/cache-common/-/cache-common-4.14.2.tgz#b946b6103c922f0c06006fb6929163ed2c67d598" + integrity sha512-SbvAlG9VqNanCErr44q6lEKD2qoK4XtFNx9Qn8FK26ePCI8I9yU7pYB+eM/cZdS9SzQCRJBbHUumVr4bsQ4uxg== + +"@algolia/cache-in-memory@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/cache-in-memory/-/cache-in-memory-4.14.2.tgz#88e4a21474f9ac05331c2fa3ceb929684a395a24" + integrity sha512-HrOukWoop9XB/VFojPv1R5SVXowgI56T9pmezd/djh2JnVN/vXswhXV51RKy4nCpqxyHt/aGFSq2qkDvj6KiuQ== + dependencies: + "@algolia/cache-common" "4.14.2" + +"@algolia/client-account@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/client-account/-/client-account-4.14.2.tgz#b76ac1ba9ea71e8c3f77a1805b48350dc0728a16" + integrity sha512-WHtriQqGyibbb/Rx71YY43T0cXqyelEU0lB2QMBRXvD2X0iyeGl4qMxocgEIcbHyK7uqE7hKgjT8aBrHqhgc1w== + dependencies: + "@algolia/client-common" "4.14.2" + "@algolia/client-search" "4.14.2" + "@algolia/transporter" "4.14.2" + +"@algolia/client-analytics@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/client-analytics/-/client-analytics-4.14.2.tgz#ca04dcaf9a78ee5c92c5cb5e9c74cf031eb2f1fb" + integrity sha512-yBvBv2mw+HX5a+aeR0dkvUbFZsiC4FKSnfqk9rrfX+QrlNOKEhCG0tJzjiOggRW4EcNqRmaTULIYvIzQVL2KYQ== + dependencies: + "@algolia/client-common" "4.14.2" + "@algolia/client-search" "4.14.2" + "@algolia/requester-common" "4.14.2" + "@algolia/transporter" "4.14.2" + +"@algolia/client-common@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/client-common/-/client-common-4.14.2.tgz#e1324e167ffa8af60f3e8bcd122110fd0bfd1300" + integrity sha512-43o4fslNLcktgtDMVaT5XwlzsDPzlqvqesRi4MjQz2x4/Sxm7zYg5LRYFol1BIhG6EwxKvSUq8HcC/KxJu3J0Q== + dependencies: + "@algolia/requester-common" "4.14.2" + "@algolia/transporter" "4.14.2" + +"@algolia/client-personalization@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/client-personalization/-/client-personalization-4.14.2.tgz#656bbb6157a3dd1a4be7de65e457fda136c404ec" + integrity sha512-ACCoLi0cL8CBZ1W/2juehSltrw2iqsQBnfiu/Rbl9W2yE6o2ZUb97+sqN/jBqYNQBS+o0ekTMKNkQjHHAcEXNw== + dependencies: + "@algolia/client-common" "4.14.2" + "@algolia/requester-common" "4.14.2" + "@algolia/transporter" "4.14.2" + +"@algolia/client-search@4.14.2", "@algolia/client-search@^4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/client-search/-/client-search-4.14.2.tgz#357bdb7e640163f0e33bad231dfcc21f67dc2e92" + integrity sha512-L5zScdOmcZ6NGiVbLKTvP02UbxZ0njd5Vq9nJAmPFtjffUSOGEp11BmD2oMJ5QvARgx2XbX4KzTTNS5ECYIMWw== + dependencies: + "@algolia/client-common" "4.14.2" + "@algolia/requester-common" "4.14.2" + "@algolia/transporter" "4.14.2" + +"@algolia/logger-common@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/logger-common/-/logger-common-4.14.2.tgz#b74b3a92431f92665519d95942c246793ec390ee" + integrity sha512-/JGlYvdV++IcMHBnVFsqEisTiOeEr6cUJtpjz8zc0A9c31JrtLm318Njc72p14Pnkw3A/5lHHh+QxpJ6WFTmsA== + +"@algolia/logger-console@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/logger-console/-/logger-console-4.14.2.tgz#ec49cb47408f5811d4792598683923a800abce7b" + integrity sha512-8S2PlpdshbkwlLCSAB5f8c91xyc84VM9Ar9EdfE9UmX+NrKNYnWR1maXXVDQQoto07G1Ol/tYFnFVhUZq0xV/g== + dependencies: + "@algolia/logger-common" "4.14.2" + +"@algolia/requester-browser-xhr@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/requester-browser-xhr/-/requester-browser-xhr-4.14.2.tgz#a2cd4d9d8d90d53109cc7f3682dc6ebf20f798f2" + integrity sha512-CEh//xYz/WfxHFh7pcMjQNWgpl4wFB85lUMRyVwaDPibNzQRVcV33YS+63fShFWc2+42YEipFGH2iPzlpszmDw== + dependencies: + "@algolia/requester-common" "4.14.2" + +"@algolia/requester-common@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/requester-common/-/requester-common-4.14.2.tgz#bc4e9e5ee16c953c0ecacbfb334a33c30c28b1a1" + integrity sha512-73YQsBOKa5fvVV3My7iZHu1sUqmjjfs9TteFWwPwDmnad7T0VTCopttcsM3OjLxZFtBnX61Xxl2T2gmG2O4ehg== + +"@algolia/requester-node-http@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/requester-node-http/-/requester-node-http-4.14.2.tgz#7c1223a1785decaab1def64c83dade6bea45e115" + integrity sha512-oDbb02kd1o5GTEld4pETlPZLY0e+gOSWjWMJHWTgDXbv9rm/o2cF7japO6Vj1ENnrqWvLBmW1OzV9g6FUFhFXg== + dependencies: + "@algolia/requester-common" "4.14.2" + +"@algolia/transporter@4.14.2": + version "4.14.2" + resolved "https://registry.yarnpkg.com/@algolia/transporter/-/transporter-4.14.2.tgz#77c069047fb1a4359ee6a51f51829508e44a1e3d" + integrity sha512-t89dfQb2T9MFQHidjHcfhh6iGMNwvuKUvojAj+JsrHAGbuSy7yE4BylhLX6R0Q1xYRoC4Vvv+O5qIw/LdnQfsQ== + dependencies: + "@algolia/cache-common" "4.14.2" + "@algolia/logger-common" "4.14.2" + "@algolia/requester-common" "4.14.2" + "@antfu/install-pkg@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@antfu/install-pkg/-/install-pkg-0.1.0.tgz#8d8c61820cbc32e5c37d82d515485ad3ee9bd052" @@ -15,6 +138,29 @@ resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.5.2.tgz#8c2d931ff927be0ebe740169874a3d4004ab414b" integrity sha512-CQkeV+oJxUazwjlHD0/3ZD08QWKuGQkhnrKo3e6ly5pd48VUpXbb77q0xMU4+vc2CkJnDS02Eq/M9ugyX20XZA== +"@docsearch/css@3.2.1", "@docsearch/css@^3.2.1": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@docsearch/css/-/css-3.2.1.tgz#c05d7818b0e43b42f9efa2d82a11c36606b37b27" + integrity sha512-gaP6TxxwQC+K8D6TRx5WULUWKrcbzECOPA2KCVMuI+6C7dNiGUk5yXXzVhc5sld79XKYLnO9DRTI4mjXDYkh+g== + +"@docsearch/js@^3.2.1": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@docsearch/js/-/js-3.2.1.tgz#d6856fb6223c7a47091640264d5144d59806bc30" + integrity sha512-H1PekEtSeS0msetR2YGGey2w7jQ2wAKfGODJvQTygSwMgUZ+2DHpzUgeDyEBIXRIfaBcoQneqrzsljM62pm6Xg== + dependencies: + "@docsearch/react" "3.2.1" + preact "^10.0.0" + +"@docsearch/react@3.2.1": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@docsearch/react/-/react-3.2.1.tgz#112ad88db07367fa6fd933d67d58421d8d8289aa" + integrity sha512-EzTQ/y82s14IQC5XVestiK/kFFMe2aagoYFuTAIfIb/e+4FU7kSMKonRtLwsCiLQHmjvNQq+HO+33giJ5YVtaQ== + dependencies: + "@algolia/autocomplete-core" "1.7.1" + "@algolia/autocomplete-preset-algolia" "1.7.1" + "@docsearch/css" "3.2.1" + algoliasearch "^4.0.0" + "@esbuild/linux-loong64@0.14.54": version "0.14.54" resolved "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz#de2a4be678bd4d0d1ffbb86e6de779cde5999028" @@ -982,9 +1128,9 @@ dependencies: "@types/react" "*" -"@types/react@*": +"@types/react@*", "@types/react@^18.0.21": version "18.0.21" - resolved "https://registry.npmjs.org/@types/react/-/react-18.0.21.tgz#b8209e9626bb00a34c76f55482697edd2b43cc67" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.21.tgz#b8209e9626bb00a34c76f55482697edd2b43cc67" integrity sha512-7QUCOxvFgnD5Jk8ZKlUAhVcRj7GuJRjnjjiY/IUBWKgOlnvDvTMLD4RTF7NPyVmbRhNrbomZiOepg7M/2Kj1mA== dependencies: "@types/prop-types" "*" @@ -1258,6 +1404,26 @@ ajv@^6.10.0, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +algoliasearch@^4.0.0: + version "4.14.2" + resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-4.14.2.tgz#63f142583bfc3a9bd3cd4a1b098bf6fe58e56f6c" + integrity sha512-ngbEQonGEmf8dyEh5f+uOIihv4176dgbuOZspiuhmTTBRBuzWu3KCGHre6uHj5YyuC7pNvQGzB6ZNJyZi0z+Sg== + dependencies: + "@algolia/cache-browser-local-storage" "4.14.2" + "@algolia/cache-common" "4.14.2" + "@algolia/cache-in-memory" "4.14.2" + "@algolia/client-account" "4.14.2" + "@algolia/client-analytics" "4.14.2" + "@algolia/client-common" "4.14.2" + "@algolia/client-personalization" "4.14.2" + "@algolia/client-search" "4.14.2" + "@algolia/logger-common" "4.14.2" + "@algolia/logger-console" "4.14.2" + "@algolia/requester-browser-xhr" "4.14.2" + "@algolia/requester-common" "4.14.2" + "@algolia/requester-node-http" "4.14.2" + "@algolia/transporter" "4.14.2" + ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" @@ -2578,6 +2744,11 @@ js-sha3@0.8.0: resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== +"js-tokens@^3.0.0 || ^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" @@ -2695,6 +2866,13 @@ lodash.uniqby@^4.7.0: resolved "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" integrity sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww== +loose-envify@^1.1.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + lru-cache@*: version "7.12.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.12.0.tgz#be2649a992c8a9116efda5c487538dcf715f3476" @@ -3082,6 +3260,11 @@ postcss@^8.4.13, postcss@^8.4.14: picocolors "^1.0.0" source-map-js "^1.0.2" +preact@^10.0.0: + version "10.11.2" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.11.2.tgz#e43f2a2f2985dedb426bb4c765b7bb037734f8a8" + integrity sha512-skAwGDFmgxhq1DCBHke/9e12ewkhc7WYwjuhHB8HHS8zkdtITXLRmUMTeol2ldxvLwYtwbFeifZ9uDDWuyL4Iw== + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -3112,6 +3295,21 @@ quick-lru@^5.1.1: resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== +react-dom@^18.2.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" + integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== + dependencies: + loose-envify "^1.1.0" + scheduler "^0.23.0" + +react@^18.2.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== + dependencies: + loose-envify "^1.1.0" + read-cache@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774" @@ -3235,6 +3433,13 @@ sander@^0.5.0: mkdirp "^0.5.1" rimraf "^2.5.2" +scheduler@^0.23.0: + version "0.23.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe" + integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== + dependencies: + loose-envify "^1.1.0" + scrypt-js@3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" From 5a9d146249fd2044e69cb1b1d1b1668a5248d742 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 27 Oct 2022 09:41:00 -0600 Subject: [PATCH 11/16] Remove algolia from layout-homepage --- docs/src/routes/__layout-homepage.svelte | 8 -------- 1 file changed, 8 deletions(-) diff --git a/docs/src/routes/__layout-homepage.svelte b/docs/src/routes/__layout-homepage.svelte index abb5908b7..37fccf496 100644 --- a/docs/src/routes/__layout-homepage.svelte +++ b/docs/src/routes/__layout-homepage.svelte @@ -15,7 +15,6 @@ import { KitDocs, KitDocsLayout, SocialLink } from '@svelteness/kit-docs' import IconBN from '$lib/components/icons/blocknative.svelte' import SEO from '$lib/components/SEO/index.svelte' - import { Algolia } from '@svelteness/kit-docs/client/algolia' /** @type {import('@svelteness/kit-docs').NavbarConfig} */ const navbar = { @@ -51,13 +50,6 @@
-
From e111910f46673968537b5af8367949141cfb3a10 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 27 Oct 2022 11:56:12 -0600 Subject: [PATCH 12/16] Update docs/src/routes/__layout-homepage.svelte --- docs/src/routes/__layout-homepage.svelte | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/src/routes/__layout-homepage.svelte b/docs/src/routes/__layout-homepage.svelte index 37fccf496..11602f20a 100644 --- a/docs/src/routes/__layout-homepage.svelte +++ b/docs/src/routes/__layout-homepage.svelte @@ -9,8 +9,6 @@ import '@svelteness/kit-docs/client/styles/theme.css' import '$lib/styles/fonts.css' import '$lib/styles/kit-docs.css' - import '@docsearch/css' - import '@svelteness/kit-docs/client/styles/docsearch.css' import { KitDocs, KitDocsLayout, SocialLink } from '@svelteness/kit-docs' import IconBN from '$lib/components/icons/blocknative.svelte' From 72204c36cc25193e0c0cd2af1cede078475ad170 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 27 Oct 2022 11:57:11 -0600 Subject: [PATCH 13/16] Update docs/src/routes/__layout-homepage.svelte --- docs/src/routes/__layout-homepage.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/routes/__layout-homepage.svelte b/docs/src/routes/__layout-homepage.svelte index 11602f20a..5a7736c77 100644 --- a/docs/src/routes/__layout-homepage.svelte +++ b/docs/src/routes/__layout-homepage.svelte @@ -42,7 +42,7 @@ - +
From 7374527f39ae871bdc32aca68f52cd8ab9c9f1dc Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 27 Oct 2022 13:24:43 -0600 Subject: [PATCH 14/16] Update index name --- docs/src/routes/__layout-kit-docs.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/routes/__layout-kit-docs.svelte b/docs/src/routes/__layout-kit-docs.svelte index bdc4ae4ba..b8960b2df 100644 --- a/docs/src/routes/__layout-kit-docs.svelte +++ b/docs/src/routes/__layout-kit-docs.svelte @@ -80,7 +80,7 @@ From a817cc3ef6154b25bcc931148a512c5cb900057d Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 31 Oct 2022 13:53:29 -0600 Subject: [PATCH 15/16] Docs gas example (#1333) --- docs/package.json | 6 +- .../src/lib/components/ThemeCustomizer.svelte | 1 - docs/src/lib/components/gas/Gas.svelte | 84 ++++ docs/src/lib/components/gas/GasCard.svelte | 70 +++ docs/src/lib/components/gas/index.ts | 1 + docs/src/lib/components/gas/types.ts | 28 ++ docs/src/lib/components/index.ts | 1 + .../[...2]contribution-guide.md | 14 + .../routes/docs/[...4]packages/coinbase.md | 1 - docs/src/routes/docs/[...4]packages/gas.md | 77 ++- docs/src/routes/docs/[...4]packages/gnosis.md | 24 + docs/src/routes/docs/[...4]packages/react.md | 2 +- docs/svelte.config.js | 7 +- docs/yarn.lock | 447 ++++++++++++++++++ packages/gas/README.md | 62 ++- 15 files changed, 814 insertions(+), 11 deletions(-) create mode 100644 docs/src/lib/components/gas/Gas.svelte create mode 100644 docs/src/lib/components/gas/GasCard.svelte create mode 100644 docs/src/lib/components/gas/index.ts create mode 100644 docs/src/lib/components/gas/types.ts diff --git a/docs/package.json b/docs/package.json index f181a430b..6a5be83d3 100644 --- a/docs/package.json +++ b/docs/package.json @@ -54,6 +54,10 @@ "type": "module", "dependencies": { "@web3-onboard/core": "^2.8.4", - "@web3-onboard/injected-wallets": "^2.2.3" + "@web3-onboard/gas": "^2.1.4", + "@web3-onboard/injected-wallets": "^2.2.3", + "animejs": "^3.2.1", + "ethers": "^5.7.0", + "rollup-plugin-polyfill-node": "^0.10.2" } } diff --git a/docs/src/lib/components/ThemeCustomizer.svelte b/docs/src/lib/components/ThemeCustomizer.svelte index 1dc28eb8f..b117565f8 100644 --- a/docs/src/lib/components/ThemeCustomizer.svelte +++ b/docs/src/lib/components/ThemeCustomizer.svelte @@ -4,7 +4,6 @@ import { share } from 'rxjs/operators' import { onMount } from 'svelte' -import { object_without_properties } from 'svelte/internal'; const INFURA_ID = 'e0b15c21b7d54cd4814586334af72618' const injected = injectedModule() diff --git a/docs/src/lib/components/gas/Gas.svelte b/docs/src/lib/components/gas/Gas.svelte new file mode 100644 index 000000000..20c2f908d --- /dev/null +++ b/docs/src/lib/components/gas/Gas.svelte @@ -0,0 +1,84 @@ + + +
+
+ MORE LIKELY + + LESS LIKELY +
+ +
+ {#each ($ethMainnetGasBlockPrices && $ethMainnetGasBlockPrices[0]?.blockPrices[0]?.estimatedPrices) || GAS_DATA_DEFAULT.estimatedPrices as gasData} + + {/each} +
+
+ +
+
diff --git a/docs/src/lib/components/gas/GasCard.svelte b/docs/src/lib/components/gas/GasCard.svelte new file mode 100644 index 000000000..11992a7ac --- /dev/null +++ b/docs/src/lib/components/gas/GasCard.svelte @@ -0,0 +1,70 @@ + + +
+ {#if gasPriceFrom === 'bn'} +
BN Gas
+ {:else} +
Ethers.js Gas
+ {/if} +
priority fee
+ + {#key gasData} +
+ {gasData?.maxPriorityFeePerGas || '...'} +
+ {/key} + +
max fee
+ {#key gasData} +
+ {gasData?.maxFeePerGas ? Math.round(Number(gasData.maxFeePerGas)) : '...'} +
+ {/key} + + {#if gasPriceFrom === 'bn'} +
+ {(gasData && gasData?.confidence) ? `${gasData.confidence}% probability` : '...'} +
+
+ {rpcGasForDiff ? `${gasDiff(gasData)?.toFixed(2)} gwei saved` : '...'} +
+ {/if} +
+
diff --git a/docs/src/lib/components/gas/index.ts b/docs/src/lib/components/gas/index.ts new file mode 100644 index 000000000..afd3cb0f4 --- /dev/null +++ b/docs/src/lib/components/gas/index.ts @@ -0,0 +1 @@ +export { default as Gas } from './Gas.svelte' \ No newline at end of file diff --git a/docs/src/lib/components/gas/types.ts b/docs/src/lib/components/gas/types.ts new file mode 100644 index 000000000..d3b3eb805 --- /dev/null +++ b/docs/src/lib/components/gas/types.ts @@ -0,0 +1,28 @@ +export type GasPrice = { + confidence: number + price: number | null + maxFeePerGas: number | null + maxPriorityFeePerGas: number | null +} + +export type RPCGasPrice = { + price: string + maxFeePerGas: string + maxPriorityFeePerGas: string +} + +export interface GasData { + estimatedPrices: GasPrice[] + baseFeePerGas: number| null + blockNumber: number | null + maxPrice: number | null + estimatedTransactionCount: number | null + seconds: number | null + estimatedBaseFees?: [EstimatedBaseFees] + isTrendingUp?: boolean +} + +export interface EstimatedBaseFee { + confidence: number + baseFee: number +} \ No newline at end of file diff --git a/docs/src/lib/components/index.ts b/docs/src/lib/components/index.ts index c51e33e3a..8671fcfc8 100644 --- a/docs/src/lib/components/index.ts +++ b/docs/src/lib/components/index.ts @@ -1,2 +1,3 @@ export * from './examples' +export * from './gas' export { default as ThemeCustomizer } from './ThemeCustomizer.svelte' diff --git a/docs/src/routes/docs/[...1]overview/[...2]contribution-guide.md b/docs/src/routes/docs/[...1]overview/[...2]contribution-guide.md index 244fdec01..58632d9d5 100644 --- a/docs/src/routes/docs/[...1]overview/[...2]contribution-guide.md +++ b/docs/src/routes/docs/[...1]overview/[...2]contribution-guide.md @@ -18,6 +18,20 @@ If there is a feature or change that you would like to see in Web3 Onboard, you Once a PR is created, one of the Web3 Onboard maintainers will acknowledge the PR and add it to our sprint planning to be reviewed as soon as possible. + +### Package Versioning + +After making changes within a web3-onboard package you will want to bump the version of the specific package. For example if you were to add a new injected wallet to the injected package you will need to bump the version of the injected package within that module's [package.json](https://github.com/blocknative/web3-onboard/blob/8531a73d69365f7d584320f1c4b97a5d90f1c34e/packages/injected/package.json#L3). + +We use both semantic and `alpha` versioning for publishing and testing packages prior to official release. This means if you do not see an `-alpha.x` tag on the version of the package you made changes in you will need to not only bump the version but also add an alpha flag followed by an alpha version number starting at 1 (ex. `-alpha.1`). + +Example : Adding a new injected wallet to the `injected` package - +[Injected Package.json](https://github.com/blocknative/web3-onboard/blob/v2-web3-onboard-develop/packages/injected/package.json#L3) changes : `"version": "2.2.4",` --> `"version": "2.3.0-alpha.1",` + +Example 2 : Bug fix within the `core` package - +[Core package.json](https://github.com/blocknative/web3-onboard/blob/8531a73d69365f7d584320f1c4b97a5d90f1c34e/packages/core/package.json#L3) changes: `"version": "2.9.1-alpha.1",` --> `"version": "2.9.1-alpha.2",` + + ### How can I get a new wallet added? Web3 Onboard does not require a wallet to be a part of the main codebase to work, so a wallet module can be created and used for your project without needing anything to happen within the Web3Onboard codebase. If you would like the wallet to be part of the official Web3 Onboard packages and repo, then create a pull request, and make sure to add any documentation updates by creating a docs pull request. diff --git a/docs/src/routes/docs/[...4]packages/coinbase.md b/docs/src/routes/docs/[...4]packages/coinbase.md index cc8009f9c..41c0a8849 100644 --- a/docs/src/routes/docs/[...4]packages/coinbase.md +++ b/docs/src/routes/docs/[...4]packages/coinbase.md @@ -1,7 +1,6 @@ # @web3-onboard/coinbase Wallet module for connecting Coinbase Wallet SDK to web3-onboard. Check out the [Coinbase Wallet Developer Docs](https://docs.cloud.coinbase.com/wallet-sdk/docs) for more information. - ## Install diff --git a/docs/src/routes/docs/[...4]packages/gas.md b/docs/src/routes/docs/[...4]packages/gas.md index c1d0f630d..bd99450ab 100644 --- a/docs/src/routes/docs/[...4]packages/gas.md +++ b/docs/src/routes/docs/[...4]packages/gas.md @@ -1,7 +1,14 @@ + # @web3-onboard/gas A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform). +Supports both Eth Mainnet and Polygon gas pricing. + + + ### Install @@ -21,9 +28,9 @@ npm install @web3-onboard/gas -### Standalone Usage +### Standalone Setup -```ts +```typescript import gas from '@web3-onboard/gas' // subscribe to a single chain for estimates using the default poll rate of 5 secs @@ -34,8 +41,8 @@ const ethMainnetGasBlockPrices = gas.stream({ endpoint: 'blockPrices' }) -const { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe((estimates) => - console.log(estimates) +const { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe( + estimates => console.log(estimates) ) // .... sometime later, unsubscribe to stop polling @@ -50,7 +57,12 @@ const gasBlockPrices = gas.stream({ poll: 1000 }) -const { unsubscribe } = gasBlockPrices.subscribe((estimates) => console.log(estimates)) +const { unsubscribe } = gasBlockPrices.subscribe(estimates => + console.log(estimates) + console.log(estimates[0].blockPrices[0].estimatedPrice) + // block inclusion confidence options: 70, 80, 90, 95, 99 + console.log(bnGasPrices.find(gas => gas.confidence === 90)) +) // .... sometime later, unsubscribe to stop polling setTimeout(unsubscribe, 10000) @@ -62,3 +74,58 @@ const gasBlockPrices = await gas.get({ endpoint: 'blockPrices' }) ``` + + +## Usage with Web3-Onboard wallet Connect and Ethers.js + +This example assumes you have already setup web3-onboard to connect wallets to your dapp. +For more information see [web3-onboard docs](/docs/packages/core#install). +```ts +import gas from '@web3-onboard/gas' +import { ethers } from 'ethers' + +// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet +let provider = new ethers.providers.Web3Provider(wallet.provider, 'any') +let bnGasPrices + +const ethMainnetGasBlockPrices = gas.stream({ + chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data + apiKey: '', // for faster refresh rates + endpoint: 'blockPrices' +}) + +ethMainnetGasBlockPrices.subscribe(estimates => { + console.log(estimates) + bnGasPrices = estimates[0].blockPrices[0].estimatedPrices +}) + + +const gweiToWeiHex = gwei => { + return `0x${(gwei * 1e9).toString(16)}` +} + +const sendTransaction = async () => { + if (!toAddress) { + alert('An Ethereum address to send Eth to is required.') + return + } + + const signer = provider.getUncheckedSigner() + + // define desired confidence for transaction inclusion in block and set in transaction + // block inclusion confidence options: 70, 80, 90, 95, 99 + const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90) + + const rc = await signer.sendTransaction({ + to: toAddress, + value: 1000000000000000 + + // This will set the transaction gas based on desired confidence + maxPriorityFeePerGas: gweiToWeiHex( + bnGasForTransaction.maxPriorityFeePerGas + ), + maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas) + }) + console.log(rc) +} +``` diff --git a/docs/src/routes/docs/[...4]packages/gnosis.md b/docs/src/routes/docs/[...4]packages/gnosis.md index 81c451916..6f9a444b4 100644 --- a/docs/src/routes/docs/[...4]packages/gnosis.md +++ b/docs/src/routes/docs/[...4]packages/gnosis.md @@ -48,3 +48,27 @@ const onboard = Onboard({ const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` + +## Customizing Gnosis Transaction Gas + +If you are looking to set the `gasLimit` of a transaction within Gnosis, the gas properties within the transaction WILL BE IGNORED. +Instead you will need to use the `safeTxGas` prop AND the web3-onboard Gnosis instance that is exposed through the provider to send along the transaction. +The Gnosis sdk instance exposed by the web3-onboard must be used to set the `safeTxGas` prop and send the transaction. +Check [Gnosis docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full detail as it can be a bit confusing. +An example of accessing the Gnosis SDK instance and sending a transaction can be found below. + +```typescript +const tx = { + to: toAddress, + value: 1000000000000000, + data: '0x', +} +const params = { + safeTxGas: 5000000, +}; + +// wallet is the provider exposed by web3-onboard after the Gnosis wallet is connected +let trans = await wallet.instance.txs.send({txs:[tx], params}) +``` + +Note: With the `safeTxGas` you will see additional value on the `gasLimit` displayed in the Safe. Check [Gnosis docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full details on that computation. diff --git a/docs/src/routes/docs/[...4]packages/react.md b/docs/src/routes/docs/[...4]packages/react.md index 61981f95d..52c14d292 100644 --- a/docs/src/routes/docs/[...4]packages/react.md +++ b/docs/src/routes/docs/[...4]packages/react.md @@ -64,7 +64,7 @@ function App() { return (
-
diff --git a/docs/svelte.config.js b/docs/svelte.config.js index 5a869162a..c46264694 100644 --- a/docs/svelte.config.js +++ b/docs/svelte.config.js @@ -4,6 +4,10 @@ import { kitDocsPlugin } from '@svelteness/kit-docs/node' import Icons from 'unplugin-icons/vite' import preprocess from 'svelte-preprocess' import { resolve } from 'path' +import nodePolyfills from 'rollup-plugin-polyfill-node' +const MODE = process.env.NODE_ENV + +const development = MODE === 'development' const { adapter, adapterName } = process.env.VERCEL ? { adapter: adapterVercel, adapterName: 'vercel' } @@ -36,7 +40,8 @@ const config = { '@web3-react/network', '@web3-react/walletconnect', '@web3-react/types', - '@web3-react/url' + '@web3-react/url', + '@web3-onboard/*', ] } }, diff --git a/docs/yarn.lock b/docs/yarn.lock index 9d3863a7d..8e91eb138 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -196,6 +196,21 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" +"@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" + integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== + dependencies: + "@ethersproject/address" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/hash" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/abi@^5.5.0": version "5.6.4" resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.6.4.tgz#f6e01b6ed391a505932698ecc0d9e7a99ee60362" @@ -224,6 +239,19 @@ "@ethersproject/transactions" "^5.5.0" "@ethersproject/web" "^5.5.0" +"@ethersproject/abstract-provider@5.7.0", "@ethersproject/abstract-provider@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" + integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/networks" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + "@ethersproject/web" "^5.7.0" + "@ethersproject/abstract-provider@^5.5.0", "@ethersproject/abstract-provider@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.6.1.tgz#02ddce150785caf0c77fe036a0ebfcee61878c59" @@ -248,6 +276,17 @@ "@ethersproject/logger" "^5.5.0" "@ethersproject/properties" "^5.5.0" +"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2" + integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== + dependencies: + "@ethersproject/abstract-provider" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/abstract-signer@^5.5.0", "@ethersproject/abstract-signer@^5.6.2": version "5.6.2" resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.6.2.tgz#491f07fc2cbd5da258f46ec539664713950b0b33" @@ -270,6 +309,17 @@ "@ethersproject/logger" "^5.5.0" "@ethersproject/rlp" "^5.5.0" +"@ethersproject/address@5.7.0", "@ethersproject/address@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" + integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/rlp" "^5.7.0" + "@ethersproject/address@^5.5.0", "@ethersproject/address@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.6.1.tgz#ab57818d9aefee919c5721d28cd31fd95eff413d" @@ -288,6 +338,13 @@ dependencies: "@ethersproject/bytes" "^5.5.0" +"@ethersproject/base64@5.7.0", "@ethersproject/base64@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c" + integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/base64@^5.5.0", "@ethersproject/base64@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.6.1.tgz#2c40d8a0310c9d1606c2c37ae3092634b41d87cb" @@ -303,6 +360,14 @@ "@ethersproject/bytes" "^5.5.0" "@ethersproject/properties" "^5.5.0" +"@ethersproject/basex@5.7.0", "@ethersproject/basex@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.7.0.tgz#97034dc7e8938a8ca943ab20f8a5e492ece4020b" + integrity sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/basex@^5.5.0", "@ethersproject/basex@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.6.1.tgz#badbb2f1d4a6f52ce41c9064f01eab19cc4c5305" @@ -320,6 +385,15 @@ "@ethersproject/logger" "^5.5.0" bn.js "^4.11.9" +"@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" + integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + bn.js "^5.2.1" + "@ethersproject/bignumber@^5.5.0", "@ethersproject/bignumber@^5.6.2": version "5.6.2" resolved "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.6.2.tgz#72a0717d6163fab44c47bcc82e0c550ac0315d66" @@ -336,6 +410,13 @@ dependencies: "@ethersproject/logger" "^5.5.0" +"@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" + integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== + dependencies: + "@ethersproject/logger" "^5.7.0" + "@ethersproject/bytes@^5.5.0", "@ethersproject/bytes@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.6.1.tgz#24f916e411f82a8a60412344bf4a813b917eefe7" @@ -350,6 +431,13 @@ dependencies: "@ethersproject/bignumber" "^5.5.0" +"@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" + integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/constants@^5.5.0", "@ethersproject/constants@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.6.1.tgz#e2e974cac160dd101cf79fdf879d7d18e8cb1370" @@ -373,6 +461,22 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/transactions" "^5.5.0" +"@ethersproject/contracts@5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e" + integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg== + dependencies: + "@ethersproject/abi" "^5.7.0" + "@ethersproject/abstract-provider" "^5.7.0" + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/address" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + "@ethersproject/hash@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.5.0.tgz#7cee76d08f88d1873574c849e0207dcb32380cc9" @@ -387,6 +491,21 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" +"@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" + integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== + dependencies: + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/address" "^5.7.0" + "@ethersproject/base64" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/hash@^5.5.0", "@ethersproject/hash@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.6.1.tgz#224572ea4de257f05b4abf8ae58b03a67e99b0f4" @@ -419,6 +538,24 @@ "@ethersproject/transactions" "^5.5.0" "@ethersproject/wordlists" "^5.5.0" +"@ethersproject/hdnode@5.7.0", "@ethersproject/hdnode@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.7.0.tgz#e627ddc6b466bc77aebf1a6b9e47405ca5aef9cf" + integrity sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg== + dependencies: + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/basex" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/pbkdf2" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/sha2" "^5.7.0" + "@ethersproject/signing-key" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + "@ethersproject/wordlists" "^5.7.0" + "@ethersproject/hdnode@^5.5.0", "@ethersproject/hdnode@^5.6.2": version "5.6.2" resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.6.2.tgz#26f3c83a3e8f1b7985c15d1db50dc2903418b2d2" @@ -456,6 +593,25 @@ aes-js "3.0.0" scrypt-js "3.0.1" +"@ethersproject/json-wallets@5.7.0", "@ethersproject/json-wallets@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz#5e3355287b548c32b368d91014919ebebddd5360" + integrity sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g== + dependencies: + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/address" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/hdnode" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/pbkdf2" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/random" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + aes-js "3.0.0" + scrypt-js "3.0.1" + "@ethersproject/json-wallets@^5.5.0": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.6.1.tgz#3f06ba555c9c0d7da46756a12ac53483fe18dd91" @@ -483,6 +639,14 @@ "@ethersproject/bytes" "^5.5.0" js-sha3 "0.8.0" +"@ethersproject/keccak256@5.7.0", "@ethersproject/keccak256@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" + integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== + dependencies: + "@ethersproject/bytes" "^5.7.0" + js-sha3 "0.8.0" + "@ethersproject/keccak256@^5.5.0", "@ethersproject/keccak256@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.6.1.tgz#b867167c9b50ba1b1a92bccdd4f2d6bd168a91cc" @@ -496,6 +660,11 @@ resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.5.0.tgz#0c2caebeff98e10aefa5aef27d7441c7fd18cf5d" integrity sha512-rIY/6WPm7T8n3qS2vuHTUBPdXHl+rGxWxW5okDfo9J4Z0+gRRZT0msvUdIJkE4/HS29GUMziwGaaKO2bWONBrg== +"@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" + integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== + "@ethersproject/logger@^5.5.0", "@ethersproject/logger@^5.6.0": version "5.6.0" resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.6.0.tgz#d7db1bfcc22fd2e4ab574cba0bb6ad779a9a3e7a" @@ -508,6 +677,13 @@ dependencies: "@ethersproject/logger" "^5.5.0" +"@ethersproject/networks@5.7.1", "@ethersproject/networks@^5.7.0": + version "5.7.1" + resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6" + integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== + dependencies: + "@ethersproject/logger" "^5.7.0" + "@ethersproject/networks@^5.5.0", "@ethersproject/networks@^5.6.3": version "5.6.4" resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.6.4.tgz#51296d8fec59e9627554f5a8a9c7791248c8dc07" @@ -523,6 +699,14 @@ "@ethersproject/bytes" "^5.5.0" "@ethersproject/sha2" "^5.5.0" +"@ethersproject/pbkdf2@5.7.0", "@ethersproject/pbkdf2@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz#d2267d0a1f6e123f3771007338c47cccd83d3102" + integrity sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/sha2" "^5.7.0" + "@ethersproject/pbkdf2@^5.5.0", "@ethersproject/pbkdf2@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.6.1.tgz#f462fe320b22c0d6b1d72a9920a3963b09eb82d1" @@ -538,6 +722,13 @@ dependencies: "@ethersproject/logger" "^5.5.0" +"@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" + integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== + dependencies: + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties@^5.5.0", "@ethersproject/properties@^5.6.0": version "5.6.0" resolved "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.6.0.tgz#38904651713bc6bdd5bdd1b0a4287ecda920fa04" @@ -595,6 +786,32 @@ bech32 "1.1.4" ws "7.4.6" +"@ethersproject/providers@5.7.2": + version "5.7.2" + resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" + integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== + dependencies: + "@ethersproject/abstract-provider" "^5.7.0" + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/address" "^5.7.0" + "@ethersproject/base64" "^5.7.0" + "@ethersproject/basex" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/hash" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/networks" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/random" "^5.7.0" + "@ethersproject/rlp" "^5.7.0" + "@ethersproject/sha2" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + "@ethersproject/web" "^5.7.0" + bech32 "1.1.4" + ws "7.4.6" + "@ethersproject/random@5.5.1": version "5.5.1" resolved "https://registry.npmjs.org/@ethersproject/random/-/random-5.5.1.tgz#7cdf38ea93dc0b1ed1d8e480ccdaf3535c555415" @@ -603,6 +820,14 @@ "@ethersproject/bytes" "^5.5.0" "@ethersproject/logger" "^5.5.0" +"@ethersproject/random@5.7.0", "@ethersproject/random@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.7.0.tgz#af19dcbc2484aae078bb03656ec05df66253280c" + integrity sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/random@^5.5.0", "@ethersproject/random@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/random/-/random-5.6.1.tgz#66915943981bcd3e11bbd43733f5c3ba5a790255" @@ -619,6 +844,14 @@ "@ethersproject/bytes" "^5.5.0" "@ethersproject/logger" "^5.5.0" +"@ethersproject/rlp@5.7.0", "@ethersproject/rlp@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304" + integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/rlp@^5.5.0", "@ethersproject/rlp@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.6.1.tgz#df8311e6f9f24dcb03d59a2bac457a28a4fe2bd8" @@ -636,6 +869,15 @@ "@ethersproject/logger" "^5.5.0" hash.js "1.1.7" +"@ethersproject/sha2@5.7.0", "@ethersproject/sha2@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.7.0.tgz#9a5f7a7824ef784f7f7680984e593a800480c9fb" + integrity sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + hash.js "1.1.7" + "@ethersproject/sha2@^5.5.0", "@ethersproject/sha2@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.6.1.tgz#211f14d3f5da5301c8972a8827770b6fd3e51656" @@ -657,6 +899,18 @@ elliptic "6.5.4" hash.js "1.1.7" +"@ethersproject/signing-key@5.7.0", "@ethersproject/signing-key@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3" + integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + bn.js "^5.2.1" + elliptic "6.5.4" + hash.js "1.1.7" + "@ethersproject/signing-key@^5.5.0", "@ethersproject/signing-key@^5.6.2": version "5.6.2" resolved "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.6.2.tgz#8a51b111e4d62e5a62aee1da1e088d12de0614a3" @@ -681,6 +935,18 @@ "@ethersproject/sha2" "^5.5.0" "@ethersproject/strings" "^5.5.0" +"@ethersproject/solidity@5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.7.0.tgz#5e9c911d8a2acce2a5ebb48a5e2e0af20b631cb8" + integrity sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/sha2" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/strings@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.5.0.tgz#e6784d00ec6c57710755699003bc747e98c5d549" @@ -690,6 +956,15 @@ "@ethersproject/constants" "^5.5.0" "@ethersproject/logger" "^5.5.0" +"@ethersproject/strings@5.7.0", "@ethersproject/strings@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" + integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/strings@^5.5.0", "@ethersproject/strings@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.6.1.tgz#dbc1b7f901db822b5cafd4ebf01ca93c373f8952" @@ -714,6 +989,21 @@ "@ethersproject/rlp" "^5.5.0" "@ethersproject/signing-key" "^5.5.0" +"@ethersproject/transactions@5.7.0", "@ethersproject/transactions@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b" + integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== + dependencies: + "@ethersproject/address" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/rlp" "^5.7.0" + "@ethersproject/signing-key" "^5.7.0" + "@ethersproject/transactions@^5.5.0", "@ethersproject/transactions@^5.6.2": version "5.6.2" resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.6.2.tgz#793a774c01ced9fe7073985bb95a4b4e57a6370b" @@ -738,6 +1028,15 @@ "@ethersproject/constants" "^5.5.0" "@ethersproject/logger" "^5.5.0" +"@ethersproject/units@5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1" + integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/wallet@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.5.0.tgz#322a10527a440ece593980dca6182f17d54eae75" @@ -759,6 +1058,27 @@ "@ethersproject/transactions" "^5.5.0" "@ethersproject/wordlists" "^5.5.0" +"@ethersproject/wallet@5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.7.0.tgz#4e5d0790d96fe21d61d38fb40324e6c7ef350b2d" + integrity sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA== + dependencies: + "@ethersproject/abstract-provider" "^5.7.0" + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/address" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/hash" "^5.7.0" + "@ethersproject/hdnode" "^5.7.0" + "@ethersproject/json-wallets" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/random" "^5.7.0" + "@ethersproject/signing-key" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + "@ethersproject/wordlists" "^5.7.0" + "@ethersproject/web@5.5.1": version "5.5.1" resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.5.1.tgz#cfcc4a074a6936c657878ac58917a61341681316" @@ -770,6 +1090,17 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" +"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0": + version "5.7.1" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" + integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== + dependencies: + "@ethersproject/base64" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/web@^5.5.0", "@ethersproject/web@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.6.1.tgz#6e2bd3ebadd033e6fe57d072db2b69ad2c9bdf5d" @@ -792,6 +1123,17 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" +"@ethersproject/wordlists@5.7.0", "@ethersproject/wordlists@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.7.0.tgz#8fb2c07185d68c3e09eb3bfd6e779ba2774627f5" + integrity sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/hash" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + "@ethersproject/wordlists@^5.5.0", "@ethersproject/wordlists@^5.6.1": version "5.6.1" resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.6.1.tgz#1e78e2740a8a21e9e99947e47979d72e130aeda1" @@ -959,6 +1301,24 @@ "@types/node" "*" playwright-core "1.23.1" +"@rollup/plugin-inject@^4.0.0": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-4.0.4.tgz#fbeee66e9a700782c4f65c8b0edbafe58678fbc2" + integrity sha512-4pbcU4J/nS+zuHk+c+OL3WtmEQhqxlZ9uqfjQMQDOHOPld7PsCd8k5LWs8h5wjwJN7MgnAn768F2sDxEP4eNFQ== + dependencies: + "@rollup/pluginutils" "^3.1.0" + estree-walker "^2.0.1" + magic-string "^0.25.7" + +"@rollup/pluginutils@^3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" + integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== + dependencies: + "@types/estree" "0.0.39" + estree-walker "^1.0.1" + picomatch "^2.2.2" + "@rollup/pluginutils@^4.1.1", "@rollup/pluginutils@^4.2.1": version "4.2.1" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" @@ -1059,6 +1419,11 @@ dependencies: "@types/ms" "*" +"@types/estree@0.0.39": + version "0.0.39" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" + integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== + "@types/fs-extra@^9.0.12": version "9.0.13" resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-9.0.13.tgz#7594fbae04fe7f1918ce8b3d213f74ff44ac1f45" @@ -1315,6 +1680,15 @@ ethers "5.5.4" joi "^17.4.2" +"@web3-onboard/common@^2.2.3": + version "2.2.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.2.3.tgz#fc0841186d84cf017f4cf0368dcd349e6ed8dc8b" + integrity sha512-ZI0XuCpxtuL9XGgeWglXR6rhgLP261EMEstjonxy8ptuOKLlTJcgvL7wSx2MjNDO3i/qmb/PGQpInvxYx5klSA== + dependencies: + bignumber.js "^9.1.0" + ethers "5.5.4" + joi "^17.6.1" + "@web3-onboard/core@^2.8.4": version "2.8.4" resolved "https://registry.npmjs.org/@web3-onboard/core/-/core-2.8.4.tgz#10827c4005b3ebfcfa7b863e8eef99fe611665dd" @@ -1334,6 +1708,15 @@ svelte "^3.49.0" svelte-i18n "^3.3.13" +"@web3-onboard/gas@^2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/gas/-/gas-2.1.4.tgz#6022cd10419c5b28b93d7c914e2165e33098a027" + integrity sha512-7yGYQ5/KTdZqt2TtHQi7kTTL9Fp1nQRAARct0JgJLbwG6XbVd+5GG47Nc4KXeCFAYjBWzJ2rBO59zejt3/R9uA== + dependencies: + "@web3-onboard/common" "^2.2.3" + joi "^17.6.1" + rxjs "^7.5.2" + "@web3-onboard/injected-wallets@^2.2.3": version "2.2.3" resolved "https://registry.npmjs.org/@web3-onboard/injected-wallets/-/injected-wallets-2.2.3.tgz#419f388f31488939e49e61bb7c160b51e777a98c" @@ -1424,6 +1807,11 @@ algoliasearch@^4.0.0: "@algolia/requester-node-http" "4.14.2" "@algolia/transporter" "4.14.2" +animejs@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/animejs/-/animejs-3.2.1.tgz#de9fe2e792f44a777a7fdf6ae160e26604b0cdda" + integrity sha512-sWno3ugFryK5nhiDm/2BKeFCpZv7vzerWUcUPyAZLDhMek3+S/p418ldZJbJXo5ZUOpfm2kP2XRO4NJcULMy9A== + ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" @@ -2275,6 +2663,11 @@ estree-walker@^0.6.1: resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== +estree-walker@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" + integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -2352,6 +2745,42 @@ ethers@5.5.4: "@ethersproject/web" "5.5.1" "@ethersproject/wordlists" "5.5.0" +ethers@^5.7.0: + version "5.7.2" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" + integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg== + dependencies: + "@ethersproject/abi" "5.7.0" + "@ethersproject/abstract-provider" "5.7.0" + "@ethersproject/abstract-signer" "5.7.0" + "@ethersproject/address" "5.7.0" + "@ethersproject/base64" "5.7.0" + "@ethersproject/basex" "5.7.0" + "@ethersproject/bignumber" "5.7.0" + "@ethersproject/bytes" "5.7.0" + "@ethersproject/constants" "5.7.0" + "@ethersproject/contracts" "5.7.0" + "@ethersproject/hash" "5.7.0" + "@ethersproject/hdnode" "5.7.0" + "@ethersproject/json-wallets" "5.7.0" + "@ethersproject/keccak256" "5.7.0" + "@ethersproject/logger" "5.7.0" + "@ethersproject/networks" "5.7.1" + "@ethersproject/pbkdf2" "5.7.0" + "@ethersproject/properties" "5.7.0" + "@ethersproject/providers" "5.7.2" + "@ethersproject/random" "5.7.0" + "@ethersproject/rlp" "5.7.0" + "@ethersproject/sha2" "5.7.0" + "@ethersproject/signing-key" "5.7.0" + "@ethersproject/solidity" "5.7.0" + "@ethersproject/strings" "5.7.0" + "@ethersproject/transactions" "5.7.0" + "@ethersproject/units" "5.7.0" + "@ethersproject/wallet" "5.7.0" + "@ethersproject/web" "5.7.1" + "@ethersproject/wordlists" "5.7.0" + eventemitter3@^4.0.7: version "4.0.7" resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" @@ -2739,6 +3168,17 @@ joi@17.6.0, joi@^17.4.2: "@sideway/formula" "^3.0.0" "@sideway/pinpoint" "^2.0.0" +joi@^17.6.1: + version "17.6.3" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.6.3.tgz#b8e9e143f0188884563e6de50f8b23ddcd3cb2f5" + integrity sha512-YlQsIaS9MHYekzf1Qe11LjTkNzx9qhYluK3172z38RxYoAUf82XMX1p1DG1H4Wtk2ED/vPdSn9OggqtDu+aTow== + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/topo" "^5.0.0" + "@sideway/address" "^4.1.3" + "@sideway/formula" "^3.0.0" + "@sideway/pinpoint" "^2.0.0" + js-sha3@0.8.0: version "0.8.0" resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" @@ -3376,6 +3816,13 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" +rollup-plugin-polyfill-node@^0.10.2: + version "0.10.2" + resolved "https://registry.yarnpkg.com/rollup-plugin-polyfill-node/-/rollup-plugin-polyfill-node-0.10.2.tgz#b2128646851fcb9475ddfd5bc22ca1a8c568738d" + integrity sha512-5GMywXiLiuQP6ZzED/LO/Q0HyDi2W6b8VN+Zd3oB0opIjyRs494Me2ZMaqKWDNbGiW4jvvzl6L2n4zRgxS9cSQ== + dependencies: + "@rollup/plugin-inject" "^4.0.0" + rollup-pluginutils@^2.8.2: version "2.8.2" resolved "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" diff --git a/packages/gas/README.md b/packages/gas/README.md index ceca031cf..ce42168aa 100644 --- a/packages/gas/README.md +++ b/packages/gas/README.md @@ -2,6 +2,8 @@ ## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform). +Supports both Eth Mainnet and Polygon gas pricing. + ### Install **NPM** @@ -10,7 +12,7 @@ **Yarn** `yarn add @web3-onboard/gas` -### Standalone Usage +### Standalone Setup ```typescript import gas from '@web3-onboard/gas' @@ -41,6 +43,9 @@ const gasBlockPrices = gas.stream({ const { unsubscribe } = gasBlockPrices.subscribe(estimates => console.log(estimates) + console.log(estimates[0].blockPrices[0].estimatedPrice) + // block inclusion confidence options: 70, 80, 90, 95, 99 + console.log(bnGasPrices.find(gas => gas.confidence === 90)) ) // .... sometime later, unsubscribe to stop polling @@ -53,3 +58,58 @@ const gasBlockPrices = await gas.get({ endpoint: 'blockPrices' }) ``` + + +## Usage with Web3-Onboard wallet Connect and Ethers.js + +This example assumes you have already setup web3-onboard to connect wallets to your dapp. +For more information see [web3-onboard docs](https://onboard.blocknative.com/docs/packages/core#install). +```ts +import gas from '@web3-onboard/gas' +import { ethers } from 'ethers' + +// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet +let provider = new ethers.providers.Web3Provider(wallet.provider, 'any') +let bnGasPrices + +const ethMainnetGasBlockPrices = gas.stream({ + chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data + apiKey: '', // for faster refresh rates + endpoint: 'blockPrices' +}) + +ethMainnetGasBlockPrices.subscribe(estimates => { + console.log(estimates) + bnGasPrices = estimates[0].blockPrices[0].estimatedPrices +}) + + +const gweiToWeiHex = gwei => { + return `0x${(gwei * 1e9).toString(16)}` +} + +const sendTransaction = async () => { + if (!toAddress) { + alert('An Ethereum address to send Eth to is required.') + return + } + + const signer = provider.getUncheckedSigner() + + // define desired confidence for transaction inclusion in block and set in transaction + // block inclusion confidence options: 70, 80, 90, 95, 99 + const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90) + + const rc = await signer.sendTransaction({ + to: toAddress, + value: 1000000000000000 + + // This will set the transaction gas based on desired confidence + maxPriorityFeePerGas: gweiToWeiHex( + bnGasForTransaction.maxPriorityFeePerGas + ), + maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas) + }) + console.log(rc) +} +``` From ee27e4be62afa6661e5ba6ee5214371edf6c45d9 Mon Sep 17 00:00:00 2001 From: Gustavo Esquinca Date: Wed, 2 Nov 2022 17:12:59 -0400 Subject: [PATCH 16/16] site seo content edits --- docs/src/lib/components/FeaturesSection.svelte | 2 +- docs/src/lib/components/HeroSection.svelte | 6 ++---- docs/src/routes/__layout-homepage.svelte | 2 +- docs/src/routes/examples/connect-wallet.md | 6 +++--- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/docs/src/lib/components/FeaturesSection.svelte b/docs/src/lib/components/FeaturesSection.svelte index b1360cf17..f25aef7f3 100644 --- a/docs/src/lib/components/FeaturesSection.svelte +++ b/docs/src/lib/components/FeaturesSection.svelte @@ -57,7 +57,7 @@ />
diff --git a/docs/src/lib/components/HeroSection.svelte b/docs/src/lib/components/HeroSection.svelte index 65df1be19..9f03c8eb2 100644 --- a/docs/src/lib/components/HeroSection.svelte +++ b/docs/src/lib/components/HeroSection.svelte @@ -9,11 +9,9 @@
-
Web3-Onboard
+
{"Web3-Onboard"}
- Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your - users transact with ease by enabling wallet connection, real-time transaction states, and - more. + {"Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more."}
diff --git a/docs/src/routes/__layout-homepage.svelte b/docs/src/routes/__layout-homepage.svelte index 5a7736c77..373d3ce60 100644 --- a/docs/src/routes/__layout-homepage.svelte +++ b/docs/src/routes/__layout-homepage.svelte @@ -24,7 +24,7 @@ ] } - const title = 'Web3-Onboard | The easy way to connect web3 users to dapps' + const title = 'Web3-Onboard | Framework-agnostic Web3 Connect Wallet Button' const metadescription = 'Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more.' const url = 'https://onboard.blocknative.com/' diff --git a/docs/src/routes/examples/connect-wallet.md b/docs/src/routes/examples/connect-wallet.md index dfb602608..775dc976a 100644 --- a/docs/src/routes/examples/connect-wallet.md +++ b/docs/src/routes/examples/connect-wallet.md @@ -1,11 +1,11 @@ --- -title: Connect Wallet Button Example -description: Learn how to create a connect wallet button for your dapp with Web3-Onboard. For this example, we are going to use the injected wallets module. +title: Connect Wallet Example +description: Learn how to connect a wallet to your dapp with Web3-Onboard. For this example, we are going to use the injected wallets module. ---