vyperlang/titanoboa

cache blueprint bytecode in VyperBlueprint

Open

#116 opened on Dec 24, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (75 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (312 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, blueprint bytecode is not stored:

https://github.com/vyperlang/titanoboa/blob/87593bb5c4d02bb8eaf4cc93e0e940ebf9a37900/boa/vyper/contract.py#L146

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.

Contributor guide