-
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.
Existing Sharded -> Enclave Migration Flow (#74)
- Loading branch information
1 parent
36b4c2c
commit 791be46
Showing
6 changed files
with
194 additions
and
14 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 |
---|---|---|
|
@@ -29,9 +29,9 @@ | |
|
||
#region Contract Interaction | ||
|
||
var contract = await ThirdwebContract.Create(client: client, address: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", chain: 1); | ||
var nfts = await contract.ERC721_GetAllNFTs(); | ||
Console.WriteLine($"NFTs: {JsonConvert.SerializeObject(nfts, Formatting.Indented)}"); | ||
// var contract = await ThirdwebContract.Create(client: client, address: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", chain: 1); | ||
// var nfts = await contract.ERC721_GetAllNFTs(); | ||
// Console.WriteLine($"NFTs: {JsonConvert.SerializeObject(nfts, Formatting.Indented)}"); | ||
|
||
#endregion | ||
|
||
|
@@ -74,14 +74,34 @@ | |
|
||
#region Ecosystem Wallet | ||
|
||
// var ecosystemWallet = await EcosystemWallet.Create(client: client, ecosystemId: "ecosystem.the-bonfire", email: "[email protected]"); | ||
// var inAppWallet = await InAppWallet.Create(client: client, authProvider: AuthProvider.Google); | ||
// if (!await inAppWallet.IsConnected()) | ||
// { | ||
// _ = await inAppWallet.LoginWithOauth( | ||
// isMobile: false, | ||
// (url) => | ||
// { | ||
// var psi = new ProcessStartInfo { FileName = url, UseShellExecute = true }; | ||
// _ = Process.Start(psi); | ||
// }, | ||
// "thirdweb://", | ||
// new InAppWalletBrowser() | ||
// ); | ||
// } | ||
|
||
// var ecosystemWallet = await EcosystemWallet.Create( | ||
// client: client, | ||
// ecosystemId: "ecosystem.the-bonfire", | ||
// ecosystemPartnerId: "20842d97-be35-4ecc-b51e-9f3ba0843a60", | ||
// email: "[email protected]" | ||
// ); | ||
|
||
// if (!await ecosystemWallet.IsConnected()) | ||
// { | ||
// _ = await ecosystemWallet.SendOTP(); | ||
// Console.WriteLine("Enter OTP:"); | ||
// var otp = Console.ReadLine(); | ||
// _ = await ecosystemWallet.LoginWithOtp(otp: otp); | ||
// _ = await ecosystemWallet.LoginWithOtp(otp); | ||
// } | ||
// var ecosystemWalletAddress = await ecosystemWallet.GetAddress(); | ||
// Console.WriteLine($"Ecosystem Wallet address: {ecosystemWalletAddress}"); | ||
|
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