-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
429187d
commit d8d1432
Showing
8 changed files
with
123 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,7 +241,7 @@ | |
|
||
#region Account Linking | ||
|
||
// var inAppWalletMain = await InAppWallet.Create(client: client, authProvider: AuthProvider.Google); | ||
// var inAppWalletMain = await InAppWallet.Create(client: client, authProvider: AuthProvider.Telegram); | ||
// if (!await inAppWalletMain.IsConnected()) | ||
// { | ||
// _ = await inAppWalletMain.LoginWithOauth( | ||
|
@@ -260,12 +260,26 @@ | |
// var oldLinkedAccounts = await inAppWalletMain.GetLinkedAccounts(); | ||
// Console.WriteLine($"Old linked accounts: {JsonConvert.SerializeObject(oldLinkedAccounts, Formatting.Indented)}"); | ||
|
||
// var inAppWalletToLink = await InAppWallet.Create(client: client, authProvider: AuthProvider.Guest); | ||
// _ = await inAppWalletMain.LinkAccount(walletToLink: inAppWalletToLink); | ||
// External wallet variant | ||
// var externalWallet = await PrivateKeyWallet.Generate(client: client); | ||
// var externalWalletAddress = await externalWallet.GetAddress(); | ||
// var inAppWalletToLink = await InAppWallet.Create(client: client, authProvider: AuthProvider.Siwe, siweSigner: externalWallet); | ||
// _ = await inAppWalletMain.LinkAccount(walletToLink: inAppWalletToLink, chainId: 421614); | ||
|
||
// Email variant | ||
// var linkedEmail = "[email protected]"; | ||
// var inAppWalletToLink = await InAppWallet.Create(client: client, email: linkedEmail); | ||
// await inAppWalletToLink.SendOTP(); | ||
// Console.WriteLine("Enter OTP:"); | ||
// var otp = Console.ReadLine(); | ||
// _ = await inAppWalletMain.LinkAccount(walletToLink: inAppWalletToLink, otp: otp); | ||
|
||
// var linkedAccounts = await inAppWalletMain.GetLinkedAccounts(); | ||
// Console.WriteLine($"Linked accounts: {JsonConvert.SerializeObject(linkedAccounts, Formatting.Indented)}"); | ||
|
||
// var unlinkingResult = await inAppWalletMain.UnlinkAccount(authProviderToUnlink: UnlinkingType.email, email: linkedEmail); | ||
// Console.WriteLine($"Unlinking result: {JsonConvert.SerializeObject(unlinkingResult, Formatting.Indented)}"); | ||
|
||
#endregion | ||
|
||
#region Smart Wallet - Authenticate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters