2021-10-06 07:44:53 +02:00
|
|
|
# external imports
|
2021-10-18 14:23:54 +02:00
|
|
|
from funga.eth.signer import EIP155Signer
|
2021-10-19 19:40:31 +02:00
|
|
|
from funga.eth.keystore.dict import DictKeystore
|
2021-10-06 07:44:53 +02:00
|
|
|
from chainlib.cli import Wallet as BaseWallet
|
|
|
|
|
|
|
|
# local imports
|
|
|
|
from chainlib.eth.address import AddressChecksum
|
|
|
|
|
|
|
|
|
|
|
|
class Wallet(BaseWallet):
|
|
|
|
"""Convenience constructor to set Ethereum defaults for chainlib cli Wallet object
|
|
|
|
|
|
|
|
:param checksummer: Address checksummer object
|
|
|
|
:type checksummer: Implementation of chainlib.eth.address.AddressChecksum
|
|
|
|
"""
|
|
|
|
def __init__(self, checksummer=AddressChecksum):
|
2021-10-19 19:40:31 +02:00
|
|
|
super(Wallet, self).__init__(EIP155Signer, checksummer=checksummer, keystore=DictKeystore())
|