Example #1
0
 public BetData Bet(int squaer)
 {
     try
     {
         this.PrepRequest("https://satoshimines.com/action/checkboard.php");
         return(Satoshi.Deserialize <BetData>(this.getPostResponce(Encoding.UTF8.GetBytes(string.Format("game_hash={0}&guess={1}&v04=1", (object)this.Data.game_hash, (object)squaer)))));
     }
     catch
     {
         return((BetData)null);
     }
 }
Example #2
0
        public void NewGame(int mines, Decimal betSatoshi)
        {
            try
            {
                this.PrepRequest("https://satoshimines.com/action/newgame.php");

                string postResponce = this.getPostResponce(Encoding.UTF8.GetBytes(string.Format("player_hash={0}&bet={1}&num_mines={2}&bd={3}", (object)this.PlayerHash, (object)(betSatoshi / new Decimal(1000000)).ToString("0.000000", (IFormatProvider) new CultureInfo("en-US")), (object)mines, (object)"12")));
                this.Data    = Satoshi.Deserialize <GameData>(WebUtility.HtmlDecode(postResponce));
                this.message = postResponce;
            }
            catch (Exception ex)
            {
                this.Data = (GameData)null;
            }
        }
Example #3
0
 public DepositData GetDepositData()
 {
     if (this._lastDepositData != null && this._lastDepositData.status == "success")
     {
         return(this._lastDepositData);
     }
     try
     {
         this.PrepRequest("https://satoshimines.com/action/getaddr.php");
         return(Satoshi.Deserialize <DepositData>(this.getPostResponce(Encoding.UTF8.GetBytes(string.Format("secret={0}", (object)this.PlayerHash)))));
     }
     catch
     {
         return((DepositData)null);
     }
 }
Example #4
0
        public CashOutData CashOut()
        {
            try
            {
                this.PrepRequest("https://satoshimines.com/action/cashout.php");
                var data = this.getPostResponce(Encoding.UTF8.GetBytes(string.Format("game_hash={0}", (object)this.Data.game_hash)));

                var rData = Satoshi.Deserialize <CashOutData>(data);
                using (StreamWriter w = File.AppendText("log.html"))
                {
                    Log("<a target='_blank' href='https://satoshimines.com/s/" + rData.game_id + "/" + rData.random_string + "/'>https://satoshimines.com/s/" + rData.game_id + "/" + rData.random_string + "/</a><br/>", w);
                }
                return(rData);
            }
            catch
            {
                return((CashOutData)null);
            }
        }