Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Functions
zeth.helper.zeth_helper Namespace Reference

Functions

None help (Context ctx)
 
None zeth_helper (Context ctx, str eth_network)
 

Function Documentation

◆ help()

None zeth.helper.zeth_helper.help ( Context  ctx)
Print help and exit

Definition at line 22 of file zeth_helper.py.

22 def help(ctx: Context) -> None:
23  """
24  Print help and exit
25  """
26  # Note, this command is implemented to ensure that an error is raised if no
27  # subcommand is specified (which also catches errors in scripts).
28  print(ctx.parent.get_help()) # type: ignore
29  raise ClickException("no command specified")
30 
31 
32 @group(cls=DefaultGroup, default_if_no_args=True, default="help")
33 @option(
34  "--eth-network",
35  default=None,
36  help="Ethereum RPC endpoint, network or config file "
37  f"(default: '{ETH_NETWORK_FILE_DEFAULT}' if it exists, otherwise "
38  f"'{ETH_NETWORK_DEFAULT}')")
39 @pass_context

◆ zeth_helper()

None zeth.helper.zeth_helper.zeth_helper ( Context  ctx,
str  eth_network 
)

Definition at line 40 of file zeth_helper.py.

40 def zeth_helper(ctx: Context, eth_network: str) -> None:
41  if ctx.invoked_subcommand == "help":
42  ctx.invoke(help)
43  ctx.ensure_object(dict)
44  ctx.obj = {
45  "eth_network": eth_network,
46  }
47 
48 
49 zeth_helper.add_command(eth_gen_network_config)
50 zeth_helper.add_command(eth_gen_address)
51 zeth_helper.add_command(eth_get_balance)
52 zeth_helper.add_command(eth_fund)
53 zeth_helper.add_command(eth_send)
54 zeth_helper.add_command(eth_get_contract_address)
55 zeth_helper.add_command(token_approve)
56 zeth_helper.add_command(help)
57 
58 
zeth.helper.zeth_helper.help
None help(Context ctx)
Definition: zeth_helper.py:22
zeth.helper.zeth_helper.zeth_helper
None zeth_helper(Context ctx, str eth_network)
Definition: zeth_helper.py:40