swap.proto.thorchain: move params class to .

This commit is contained in:
The MMGen Project 2025-03-04 09:51:05 +00:00
commit 90d500302f
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 16 additions and 32 deletions

View file

@ -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

View file

@ -1,28 +0,0 @@
#!/usr/bin/env python3
#
# MMGen Wallet, a terminal-based cryptocurrency wallet
# Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
# 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',
}
}