diff --git a/.editorconfig b/.editorconfig
index 198d6b08a..032718bf1 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -164,3 +164,6 @@ dotnet_diagnostic.JSON002.severity = silent
# CS8981: The type name only contains lower-cased ascii characters. Such names may become reserved for the language.
dotnet_diagnostic.CS8981.severity = suggestion
+
+# IDE0055: Fix formatting
+dotnet_diagnostic.IDE0055.severity = silent
diff --git a/Assets/Plugins/Android/AndroidManifest.xml b/Assets/Plugins/Android/AndroidManifest.xml
index d9914999b..0250c1c22 100644
--- a/Assets/Plugins/Android/AndroidManifest.xml
+++ b/Assets/Plugins/Android/AndroidManifest.xml
@@ -1,27 +1,27 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.thirdweb.unity"
+ xmlns:tools="http://schemas.android.com/tools"
+>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Assets/Thirdweb/Editor/Postprocessor.cs b/Assets/Thirdweb/Editor/Postprocessor.cs
index ae670b91f..13e6c6574 100644
--- a/Assets/Thirdweb/Editor/Postprocessor.cs
+++ b/Assets/Thirdweb/Editor/Postprocessor.cs
@@ -24,12 +24,16 @@ public class Postprocessor
[PostProcessBuild(1)]
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
{
- if (target != BuildTarget.WebGL) return;
- if (!supportedPostprocessor) return;
- if (!IsEnable) return;
+ if (target != BuildTarget.WebGL)
+ return;
+ if (!supportedPostprocessor)
+ return;
+ if (!IsEnable)
+ return;
var path = Path.Combine(pathToBuiltProject, "index.html");
- if (!File.Exists(path)) return;
+ if (!File.Exists(path))
+ return;
var html = File.ReadAllText(path);
diff --git a/Assets/Thirdweb/Editor/ThirdwebDependencies.xml b/Assets/Thirdweb/Editor/ThirdwebDependencies.xml
index 5bdc8d2ec..5f66bb610 100644
--- a/Assets/Thirdweb/Editor/ThirdwebDependencies.xml
+++ b/Assets/Thirdweb/Editor/ThirdwebDependencies.xml
@@ -1,5 +1,5 @@
-
-
-
-
\ No newline at end of file
+
+
+
+
diff --git a/Assets/Thirdweb/Editor/ThirdwebManagerEditor.cs b/Assets/Thirdweb/Editor/ThirdwebManagerEditor.cs
index a7cacd7c0..3953e0798 100644
--- a/Assets/Thirdweb/Editor/ThirdwebManagerEditor.cs
+++ b/Assets/Thirdweb/Editor/ThirdwebManagerEditor.cs
@@ -1,7 +1,7 @@
-using UnityEngine;
-using UnityEditor;
-using Thirdweb.Unity;
using System.Reflection;
+using Thirdweb.Unity;
+using UnityEditor;
+using UnityEngine;
namespace Thirdweb.Editor
{
@@ -11,8 +11,6 @@ public abstract class ThirdwebManagerBaseEditor : UnityEditor.Editor
protected SerializedProperty initializeOnAwakeProp;
protected SerializedProperty showDebugLogsProp;
protected SerializedProperty autoConnectLastWalletProp;
- protected SerializedProperty supportedChainsProp;
- protected SerializedProperty includedWalletIdsProp;
protected SerializedProperty redirectPageHtmlOverrideProp;
protected SerializedProperty rpcOverridesProp;
@@ -27,8 +25,6 @@ protected virtual void OnEnable()
initializeOnAwakeProp = FindProp("InitializeOnAwake");
showDebugLogsProp = FindProp("ShowDebugLogs");
autoConnectLastWalletProp = FindProp("AutoConnectLastWallet");
- supportedChainsProp = FindProp("SupportedChains");
- includedWalletIdsProp = FindProp("IncludedWalletIds");
redirectPageHtmlOverrideProp = FindProp("RedirectPageHtmlOverride");
rpcOverridesProp = FindProp("RpcOverrides");
@@ -90,10 +86,7 @@ protected virtual void DrawMiscTab()
DrawProperty(rpcOverridesProp, "RPC Overrides");
GUILayout.Space(10);
EditorGUILayout.LabelField("OAuth Redirect Page HTML Override", EditorStyles.boldLabel);
- redirectPageHtmlOverrideProp.stringValue = EditorGUILayout.TextArea(redirectPageHtmlOverrideProp.stringValue, GUILayout.MinHeight(75));
- GUILayout.Space(10);
- DrawProperty(supportedChainsProp, "WalletConnect Supported Chains");
- DrawProperty(includedWalletIdsProp, "WalletConnect Included Wallet IDs");
+ redirectPageHtmlOverrideProp.stringValue = EditorGUILayout.TextArea(redirectPageHtmlOverrideProp.stringValue, GUILayout.MinHeight(150));
}
protected virtual void DrawDebugTab()
@@ -170,7 +163,7 @@ protected void InitializeStyles()
{
fontStyle = FontStyle.Bold,
alignment = TextAnchor.MiddleLeft,
- padding = new RectOffset(10, 10, 10, 10)
+ padding = new RectOffset(10, 10, 10, 10),
};
}
diff --git a/Assets/Thirdweb/Examples/Scenes/Scene_Playground.unity b/Assets/Thirdweb/Examples/Scenes/Scene_Playground.unity
index a322cd379..b21ed8320 100644
--- a/Assets/Thirdweb/Examples/Scenes/Scene_Playground.unity
+++ b/Assets/Thirdweb/Examples/Scenes/Scene_Playground.unity
@@ -2887,8 +2887,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d2b449f3a04d6c94eb686cd39ae75785, type: 3}
m_Name:
m_EditorClassIdentifier:
- ActiveChainId: 421614
- WebglForceMetamaskExtension: 1
+ ActiveChainId: 84532
+ WebglForceMetamaskExtension: 0
ConnectWalletPanel: {fileID: 974997944}
PrivateKeyWalletButton: {fileID: 736464798}
EcosystemWalletButton: {fileID: 1496910716}
@@ -2904,7 +2904,7 @@ MonoBehaviour:
LogText: {fileID: 2031826890}
InputField: {fileID: 0}
InputFieldSubmitButton: {fileID: 0}
- - Identifier: WalletConnectWallet
+ - Identifier: ReownWallet
Panel: {fileID: 1922056857}
Action1Button: {fileID: 1632196339}
Action2Button: {fileID: 1340124642}
@@ -4230,6 +4230,26 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
+ - target: {fileID: 753652708382381279, guid: f1f7a02a8c5efe54c95062bd90592227, type: 3}
+ propertyPath: m_AnchorMax.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 753652708382381279, guid: f1f7a02a8c5efe54c95062bd90592227, type: 3}
+ propertyPath: m_AnchorMin.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 753652708382381279, guid: f1f7a02a8c5efe54c95062bd90592227, type: 3}
+ propertyPath: m_SizeDelta.x
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 753652708382381279, guid: f1f7a02a8c5efe54c95062bd90592227, type: 3}
+ propertyPath: m_AnchoredPosition.x
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 753652708382381279, guid: f1f7a02a8c5efe54c95062bd90592227, type: 3}
+ propertyPath: m_AnchoredPosition.y
+ value: 0
+ objectReference: {fileID: 0}
- target: {fileID: 1288923049808236541, guid: f1f7a02a8c5efe54c95062bd90592227, type: 3}
propertyPath: k__BackingField
value: com.thirdweb.unitysdk
diff --git a/Assets/Thirdweb/Examples/Scripts/PlaygroundManager.cs b/Assets/Thirdweb/Examples/Scripts/PlaygroundManager.cs
index e55bb617f..c6ded5460 100644
--- a/Assets/Thirdweb/Examples/Scripts/PlaygroundManager.cs
+++ b/Assets/Thirdweb/Examples/Scripts/PlaygroundManager.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.Threading.Tasks;
using Newtonsoft.Json;
using TMPro;
using UnityEngine;
@@ -24,7 +25,7 @@ public class WalletPanelUI
public class PlaygroundManager : MonoBehaviour
{
[field: SerializeField, Header("Wallet Options")]
- private ulong ActiveChainId = 421614;
+ private ulong ActiveChainId = 84532;
[field: SerializeField]
private bool WebglForceMetamaskExtension = false;
@@ -65,8 +66,8 @@ private async void Start()
{
Decimals = 18,
Name = "ETH",
- Symbol = "ETH"
- }
+ Symbol = "ETH",
+ },
};
}
}
@@ -77,6 +78,11 @@ private void InitializePanels()
ConnectWalletPanel.SetActive(true);
+ if (ThirdwebManager.Instance != null && ThirdwebManager.Instance.ActiveWallet != null)
+ {
+ ThirdwebManager.Instance.ActiveWallet.Disconnect();
+ }
+
PrivateKeyWalletButton.onClick.RemoveAllListeners();
PrivateKeyWalletButton.onClick.AddListener(() =>
{
@@ -90,7 +96,7 @@ private void InitializePanels()
WalletConnectButton.onClick.RemoveAllListeners();
WalletConnectButton.onClick.AddListener(() =>
{
- var options = GetWalletOptions(WalletProvider.WalletConnectWallet);
+ var options = GetWalletOptions(WalletProvider.ReownWallet);
ConnectWallet(options);
});
}
@@ -99,7 +105,7 @@ private async void ConnectWallet(WalletOptions options)
{
// Connect the wallet
- var internalWalletProvider = options.Provider == WalletProvider.MetaMaskWallet ? WalletProvider.WalletConnectWallet : options.Provider;
+ var internalWalletProvider = options.Provider == WalletProvider.MetaMaskWallet ? WalletProvider.ReownWallet : options.Provider;
var currentPanel = WalletPanels.Find(panel => panel.Identifier == internalWalletProvider.ToString());
Log(currentPanel.LogText, $"Connecting...");
@@ -156,9 +162,8 @@ private WalletOptions GetWalletOptions(WalletProvider provider)
case WalletProvider.EcosystemWallet:
var ecosystemWalletOptions = new EcosystemWalletOptions(ecosystemId: "ecosystem.the-bonfire", authprovider: AuthProvider.Google);
return new WalletOptions(provider: WalletProvider.EcosystemWallet, chainId: ActiveChainId, ecosystemWalletOptions: ecosystemWalletOptions);
- case WalletProvider.WalletConnectWallet:
- var externalWalletProvider =
- Application.platform == RuntimePlatform.WebGLPlayer && WebglForceMetamaskExtension ? WalletProvider.MetaMaskWallet : WalletProvider.WalletConnectWallet;
+ case WalletProvider.ReownWallet:
+ var externalWalletProvider = Application.platform == RuntimePlatform.WebGLPlayer && WebglForceMetamaskExtension ? WalletProvider.MetaMaskWallet : WalletProvider.ReownWallet;
return new WalletOptions(provider: externalWalletProvider, chainId: ActiveChainId);
default:
throw new System.NotImplementedException("Wallet provider not implemented for this example.");
@@ -342,7 +347,7 @@ private void InitializeContractsPanel()
try
{
LoadingLog(panel.LogText);
- var dropErc1155Contract = await ThirdwebManager.Instance.GetContract(address: "0x94894F65d93eb124839C667Fc04F97723e5C4544", chainId: ActiveChainId);
+ var dropErc1155Contract = await ThirdwebManager.Instance.GetContract(address: "0x8F0a4dde7791fa9B6C62E0B099a1a3ff6dd1cF29", chainId: ActiveChainId);
var nft = await dropErc1155Contract.ERC1155_GetNFT(tokenId: 1);
Log(panel.LogText, $"NFT: {JsonConvert.SerializeObject(nft.Metadata)}");
var sprite = await nft.GetNFTSprite(client: ThirdwebManager.Instance.Client);
@@ -365,7 +370,7 @@ private void InitializeContractsPanel()
try
{
LoadingLog(panel.LogText);
- var contract = await ThirdwebManager.Instance.GetContract(address: "0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3", chainId: ActiveChainId);
+ var contract = await ThirdwebManager.Instance.GetContract(address: "0x8F0a4dde7791fa9B6C62E0B099a1a3ff6dd1cF29", chainId: ActiveChainId);
var result = await contract.ERC1155_URI(tokenId: 1);
Log(panel.LogText, $"Result (uri): {result}");
}
@@ -382,7 +387,7 @@ private void InitializeContractsPanel()
try
{
LoadingLog(panel.LogText);
- var dropErc20Contract = await ThirdwebManager.Instance.GetContract(address: "0xEBB8a39D865465F289fa349A67B3391d8f910da9", chainId: ActiveChainId);
+ var dropErc20Contract = await ThirdwebManager.Instance.GetContract(address: "0x28C1209fa6e7f1B258Ef65527C94129c6F82995f", chainId: ActiveChainId);
var symbol = await dropErc20Contract.ERC20_Symbol();
var balance = await dropErc20Contract.ERC20_BalanceOf(ownerAddress: await ThirdwebManager.Instance.GetActiveWallet().GetAddress());
var balanceEth = Utils.ToEth(wei: balance.ToString(), decimalsToDisplay: 0, addCommas: false);
diff --git a/Assets/Thirdweb/Plugins/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs b/Assets/Thirdweb/Plugins/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs
index d6f6dbee9..ec7a64658 100644
--- a/Assets/Thirdweb/Plugins/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs
+++ b/Assets/Thirdweb/Plugins/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs
@@ -1,7 +1,7 @@
-using Mono.Cecil;
-using Mono.Cecil.Cil;
using System.IO;
using System.Linq;
+using Mono.Cecil;
+using Mono.Cecil.Cil;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
@@ -805,7 +805,7 @@ private static TypeDefinition AddMonoPInvokeCallbackAttribute(ModuleDefinition m
{
var type = new TypeDefinition("AOT", "MonoPInvokeCallbackAttribute", TypeAttributes.AnsiClass | TypeAttributes.AutoClass | TypeAttributes.BeforeFieldInit | TypeAttributes.Public)
{
- BaseType = moduleDefinition.ImportReference(moduleDefinition.Types.First(t => t.FullName == "System.Attribute"))
+ BaseType = moduleDefinition.ImportReference(moduleDefinition.Types.First(t => t.FullName == "System.Attribute")),
};
var ctor = new MethodDefinition(
".ctor",
diff --git a/Assets/Thirdweb/Plugins/ThreadingPatcher/Runtime/TimerRunner.cs b/Assets/Thirdweb/Plugins/ThreadingPatcher/Runtime/TimerRunner.cs
index b678257e8..b04648736 100644
--- a/Assets/Thirdweb/Plugins/ThreadingPatcher/Runtime/TimerRunner.cs
+++ b/Assets/Thirdweb/Plugins/ThreadingPatcher/Runtime/TimerRunner.cs
@@ -30,8 +30,7 @@ private void Awake()
var scheduler = timer.GetNestedType("Scheduler", BindingFlags.NonPublic);
var timerSchedulerInstance = scheduler.GetProperty("Instance").GetValue(null);
- _timerSchedulerLoop = (Func)scheduler.GetMethod("RunSchedulerLoop", BindingFlags.Instance | BindingFlags.NonPublic)
- .CreateDelegate(typeof(Func), timerSchedulerInstance);
+ _timerSchedulerLoop = (Func)scheduler.GetMethod("RunSchedulerLoop", BindingFlags.Instance | BindingFlags.NonPublic).CreateDelegate(typeof(Func), timerSchedulerInstance);
}
[Preserve]
@@ -59,4 +58,4 @@ private IEnumerator TimerUpdateCoroutine()
#pragma warning restore CS0162 // Unreachable code detected
}
}
-}
\ No newline at end of file
+}
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity.meta
deleted file mode 100644
index bb45494f1..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: a9c79e7eb07e66a49a2b4adf63fbe42b
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources.meta
deleted file mode 100644
index 2399f570a..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: c75ae2b709ab7254f9ab14160a24da4c
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources/WalletConnectProjectConfig.asset b/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources/WalletConnectProjectConfig.asset
deleted file mode 100644
index a0ba217d0..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources/WalletConnectProjectConfig.asset
+++ /dev/null
@@ -1,27 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &11400000
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: b105f096d21e42cfac1c5f6ae49fe4ca, type: 3}
- m_Name: WalletConnectProjectConfig
- m_EditorClassIdentifier:
- k__BackingField: 145769e410f16970a79ff77b2d89a1e0
- k__BackingField:
- Name: thirdweb
- Description: thirdweb powered dApp
- Url: https://thirdweb.com
- Icons:
- - https://thirdweb.com/favicon.ico
- Redirect:
- Native:
- Universal:
- VerifyUrl:
- k__BackingField: wss://relay.walletconnect.com
- k__BackingField: 0
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources/WalletConnectProjectConfig.asset.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources/WalletConnectProjectConfig.asset.meta
deleted file mode 100644
index db2adacd9..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/Resources/WalletConnectProjectConfig.asset.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 3b97b43fb54152f47b771c0cd3edb741
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 11400000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core.meta
deleted file mode 100644
index 23033af0f..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 70adc11789712b5449a531c63b0dc654
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/CHANGELOG.md b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/CHANGELOG.md
deleted file mode 100644
index fb3868b25..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/CHANGELOG.md
+++ /dev/null
@@ -1,126 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [3.1.10] - 2024-07-31
-
-### Changed
-
-- Upgraded WalletConnectSharp to [v2.4.1](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.4.1)
-
-### Fixed
-
-- Occasionally a grey texture would appear instead of a QR code
-- Deep linking didn't work with some wallets on mobile
-
-## [3.1.10] - 2024-07-16
-
-- Upgraded WalletConnectSharp to [v2.4.0](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.4.0)
-
-## [3.1.8] - 2024-06-26
-
-### Fixed
-
-- Incorrect Ronin chain explorer URL
-- Warming about unnecessary zxing asmdef file
-
-## [3.1.7] - 2024-06-07
-
-### Changed
-
-- Upgraded WalletConnectSharp to [v2.3.8](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.8)
-
-### Fixed
-
-- `Unreachable code detected` warnings
-- `WalletConnectInterceptor` doesn't support `eth_signTypedData_v4` requests with more than 1 parameter
-- Deprecated Polygon RPC URL
-- Dependency collision with UniRx and Cysharp/R3
-- Generated QR code textures taking up too much memory
-
-## [3.1.6] - 2024-05-09
-
-### Added
-
-- visionOS support
-
-### Changed
-
-- Upgraded WalletConnectSharp to [v2.3.6](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.6)
-- Don't use PlayerPrefs for storage in the Editor when targeting WebGL
-
-### [3.1.5] - 2024-04-26
-
-### Added
-
-- `ApplicationFocus` event in UnityEventsDispatcher
-
-### Changed
-
-- Disable reference validation of external DLLs
-
-## [3.1.4] - 2024-04-17
-
-### Changed
-
-- Upgraded WalletConnectSharp to [v2.3.5](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.5)
-
-## [3.1.3] - 2024-04-16
-
-### Changed
-
-- Upgraded WalletConnectSharp to [v2.3.4](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.4)
-- Use Recent Wallet’s redirect when session doesn't have native redirect
-- Improve WebSocket reconnection when not having an internet connection from the start
-
-## [3.1.2] - 2024-03-29
-
-### Added
-
-- Dispose WalletConnect on `ApplicationQuit`. This will also dispose the instance when exiting play mode in the Editor.
-
-### Changed
-
-- Don’t pause WebSocket when app loses focus
-
-### Fixed
-
-- Device type detection on Android
-
-## [3.1.1] - 2024-03-25
-
-### Added
-
-- Add `ActiveChainIdChanged` event to `IWalletConnect` interface
-
-### Fixed
-
-- Broken WebGL build
-
-## [3.1.0] - 2024-03-21
-
-### Added
-
-- Types for common EVM methods (e.g. `eth_sendTransaction`, `personal_sign`, etc.)
-- Ethereum chain switching with `wallet_switchEthereumChain` and `wallet_addEthereumChain`
-- Chain switch event
-- Optional `chainID` parameter in `IWalletConnect.RequestAsync` method
-- Chain types and constants
-- Tests for Core package
-- `RelayUrl` customisation
-
-### Changed
-
-- Upgraded WalletConnectSharp to [v2.3.0](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.0)
-- Disposability of `WebSocket`
-- Disable `OrientationTracker` on platforms other than mobile
-- Handle more JSON deserialize errors caused by storage corruption
-
-### Fixed
-
-- Session proposal via deep linking didn't work with some wallets
-- `com.unity.nuget.newtonsoft-json` dependency version
-- Incompatibility with Firebase and Jetifier in Android builds
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/CHANGELOG.md.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/CHANGELOG.md.meta
deleted file mode 100644
index 376d69dc5..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/CHANGELOG.md.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 20c34fcab00748a69fad957ac5729676
-timeCreated: 1710998736
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/LICENSE b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/LICENSE
deleted file mode 100644
index 793193cb0..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2021 WalletConnect
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/LICENSE.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/LICENSE.meta
deleted file mode 100644
index bc5525eec..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/LICENSE.meta
+++ /dev/null
@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: e933254cfb763486bbd96a03b541cd89
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins.meta
deleted file mode 100644
index e72b7e42f..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 1ebb16cdc8e844b792510d6b573fb692
-timeCreated: 1704959723
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android.meta
deleted file mode 100644
index 62c4fac3b..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: f0eebcf308b04fe2911d708c06583cb0
-timeCreated: 1704963880
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android/Linker.java b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android/Linker.java
deleted file mode 100644
index 4b59e1df6..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android/Linker.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.walletconnect.unity;
-
-import android.content.Context;
-import android.content.Intent;
-import android.net.Uri;
-import com.unity3d.player.UnityPlayerActivity;
-
-public class Linker {
- public static boolean canOpenURL(UnityPlayerActivity activity, String url){
- Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
- return intent.resolveActivity(activity.getPackageManager()) != null;
- }
-}
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android/Linker.java.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android/Linker.java.meta
deleted file mode 100644
index 85f90b094..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/Android/Linker.java.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 1919703c5745482189b95e4e31487946
-timeCreated: 1709866795
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS.meta
deleted file mode 100644
index 4d53043ff..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 0d4798ca57f04a8c828231dd53231aa4
-timeCreated: 1704959740
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS/CanOpenUrl.m b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS/CanOpenUrl.m
deleted file mode 100644
index 618b35e6a..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS/CanOpenUrl.m
+++ /dev/null
@@ -1,10 +0,0 @@
-#import
-#import
-
-NSString *ConvertCStringToNSString(char* string) {
- return [NSString stringWithUTF8String:string];
-}
-
-bool _CanOpenURL (char* url) {
- return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:ConvertCStringToNSString(url)]];
-}
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS/CanOpenUrl.m.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS/CanOpenUrl.m.meta
deleted file mode 100644
index 83f252a40..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Plugins/iOS/CanOpenUrl.m.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: b9518d2c329a4d8fb989081d2d037976
-timeCreated: 1704959767
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime.meta
deleted file mode 100644
index 7f0044468..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: baaa320fbbe8249dfaad9433a9286fe3
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/Chain.cs b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/Chain.cs
deleted file mode 100644
index f3cee1b49..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/Chain.cs
+++ /dev/null
@@ -1,315 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace WalletConnectUnity.Core
-{
- [Serializable]
- public class Chain
- {
- public virtual string Name { get; }
-
- // https://github.com/wevm/viem/blob/main/src/chains/index.ts
- public virtual string ViemName { get; }
- public virtual Currency NativeCurrency { get; }
- public virtual BlockExplorer BlockExplorer { get; }
- public virtual string RpcUrl { get; }
- public virtual bool IsTestnet { get; }
- public virtual string ImageUrl { get; }
-
- // --- CAIP-2
- public virtual string ChainNamespace { get; }
- public virtual string ChainReference { get; }
-
- public virtual string ChainId => $"{ChainNamespace}:{ChainReference}";
- // ---
-
- public Chain(
- string chainNamespace,
- string chainReference,
- string name,
- Currency nativeCurrency,
- BlockExplorer blockExplorer,
- string rpcUrl,
- bool isTestnet,
- string imageUrl,
- string viemName = null)
- {
- ChainNamespace = chainNamespace;
- ChainReference = chainReference;
- Name = name;
- NativeCurrency = nativeCurrency;
- BlockExplorer = blockExplorer;
- RpcUrl = rpcUrl;
- IsTestnet = isTestnet;
- ImageUrl = imageUrl;
- ViemName = viemName;
- }
- }
-
- [Serializable]
- public readonly struct Currency
- {
- public readonly string name;
- public readonly string symbol;
- public readonly int decimals;
-
- public Currency(string name, string symbol, int decimals)
- {
- this.name = name;
- this.symbol = symbol;
- this.decimals = decimals;
- }
- }
-
- [Serializable]
- public readonly struct BlockExplorer
- {
- public readonly string name;
- public readonly string url;
-
- public BlockExplorer(string name, string url)
- {
- this.name = name;
- this.url = url;
- }
- }
-
- public static class ChainConstants
- {
- internal const string ChainImageUrl = "https://api.web3modal.com/public/getAssetImage";
-
- public static class Namespaces
- {
- public const string Evm = "eip155";
- public const string Algorand = "algorand";
- public const string Solana = "sol";
- }
-
- public static class References
- {
- public const string Ethereum = "1";
- public const string EthereumGoerli = "5";
- public const string Optimism = "10";
- public const string Ronin = "2020";
- public const string RoninSaigon = "2021";
- public const string Base = "8453";
- public const string BaseGoerli = "84531";
- public const string Arbitrum = "42161";
- public const string Celo = "42220";
- public const string CeloAlfajores = "44787";
- public const string Solana = "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
- public const string Polygon = "137";
- public const string Avalanche = "43114";
-
- public const string Algorand = "wGHE2Pwdvd7S12BL5FaOP20EGYesN73k";
- public const string AlgorandTestnet = "SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe";
- }
-
- // https://specs.walletconnect.com/2.0/specs/meta-clients/web3modal/api#known-static-asset-ids
- public static Dictionary ImageIds { get; } = new()
- {
- // Ethereum
- { References.Ethereum, "692ed6ba-e569-459a-556a-776476829e00" },
- // Ethereum Goerli
- { References.EthereumGoerli, "692ed6ba-e569-459a-556a-776476829e00" },
- // Optimism
- { References.Optimism, "ab9c186a-c52f-464b-2906-ca59d760a400" },
- // Ronin
- { References.Ronin, "b8101fc0-9c19-4b6f-ec65-f6dfff106e00" },
- // RoninSaigon
- { References.RoninSaigon, "b8101fc0-9c19-4b6f-ec65-f6dfff106e00" },
- // Arbitrum
- { References.Arbitrum, "600a9a04-c1b9-42ca-6785-9b4b6ff85200" },
- // Celo
- { References.Celo, "ab781bbc-ccc6-418d-d32d-789b15da1f00" },
- // Celo Alfajores
- { References.CeloAlfajores, "ab781bbc-ccc6-418d-d32d-789b15da1f00" },
- // Base
- { References.Base, "7289c336-3981-4081-c5f4-efc26ac64a00" },
- // Base Goerli
- { References.BaseGoerli, "7289c336-3981-4081-c5f4-efc26ac64a00" },
- // Polygon
- { References.Polygon, "41d04d42-da3b-4453-8506-668cc0727900" },
- // Avalanche
- { References.Avalanche, "30c46e53-e989-45fb-4549-be3bd4eb3b00" },
- // Solana
- { References.Solana, "a1b58899-f671-4276-6a5e-56ca5bd59700" },
- };
-
- public static class Chains
- {
- public static readonly Chain Ethereum = new(
- Namespaces.Evm,
- References.Ethereum,
- "Ethereum",
- new Currency("Ether", "ETH", 18),
- new BlockExplorer("Etherscan", "https://etherscan.io"),
- "https://cloudflare-eth.com",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Ethereum]}",
- "mainnet"
- );
-
- public static readonly Chain EthereumGoerli = new(
- Namespaces.Evm,
- References.EthereumGoerli,
- "Ethereum Goerli",
- new Currency("Ether", "ETH", 18),
- new BlockExplorer("Etherscan", "https://goerli.etherscan.io"),
- "https://goerli.infura.io/v3/",
- true,
- $"{ChainImageUrl}/{ImageIds[References.EthereumGoerli]}",
- "goerli"
- );
-
- public static readonly Chain Optimism = new(
- Namespaces.Evm,
- References.Optimism,
- "Optimism",
- new Currency("Ether", "ETH", 18),
- new BlockExplorer("Optimistic Etherscan", "https://optimistic.etherscan.io"),
- "https://mainnet.optimism.io",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Optimism]}",
- "optimism"
- );
-
- public static readonly Chain Ronin = new(
- Namespaces.Evm,
- References.Ronin,
- "Ronin",
- new Currency("Ronin", "RON", 18),
- new BlockExplorer("Ronin Explorer", "https://app.roninchain.com/"),
- "https://api.roninchain.com/rpc",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Ronin]}",
- "ronin"
- );
-
- public static readonly Chain RoninSaigon = new(
- Namespaces.Evm,
- References.RoninSaigon,
- "Ronin Saigon",
- new Currency("Ronin", "RON", 18),
- new BlockExplorer("Ronin Explorer", "https://explorer.roninchain.com"),
- "\thttps://api-gateway.skymavis.com/rpc/testnet",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Ronin]}",
- "saigon"
- );
-
- public static readonly Chain Arbitrum = new(
- Namespaces.Evm,
- References.Arbitrum,
- "Arbitrum",
- new Currency("Ether", "ETH", 18),
- new BlockExplorer("Arbitrum Explorer", "https://arbiscan.io"),
- "https://arb1.arbitrum.io/rpc",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Arbitrum]}",
- "arbitrum"
- );
-
- public static readonly Chain Celo = new(
- Namespaces.Evm,
- References.Celo,
- "Celo",
- new Currency("Celo", "CELO", 18),
- new BlockExplorer("Celo Explorer", "https://explorer.celo.org"),
- "https://forno.celo.org",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Celo]}",
- "celo"
- );
-
- public static readonly Chain CeloAlfajores = new(
- Namespaces.Evm,
- References.CeloAlfajores,
- "Celo Alfajores",
- new Currency("Celo", "CELO", 18),
- new BlockExplorer("Celo Explorer", "https://alfajores-blockscout.celo-testnet.org"),
- "https://alfajores-forno.celo-testnet.org",
- true,
- $"{ChainImageUrl}/{ImageIds[References.CeloAlfajores]}",
- "celoAlfajores"
- );
-
- public static readonly Chain Base = new(
- Namespaces.Evm,
- References.Base,
- "Base",
- new Currency("Ether", "ETH", 18),
- new BlockExplorer("BaseScan", "https://basescan.org/"),
- "https://mainnet.base.org",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Base]}",
- "base"
- );
-
- public static readonly Chain BaseGoerli = new(
- Namespaces.Evm,
- References.BaseGoerli,
- "Base Goerli",
- new Currency("Ether", "ETH", 18),
- new BlockExplorer("BaseScan", "https://goerli.basescan.org/"),
- "https://goerli.base.org",
- true,
- $"{ChainImageUrl}/{ImageIds[References.BaseGoerli]}",
- "baseGoerli"
- );
-
- public static readonly Chain Polygon = new(
- Namespaces.Evm,
- "137",
- "Polygon",
- new Currency("Matic", "MATIC", 18),
- new BlockExplorer("Polygon Explorer", "https://polygonscan.com"),
- "https://polygon-rpc.com",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Polygon]}",
- "polygon"
- );
-
- public static readonly Chain Avalanche = new(
- Namespaces.Evm,
- References.Avalanche,
- "Avalanche",
- new Currency("AVAX", "AVAX", 18),
- new BlockExplorer("Avalanche Explorer", "https://snowtrace.io/"),
- "https://api.avax.network/ext/bc/C/rpc",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Avalanche]}",
- "avalanche"
- );
-
- public static readonly Chain Solana = new(
- Namespaces.Solana,
- References.Solana,
- "Solana",
- new Currency("Sol", "SOL", 9),
- new BlockExplorer("Solana Explorer", "https://explorer.solana.com"),
- "https://api.mainnet-beta.solana.com",
- false,
- $"{ChainImageUrl}/{ImageIds[References.Solana]}",
- "solana"
- );
-
- public static readonly IReadOnlyCollection All = new HashSet
- {
- Ethereum,
- EthereumGoerli,
- Optimism,
- Ronin,
- RoninSaigon,
- Arbitrum,
- Celo,
- CeloAlfajores,
- Base,
- BaseGoerli,
- Polygon,
- Avalanche,
- Solana
- };
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/Chain.cs.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/Chain.cs.meta
deleted file mode 100644
index 4bdcc6072..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/Chain.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 9b9e29833ac846d3b81916cd4eefc4b8
-timeCreated: 1710227537
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM.meta
deleted file mode 100644
index 6c46d573b..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 05f5eac7252f4905ae1d3b4167d895bd
-timeCreated: 1710848116
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Extensions.cs b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Extensions.cs
deleted file mode 100644
index d5cdf0f2c..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Extensions.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Linq;
-using System.Threading.Tasks;
-using WalletConnectSharp.Common.Model.Errors;
-
-namespace WalletConnectUnity.Core.Evm
-{
- public static class EvmExtensions
- {
- public static async Task SwitchEthereumChainAsync(this IWalletConnect walletConnect, EthereumChain ethereumChain)
- {
- if (ethereumChain == null)
- throw new ArgumentNullException(nameof(ethereumChain));
-
- var ciap2ChainId = $"eip155:{ethereumChain.chainIdDecimal}";
- if (!walletConnect.ActiveSession.Namespaces.TryGetValue("eip155", out var @namespace)
- || !@namespace.Chains.Contains(ciap2ChainId))
- {
- var request = new WalletAddEthereumChain(ethereumChain);
-
- try
- {
- await walletConnect.RequestAsync(request);
- }
- catch (WalletConnectException)
- {
- // Wallet can decline if chain has already been added
- }
- }
-
- var data = new WalletSwitchEthereumChain(ethereumChain.chainIdHex);
- await walletConnect.RequestAsync(data);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Extensions.cs.meta b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Extensions.cs.meta
deleted file mode 100644
index 31dd2d120..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Extensions.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 58caa4babde14f53be5291d13b8bb95c
-timeCreated: 1710848154
\ No newline at end of file
diff --git a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Methods.cs b/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Methods.cs
deleted file mode 100644
index 4bc8891e3..000000000
--- a/Assets/Thirdweb/Plugins/WalletConnectUnity/com.walletconnect.core/Runtime/EVM/Methods.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using System.Collections.Generic;
-using UnityEngine.Scripting;
-using WalletConnectSharp.Common.Utils;
-using WalletConnectSharp.Network.Models;
-
-namespace WalletConnectUnity.Core.Evm
-{
- [RpcMethod("personal_sign")]
- [RpcRequestOptions(Clock.ONE_MINUTE, 99998)]
- public class PersonalSign : List
- {
- public PersonalSign(string hexUtf8, string account) : base(new[] { hexUtf8, account })
- {
- }
-
- [Preserve]
- public PersonalSign()
- {
- }
- }
-
- [RpcMethod("eth_sendTransaction")]
- [RpcRequestOptions(Clock.ONE_MINUTE, 99997)]
- public class EthSendTransaction : List
- {
- public EthSendTransaction(params Transaction[] transactions) : base(transactions)
- {
- }
-
- [Preserve]
- public EthSendTransaction()
- {
- }
- }
-
- [RpcMethod("wallet_switchEthereumChain")]
- [RpcRequestOptions(Clock.ONE_MINUTE, 99990)]
- public class WalletSwitchEthereumChain : List