Skip to content

Commit 72274a1

Browse files
committed
Replace AsyncAwaitUtil package + add namespaces + UPM compat
1 parent b208164 commit 72274a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2198
-2491
lines changed

Assets/Thirdweb/Core/Scripts/AccountAbstraction/Core/SmartWallet.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using UnityEngine;
1414
using Nethereum.Contracts;
1515
using Nethereum.Hex.HexConvertors.Extensions;
16-
using Nethereum.Util;
16+
using Thirdweb.Redcode.Awaiting;
1717

1818
namespace Thirdweb.AccountAbstraction
1919
{

Assets/Thirdweb/Core/Scripts/Hyperplay/Hyperplay.cs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UnityEngine.Networking;
55
using Newtonsoft.Json;
66
using Newtonsoft.Json.Linq;
7+
using Thirdweb.Redcode.Awaiting;
78

89
namespace Thirdweb.Hyperplay
910
{

Assets/Thirdweb/Core/Scripts/Storage/StorageDownloader.cs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using UnityEngine;
44
using UnityEngine.Networking;
55
using System;
6+
using Thirdweb.Redcode.Awaiting;
67

78
namespace Thirdweb
89
{

Assets/Thirdweb/Core/Scripts/Storage/StorageUploader.cs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Newtonsoft.Json;
33
using UnityEngine;
44
using UnityEngine.Networking;
5+
using Thirdweb.Redcode.Awaiting;
56

67
namespace Thirdweb
78
{

Assets/Thirdweb/Core/Scripts/Transaction.cs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using UnityEngine;
1010
using MinimalForwarder = Thirdweb.Contracts.Forwarder.ContractDefinition;
1111
using UnityEngine.Networking;
12+
using Thirdweb.Redcode.Awaiting;
1213

1314
#pragma warning disable CS0618
1415

Assets/Thirdweb/Core/Scripts/TransactionManager.cs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Thirdweb.Contracts.Forwarder.ContractDefinition;
1010
using Nethereum.RPC.Eth.Transactions;
1111
using Nethereum.Web3;
12+
using Thirdweb.Redcode.Awaiting;
1213

1314
#pragma warning disable CS0618
1415

Assets/Thirdweb/Core/Scripts/WalletConnect/WalletConnect.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
using System.Collections.Generic;
77
using WalletConnectSharp.Common.Utils;
88
using Nethereum.RPC.Eth.DTOs;
9-
using WalletConnectSharp.Sign.Models;
10-
using System.Linq;
11-
using WalletConnectSharp.Sign.Models.Engine.Methods;
129
using Nethereum.Hex.HexTypes;
13-
using System.Numerics;
1410
using UnityEngine;
11+
using Thirdweb.Redcode.Awaiting;
1512

1613
namespace Thirdweb.WalletConnect
1714
{

Assets/Thirdweb/Core/Scripts/Wallets/ThirdwebMetamask.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Nethereum.Web3;
66
using Nethereum.Web3.Accounts;
77
using UnityEngine;
8+
using Thirdweb.Redcode.Awaiting;
89

910
namespace Thirdweb.Wallets
1011
{

Assets/Thirdweb/Core/Scripts/Wallets/ThirdwebWalletConnect.cs

+1-8
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33
using Nethereum.Web3.Accounts;
44
using UnityEngine;
55
using WalletConnectSharp.Sign;
6-
using WalletConnectSharp.Network.Models;
7-
using Nethereum.JsonRpc.Client;
86
using System;
9-
using Nethereum.JsonRpc.Client.RpcMessages;
10-
using System.Linq;
11-
using Newtonsoft.Json;
12-
using WalletConnectSharp.Sign.Models;
13-
using System.Collections.Generic;
14-
using WalletConnectSharp.Common.Utils;
157
using Thirdweb.WalletConnect;
168
using System.Numerics;
9+
using Thirdweb.Redcode.Awaiting;
1710

1811
namespace Thirdweb.Wallets
1912
{

Assets/Thirdweb/Core/Scripts/WalletsUI/MetamaskUI.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
using System;
2-
using System.Collections;
3-
using System.Collections.Generic;
42
using System.Threading.Tasks;
53
using MetaMask.Models;
6-
using MetaMask.Transports;
74
using MetaMask.Transports.Unity;
85
using MetaMask.Unity;
96
using UnityEngine;
107
using UnityEngine.UI;
118
using ZXing;
129
using ZXing.QrCode;
1310
using TMPro;
11+
using Thirdweb.Redcode.Awaiting;
1412

1513
namespace Thirdweb.Wallets
1614
{

Assets/Thirdweb/Core/Scripts/WalletsUI/PaperUI.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
31
using UnityEngine;
42
using Paper;
53
using System.Threading.Tasks;
64
using UnityEngine.UI;
75
using TMPro;
6+
using Thirdweb.Redcode.Awaiting;
87

98
namespace Thirdweb.Wallets
109
{

Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Storage.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using UnityEngine;
33
using System.IO;
4+
using Thirdweb.Redcode.Awaiting;
45

56
namespace Thirdweb.Examples
67
{

Assets/Thirdweb/Plugins/AsyncAwaitUtil/Source/AwaitExtensions.cs

-32
This file was deleted.

Assets/Thirdweb/Plugins/AsyncAwaitUtil/Source/Awaiters.cs

-47
This file was deleted.

0 commit comments

Comments
 (0)