|
@@ -10,6 +10,7 @@ namespace HyperCube.Models
|
|
{
|
|
{
|
|
public class Blockchain
|
|
public class Blockchain
|
|
{
|
|
{
|
|
|
|
+ public static Dictionary<int, Blockchain> supported;
|
|
public static string Connected
|
|
public static string Connected
|
|
{
|
|
{
|
|
get {
|
|
get {
|
|
@@ -19,6 +20,7 @@ namespace HyperCube.Models
|
|
return "none";
|
|
return "none";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ public static int selectedNum;
|
|
public static string URLdefault = "127.0.0.1";
|
|
public static string URLdefault = "127.0.0.1";
|
|
public static int defaultPort = 8545;
|
|
public static int defaultPort = 8545;
|
|
public static string defaultName = "Ethereum dev network";
|
|
public static string defaultName = "Ethereum dev network";
|
|
@@ -33,6 +35,11 @@ namespace HyperCube.Models
|
|
public string name;
|
|
public string name;
|
|
static Blockchain instance;
|
|
static Blockchain instance;
|
|
|
|
|
|
|
|
+ public static void RegisterNetworks()
|
|
|
|
+ {
|
|
|
|
+ //Initialize(name, url, port)
|
|
|
|
+ }
|
|
|
|
+
|
|
public static Blockchain GetInstance()
|
|
public static Blockchain GetInstance()
|
|
{
|
|
{
|
|
if (instance == null)
|
|
if (instance == null)
|