new EthereumDataOutput class

This commit is contained in:
The MMGen Project 2026-09-06 10:08:42 +00:00
commit f94fede3a2
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#!/usr/bin/env python3
#
# MMGen Wallet, a terminal-based cryptocurrency wallet
# Copyright (C)2013-2026 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
"""
proto.eth.tx.data_output: Ethereum data output class
"""
from ....tx.data_output import DataOutput
class EthereumDataOutput(DataOutput):
desc = 'data'
@property
def max_len(self):
return self.proto.max_data_len
class EthereumTokenDataOutput(EthereumDataOutput):
pass

View file

@ -107,6 +107,9 @@ class unit_tests:
def data_output_btc(self, name, ut, desc='BitcoinDataOutput class'):
return self._data_output(ut, 'btc')
def data_output_eth(self, name, ut, desc='EthereumDataOutput class'):
return self._data_output(ut, 'eth')
def data_output_rune(self, name, ut, desc='THORChainDataOutput class'):
return self._data_output(ut, 'rune')