You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement: Remove built in UnstoppableDomain resolution, create unstoppable-resolution package for opt in support (#1641)
* Add unstoppable resolution package and remove built in ability
* Add new package commit and docs
* Fix some docs links
* Remove deprecated prop from demo init
* Merge in dev
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...3]modules/core.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -229,11 +229,10 @@ type ConnectModalOptions = {
229
229
*/
230
230
wheresMyWalletLink?:string
231
231
/**
232
-
* Define support for Unstoppable Domains resolutions
233
-
* after a user connects. Similar to ens, uns can be used for users who
234
-
* have minted an Unstoppable Domain and associated it with their wallet.
235
-
* ENS resolution takes precedent over UNS
236
-
* Defaults to false
232
+
* @deprecated Has no effect unless `@web3-onboard/unstoppable-resolution`
233
+
* package has been added and passed into the web3-onboard initialization
234
+
* In this case remove the `@web3-onboard/unstoppable-resolution` package
235
+
* to remove unstoppableDomain resolution support
237
236
*/
238
237
disableUDResolution?:boolean
239
238
}
@@ -429,7 +428,8 @@ unsubscribe()
429
428
```
430
429
431
430
##### **Notifications as Toast Messages**
432
-
The Notifications messages can also be used to send fully customized Dapp toast messages and updated. Check out the [customNotifications API docs for examples and code snippets](#customnotification)
431
+
432
+
The Notifications messages can also be used to send fully customized Dapp toast messages and updated. Check out the [customNotifications API docs for examples and code snippets](#customnotification)
433
433
434
434
```ts
435
435
typeNotifyOptions= {
@@ -640,6 +640,7 @@ const onboard = Onboard({
640
640
```
641
641
642
642
---
643
+
643
644
## Connecting a Wallet
644
645
645
646
To initiate a user to select and connect a wallet you can call the `connectWallet` function on an initialized Onboard instance. It will return a `Promise` that will resolve when the user either successfully connects a wallet, or when they dismiss the UI. The resolved value from the promise will be the latest state of the `wallets` array. The order of the wallets array is last to first, so the most recently selected wallet will be the first item in the array and can be thought of as the "primary wallet". If no wallet was selected, then the `wallets` array will have the same state as it had before calling `connectWallet`.
@@ -1016,7 +1017,7 @@ The `customNotification` method also returns a `dismiss` method that is called w
1016
1017
1017
1018
#### **preflightNotifications**
1018
1019
1019
-
Notify can be used to deliver standard notifications along with preflight updates by passing a `PreflightNotificationsOptions` object to the `preflightNotifications` API action.
1020
+
Notify can be used to deliver standard notifications along with preflight updates by passing a `PreflightNotificationsOptions` object to the `preflightNotifications` API action.
This API call will return a promise that resolves to the transaction hash (if `sendTransaction` resolves the transaction hash and is successful), the internal notification id (if no `sendTransaction` function is provided) or return nothing if an error occurs or `sendTransaction` is not provided or doesn't resolve to a string.
1034
1035
1035
1036
Example:
1037
+
1036
1038
```typescript copy
1037
1039
const balanceValue =Object.values(balance)[0]
1038
1040
// if using ethers v6 this is:
@@ -1544,7 +1546,7 @@ export default config
1544
1546
1545
1547
### SvelteKit + Vite
1546
1548
1547
-
Checkout a boilerplate example (here)[https://github.com/blocknative/web3-onboard/tree/develop/examples/with-sveltekit]
1549
+
Checkout a boilerplate example [here](https://github.com/blocknative/web3-onboard/tree/develop/examples/with-sveltekit)
1548
1550
1549
1551
Add the following dev dependencies:
1550
1552
@@ -1657,7 +1659,7 @@ See [this github issue](https://github.com/blocknative/web3-onboard/issues/1568#
1657
1659
1658
1660
### Vite
1659
1661
1660
-
Checkout a boilerplate example for Vite-React (here)[https://github.com/blocknative/web3-onboard/tree/develop/examples/with-vite-react]
1662
+
Checkout a boilerplate example for Vite-React [here](https://github.com/blocknative/web3-onboard/tree/develop/examples/with-vite-react)
1661
1663
1662
1664
Add the following dev dependencies:
1663
1665
@@ -1732,9 +1734,9 @@ build: {
1732
1734
1733
1735
### Next.js
1734
1736
1735
-
Checkout a boilerplate example for NextJS v13 (here)[https://github.com/blocknative/web3-onboard/tree/develop/examples/with-nextjs-13]
1737
+
Checkout a boilerplate example for NextJS v13 [here](https://github.com/blocknative/web3-onboard/tree/develop/examples/with-nextjs-13)
1736
1738
1737
-
Checkout a boilerplate example for NextJS (here)[https://github.com/blocknative/web3-onboard/tree/develop/examples/with-nextjs]
1739
+
Checkout a boilerplate example for NextJS [here](https://github.com/blocknative/web3-onboard/tree/develop/examples/with-nextjs)
Copy file name to clipboardExpand all lines: packages/core/package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@web3-onboard/core",
3
-
"version": "2.16.2",
3
+
"version": "2.17.0-alpha.1",
4
4
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
0 commit comments