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

cache blueprint bytecode in VyperBlueprint #116

Open
bout3fiddy opened this issue Dec 24, 2023 · 2 comments
Open

cache blueprint bytecode in VyperBlueprint #116

bout3fiddy opened this issue Dec 24, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bout3fiddy
Copy link
Collaborator

Currently, blueprint bytecode is not stored:

blueprint_bytecode = blueprint_preamble + compiler_data.bytecode

Storing it as a cached object will instantiate a VyperBlueprint object without deploying it to prod. This cached blueprint bytecode can be used for create2 or create3 related deployment methods, which offer deterministic deployment addresses.

@bout3fiddy bout3fiddy added enhancement New feature or request good first issue Good for newcomers labels Dec 24, 2023
@Shivu7889
Copy link

I can do it can you please grant me permission

@charles-cooper
Copy link
Member

Currently, blueprint bytecode is not stored:

blueprint_bytecode = blueprint_preamble + compiler_data.bytecode

Storing it as a cached object will instantiate a VyperBlueprint object without deploying it to prod. This cached blueprint bytecode can be used for create2 or create3 related deployment methods, which offer deterministic deployment addresses.

hmm i see, i think this kind of functionality belongs best on VyperDeployer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants