Skip to content

[EPIC] Biznaga: Integration of testnet with staking contracts#1327

Merged
KPrasch merged 67 commits intomasterfrom
biznaga
Oct 25, 2019
Merged

[EPIC] Biznaga: Integration of testnet with staking contracts#1327
KPrasch merged 67 commits intomasterfrom
biznaga

Conversation

@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #1327 into master will increase coverage by 0.11%.
The diff coverage is 84.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1327      +/-   ##
==========================================
+ Coverage   83.84%   83.96%   +0.11%     
==========================================
  Files          72       72              
  Lines       10829    11170     +341     
==========================================
+ Hits         9080     9379     +299     
- Misses       1749     1791      +42
Impacted Files Coverage Δ
nucypher/characters/control/emitters.py 90% <ø> (ø) ⬆️
nucypher/blockchain/eth/interfaces.py 71.04% <100%> (+0.31%) ⬆️
nucypher/blockchain/eth/constants.py 100% <100%> (ø) ⬆️
nucypher/blockchain/eth/utils.py 67.39% <100%> (+4.89%) ⬆️
nucypher/blockchain/eth/token.py 89.92% <100%> (+0.24%) ⬆️
nucypher/blockchain/eth/decorators.py 91.07% <100%> (+16.07%) ⬆️
nucypher/utilities/sandbox/constants.py 98.43% <100%> (+0.02%) ⬆️
nucypher/blockchain/eth/clients.py 63.66% <12.5%> (-1.15%) ⬇️
nucypher/cli/actions.py 74.28% <59.09%> (-0.21%) ⬇️
nucypher/crypto/powers.py 92% <60%> (-2.58%) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12ec0b6...a2b4cc9. Read the comment docs.

@cygnusv cygnusv force-pushed the biznaga branch 3 times, most recently from af36d91 to 0df10c3 Compare October 7, 2019 10:07
@cygnusv cygnusv changed the title [WIP][EPIC] Biznaga: Integration of testnet with staking contracts [EPIC] Biznaga: Integration of testnet with staking contracts Oct 22, 2019
@cygnusv cygnusv marked this pull request as ready for review October 22, 2019 13:06
Fix conflicts in nucypher stake and nucypher-deploy
Copy link
Member

@mswilkison mswilkison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

emitter.echo(row, color='red')
emitter.echo('') # newline
elif not active_stakes:
emitter.echo(f"There are no active stakes\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify our logic here - we only log There are no active stakes if there are no active stakes AND paint_inactive is false.

If there are no active stakes but paint_inactive is true, then we don't log?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L420 loops over non-active stakes. So if paint_inactive is True then it prints any existing non-active stake.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies if I'm missing something here.

Is it the case that the stakes parameter always has at least one stake in it? If stakes is empty, but paint_inactive is True, we will print the following:

========= Inactive Stakes ============
<---- headers----->
------|-------| ....

with no stakes listed, correct? So we show empty Inactive Stakes titled section?

Copy link
Member Author

@cygnusv cygnusv Oct 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. Well, we have an open issue for this command option (#1436), we can rethink this there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
@mswilkison mswilkison added this to the Incentivized Testnet milestone Oct 24, 2019
@vzotova vzotova mentioned this pull request Oct 24, 2019
staking_agent = ContractAgency.get_agent(StakingEscrowAgent, registry=registry) # type: StakingEscrowAgent

try:
economics = TokenEconomicsFactory.get_economics(registry=registry)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@KPrasch KPrasch merged commit 88d5d38 into master Oct 25, 2019
@jMyles jMyles deleted the biznaga branch February 24, 2020 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

7 participants