Exemplo n.º 1
0
 public static IMatic GetMatic()
 {
     if (matic == null)
     {
         matic = new Matic(Settings.MATIC_PROVIDER, Settings.PARENT_PROVIDER, Settings.SYNCER_URL, Settings.WATCHER_URL, Settings.ROOTCHAIN_ADDRESS, Settings.MATICWETH_ADDRESS, Settings.WITHDRAWMANAGER_ADDRESS, Settings.DEPOSITMANAGER_ADDRESS);
         matic.SetPrivateKey(Settings.PRIVATE_KEY);
     }
     return(matic);
 }
Exemplo n.º 2
0
 public static IMatic GetMatic()
 {
     if (matic == null)
     {
         matic = new Matic(Setting1.MATIC_PROVIDER, Setting1.PARENT_PROVIDER);
         matic.SetPrivateKey(Setting1.PRIVATE_KEY);
     }
     return(matic);
 }