Skip to content

Commit fe969d4

Browse files
author
Zhichao Link
committed
update particle windows, support smart account .
1 parent 9b7fb0e commit fe969d4

File tree

63 files changed

+3029
-1577
lines changed

Some content is hidden

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

63 files changed

+3029
-1577
lines changed

Assembly-CSharp-Editor.csproj

Lines changed: 675 additions & 897 deletions
Large diffs are not rendered by default.

Assembly-CSharp-firstpass.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
<ItemGroup>
4444
<None Include="Assets/Plugins/Android/AndroidManifest.xml" />
4545
<Reference Include="UnityEngine">
46-
<HintPath>/Applications/Unity/Hub/Editor/2021.3.36f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.dll</HintPath>
46+
<HintPath>/Applications/Unity/Hub/Editor/2021.3.35f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.dll</HintPath>
4747
</Reference>
4848
<Reference Include="UnityEngine.CoreModule">
49-
<HintPath>/Applications/Unity/Hub/Editor/2021.3.36f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.CoreModule.dll</HintPath>
49+
<HintPath>/Applications/Unity/Hub/Editor/2021.3.35f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.CoreModule.dll</HintPath>
5050
</Reference>
5151
<Reference Include="UnityEditor">
52-
<HintPath>/Applications/Unity/Hub/Editor/2021.3.36f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.dll</HintPath>
52+
<HintPath>/Applications/Unity/Hub/Editor/2021.3.35f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.dll</HintPath>
5353
</Reference>
5454
</ItemGroup>
5555
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Assembly-CSharp.csproj

Lines changed: 321 additions & 253 deletions
Large diffs are not rendered by default.

Assets/ParticleNetwork/Mobile/Demo/AADemo.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ private string GetEoaAddress()
4444

4545
private async Task<string> GetSmartAccountAddress(string eoaAddress)
4646
{
47-
var smartAccountResult = await EvmService.GetSmartAccount(new[]
48-
{
49-
new SmartAccountObject(accountName, eoaAddress)
50-
});
47+
var smartAccountResult = await EvmService.GetSmartAccount(new List<SmartAccountObject>
48+
{ new SmartAccountObject(accountName, eoaAddress) });
5149

5250
var smartAccountAddress =
5351
(string)JObject.Parse(smartAccountResult)["result"][0]["smartAccountAddress"];

Assets/ParticleNetwork/Mobile/Modules/Core/Model/ConnectConfig.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ public class ConnectConfig
1919
/// <param name="loginType">Login type, support email, phone, json web token, google, apple and more</param>
2020
/// <param name="account">Optional, phone number, email or json web token.</param>
2121
/// <param name="code">Optional, email or phone code, used with auth core sdk</param>
22-
/// <param name="supportAuthTypes">Controls whether third-party login buttons are displayed.</param>
22+
/// <param name="supportLoginTypes">Controls whether third-party login buttons are displayed.</param>
2323
/// <param name="socialLoginPrompt">Optional, controls whether show light UI in web, default is false.</param>
24-
/// <param name="authorization">Optional, LoginAuthorization, , login and sign message, its message requires hex in evm, base58 in solana </param>
24+
/// <param name="authorization">Optional, LoginAuthorization, login and sign message, its message requires hex in evm, base58 in solana </param>
25+
/// <param name="authCoreLoginPageConfig">Optional, LoginPageConfig, for customize login page when use ParticleAuthCore</param>
2526
public ConnectConfig(LoginType loginType, [CanBeNull] string account = null, [CanBeNull] string code = null,
2627
[CanBeNull] List<SupportLoginType> supportLoginTypes = null,
2728
[CanBeNull] LoginAuthorization authorization = null,

Assets/ParticleNetwork/Mobile/Modules/Core/ParticleNetwork.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static bool SetChainInfo(ChainInfo chainInfo)
5353
#elif UNITY_IOS &&!UNITY_EDITOR
5454
return ParticleNetworkIOSBridge.setChainInfo(json);
5555
#else
56+
UnityInnerChainInfo.SetChainInfo(chainInfo);
5657
Debug.Log($"SetChainInfoSync json: {json}");
5758
return true;
5859
#endif

Assets/ParticleNetwork/Share.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ParticleNetwork/Share/Model.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ParticleNetwork/Mobile/Modules/Core/Model/AAAccountName.cs renamed to Assets/ParticleNetwork/Share/Model/AAAccountName.cs

File renamed without changes.

Assets/ParticleNetwork/Mobile/Modules/Core/Model/AAAccountName.cs.meta renamed to Assets/ParticleNetwork/Share/Model/AAAccountName.cs.meta

File renamed without changes.

0 commit comments

Comments
 (0)