Ejemplo n.º 1
0
def deploy(module_isolation):
    run('deployment')
    wltBadgerTeam = accounts[0]
    wltUserA = accounts[1]
    wltUserB = accounts[2]
    ctrFaucet = Faucet[0]
    ctrBadgerLpToken = BrownieWrap_Token[0]
Ejemplo n.º 2
0
def main():
    args = docopt(__doc__)
    update_argv_from_docopt(args)
    project.load()
    network.connect(ARGV['network'])
    run(args['<filename>'],
        args['<function>'] or "main",
        gas_profile=ARGV['gas'])
Ejemplo n.º 3
0
def main():
    args = docopt(__doc__)
    _update_argv_from_docopt(args)

    if project.check_for_project():
        active_project = project.load()
        active_project.load_config()
        print(f"{active_project._name} is the active project.")
    else:
        raise ProjectNotFound

    network.connect(ARGV["network"])

    run(args["<filename>"], method_name=args["<function>"] or "main")
    if ARGV["gas"]:
        _print_gas_profile()
Ejemplo n.º 4
0
def main():
    args = docopt(__doc__)
    update_argv_from_docopt(args)

    if project.check_for_project():
        active_project = project.load()
        active_project.load_config()
        print(f"{active_project._name} is the active project.")
    else:
        active_project = None
        print("No project was loaded.")

    network.connect(ARGV['network'])

    run(args['<filename>'],
        method_name=args['<function>'] or "main",
        project=active_project)
    if ARGV['gas']:
        print_gas_profile()