Skip to content

Commit 64af894

Browse files
committed
iOS Load Wallet Images, lock movement when not auth'd, update Wallet Connect.
1 parent f1a92af commit 64af894

36 files changed

+903
-294
lines changed

Assets/MoralisWeb3ApiSdk/Example/Scripts/AwardableController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private async UniTask ClaimRewardAsync()
160160

161161
// Set gas estimate
162162
HexBigInteger gas = new HexBigInteger(0);
163-
string resp = await MoralisInterface.ExecuteFunction(Constants.MUG_CONTRACT_ADDRESS, Constants.MUG_ABI, Constants.MUG_CLAIM_FUNCTION, pars, new HexBigInteger("0x0"), gas, gas);
163+
string resp = await MoralisInterface.ExecuteContractFunction(Constants.MUG_CONTRACT_ADDRESS, Constants.MUG_ABI, Constants.MUG_CLAIM_FUNCTION, pars, new HexBigInteger("0x0"), gas, gas);
164164
#else
165165

166166
// Convert token id to hex as this is what the contract call expects

Assets/MoralisWeb3ApiSdk/Example/Scripts/MouseLook.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2626
* SOFTWARE.
2727
*/
28+
using MoralisWeb3ApiSdk;
2829
using System;
2930
using UnityEngine;
3031

@@ -54,7 +55,10 @@ void Start()
5455
// Update is called once per frame
5556
void Update()
5657
{
57-
Rotate();
58+
if (MoralisInterface.IsLoggedIn())
59+
{
60+
Rotate();
61+
}
5862
}
5963

6064
public void JoystickInput(Vector2 vector2)

Assets/MoralisWeb3ApiSdk/Example/Scripts/PlayerController.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ private async void Update()
8686
isAuthenticated = true;
8787
}
8888
}
89-
90-
Move();
91-
92-
if (Input.GetKeyDown(KeyCode.Mouse0))
89+
else
9390
{
94-
StartCoroutine(Attack());
91+
Move();
92+
93+
if (Input.GetKeyDown(KeyCode.Mouse0))
94+
{
95+
StartCoroutine(Attack());
96+
}
9597
}
9698
}
9799

Assets/MoralisWeb3ApiSdk/Moralis/Moralis.WebGL/MoralisDotNet/Platform/Objects/MoralisUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public MoralisUser(string objectId = null,
9494

9595

9696
// internal Task SignUpAsync(Task toAwait, CancellationToken cancellationToken) => throw new NotFiniteNumberException();
97-
internal async UniTask SignUpAsync(Task toAwait, CancellationToken cancellationToken)
97+
internal async UniTask SignUpAsync(UniTask toAwait, CancellationToken cancellationToken)
9898
{
9999
if (String.IsNullOrEmpty(this.objectId))
100100
{
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Moralis.Platform
8+
{
9+
public class ResourceWrapper
10+
{
11+
12+
/// <summary>
13+
/// Looks up a localized string similar to Mutation of a file-backed cache is an asynchronous operation as the tracked file needs to be modified..
14+
/// </summary>
15+
public static string FileBackedCacheSynchronousMutationNotSupportedMessage
16+
{
17+
get
18+
{
19+
return Resources.ResourceManager.GetString("FileBackedCacheSynchronousMutationNotSupportedMessage", Resources.Culture);
20+
}
21+
}
22+
23+
/// <summary>
24+
/// Looks up a localized string similar to Cannot perform file operations with in-memory cache controller..
25+
/// </summary>
26+
public static string TransientCacheControllerDiskFileOperationNotSupportedMessage
27+
{
28+
get
29+
{
30+
return Resources.ResourceManager.GetString("TransientCacheControllerDiskFileOperationNotSupportedMessage", Resources.Culture);
31+
}
32+
}
33+
}
34+
}

Assets/MoralisWeb3ApiSdk/WalletConnectSharp.Unity/Network/Client/NativeWebSocket.cs.meta renamed to Assets/MoralisWeb3ApiSdk/Moralis/MoralisDotNet/Platform/ResorceWrapper.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 114 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,121 @@
1+
12
namespace WalletConnectSharp.Unity.Models
23
{
34
public enum Wallets
45
{
56
None,
7+
Rainbow,
8+
TrustWallet,
9+
Argent,
610
MetaMask,
7-
Trust
11+
GnosisSafeMultisig,
12+
CryptocomDeFiWallet,
13+
Pillar,
14+
imToken,
15+
ONTO,
16+
TokenPocket,
17+
MathWallet,
18+
BitPay,
19+
LedgerLive,
20+
WallETH,
21+
Authereum,
22+
Dharma,
23+
OneinchWallet,
24+
HuobiWallet,
25+
Eidoo,
26+
MYKEY,
27+
LoopringWallet,
28+
TrustVault,
29+
Atomic,
30+
Coin98,
31+
CoolWallet,
32+
Alice,
33+
AlphaWallet,
34+
DCENTWallet,
35+
ZelCore,
36+
Nash,
37+
Coinomi,
38+
GridPlus,
39+
CYBAVOWallet,
40+
Tokenary,
41+
Torus,
42+
Spatium,
43+
SafePal,
44+
Infinito,
45+
walletio,
46+
InfinityWallet,
47+
Ownbit,
48+
EasyPocket,
49+
BridgeWallet,
50+
SparkPoint,
51+
ViaWallet,
52+
BitKeep,
53+
Vision,
54+
PEAKDEFIWallet,
55+
UnstoppableWallet,
56+
HaloDeFiWallet,
57+
DokWallet,
58+
ATWallet,
59+
MidasWallet,
60+
Ellipal,
61+
KEYRINGPRO,
62+
Aktionariat,
63+
TalkenWallet,
64+
XinFinXDCNetwork,
65+
FlareWallet,
66+
KyberSwap,
67+
ATokenWallet,
68+
TongueWallet,
69+
RWallet,
70+
PlasmaPay,
71+
O3Wallet,
72+
HashKeyMe,
73+
JadeWallet,
74+
GuardaWallet,
75+
Defiant,
76+
TrusteeWallet,
77+
CoinUs,
78+
cmorq,
79+
Valora,
80+
QuiverX,
81+
CeloWallet,
82+
ElastosEssentials,
83+
fusecash,
84+
Bitpie,
85+
Rabby,
86+
Stasis,
87+
JulWallet,
88+
fxWallet,
89+
BullApp,
90+
Anybit,
91+
MinervaWallet,
92+
ArchiPage,
93+
Tangem,
94+
ChaingeFinance,
95+
ioPay,
96+
Coinhub,
97+
GoPocket,
98+
Wallet3,
99+
yiToken,
100+
DIDWallet,
101+
StarBase,
102+
ShinobiWallet,
103+
Steakwallet,
104+
GDWallet,
105+
Binana,
106+
AirGap,
107+
PayTube,
108+
SecuX,
109+
BlockBank,
110+
Orange,
111+
NEFTiPEDiA,
112+
Avacus,
113+
Krystal,
114+
Linen,
115+
CeloTerminal,
116+
AmbireWallet,
117+
Spot,
118+
Frontier,
119+
8120
}
9-
}
121+
}

Assets/MoralisWeb3ApiSdk/Moralis/Moralis.SolanaApi/Client/ApiClient.cs.bak.meta renamed to Assets/MoralisWeb3ApiSdk/WalletConnectSharp.Unity/Models/DeepLink/Wallets.cs.bak.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)