diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index ed2fd02..f5bcd17 100755 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -65,7 +65,7 @@ def coro(f): return wrapper -@cli.command("mint", help="Mint tokens.") +@cli.command("mint", help="Mint coins.") @click.argument("amount", type=int) @click.option("--hash", default="", help="Hash of the paid invoice.", type=str) @click.pass_context @@ -99,9 +99,9 @@ async def balance(ctx): wallet.status() -@cli.command("send", help="Send tokens.") +@cli.command("send", help="Send coins.") @click.argument("amount", type=int) -@click.option("--lock", "-l", default=None, help="Token lock (P2SH address).", type=str) +@click.option("--lock", "-l", default=None, help="Coin lock (P2SH address).", type=str) @click.pass_context @coro async def send(ctx, amount: int, lock: str): @@ -116,21 +116,19 @@ async def send(ctx, amount: int, lock: str): wallet.status() _, send_proofs = await wallet.split_to_send(wallet.proofs, amount, lock) await wallet.set_reserved(send_proofs, reserved=True) - token = await wallet.serialize_proofs( + coin = await wallet.serialize_proofs( send_proofs, hide_secrets=True if lock and not p2sh else False ) - print(token) + print(coin) wallet.status() -@cli.command("receive", help="Receive tokens.") -@click.argument("token", type=str) -# @click.option("--secret", "-s", default=None, help="Token secret.", type=str) +@cli.command("receive", help="Receive coins.") +@click.argument("coin", type=str) @click.option("--unlock", "-u", default=None, help="Unlock script.", type=str) -# @click.option("--signature", default=None, help="Script signature.", type=str) @click.pass_context @coro -async def receive(ctx, token: str, unlock: str): +async def receive(ctx, coin: str, unlock: str): wallet: Wallet = ctx.obj["WALLET"] wallet.load_mint() wallet.status() @@ -140,55 +138,27 @@ async def receive(ctx, token: str, unlock: str): ), "unlock format wrong, expected