Skip to content

Commit 4307127

Browse files
chore: ExternalAddress derived Address class (#76)
1 parent f378518 commit 4307127

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# CDP Python SDK Changelog
22

3+
## Unreleased
4+
5+
### Added
6+
7+
- `ExternalAddress` derived `Address` class.
8+
9+
310
## [0.13.0] - 2024-12-19
411

512
### Added
13+
614
- Add support for fetching address reputation
715
- Add `reputation` method to `Address` to fetch the reputation of the address.
816
- Add support for registering, updating, and listing smart contracts that are
@@ -12,6 +20,7 @@ deployed external to CDP.
1220
- Add ability to import WalletData files exported by the NodeJS CDP SDK
1321

1422
### Deprecated
23+
1524
- Deprecate `Wallet.load_seed` method in favor of `Wallet.load_seed_from_file`
1625
- Deprecate `Wallet.save_seed` method in favor of `Wallet.save_seed_to_file`
1726

cdp/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from cdp.balance_map import BalanceMap
66
from cdp.cdp import Cdp
77
from cdp.contract_invocation import ContractInvocation
8+
from cdp.external_address import ExternalAddress
89
from cdp.faucet_transaction import FaucetTransaction
910
from cdp.hash_utils import hash_message, hash_typed_data_message
1011
from cdp.mnemonic_seed_phrase import MnemonicSeedPhrase
@@ -26,6 +27,7 @@
2627
"BalanceMap",
2728
"Cdp",
2829
"ContractInvocation",
30+
"ExternalAddress",
2931
"FaucetTransaction",
3032
"MnemonicSeedPhrase",
3133
"PayloadSignature",

cdp/external_address.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from cdp.address import Address
2+
3+
4+
class ExternalAddress(Address):
5+
"""A class representing an external address."""

0 commit comments

Comments
 (0)