37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
from typing import Optional
|
|
|
|
from frostfs_testlib.cli.neogo.candidate import NeoGoCandidate
|
|
from frostfs_testlib.cli.neogo.contract import NeoGoContract
|
|
from frostfs_testlib.cli.neogo.db import NeoGoDb
|
|
from frostfs_testlib.cli.neogo.nep17 import NeoGoNep17
|
|
from frostfs_testlib.cli.neogo.node import NeoGoNode
|
|
from frostfs_testlib.cli.neogo.query import NeoGoQuery
|
|
from frostfs_testlib.cli.neogo.version import NeoGoVersion
|
|
from frostfs_testlib.cli.neogo.wallet import NeoGoWallet
|
|
from frostfs_testlib.shell import Shell
|
|
|
|
|
|
class NeoGo:
|
|
candidate: NeoGoCandidate
|
|
contract: NeoGoContract
|
|
db: NeoGoDb
|
|
nep17: NeoGoNep17
|
|
node: NeoGoNode
|
|
query: NeoGoQuery
|
|
version: NeoGoVersion
|
|
wallet: NeoGoWallet
|
|
|
|
def __init__(
|
|
self,
|
|
shell: Shell,
|
|
neo_go_exec_path: str,
|
|
config_path: Optional[str] = None,
|
|
):
|
|
self.candidate = NeoGoCandidate(shell, neo_go_exec_path, config_path=config_path)
|
|
self.contract = NeoGoContract(shell, neo_go_exec_path, config_path=config_path)
|
|
self.db = NeoGoDb(shell, neo_go_exec_path, config_path=config_path)
|
|
self.nep17 = NeoGoNep17(shell, neo_go_exec_path, config_path=config_path)
|
|
self.node = NeoGoNode(shell, neo_go_exec_path, config_path=config_path)
|
|
self.query = NeoGoQuery(shell, neo_go_exec_path, config_path=config_path)
|
|
self.version = NeoGoVersion(shell, neo_go_exec_path, config_path=config_path)
|
|
self.wallet = NeoGoWallet(shell, neo_go_exec_path, config_path=config_path)
|