From 90d500302f1a913d609f6c954f67df5f43f5fb99 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 4 Mar 2025 09:51:05 +0000 Subject: [PATCH] swap.proto.thorchain: move `params` class to `.` --- mmgen/swap/proto/thorchain/__init__.py | 20 ++++++++++++++---- mmgen/swap/proto/thorchain/params.py | 28 -------------------------- 2 files changed, 16 insertions(+), 32 deletions(-) delete mode 100755 mmgen/swap/proto/thorchain/params.py diff --git a/mmgen/swap/proto/thorchain/__init__.py b/mmgen/swap/proto/thorchain/__init__.py index 211180a8..6b623e89 100755 --- a/mmgen/swap/proto/thorchain/__init__.py +++ b/mmgen/swap/proto/thorchain/__init__.py @@ -12,14 +12,26 @@ swap.proto.thorchain: THORChain swap protocol implementation for the MMGen Wallet suite """ -__all__ = ['params', 'data'] +__all__ = ['data'] name = 'THORChain' -from .params import params - -from .memo import Memo as data +class params: + coins = { + 'send': { + 'BTC': 'Bitcoin', + 'LTC': 'Litecoin', + 'BCH': 'Bitcoin Cash', + }, + 'receive': { + 'BTC': 'Bitcoin', + 'LTC': 'Litecoin', + 'BCH': 'Bitcoin Cash', + } + } def rpc_client(tx, amt): from .midgard import Midgard return Midgard(tx, amt) + +from .memo import Memo as data diff --git a/mmgen/swap/proto/thorchain/params.py b/mmgen/swap/proto/thorchain/params.py deleted file mode 100755 index 55343cd5..00000000 --- a/mmgen/swap/proto/thorchain/params.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python3 -# -# MMGen Wallet, a terminal-based cryptocurrency wallet -# Copyright (C)2013-2025 The MMGen Project -# Licensed under the GNU General Public License, Version 3: -# https://www.gnu.org/licenses -# Public project repositories: -# https://github.com/mmgen/mmgen-wallet -# https://gitlab.com/mmgen/mmgen-wallet - -""" -swap.proto.thorchain.params: THORChain swap protocol parameters -""" - -class params: - - coins = { - 'send': { - 'BTC': 'Bitcoin', - 'LTC': 'Litecoin', - 'BCH': 'Bitcoin Cash', - }, - 'receive': { - 'BTC': 'Bitcoin', - 'LTC': 'Litecoin', - 'BCH': 'Bitcoin Cash', - } - }