Skip to content

Commit e44451d

Browse files
committed
2 parents e8ae176 + f9780b1 commit e44451d

File tree

12 files changed

+163
-23
lines changed

12 files changed

+163
-23
lines changed

docs/features/wallet-ui.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ you can use this feature for projects on `sapphire_devnet` for free.
1717

1818
:::
1919

20+
:::note
21+
22+
From the **v9.5.0 release**, the Embedded Wallet UI supports both Externally Owned Accounts (EOA)
23+
and Account Abstraction (AA) accounts in the Wallet Services.
24+
25+
:::
26+
2027
## Enhancing User Experience with Embedded Wallet UI
2128

2229
Web3Auth's Embedded Wallet UI service is engineered to blend effortlessly into your application,
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: PnP Flutter SDK - v5 to v6
3+
description: "PnP Flutter SDK - v5 to v6 | Documentation - Web3Auth"
4+
sidebar_label: v5 to v6
5+
---
6+
7+
This migration guide provides steps for upgrading from version v5 to v6 of the PnP Flutter SDK. The
8+
guide outlines significant changes and enhancements, including the support of Web3Auth OpenLogin
9+
version v9, and Wallet Services v3.
10+
11+
## Breaking Changes
12+
13+
### `getSignResponse` is now removed.
14+
15+
In v6, we try to improve the developer experience by removing the `getSignResponse` method and
16+
returning the result in the `request` method itself.
17+
18+
Previously, after calling the `request` method, developers had to use the `getSignResponse` method
19+
to retrieve the `SignResponse`. In the latest version v6, the `request` method will return the
20+
`SignResponse` directly.
21+
22+
```dart
23+
try {
24+
List<dynamic> params = [];
25+
// Message to be signed
26+
params.add("Hello, Web3Auth from Flutter!");
27+
// User's EOA address
28+
params.add("<User Address in Hex>");
29+
30+
// add-next-line
31+
final response = await Web3AuthFlutter.request(
32+
ChainConfig(
33+
chainId: "0x1",
34+
rpcTarget: "https://mainnet.infura.io/v3/$key",
35+
),
36+
"personal_sign",
37+
params,
38+
);
39+
40+
// remove-next-line
41+
final response = await Web3AuthFlutter.getSignResponse();
42+
43+
log(response.toString());
44+
} on UserCancelledException {
45+
log("User cancelled.");
46+
} catch(e) {
47+
log("Unknown exception occurred");
48+
}
49+
```
50+
51+
## Minimum Android SDK Version
52+
53+
The minimum Android SDK version for the PnP Flutter SDK is now 26. Please update your app level
54+
gradle file to set the minimum SDK version to 26.
55+
56+
```gradle
57+
defaultConfig {
58+
// ...
59+
// add-next-line
60+
minSdkVersion 26 //flutter.minSdkVersion
61+
// remove-next-line
62+
minSdkVersion 24 //flutter.minSdkVersion
63+
// ...
64+
}
65+
```
66+
67+
## Enhancements
68+
69+
In the latest version v6, we have added support for the Web3Auth Auth Service version v9, and Wallet
70+
Services v3. In Wallet Services v3, the prebuilt wallet UI now supports the swap functionality
71+
allowing users to swap to their favorite token from the app itself.

docs/product-fit.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ your project requirements and find out which Web3Auth product is the best fit fo
3636

3737
### UX Flows and Wallet Management
3838

39-
| Flows | Plug and Play | Single Factor Auth | MPC Core Kit |
40-
| -------------------------------- | --------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------- |
41-
| **Quick Setup** | |||
42-
| **Prebuilt UI/UX Flows** | ✅ <br /> Fully White Label UI/UX flows | ❌ <br /> Single Click Login (No flows needed) | ❌ <br /> |
43-
| **Custom UI/UX** | ❌ <br /> | ✅ <br /> Single Click Login (No flows needed) | ✅ <br /> Infrastructure SDK, ability to build your own flows |
44-
| **Built-in Key Recovery Flows** | ✅ <br /> | ✅ <br /> Only 1 Factor Needed | ❌ <br /> |
45-
| **Non-Custodial** | ✅ <br /> | ❗️ <br /> Semi Custodial | ✅ <br /> |
46-
| **Out-of-box Authentication** | |||
47-
| **Custom Auth Provider Support** | |||
48-
| **Bring your own Auth** | |||
49-
| **wallet management Algorithm** | Shamir's Secret Sharing | Shamir's Secret Sharing | Theshold Signature Scheme |
50-
| **Import Private Key** | |||
51-
| **Export Private Key** | |||
52-
| **External Wallet Support** | |||
39+
| Flows | Plug and Play | Single Factor Auth | MPC Core Kit |
40+
| -------------------------------- | ---------------------------------- | ---------------------------------------------- | ------------------------------------------------------------- |
41+
| **Quick Setup** ||||
42+
| **Prebuilt UI/UX Flows** | ✅ <br /> Fully Customisable UI/UX | ❌ <br /> Single Click Login (No flows needed) | ❌ <br /> |
43+
| **Custom UI/UX** | ❌ <br /> | ✅ <br /> Single Click Login (No flows needed) | ✅ <br /> Infrastructure SDK, ability to build your own flows |
44+
| **Built-in Key Recovery Flows** | ✅ <br /> | ✅ <br /> Only 1 Factor Needed | ❌ <br /> |
45+
| **Non-Custodial** | ✅ <br /> | ❗️ <br /> Semi Custodial | ✅ <br /> |
46+
| **Out-of-box Authentication** ||||
47+
| **Custom Auth Provider Support** ||||
48+
| **Bring your own Auth** ||||
49+
| **Wallet management Algorithm** | Shamir's Secret Sharing | Shamir's Secret Sharing | Theshold Signature Scheme |
50+
| **Import Private Key** ||||
51+
| **Export Private Key** ||||
52+
| **External Wallet Support** ||||
5353

