diff --git a/build.gradle b/build.gradle index 8f9a928..023e9af 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ repositories { } dependencies { - implementation 'org.torusresearch:fetch-node-details-java:4.1.1' + implementation 'org.torusresearch:fetch-node-details-java:5.0.0' implementation 'org.web3j:core:4.8.8-android' implementation 'com.google.code.gson:gson:2.9.0' implementation 'com.squareup.okhttp3:okhttp:4.9.3' diff --git a/src/test/java/org/torusresearch/torusutilstest/AquaTest.java b/src/test/java/org/torusresearch/torusutilstest/AquaTest.java index ba52a59..7b9c8f2 100644 --- a/src/test/java/org/torusresearch/torusutilstest/AquaTest.java +++ b/src/test/java/org/torusresearch/torusutilstest/AquaTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test; import org.torusresearch.fetchnodedetails.FetchNodeDetails; import org.torusresearch.fetchnodedetails.types.NodeDetails; -import org.torusresearch.fetchnodedetails.types.TorusNetwork; +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork; import org.torusresearch.torusutils.TorusUtils; import org.torusresearch.torusutils.types.RetrieveSharesResponse; import org.torusresearch.torusutils.types.TorusCtorOptions; @@ -49,7 +49,7 @@ public class AquaTest { @BeforeAll static void setup() throws ExecutionException, InterruptedException, IOException, NoSuchAlgorithmException, InvalidKeySpecException { System.out.println("Setup Starting"); - fetchNodeDetails = new FetchNodeDetails(TorusNetwork.AQUA); + fetchNodeDetails = new FetchNodeDetails(Web3AuthNetwork.AQUA); TorusCtorOptions opts = new TorusCtorOptions("Custom", "YOUR_CLIENT_ID"); opts.setNetwork("aqua"); opts.setSignerHost("https://signer-polygon.tor.us/api/sign"); diff --git a/src/test/java/org/torusresearch/torusutilstest/CelesteTest.java b/src/test/java/org/torusresearch/torusutilstest/CelesteTest.java index ca960a8..8bddabc 100644 --- a/src/test/java/org/torusresearch/torusutilstest/CelesteTest.java +++ b/src/test/java/org/torusresearch/torusutilstest/CelesteTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test; import org.torusresearch.fetchnodedetails.FetchNodeDetails; import org.torusresearch.fetchnodedetails.types.NodeDetails; -import org.torusresearch.fetchnodedetails.types.TorusNetwork; +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork; import org.torusresearch.torusutils.TorusUtils; import org.torusresearch.torusutils.types.RetrieveSharesResponse; import org.torusresearch.torusutils.types.TorusCtorOptions; @@ -50,7 +50,7 @@ public class CelesteTest { @BeforeAll static void setup() throws ExecutionException, InterruptedException, IOException, NoSuchAlgorithmException, InvalidKeySpecException { System.out.println("Setup Startingg"); - fetchNodeDetails = new FetchNodeDetails(TorusNetwork.CELESTE); + fetchNodeDetails = new FetchNodeDetails(Web3AuthNetwork.CELESTE); TorusCtorOptions opts = new TorusCtorOptions("Custom", "YOUR_CLIENT_ID"); opts.setNetwork("celeste"); opts.setSignerHost("https://signer-polygon.tor.us/api/sign"); diff --git a/src/test/java/org/torusresearch/torusutilstest/CyanTest.java b/src/test/java/org/torusresearch/torusutilstest/CyanTest.java index 06e54cc..a5e6a9b 100644 --- a/src/test/java/org/torusresearch/torusutilstest/CyanTest.java +++ b/src/test/java/org/torusresearch/torusutilstest/CyanTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test; import org.torusresearch.fetchnodedetails.FetchNodeDetails; import org.torusresearch.fetchnodedetails.types.NodeDetails; -import org.torusresearch.fetchnodedetails.types.TorusNetwork; +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork; import org.torusresearch.torusutils.TorusUtils; import org.torusresearch.torusutils.types.RetrieveSharesResponse; import org.torusresearch.torusutils.types.TorusCtorOptions; @@ -50,7 +50,7 @@ public class CyanTest { @BeforeAll static void setup() throws ExecutionException, InterruptedException, IOException, NoSuchAlgorithmException, InvalidKeySpecException { System.out.println("Setup Starting"); - fetchNodeDetails = new FetchNodeDetails(TorusNetwork.CYAN); + fetchNodeDetails = new FetchNodeDetails(Web3AuthNetwork.CYAN); TorusCtorOptions opts = new TorusCtorOptions("Custom", "YOUR_CLIENT_ID"); opts.setNetwork("cyan"); opts.setSignerHost("https://signer-polygon.tor.us/api/sign"); diff --git a/src/test/java/org/torusresearch/torusutilstest/MainnetTest.java b/src/test/java/org/torusresearch/torusutilstest/MainnetTest.java index 617e0d2..e31ae80 100644 --- a/src/test/java/org/torusresearch/torusutilstest/MainnetTest.java +++ b/src/test/java/org/torusresearch/torusutilstest/MainnetTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test; import org.torusresearch.fetchnodedetails.FetchNodeDetails; import org.torusresearch.fetchnodedetails.types.NodeDetails; -import org.torusresearch.fetchnodedetails.types.TorusNetwork; +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork; import org.torusresearch.torusutils.TorusUtils; import org.torusresearch.torusutils.types.RetrieveSharesResponse; import org.torusresearch.torusutils.types.TorusCtorOptions; @@ -50,7 +50,7 @@ public class MainnetTest { @BeforeAll static void setup() throws IOException, NoSuchAlgorithmException, InvalidKeySpecException { System.out.println("Setup Starting"); - fetchNodeDetails = new FetchNodeDetails(TorusNetwork.MAINNET); + fetchNodeDetails = new FetchNodeDetails(Web3AuthNetwork.MAINNET); TorusCtorOptions opts = new TorusCtorOptions("Custom", "YOUR_CLIENT_ID"); opts.setNetwork("mainnet"); torusUtils = new TorusUtils(opts); diff --git a/src/test/java/org/torusresearch/torusutilstest/OneKeyTest.java b/src/test/java/org/torusresearch/torusutilstest/OneKeyTest.java index 46677ba..109306a 100644 --- a/src/test/java/org/torusresearch/torusutilstest/OneKeyTest.java +++ b/src/test/java/org/torusresearch/torusutilstest/OneKeyTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test; import org.torusresearch.fetchnodedetails.FetchNodeDetails; import org.torusresearch.fetchnodedetails.types.NodeDetails; -import org.torusresearch.fetchnodedetails.types.TorusNetwork; +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork; import org.torusresearch.torusutils.TorusUtils; import org.torusresearch.torusutils.types.RetrieveSharesResponse; import org.torusresearch.torusutils.types.TorusCtorOptions; @@ -50,7 +50,7 @@ public class OneKeyTest { @BeforeAll static void setup() throws ExecutionException, InterruptedException, IOException, NoSuchAlgorithmException, InvalidKeySpecException { System.out.println("Setup Starting"); - fetchNodeDetails = new FetchNodeDetails(TorusNetwork.TESTNET); + fetchNodeDetails = new FetchNodeDetails(Web3AuthNetwork.TESTNET); TorusCtorOptions opts = new TorusCtorOptions("Custom", "YOUR_CLIENT_ID"); opts.setNetwork("testnet"); opts.setEnableOneKey(true); diff --git a/src/test/java/org/torusresearch/torusutilstest/TorusUtilsTest.java b/src/test/java/org/torusresearch/torusutilstest/TorusUtilsTest.java index 4f7e800..e41b7b3 100644 --- a/src/test/java/org/torusresearch/torusutilstest/TorusUtilsTest.java +++ b/src/test/java/org/torusresearch/torusutilstest/TorusUtilsTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test; import org.torusresearch.fetchnodedetails.FetchNodeDetails; import org.torusresearch.fetchnodedetails.types.NodeDetails; -import org.torusresearch.fetchnodedetails.types.TorusNetwork; +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork; import org.torusresearch.torusutils.TorusUtils; import org.torusresearch.torusutils.types.RetrieveSharesResponse; import org.torusresearch.torusutils.types.TorusCtorOptions; @@ -50,7 +50,7 @@ public class TorusUtilsTest { @BeforeAll static void setup() throws ExecutionException, InterruptedException, IOException, NoSuchAlgorithmException, InvalidKeySpecException { System.out.println("Setup Starting"); - fetchNodeDetails = new FetchNodeDetails(TorusNetwork.TESTNET); + fetchNodeDetails = new FetchNodeDetails(Web3AuthNetwork.TESTNET); TorusCtorOptions opts = new TorusCtorOptions("Custom", "YOUR_CLIENT_ID"); opts.setNetwork("testnet"); torusUtils = new TorusUtils(opts);