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

Parachain Relayer V2 #1321

Open
wants to merge 23 commits into
base: vincent/v2
Choose a base branch
from
Open

Parachain Relayer V2 #1321

wants to merge 23 commits into from

Conversation

yrong
Copy link
Contributor

@yrong yrong commented Oct 22, 2024

Fee types.U128
Nonce uint64
BlockNumber uint32
Fee big.Int
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you use types.UCompact then you won't need to write a custom decoder.

Parachain config.ParachainConfig `mapstructure:"parachain"`
Ethereum config.EthereumConfig `mapstructure:"ethereum"`
Contracts SourceContractsConfig `mapstructure:"contracts"`
Beacon beaconconf.BeaconConfig `mapstructure:"beacon"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does the parachain relayer need the beacon config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

return fmt.Errorf("get block header: %w", err)
}

proof, err := relay.beaconHeader.FetchExecutionProof(*blockHeader.ParentBeaconRoot, false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generate delivery proof

* Update contracts for smoke tests

* Remove unused

* Decode test

* Update subxt
@yrong
Copy link
Contributor Author

yrong commented Nov 6, 2024

image image

Tested E2E flow register PNA work as expected.

@yrong yrong marked this pull request as ready for review November 6, 2024 12:55
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.

3 participants