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

Block hash publisher #51

Closed
wants to merge 28 commits into from
Closed

Block hash publisher #51

wants to merge 28 commits into from

Conversation

cam-schultz
Copy link
Contributor

Why this should be merged

Adds a basic contract that verifies a block hash from another chain, and emits it in an event, using the subnet-evm features described in ava-labs/subnet-evm#734.

How this was tested

Copy link
Contributor

@geoff-vball geoff-vball left a comment

Choose a reason for hiding this comment

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

One question about the name of an error. Otherwise LGTM

contracts/src/Teleporter/TeleporterBlockHashReceiver.sol Outdated Show resolved Hide resolved
@michaelkaplan13
Copy link
Collaborator

Lets discuss whether or not we think these contracts belong in the teleporter repo. I understand the motivation (warp-related EVM contract), but it is the first time we'd be introducing contracts that don't relate to the TeleporterMessenger protocol.

Part of me thinks that the interface that the awm-relayer will call to deliver a block hash could live in the awm-relayer repo itself, and we could avoid any dependencies here.

Copy link
Contributor

@bernard-avalabs bernard-avalabs left a comment

Choose a reason for hiding this comment

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

Generally makes sense to me.

geoff-vball
geoff-vball previously approved these changes Oct 25, 2023
Copy link
Contributor

@geoff-vball geoff-vball left a comment

Choose a reason for hiding this comment

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

LGMT 👍

network_setup.go seems to be getting slightly unwieldy. I'll follow up this PR with a bit of a refactor that I've already mostly done in my native bridge branch. That way I can take it out of the native bridge PR to simplify it.

@geoff-vball geoff-vball dismissed their stale review November 21, 2023 16:16

Will need refactoring with new test code

@cam-schultz cam-schultz marked this pull request as draft December 6, 2023 15:05
@michaelkaplan13
Copy link
Collaborator

Closing this as stale, but the idea is still planned to be use as a part of ACP-108.

@michaelkaplan13 michaelkaplan13 deleted the block-hash-publisher branch August 9, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants