Skip to content

Commit

Permalink
buybitcoin: Deprecate command
Browse files Browse the repository at this point in the history
  • Loading branch information
elihaims committed Feb 8, 2017
1 parent 4294fa3 commit 5c89273
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 352 deletions.
2 changes: 0 additions & 2 deletions two1/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from two1.commands.util import wallet as wallet_utils
from two1.commands.util import account as account_utils
from two1.commands.buy import buy
from two1.commands.buybitcoin import buybitcoin
from two1.commands.doctor import doctor
from two1.commands.mine import mine
from two1.commands.log import log
Expand Down Expand Up @@ -168,7 +167,6 @@ def main(ctx, config_file, config_pairs, debug, mock_requests):
sys.exit(1)

main.add_command(buy)
main.add_command(buybitcoin)
main.add_command(channels)
main.add_command(doctor)
main.add_command(earn)
Expand Down
283 changes: 0 additions & 283 deletions two1/commands/buybitcoin.py

This file was deleted.

1 change: 0 additions & 1 deletion two1/commands/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def help(ctx, detail):
Get bitcoin
-----------
21 faucet # Request bitcoin from 21 faucet
21 buybitcoin # Buy bitcoin via Coinbase
21 status # View your current bitcoin balance
21 log # See all past purchases and earnings
\b
Expand Down
68 changes: 2 additions & 66 deletions two1/commands/util/uxstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,68 +201,6 @@ class UxString:
doctor_error = click.style(" Error: ", fg='red')
doctor_total = click.style("Summary", fg='yellow')

# buybitcoin
minimum_bitcoin_purchase = click.style("The minimum bitcoin purchase is $2.", fg="red")
exchange_info_header = click.style("\nExchange Info", fg="magenta")
exchange_info = " Exchange Name : {}\n" \
" Exchange Username : {}\n" \
" Linked Exchange Wallet : {}\n" \
" Linked Payment Method : {}\n"
buybitcoin_instruction_header = click.style("Buying Bitcoin:", fg="magenta")
buybitcoin_instructions = " Use " + click.style("21 buybitcoin", bold=True) +\
" to buy k satoshis from {}.\n" +\
" Purchased bitcoin will automatically appear in your 21 wallet.\n\n"
buybitcoin_pairing = \
"To buy bitcoin, you need to pair your 21 and {} account.\n\n" + \
"If you haven't done this yet, create a password for your account by " \
"executing " + click.style("21 login --setpassword", bold=True) + \
"\nThen go to http://21.co/{}/config/coinbase/ in your " + \
"browser to complete the pairing.\n"
buybitcoin_no_payment_method = \
"To add a payment method to {}, go to {}."
buybitcoin_confirmation = "\nYou are about to withdraw {} from the bank connected to your " \
"Coinbase account to buy {}.\n" \
"{} includes {}\n" \
"Your bitcoin will be deposited to your local wallet.\n"
buybitcoin_confirmation_prompt = "Are you sure you want to continue with this purchase?"
buybitcoin_error = click.style("Error:", bold=True, fg="red") + " {}"
buybitcoin_success = click.style("\nYou have successfully bought ", fg="magenta") +\
click.style("{} ", fg="magenta", bold=True) +\
click.style("for", fg="magenta") +\
click.style(" {}.\n", bold=True, fg="magenta")

buybitcoin_success_payout_time = "Your bitcoin will be deposited to your 21 wallet on {}."
buybitcoin_success_instant = "Your bitcoin will be deposited to your 21 wallet in the next " \
"few minutes."

coinbase_purchase_in_progress = "\nPurchasing bitcoin from Coinbase...\n"

coinbase_deposit_type_mapping = {"WALLET": "your Blockchain balance",
"TO_BALANCE": "your 21.co buffer"}
coinbase_wallet_completed = "The bitcoin you bought at Coinbase was deposited to your wallet on {}"
coinbase_21_completed = "The bitcoin you bought at Coinbase was added to your on-chain balance. " \
"Around {}, {} BTC amount were withdrawn from your " \
"Coinbase wallet for this purchase."

coinbase_wallet_pending = "The bitcoin you bought at Coinbase will be deposited to your wallet around {}"
coinbase_21_pending = "The bitcoin you bought at Coinbase was added to your on-chain balance immediately. " \
"Around {}, {} BTC will be withdrawn from your Coinbase wallet for this " \
"purchase."

coinbase_history_title = click.style("[21 Bitcoin Purchase History]\n", bold=True, fg="magenta")
coinbase_no_bitcoins_purchased = "[No purchases yet]"
coinbase_history = click.style(
"{} : {} bitcoin from your Coinbase to {}.\n",
fg="cyan") + "Description: {}"
coinbase_quote_price_satoshis = "The current price for {} {} is {} {}."
coinbase_quote_price_dollars = "You can get {} {} for {} {}."
coinbase_max_buy_reached = click.style(
"You have reached the daily maximum for Bitcoin purchases. Please try again in a few "
"hours.", fg="red")
coinbase_amount_too_high = click.style(
"The amount you entered is too high. The maximum daily bitcoin purchase limit "
"is 100 USD.", fg="red")

# earning
use_21_earn_instead = click.style(
"21 mine only works on Bitcoin Computers. Try 21 earn, 21 faucet, or 21 sell instead.",
Expand Down Expand Up @@ -322,10 +260,8 @@ class UxString:
"Please try again in 30 days."

mining_bitcoin_computer_needed = click.style(
"You need a 21 Bitcoin Computer (21.co/buy) to access this service. \nYou can use ", fg="red") +\
click.style("21 buybitcoin", bold=True, fg="red") +\
click.style(" to add Bitcoins to your account instead. \nIf you believe you have received this ", fg="red") +\
click.style("message in error, please contact [email protected].", fg="red")
"You need a 21 Bitcoin Computer (21.co/buy) to access this service. \nIf you believe you have ", fg="red") +\
click.style("received this message in error, please contact [email protected].", fg="red")

mining_profile_call_to_action = click.style(
"You can earn more bitcoin by responding to messages after configuring your public "
Expand Down

0 comments on commit 5c89273

Please sign in to comment.