vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
251 stars 49 forks source link

BoaIP: cache deployments #231

Closed bout3fiddy closed 4 months ago

bout3fiddy commented 4 months ago

currently while deploying complex infra, if RPC borks mid way, one would need to manually omit already deployed contracts.

boa needs a way to cache deployments such that:

  1. source code hash as key
  2. value pair is (tx_hash, contract address) tuple

if rpc borks but we have tx hash, in the next run only fetch contract address iff source code hash is the same.

if source code hash changes, just do a new deployment

charles-cooper commented 4 months ago

kind of a dup of https://github.com/vyperlang/titanoboa/issues/82, leaving it open though since is a more fleshed out spec