-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AWS REST Integration // Remove SDK Dependency (#38)
* AWS REST Integration // Remove SDK Dependency TODO: Invoking Lambda + swapping http client to server used one * Lambda invoking REST version // remove AWS SDK * Smart wallet duplicate initcode fix * Thread safe timer * RPC Override Support * Pending Nonce * Unity Compat - Restore IsValidOtp check when CORS * Bump base gas limit * platform agnostic login link oauth + otp prevalid * Web login flow support + various fixes and improvements + >net8 * test fixes * fix accessing disposed obj
- Loading branch information
1 parent
d1385b5
commit 255f766
Showing
32 changed files
with
695 additions
and
400 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
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 |
---|---|---|
|
@@ -24,7 +24,8 @@ | |
// Create wallets (this is an advanced use case, typically one wallet is plenty) | ||
var privateKeyWallet = await PrivateKeyWallet.Create(client: client, privateKeyHex: privateKey); | ||
|
||
// var inAppWallet = await InAppWallet.Create(client: client, email: "[email protected]"); // or email: null, phoneNumber: "+1234567890" | ||
// var inAppWallet = await InAppWallet.Create(client: client, email: "[email protected]"); // or email: null, phoneNumber: "+1234567890" | ||
|
||
var inAppWallet = await InAppWallet.Create(client: client, authprovider: AuthProvider.Google); // or email: null, phoneNumber: "+1234567890" | ||
|
||
// Reset InAppWallet (optional step for testing login flow) | ||
|
@@ -48,21 +49,23 @@ | |
); | ||
Console.WriteLine($"InAppWallet address: {address}"); | ||
} | ||
|
||
// await inAppWallet.SendOTP(); | ||
// Console.WriteLine("Please submit the OTP."); | ||
// retry: | ||
// var otp = Console.ReadLine(); | ||
// (var inAppWalletAddress, var canRetry) = await inAppWallet.SubmitOTP(otp); | ||
// if (inAppWalletAddress == null && canRetry) | ||
// { | ||
// Console.WriteLine("Please submit the OTP again."); | ||
// otp = Console.ReadLine(); | ||
// (inAppWalletAddress, _) = await inAppWallet.SubmitOTP(otp); | ||
// goto retry; | ||
// } | ||
// if (inAppWalletAddress == null) | ||
// { | ||
// Console.WriteLine("OTP login failed. Please try again."); | ||
// return; | ||
// } | ||
// Console.WriteLine($"InAppWallet address: {inAppWalletAddress}"); | ||
// } | ||
|
||
// Prepare a transaction directly, or with Contract.Prepare | ||
|
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
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
Oops, something went wrong.