22 verification_key_file: str) ->
None:
24 Deploy the zecale dispatcher contract.
27 cmd_ctx: CommandContext = ctx.obj
28 aggregator_config = cmd_ctx.get_aggregator_configuration()
29 snark = aggregator_config.wrapper_snark
30 pp = aggregator_config.wrapper_pairing_parameters
31 (eth_addr, eth_private_key) = cmd_ctx.get_eth_key_and_address()
37 web3 = cmd_ctx.get_web3()
38 _dispatcher, dispatcher_instance = DispatcherContract.deploy(
39 web3, snark, pp, vk, eth_addr, eth_private_key)
42 with open(cmd_ctx.instance_file,
"w")
as instance_f:
43 json.dump(dispatcher_instance.to_json_dict(), instance_f)