Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: use xdrlib3 instead of xdrlib. #739

Merged
merged 2 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
849 changes: 487 additions & 362 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ mnemonic = "^0.20"
toml = "^0.10.2"
typeguard = "^2.13.0"
urllib3 = ">=1.26.7,<3.0.0"
xdrlib3 = "^0.1.1"

[tool.poetry.dev-dependencies]
pytest = "^7.4.0"
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/fee_bump_transaction_envelope.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List, Union
from xdrlib import Packer
from xdrlib3 import Packer

from . import xdr as stellar_xdr
from .base_transaction_envelope import BaseTransactionEnvelope
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/strkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import binascii
import struct
from enum import Enum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from . import xdr as stellar_xdr
from .exceptions import (
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/transaction_envelope.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import copy
from typing import List, Union
from xdrlib import Packer
from xdrlib3 import Packer

from . import xdr as stellar_xdr
from .base_transaction_envelope import BaseTransactionEnvelope
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from typing import List, Optional
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_entry_ext import AccountEntryExt
from .account_id import AccountID
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry_ext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_entry_extension_v1 import AccountEntryExtensionV1
from .base import Integer
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry_extension_v1.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_entry_extension_v1_ext import AccountEntryExtensionV1Ext
from .liabilities import Liabilities
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry_extension_v1_ext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_entry_extension_v2 import AccountEntryExtensionV2
from .base import Integer
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry_extension_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from typing import List
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_entry_extension_v2_ext import AccountEntryExtensionV2Ext
from .constants import *
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry_extension_v2_ext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_entry_extension_v3 import AccountEntryExtensionV3
from .base import Integer
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_entry_extension_v3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .extension_point import ExtensionPoint
from .time_point import TimePoint
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["AccountFlags"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_id.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .public_key import PublicKey

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_merge_result.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_merge_result_code import AccountMergeResultCode
from .int64 import Int64
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/account_merge_result_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["AccountMergeResultCode"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/allow_trust_op.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_id import AccountID
from .asset_code import AssetCode
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/allow_trust_result.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .allow_trust_result_code import AllowTrustResultCode

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/allow_trust_result_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["AllowTrustResultCode"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/alpha_num12.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_id import AccountID
from .asset_code12 import AssetCode12
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/alpha_num4.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_id import AccountID
from .asset_code4 import AssetCode4
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .alpha_num4 import AlphaNum4
from .alpha_num12 import AlphaNum12
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/asset_code.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .asset_code4 import AssetCode4
from .asset_code12 import AssetCode12
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/asset_code12.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .base import Opaque

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/asset_code4.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .base import Opaque

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/asset_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["AssetType"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/auth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .base import Integer

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/auth_cert.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .curve25519_public import Curve25519Public
from .signature import Signature
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/authenticated_message.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .authenticated_message_v0 import AuthenticatedMessageV0
from .uint32 import Uint32
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/authenticated_message_v0.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .hmac_sha256_mac import HmacSha256Mac
from .stellar_message import StellarMessage
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = [
"Integer",
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/begin_sponsoring_future_reserves_op.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .account_id import AccountID

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/begin_sponsoring_future_reserves_result.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .begin_sponsoring_future_reserves_result_code import (
BeginSponsoringFutureReservesResultCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["BeginSponsoringFutureReservesResultCode"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bucket_entry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .bucket_entry_type import BucketEntryType
from .bucket_metadata import BucketMetadata
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bucket_entry_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["BucketEntryType"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bucket_metadata.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .bucket_metadata_ext import BucketMetadataExt
from .uint32 import Uint32
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bucket_metadata_ext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .base import Integer

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bump_sequence_op.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .sequence_number import SequenceNumber

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bump_sequence_result.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .bump_sequence_result_code import BumpSequenceResultCode

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/bump_sequence_result_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["BumpSequenceResultCode"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/change_trust_asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .alpha_num4 import AlphaNum4
from .alpha_num12 import AlphaNum12
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/change_trust_op.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .change_trust_asset import ChangeTrustAsset
from .int64 import Int64
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/change_trust_result.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .change_trust_result_code import ChangeTrustResultCode

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/change_trust_result_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

__all__ = ["ChangeTrustResultCode"]

Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/xdr/claim_atom.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from xdrlib3 import Packer, Unpacker

from .claim_atom_type import ClaimAtomType
from .claim_liquidity_atom import ClaimLiquidityAtom
Expand Down
Loading