new EthereumDataOutput class
This commit is contained in:
parent
8ebc9ac2de
commit
f94fede3a2
2 changed files with 29 additions and 0 deletions
26
mmgen/proto/eth/tx/data_output.py
Executable file
26
mmgen/proto/eth/tx/data_output.py
Executable 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
|
||||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue