Beispiel #1
0
def twig_deployer(compiler, w3):
    # Return a Deployer containing all .vy contracts found
    sources = compiler.get_source_tree()
    contract_types = compiler.get_contract_types()
    pkg = b.build(b.init_manifest("twig", "1.0.0"), *sources, *contract_types,
                  b.as_package(w3))
    return Deployer(pkg)
Beispiel #2
0
def test_builder_simple_with_package(w3):
    package = build(
        {},
        package_name("package"),
        manifest_version("2"),
        version("1.0.0"),
        as_package(w3),
    )
    assert isinstance(package, Package)
    assert package.version == "1.0.0"