Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains
0.5
Reference implementation of the Zecale protocol by Clearmatics
client
zecale
dummy_app
__main__.py
Go to the documentation of this file.
1
# Copyright (c) 2015-2022 Clearmatics Technologies Ltd
2
#
3
# SPDX-License-Identifier: LGPL-3.0+
4
5
6
from
zecale.dummy_app.deploy
import
deploy
7
from
zecale.dummy_app.get
import
get
8
from
zeth.cli.constants
import
ETH_NETWORK_FILE_DEFAULT
9
from
zeth.cli.utils
import
get_eth_network
10
from
click
import
group, option, pass_context, Context
11
from
click_default_group
import
DefaultGroup
# type: ignore
12
from
typing
import
Optional
13
14
15
@group(cls=DefaultGroup, default_if_no_args=
True
, default=
"--help"
)
16
@option(
17
"--eth-network"
,
18
help=
"Ethereum RPC endpoint, network or config file "
19
f
"(default: '{ETH_NETWORK_FILE_DEFAULT}')"
)
20
@option(
"--eth-addr"
, help=
"Sender's eth address or address filename"
)
21
@option(
"--eth-private-key"
, help=
"Sender's eth private key file"
)
22
@pass_context
23
def
dummy_app
(
24
ctx: Context,
25
eth_network: Optional[str],
26
eth_addr: Optional[str],
27
eth_private_key: Optional[str]) ->
None
:
28
ctx.obj = {
29
"eth_network"
: get_eth_network(eth_network),
30
"eth_addr"
: eth_addr,
31
"eth_private_key"
: eth_private_key,
32
}
33
34
35
dummy_app.add_command(deploy)
36
dummy_app.add_command(get)
zecale.dummy_app.__main__.dummy_app
None dummy_app(Context ctx, Optional[str] eth_network, Optional[str] eth_addr, Optional[str] eth_private_key)
Definition:
__main__.py:23
zecale.dummy_app.deploy
Definition:
deploy.py:1
zecale.dummy_app.get
Definition:
get.py:1
Generated on Wed Jan 5 2022 09:17:53 for Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains by
1.8.17