Skip to content

Improvements to state synchronization bridge#102

Merged
cygnusv merged 8 commits intonucypher:developmentfrom
cygnusv:sync
Sep 8, 2023
Merged

Improvements to state synchronization bridge#102
cygnusv merged 8 commits intonucypher:developmentfrom
cygnusv:sync

Conversation

@cygnusv
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

# Parameter defaults
admin = admin or deployer
rate = rate or 1
timeout = timeout or 60*60
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

child_address,
sender=deployer,
publish=DEPLOYMENTS_CONFIG.get("verify"),
publish=False,
Copy link
Copy Markdown
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
Copy Markdown
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
@cygnusv
Copy link
Copy Markdown
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