コード例 #1
0
ファイル: Cryptocurrency.cs プロジェクト: dovanduy/titan
        /// <summary>
        /// Use if you don't have Member object (need to get it from DB by address)
        /// </summary>
        /// <param name="provider"></param>
        /// <param name="address"></param>
        /// <param name="amountInCryptocurrency"></param>
        /// <param name="transactionHash"></param>
        /// <param name="cryptoCurrencyInfo"></param>
        /// <param name="confirmations"></param>
        public void TryDepositCryptocurrency(CryptocurrencyAPIProvider provider, string address, decimal amountInCryptocurrency,
                                             string transactionHash, string cryptoCurrencyInfo, int confirmations = 100)
        {
            Member User = new Member(BitcoinAddress.GetUserId(address, provider));

            TryDepositCryptocurrency(User, amountInCryptocurrency, transactionHash, cryptoCurrencyInfo, confirmations);

            //Blank the address
            BitcoinAddress.MakeBlank(User.Id, provider);
        }