-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WalletConnect transforms into Reown (#1199)
* Replaced WalletConnect with Reown * Added 'Set Primary Chain' functionality to Web3 Settings Editor * Fixed local wallet connection * Fixed namespace building process for Reown * Improved Reown session management and redirection to local wallet procedure * Added wallet filters for Desktop and Mobile for Reown * Removed commented out code * Added WithForceNewSession extension method for ReownConfigAsset also * Added Reown logo * Moved the BuildUriParameters method into HttpUtils.cs * Updated Packages build process to include Reown * Updated a Reown log message * Linter fixes * Removed commented out code * Reown integration polishing * Linter
- Loading branch information
Showing
140 changed files
with
1,429 additions
and
1,503 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Nethereum/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Offchain/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Offchain/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Reown/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
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
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
Packages/io.chainsafe.web3-unity/Editor/Reown/ReownConfigEditor.cs
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using ChainSafe.Gaming.Reown; | ||
using UnityEditor; | ||
|
||
namespace ChainSafe.Gaming.Editor.Reown | ||
{ | ||
[CustomEditor(typeof(ReownConfigAsset))] | ||
public class ReownConfigEditor : ReownConfigEditorBase | ||
{ | ||
} | ||
} |
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
Packages/io.chainsafe.web3-unity/Editor/Reown/ReownConfigEditorBase.cs
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using ChainSafe.Gaming.Reown.Wallets; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace ChainSafe.Gaming.Editor.Reown | ||
{ | ||
public class ReownConfigEditorBase : UnityEditor.Editor | ||
{ | ||
public override void OnInspectorGUI() | ||
{ | ||
base.OnInspectorGUI(); | ||
|
||
GUILayout.Space(10); | ||
|
||
using (new EditorGUILayout.HorizontalScope()) | ||
{ | ||
if (GUILayout.Button("List Wallet Providers", GUILayout.ExpandWidth(false))) | ||
{ | ||
ListWalletProviders(); | ||
} | ||
} | ||
} | ||
|
||
private void ListWalletProviders() | ||
{ | ||
Application.OpenURL(ReownWalletRegistry.RegistryUri); | ||
} | ||
} | ||
} |
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
Packages/io.chainsafe.web3-unity/Editor/Reown/ReownConnectionProviderEditor.cs
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using ChainSafe.Gaming.UnityPackage.Connection; | ||
using UnityEditor; | ||
|
||
namespace ChainSafe.Gaming.Editor.Reown | ||
{ | ||
[CustomEditor(typeof(ReownConnectionProvider))] | ||
public class ReownConnectionProviderEditor : ReownConfigEditorBase | ||
{ | ||
} | ||
} |
File renamed without changes.
70 changes: 0 additions & 70 deletions
70
Packages/io.chainsafe.web3-unity/Editor/WalletConnect/WalletConnectConfigEditor.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
Packages/io.chainsafe.web3-unity/Editor/WalletConnect/WalletConnectConfigSOEditor.cs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ges/io.chainsafe.web3-unity/Editor/WalletConnect/WalletConnectConnectionProviderEditor.cs
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
Packages/io.chainsafe.web3-unity/Editor/chainsafe.web3-unity.Editor.asmdef
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.