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

Deploy fee contract with alloy #2547

Merged
merged 7 commits into from
Feb 6, 2025
Merged

Conversation

sveitser
Copy link
Collaborator

@sveitser sveitser commented Feb 6, 2025

Adds a few functions to deploy contracts with alloy and instantiate alloy bindings. These are generic and should also work for the other contracts. The functions are copies of the functions we had with minimal changes to work with alloy. Added the _alloy suffix, and types and lifetimes fixed to please compiler.

Note: the fee contract ethers bindings are still used in Espresso bridge, to migrate the bridge code we need to also create a version of EthSignatureKey that uses alloy types.

Part of #2535

Adds a few functions to deploy contracts with alloy and instantiate
alloy bindings.

Note: the fee contract ethers bindings are still used in Espresso
bridge, to migrate the bridge code we need to also create a version of
EthSignatureKey that uses alloy types.
@sveitser sveitser requested a review from rob-maron February 6, 2025 04:01
@sveitser sveitser marked this pull request as ready for review February 6, 2025 04:06
@sveitser sveitser marked this pull request as draft February 6, 2025 07:10
Apparently we need to add some fillers for alloy to build a usable
contract transactions. Otherwise fields like from or nonce are missing.
The permissioned stake table was not being deployed because its address
was read from the env var. Due to changing transaction counts this then
changed the light client contract address. I'm not quite sure why this
only caused issues now.

- Remove some mentions of the long gone hotshot contract.
@sveitser sveitser marked this pull request as ready for review February 6, 2025 08:14
@sveitser
Copy link
Collaborator Author

sveitser commented Feb 6, 2025

Demo consistency CI failure is expected because something needed fixing in the process-compose but since docker compose doesn't load env vars by default it's not affected.

We need to remember to set low polling intervals when we're talking to
anvil, otherwise it's set to 7 seconds or something like that. I think
alloy has some logic to handle this automatically.
@sveitser sveitser merged commit ccfc08c into main Feb 6, 2025
23 of 24 checks passed
@sveitser sveitser deleted the ma/migrate-fee-contract-to-alloy branch February 6, 2025 15:23
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.

2 participants