mirror of https://github.com/nucypher/nucypher.git
Don't use emitter.message() unless you want to print to the logs too.
parent
14913879ad
commit
e7b15c3d95
|
@ -165,7 +165,7 @@ def claim(general_config, worklock_options, registry_options, force):
|
|||
worklock_options.bidder_address = select_client_account(emitter=emitter,
|
||||
provider_uri=general_config.provider_uri)
|
||||
if not force:
|
||||
emitter.message("Note: Claiming WorkLock NU tokens will initialize a new stake.", color='blue')
|
||||
emitter.echo("Note: Claiming WorkLock NU tokens will initialize a new stake.", color='blue')
|
||||
click.confirm(f"Continue worklock claim for bidder {worklock_options.bidder_address}?", abort=True)
|
||||
emitter.message("Submitting Claim...")
|
||||
registry = registry_options.get_registry(emitter, general_config.debug)
|
||||
|
@ -187,7 +187,7 @@ def remaining_work(general_config, worklock_options, registry_options):
|
|||
registry = registry_options.get_registry(emitter, general_config.debug)
|
||||
bidder = worklock_options.create_bidder(registry=registry)
|
||||
_remaining_work = bidder.remaining_work
|
||||
emitter.message(f"Work Remaining for {worklock_options.bidder_address}: {_remaining_work}")
|
||||
emitter.echo(f"Work Remaining for {worklock_options.bidder_address}: {_remaining_work}")
|
||||
return # Exit
|
||||
|
||||
|
||||
|
|
|
@ -851,7 +851,7 @@ Slowing Refund .... {worklock_agent.contract.functions.SLOWING_REFUND().call()}
|
|||
Refund Rate ....... {worklock_agent.get_refund_rate()}
|
||||
Deposit Rate ...... {worklock_agent.get_deposit_rate()}
|
||||
"""
|
||||
emitter.message(payload)
|
||||
emitter.echo(payload)
|
||||
return
|
||||
|
||||
|
||||
|
@ -865,7 +865,7 @@ Completed Work ....... {bidder.completed_work}
|
|||
Remaining Work ....... {bidder.remaining_work}
|
||||
Refunded Work ........ {bidder.refunded_work}
|
||||
"""
|
||||
emitter.message(message)
|
||||
emitter.echo(message)
|
||||
return
|
||||
|
||||
|
||||
|
@ -898,7 +898,7 @@ def paint_bidding_notice(emitter, bidder):
|
|||
|
||||
Accept worklock terms and node operator obligation?"""
|
||||
|
||||
emitter.message(obligation)
|
||||
emitter.echo(obligation)
|
||||
return
|
||||
|
||||
|
||||
|
@ -918,4 +918,4 @@ Create a stake with your allocation contract:
|
|||
Bond a worker to your stake: 'nucypher stake set-worker --worker-address <WORKER ADDRESS>'
|
||||
|
||||
"""
|
||||
emitter.message(message, color='green')
|
||||
emitter.echo(message, color='green')
|
||||
|
|
Loading…
Reference in New Issue