Conversation
Codecov Report
@@ Coverage Diff @@
## main #2170 +/- ##
==========================================
+ Coverage 80.11% 83.89% +3.78%
==========================================
Files 103 103
Lines 15172 15188 +16
==========================================
+ Hits 12155 12742 +587
+ Misses 3017 2446 -571
Continue to review full report at Codecov.
|
320d741 to
a46da6c
Compare
nucypher/blockchain/eth/agents.py
Outdated
|
|
||
| self.log = Logger(self.__class__.__name__) | ||
| self.registry = registry | ||
| self.registry_repr = str(registry) |
There was a problem hiding this comment.
Heh - slightly confusion name here - since str calls __str__ and not _repr__.
nucypher/cli/commands/stake.py
Outdated
| @group_staker_options | ||
| @option_config_file | ||
| @click.option('--all', help="List all stakes, including unlocked", is_flag=True) | ||
| @click.option('--show-all', help="List all stakes, including unlocked and inactive", is_flag=True) |
There was a problem hiding this comment.
I find "show" to be a bit pedantic here and prefer simply --all. There is an additional kwarg for click options to map to an alias to avoid name-shadowing the all function here.
tests/unit/test_registry_basics.py
Outdated
| test_registry.search(contract_address=test_addr) | ||
|
|
||
| # Check id of new registry with the same content | ||
| new_registry = InMemoryContractRegistry() # TODO finish this |
There was a problem hiding this comment.
This TODO Needs an Issue to track?
There was a problem hiding this comment.
forgot to remove this
✔️
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: K Prasch <kieranprasch@gmail.com>
1aeadfa to
a4a88a3
Compare
| start_of_period=True) | ||
| enactment = start_datetime.local_datetime().strftime("%b %d %Y") | ||
| termination = unlock_datetime.local_datetime().strftime("%b %d %Y") | ||
| search = f"{index}\\s+│\\s+" \ |
There was a problem hiding this comment.
👍 Sufficiently generic to remain flexible
| from web3.types import TxReceipt | ||
|
|
||
| from constant_sorrow.constants import FULL, NO_WORKER_BONDED, WORKER_NOT_RUNNING | ||
| from constant_sorrow.constants import FULL, WORKER_NOT_RUNNING |
nucypher/cli/painting/staking.py
Outdated
| emitter.echo(snippet_with_line, bold=True) | ||
| emitter.echo(f"Staker {staker.checksum_address} ════", bold=True, color='red' if missing else 'green') | ||
| emitter.echo(f"Worker {staker.worker_address} ════") | ||
| worker = staker.worker_address if staker.worker_address != NULL_ADDRESS else 'NO_WORKER_BONDED' |
There was a problem hiding this comment.
| worker = staker.worker_address if staker.worker_address != NULL_ADDRESS else 'NO_WORKER_BONDED' | |
| worker = staker.worker_address if staker.worker_address != NULL_ADDRESS else 'not bonded' |
So in the next line it's printed Worker not bonded instead of Worker NO_WORKER_BONDED.
There was a problem hiding this comment.
I left NO_WORKER_BONDED only to not change all documentation, but if you think it worth it - then I'll do that
There was a problem hiding this comment.
Don't worry to change the documentation, the change is too small to justify perfect consistency. We can also leave as it is and merge. As you prefer.
…NULL_ADDRESS instead
…ight immutability of agents
Co-authored-by: K Prasch <kieranprasch@gmail.com> Co-authored-by: David Núñez <david@nucypher.com>
a4a88a3 to
bfa2da2
Compare
Fixes #2114
Fixes #1739
Fixes #1436
Fixes #2066
Fixes #1545