ApeWorX / ape-vyper

Vyper compiler plugin for the Ape Framework, using VVM
https://www.apeworx.io/
Apache License 2.0
26 stars 9 forks source link

feature request: allow `evm_version` to be set per network [APE-1045] #86

Open bout3fiddy opened 1 year ago

bout3fiddy commented 1 year ago

Overview

in ape-config.yaml, allow user to do:

vyper:
    evm_version: shanghai
    arbitrum:
         evm_version: paris
antazoey commented 1 year ago

the first part of this already should work:

vyper:
  evm_version: shanghai

let me know if it doesnt but it was added here: https://github.com/ApeWorX/ape-vyper/commit/b75ee5de0c2e8101f4aaf5bd3b1dc4ceb45d4869

the second part is a valid refactor request though, however it may look like:

vyper:
  # evm_version: this works but will set it for all ecosystems
  ethereum:
    mainnet:
      evm_version: shanghai
  arbitrum:
    mainnet:
      evm_version: paris
antazoey commented 1 year ago

when using the ecosystem approach, we'd have to cache artifacts accordingly and for each custom settings (because technically you can compile w/o being connected anywhere..

this might take more thought but i can see why this is much needed