Package moody
Expand source code
# Token = namedtuple('Token', ['address', 'name', 'code_hash'], defaults=(None,) * 3)
import sys
from dataclasses import dataclass
if sys.version_info < (3, 5):
raise EnvironmentError("Python 3.5 or above is required")
# __version__ = pkg_resources.get_distribution("moodyeth").version
# __all__ = [
# '__version__',
# ]
@dataclass
class Token:
address: str = None
name: str = None
code_hash: str = None
token_contract: str = None
@dataclass
class Config:
network_name: str
rpc_url: str
chain_id: int
symbol: str
block_explorer: str
bridge: str = "",
gas: int = 500000,
gasPrice: int = 1000000000
@dataclass
class Key:
private_key: str
wallet_address: str
token: str
precision: int
network: str
Sub-modules
moody.bridgemoody.buildercompilemoody.bulkmoody.bussenmoody.confmoody.erc20moody.libebmoody.mmoody.paths-
Base wrapper class for accessing ethereum smart contracts.
Classes
class Config (network_name: str, rpc_url: str, chain_id: int, symbol: str, block_explorer: str, bridge: str = ('',), gas: int = (500000,), gasPrice: int = 1000000000)-
Config(network_name: str, rpc_url: str, chain_id: int, symbol: str, block_explorer: str, bridge: str = ('',), gas: int = (500000,), gasPrice: int = 1000000000)
Expand source code
class Config: network_name: str rpc_url: str chain_id: int symbol: str block_explorer: str bridge: str = "", gas: int = 500000, gasPrice: int = 1000000000Class variables
var block_explorer : strvar bridge : strvar chain_id : intvar gas : intvar gasPrice : intvar network_name : strvar rpc_url : strvar symbol : str
class Key (private_key: str, wallet_address: str, token: str, precision: int, network: str)-
Key(private_key: str, wallet_address: str, token: str, precision: int, network: str)
Expand source code
class Key: private_key: str wallet_address: str token: str precision: int network: strClass variables
var network : strvar precision : intvar private_key : strvar token : strvar wallet_address : str
class Token (address: str = None, name: str = None, code_hash: str = None, token_contract: str = None)-
Token(address: str = None, name: str = None, code_hash: str = None, token_contract: str = None)
Expand source code
class Token: address: str = None name: str = None code_hash: str = None token_contract: str = NoneClass variables
var address : strvar code_hash : strvar name : strvar token_contract : str