Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to state synchronization bridge #102

Merged
merged 8 commits into from
Sep 8, 2023

Conversation

cygnusv
Copy link
Member

@cygnusv cygnusv commented Jul 25, 2023

  • Some minor improvements to the ETH<->Polygon sync contracts
  • Deployment script for new coordinator

@cygnusv cygnusv changed the base branch from main to threshold-app July 25, 2023 15:12
root = deploy_eth_contracts(deployer)
child, stake_info = deploy_polygon_contracts(deployer)
child, _ = deploy_polygon_contracts(deployer)
root = deploy_eth_contracts(deployer, child.address, taco_app)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need taco_app? is this the source?

@vzotova vzotova force-pushed the threshold-app branch 2 times, most recently from b2a2428 to 3759907 Compare July 26, 2023 11:22
polygon_child = project.PolygonChild.deploy(
DEPLOYMENTS_CONFIG.get("fx_child"),
stake_info = project.StakeInfo.deploy(
[deployer.address, polygon_child.address],
Copy link
Contributor

Choose a reason for hiding this comment

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

polygon_child hasn't been deployed yet - need to set this address later

contracts/xchain/PolygonChild.sol Show resolved Hide resolved
# Parameter defaults
admin = admin or deployer
rate = rate or 1
timeout = timeout or 60*60
Copy link
Member

Choose a reason for hiding this comment

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

To confirm, this is our default ritual timeout which is 1hr.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put those defaults into @click.option(..., defaults=...) or ape-config.yaml?

Comment on lines +26 to +29
stake_info.stakingProviderFromOperator("0xAe87D865F3A507185656aD0ef52a8E0B9f3d58f8")
)
print(
stake_info.stakingProviderFromOperator("0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600")
Copy link
Member

Choose a reason for hiding this comment

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

Where are these addresses obtained from?

sender=deployer,
publish=DEPLOYMENTS_CONFIG.get("verify"),
publish=False,
Copy link
Member

Choose a reason for hiding this comment

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

Should we be getting this value from the config (verify)? Same for deploy_polygon_contracts below?

Or is it that we never publish? If so, how come?

Copy link
Member

@vzotova vzotova left a comment

Choose a reason for hiding this comment

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

Some changes updated in following PR, considering this - LGTM

@cygnusv cygnusv merged commit 0a688b5 into nucypher:development Sep 8, 2023
2 checks passed
@cygnusv
Copy link
Member Author

cygnusv commented Sep 8, 2023

Merged to development by accident, but since #114 was merged to main and included these commits anyway, no harm done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants