Skip to content

Commit 3996323

Browse files
Fix KeyPair imports (#1536)
* Fix `KeyPair` imports * Fix linting
1 parent 4582584 commit 3996323

File tree

15 files changed

+20
-15
lines changed

15 files changed

+20
-15
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ There are some examples how to do it:
6969
from starknet_py.net.account.account import Account
7070
from starknet_py.net.full_node_client import FullNodeClient
7171
from starknet_py.net.models.chains import StarknetChainId
72-
from starknet_py.net.signer.stark_curve_signer import KeyPair
72+
from starknet_py.net.signer.key_pair import KeyPair
7373
from starknet_py.net.signer.stark_curve_signer import StarkCurveSigner
7474

7575
# Creates an instance of account which is already deployed

Diff for: starknet_py/net/account/account.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
)
3939
from starknet_py.net.models.typed_data import TypedDataDict
4040
from starknet_py.net.signer import BaseSigner
41-
from starknet_py.net.signer.stark_curve_signer import KeyPair, StarkCurveSigner
41+
from starknet_py.net.signer.key_pair import KeyPair
42+
from starknet_py.net.signer.stark_curve_signer import StarkCurveSigner
4243
from starknet_py.serialization.data_serializers.array_serializer import ArraySerializer
4344
from starknet_py.serialization.data_serializers.felt_serializer import FeltSerializer
4445
from starknet_py.serialization.data_serializers.payload_serializer import (

Diff for: starknet_py/tests/e2e/account/account_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
DeployAccountV3,
3232
InvokeV3,
3333
)
34-
from starknet_py.net.signer.stark_curve_signer import KeyPair
34+
from starknet_py.net.signer.key_pair import KeyPair
3535
from starknet_py.net.udc_deployer.deployer import Deployer
3636
from starknet_py.tests.e2e.fixtures.constants import (
3737
MAX_FEE,

Diff for: starknet_py/tests/e2e/docs/account_creation/test_deploy_prefunded_account.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def test_deploy_prefunded_account(
1818
from starknet_py.hash.address import compute_address
1919
from starknet_py.net.account.account import Account
2020
from starknet_py.net.full_node_client import FullNodeClient
21-
from starknet_py.net.signer.stark_curve_signer import KeyPair
21+
from starknet_py.net.signer.key_pair import KeyPair
2222

2323
# First, make sure to generate private key and salt
2424
# docs: end

Diff for: starknet_py/tests/e2e/docs/code_examples/test_account.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from starknet_py.net.full_node_client import FullNodeClient
1111
from starknet_py.net.models import StarknetChainId
1212
from starknet_py.net.models.typed_data import TypedDataDict
13-
from starknet_py.net.signer.stark_curve_signer import KeyPair
13+
from starknet_py.net.signer.key_pair import KeyPair
1414

1515

1616
def test_init():

Diff for: starknet_py/tests/e2e/docs/code_examples/test_contract.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from starknet_py.net.client_models import InvokeTransactionV3, ResourceBounds
88
from starknet_py.net.full_node_client import FullNodeClient
99
from starknet_py.net.models import DeclareV2, DeclareV3, StarknetChainId
10-
from starknet_py.net.signer.stark_curve_signer import KeyPair
10+
from starknet_py.net.signer.key_pair import KeyPair
1111
from starknet_py.tests.e2e.fixtures.misc import ContractVersion, load_contract
1212

1313

Diff for: starknet_py/tests/e2e/docs/guide/test_custom_nonce.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def test_custom_nonce(account):
1717
from starknet_py.net.client import Client
1818
from starknet_py.net.models import AddressRepresentation, StarknetChainId
1919
from starknet_py.net.signer import BaseSigner
20-
from starknet_py.net.signer.stark_curve_signer import KeyPair
20+
from starknet_py.net.signer.key_pair import KeyPair
2121

2222
class MyAccount(Account):
2323
def __init__(

Diff for: starknet_py/tests/e2e/docs/guide/test_sign_offchain_message.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async def test_sign_offchain_message(account):
99
from starknet_py.net.account.account import Account
1010
from starknet_py.net.full_node_client import FullNodeClient
1111
from starknet_py.net.models import StarknetChainId
12-
from starknet_py.net.signer.stark_curve_signer import KeyPair
12+
from starknet_py.net.signer.key_pair import KeyPair
1313
from starknet_py.utils.typed_data import TypedData
1414

1515
# Create a TypedData dictionary

Diff for: starknet_py/tests/e2e/docs/quickstart/test_creating_account.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import pytest
22

3+
from starknet_py.net.signer.key_pair import KeyPair
4+
35

46
@pytest.mark.asyncio
57
async def test_creating_account():
@@ -8,7 +10,7 @@ async def test_creating_account():
810
from starknet_py.net.account.account import Account
911
from starknet_py.net.full_node_client import FullNodeClient
1012
from starknet_py.net.models.chains import StarknetChainId
11-
from starknet_py.net.signer.stark_curve_signer import KeyPair, StarkCurveSigner
13+
from starknet_py.net.signer.stark_curve_signer import StarkCurveSigner
1214

1315
# Creates an instance of account which is already deployed
1416
# Account using transaction version=1 (has __validate__ function)

Diff for: starknet_py/tests/e2e/fixtures/accounts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from starknet_py.net.full_node_client import FullNodeClient
1515
from starknet_py.net.http_client import HttpMethod, RpcHttpClient
1616
from starknet_py.net.models import StarknetChainId
17-
from starknet_py.net.signer.stark_curve_signer import KeyPair
17+
from starknet_py.net.signer.key_pair import KeyPair
1818
from starknet_py.tests.e2e.fixtures.constants import (
1919
DEVNET_PRE_DEPLOYED_ACCOUNT_ADDRESS,
2020
DEVNET_PRE_DEPLOYED_ACCOUNT_PRIVATE_KEY,

Diff for: starknet_py/tests/e2e/tests_on_networks/client_devnet/fixtures/accounts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from starknet_py.net.account.account import Account
66
from starknet_py.net.account.base_account import BaseAccount
77
from starknet_py.net.models import StarknetChainId
8-
from starknet_py.net.signer.stark_curve_signer import KeyPair
8+
from starknet_py.net.signer.key_pair import KeyPair
99

1010

1111
@pytest_asyncio.fixture(scope="package")

Diff for: starknet_py/tests/e2e/tests_on_networks/fixtures.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from starknet_py.net.account.account import Account
44
from starknet_py.net.full_node_client import FullNodeClient
55
from starknet_py.net.models import StarknetChainId
6-
from starknet_py.net.signer.stark_curve_signer import KeyPair
6+
from starknet_py.net.signer.key_pair import KeyPair
77
from starknet_py.tests.e2e.fixtures.constants import (
88
SEPOLIA_ACCOUNT_ADDRESS,
99
SEPOLIA_ACCOUNT_PRIVATE_KEY,

Diff for: starknet_py/tests/e2e/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from starknet_py.net.http_client import HttpClient, HttpMethod
1010
from starknet_py.net.models import StarknetChainId
1111
from starknet_py.net.models.transaction import DeployAccountV1
12-
from starknet_py.net.signer.stark_curve_signer import KeyPair
12+
from starknet_py.net.signer.key_pair import KeyPair
1313
from starknet_py.net.udc_deployer.deployer import _get_random_salt
1414
from starknet_py.tests.e2e.fixtures.constants import MAX_FEE
1515

Diff for: starknet_py/tests/unit/net/account/account_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from starknet_py.net.account.account import Account
77
from starknet_py.net.full_node_client import FullNodeClient
88
from starknet_py.net.models import StarknetChainId, parse_address
9-
from starknet_py.net.signer.stark_curve_signer import KeyPair, StarkCurveSigner
9+
from starknet_py.net.signer.key_pair import KeyPair
10+
from starknet_py.net.signer.stark_curve_signer import StarkCurveSigner
1011
from starknet_py.tests.e2e.fixtures.constants import (
1112
MAX_FEE,
1213
MAX_RESOURCE_BOUNDS_L1,

Diff for: starknet_py/tests/unit/signer/test_stark_curve_signer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
from starknet_py.net.models import StarknetChainId
66
from starknet_py.net.models.transaction import DeclareV3, DeployAccountV3, InvokeV3
7-
from starknet_py.net.signer.stark_curve_signer import KeyPair, StarkCurveSigner
7+
from starknet_py.net.signer.key_pair import KeyPair
8+
from starknet_py.net.signer.stark_curve_signer import StarkCurveSigner
89

910

1011
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)