Replace crypto_dev_signer with funga

This commit is contained in:
nolash 2021-10-18 14:23:54 +02:00
parent 2204c512c3
commit 47b7fa7eef
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
15 changed files with 25 additions and 24 deletions

View File

@ -4,7 +4,7 @@ from hexathon import (
strip_0x,
uniform,
)
from crypto_dev_signer.encoding import (
from funga.eth.encoding import (
is_address,
is_checksum_address,
to_checksum_address,

View File

@ -1,5 +1,5 @@
# external imports
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from funga.eth.signer import EIP155Signer
from chainlib.cli import Wallet as BaseWallet
# local imports

View File

@ -6,7 +6,7 @@ from hexathon import (
add_0x,
strip_0x,
)
from crypto_dev_signer.eth.transaction import EIP155Transaction
from funga.eth.transaction import EIP155Transaction
# local imports
from chainlib.fee import FeeOracle

View File

@ -5,8 +5,8 @@ import logging
# external imports
import eth_tester
import pytest
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from crypto_dev_signer.keystore.dict import DictKeystore
from funga.eth.signer import EIP155Signer
from funga.eth.keystore.dict import DictKeystore
# local imports
from chainlib.eth.unittest.base import *

View File

@ -3,7 +3,6 @@
# external imports
import pytest
#from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
@pytest.fixture(scope='function')

View File

@ -24,7 +24,7 @@ from chainlib.eth.gas import (
balance,
)
from chainlib.chain import ChainSpec
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from funga.eth.signer import EIP155Signer
logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger()

View File

@ -15,8 +15,8 @@ from chainlib.eth.connection import EthHTTPConnection
from chainlib.eth.tx import count
from chainlib.chain import ChainSpec
from chainlib.jsonrpc import IntSequenceGenerator
from crypto_dev_signer.keystore.dict import DictKeystore
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from funga.eth.keystore.dict import DictKeystore
from funga.eth.signer import ReferenceSigner as EIP155Signer
from hexathon import add_0x
logging.basicConfig(level=logging.WARNING)

View File

@ -13,8 +13,8 @@ import sha3
# external imports
import chainlib.eth.cli
from chainlib.eth.cli.encode import CLIEncoder
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from crypto_dev_signer.keystore.dict import DictKeystore
from funga.eth.signer import ReferenceSigner as EIP155Signer
from funga.eth.keystore.dict import DictKeystore
from hexathon import (
add_0x,
strip_0x,

View File

@ -16,7 +16,7 @@ from hexathon import (
even,
)
import sha3
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from funga.eth.signer import EIP155Signer
# local imports
from chainlib.eth.address import AddressChecksum

View File

@ -11,8 +11,8 @@ import urllib
# external imports
import chainlib.eth.cli
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from crypto_dev_signer.keystore.dict import DictKeystore
from funga.eth.signer import EIP155Signer
from funga.eth.keystore.dict import DictKeystore
from hexathon import (
add_0x,
strip_0x,

View File

@ -13,9 +13,11 @@ from hexathon import (
)
from rlp import decode as rlp_decode
from rlp import encode as rlp_encode
from crypto_dev_signer.eth.transaction import EIP155Transaction
from crypto_dev_signer.encoding import public_key_to_address
from crypto_dev_signer.eth.encoding import chain_id_to_v
from funga.eth.transaction import EIP155Transaction
from funga.eth.encoding import (
public_key_to_address,
chain_id_to_v,
)
from potaahto.symbols import snake_and_camel
from chainlib.hash import keccak256_hex_to_hex
from chainlib.status import Status

View File

@ -25,8 +25,8 @@ from hexathon import (
)
from chainlib.eth.tx import receipt
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from crypto_dev_signer.encoding import private_key_to_address
from funga.eth.signer import EIP155Signer
from funga.eth.encoding import private_key_to_address
logg = logging.getLogger().getChild(__name__)

View File

@ -5,8 +5,8 @@ import logging
# external imports
import eth_tester
from crypto_dev_signer.eth.signer import ReferenceSigner as EIP155Signer
from crypto_dev_signer.keystore.dict import DictKeystore
from funga.eth.signer import EIP155Signer
from funga.eth.keystore.dict import DictKeystore
from hexathon import (
strip_0x,
add_0x,

View File

@ -1,7 +1,7 @@
crypto-dev-signer>=0.4.15rc2,<=0.4.15
funga>=0.5.1a1,<0.6.0
pysha3==1.0.2
hexathon~=0.0.1a8
websocket-client==0.57.0
potaahto~=0.0.1a1
chainlib==0.0.9rc1
chainlib==0.0.10a2
confini>=0.4.1a1,<0.5.0

View File

@ -1,6 +1,6 @@
[metadata]
name = chainlib-eth
version = 0.0.9rc5
version = 0.0.10a1
description = Ethereum implementation of the chainlib interface
author = Louis Holbrook
author_email = dev@holbrook.no