Skip to content

Commit

Permalink
Nikola/reown update (#1270)
Browse files Browse the repository at this point in the history
* Upgrading relevant packages

* reruning setup.bat

* Fixing ugly exceptions coming from new reown version.

* Potential fix to sepolia issues

* Re-ran setup.bat

* More fixes

* Modifying gitignore

* Stabilized the app as much as posssible

* More features for Metamask

* Fixing weird issue with operation tracker

* Trying another thing on iOS

* Samples are working again!

* Fixing chain id switch

* Fixing comments from Rob

* Adding meta file
  • Loading branch information
kantagara authored Jan 16, 2025
1 parent 60f7440 commit baad2e5
Show file tree
Hide file tree
Showing 120 changed files with 163 additions and 327 deletions.
2 changes: 2 additions & 0 deletions Packages/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ crashlytics-build.properties
# Ignore the build artifacts from our libraries
/io.chainsafe.web3-unity/Runtime/Libraries/*.dll
/io.chainsafe.web3-unity/Runtime/Libraries/*.dll.meta

/io.chainsafe.web3-unity/Runtime/Libraries/*.pdb
/io.chainsafe.web3-unity/Runtime/Libraries/*.pdb.meta

/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.dll
/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.dll.meta

/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.pdb
/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.pdb.meta

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions Packages/io.chainsafe.web3-unity/Editor/ABICSharpConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using ChainSafe.Gaming.RPC.Events;
using Nethereum.ABI;
Expand Down Expand Up @@ -124,9 +123,10 @@ private void ConvertAbiToCSharp()
}

text = text.Replace("{CLASS_NAME}", className);
var minifiedJson = JsonDocument.Parse(_abi).RootElement.GetRawText();
var escapedJson = minifiedJson.Replace("\"", "\\\"");
text = text.Replace("{CONTRACT_ABI}", escapedJson);
string removeNewLines = _abi.Replace("\n", "");
string removeWhiteSpaces = Regex.Replace(removeNewLines, @"\s", "");
string improvedABI = removeWhiteSpaces.Replace("\"", "\\\"");
text = text.Replace("{CONTRACT_ABI}", improvedABI);
text = Regex.Replace(text, @"\s*\{CUSTOM_CLASSES\}", "\n\n" + ParseCustomClasses());
text = Regex.Replace(text, @"\s*\{EVENT_CLASSES\}", "\n\n" + ParseEventClasses());
text = Regex.Replace(text, @"\s*\{METHODS\}", "\n\n" + ParseMethods());
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

This file was deleted.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Packages/io.chainsafe.web3-unity/Runtime/Libraries/Nethereum.Hex.dll
100644 → 100755
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Packages/io.chainsafe.web3-unity/Runtime/Libraries/Nethereum.Model.dll
100644 → 100755
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Packages/io.chainsafe.web3-unity/Runtime/Libraries/Nethereum.RLP.dll
100644 → 100755
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit baad2e5

Please sign in to comment.