Given a helper.vy module used by a main.vy contract:
# helper.vy
def foo():
pass
# main.vy
import helper
@external
def bar():
helper.foo()
A VyperContract doesn't have a way to access the foo method without:
- Using
.eval (slow)
- Using function injection (slow)
- Deploying the module standalone (not always possible if
uses is used)