5454
### Platform Support
5555

docs/sdk/pnp/flutter/flutter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ custom authentication flow of your choice.
1313

1414
## Requirements
1515

16-
- **Android** API version 34 or newer.
16+
- **Android** API version 26 or newer.
1717
- **iOS** 14, Xcode 12+ and Swift 5.x
1818

1919
## Resources

docs/sdk/pnp/flutter/usage.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -615,22 +615,20 @@ try {
615615
params.add("<User Address in Hex>");
616616
617617
// focus-start
618-
await Web3AuthFlutter.request(
618+
final response = await Web3AuthFlutter.request(
619619
ChainConfig(
620620
chainId: "0x1",
621621
rpcTarget: "https://mainnet.infura.io/v3/$key",
622622
),
623623
"personal_sign",
624624
params,
625625
);
626+
627+
log(response.toString());
626628
// focus-end
627629
} on UserCancelledException {
628630
log("User cancelled.");
629631
} catch(e) {
630632
log("Unknown exception occurred");
631633
}
632-
633-
// focus-next-line
634-
final signResponse = await Web3AuthFlutter.getSignResponse();
635-
log(signResponse.toString())
636634
```

docs/sdk/pnp/web/modal/account-abstraction.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import ConfigureSmartAccountProvider from "@site/src/common/sdk/pnp/web/_smart-a
1111
import ConfigureBundler from "@site/src/common/sdk/pnp/web/_bundler-configuration.mdx";
1212
import ConfigureSponsoredPaymaster from "@site/src/common/sdk/pnp/web/_sponsored-paymaster-configuration.mdx";
1313
import ConfigureERC20Paymaster from "@site/src/common/sdk/pnp/web/_erc20-paymaster-configuration.mdx";
14+
import ConfigurePaymasterContext from "@site/src/common/sdk/pnp/web/_paymaster-context.mdx";
1415
import AAModalSetup from "@site/src/common/sdk/pnp/web/_aa-modal-setup.mdx";
1516
import ConfigureSigners from "@site/src/common/sdk/pnp/web/_configure-aa-signers.mdx";
1617
import SmartAccountAddress from "@site/src/common/sdk/pnp/web/_aa-address.mdx";
@@ -50,6 +51,10 @@ You can configure the paymaster of your choice to sponsor gas fees for your user
5051
paymaster context. The paymaster context lets you set additional parameters, such as choosing the
5152
token for ERC-20 paymasters, defining gas policies, and more.
5253

54+
### Configure Paymaster Context
55+
56+
<ConfigurePaymasterContext />
57+
5358
### Sponsored Paymaster
5459

5560
<ConfigureSponsoredPaymaster />

docs/sdk/pnp/web/no-modal/account-abstraction.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import AAProviderConfiguration from "@site/src/common/sdk/pnp/web/_aa-provider-c
1010
import ConfigureSmartAccountProvider from "@site/src/common/sdk/pnp/web/_smart-account-provider-configuration.mdx";
1111
import ConfigureBundler from "@site/src/common/sdk/pnp/web/_bundler-configuration.mdx";
1212
import ConfigureSponsoredPaymaster from "@site/src/common/sdk/pnp/web/_sponsored-paymaster-configuration.mdx";
13+
import ConfigurePaymasterContext from "@site/src/common/sdk/pnp/web/_paymaster-context.mdx";
1314
import ConfigureERC20Paymaster from "@site/src/common/sdk/pnp/web/_erc20-paymaster-configuration.mdx";
1415
import AANoModalSetup from "@site/src/common/sdk/pnp/web/_aa-no-modal-setup.mdx";
1516
import ConfigureSigners from "@site/src/common/sdk/pnp/web/_configure-aa-signers.mdx";
@@ -50,6 +51,9 @@ You can configure the paymaster of your choice to sponsor gas fees for your user
5051
paymaster context. The paymaster context lets you set additional parameters, such as choosing the
5152
token for ERC-20 paymasters, defining gas policies, and more.
5253

54+
### Configure Paymaster Context
55+
56+
<ConfigurePaymasterContext />
5357
### Sponsored Paymaster
5458

5559
<ConfigureSponsoredPaymaster />

sidebars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ const sidebars: SidebarsConfig = {
14891489
{
14901490
type: "category",
14911491
label: "Migration Guides",
1492-
items: ["migration-guides/flutter-v3-to-v4"],
1492+
items: ["migration-guides/flutter-v5-to-v6", "migration-guides/flutter-v3-to-v4"],
14931493
},
14941494
...sdkQuickLinks,
14951495
],

src/common/sdk/pnp/android/_android-deep-linking.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Main activity
88
<category android:name="android.intent.category.DEFAULT" />
99
<category android:name="android.intent.category.BROWSABLE" />
1010

11-
<data android:scheme="{scheme}" android:host="{YOUR_APP_PACKAGE_NAME}" android:path="/path" />
11+
<data android:scheme="{scheme}" android:host="{YOUR_APP_PACKAGE_NAME}"/>
1212
<!-- Accept URIs: w3a://com.example.w3aflutter -->
1313
</intent-filter>
1414
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
```yaml
22
dependencies:
3-
web3auth_flutter: ^5.0.4
3+
web3auth_flutter: ^6.1.0
44
```

0 commit comments

Comments
 (0)