Skip to content

Commit

Permalink
chore: ExternalAddress derived Address class
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase committed Jan 14, 2025
1 parent f378518 commit 13177fc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# CDP Python SDK Changelog

## Unreleased

### Added

- `ExternalAddress` derived `Address` class.


## [0.13.0] - 2024-12-19

### Added

- Add support for fetching address reputation
- Add `reputation` method to `Address` to fetch the reputation of the address.
- Add support for registering, updating, and listing smart contracts that are
Expand All @@ -12,6 +20,7 @@ deployed external to CDP.
- Add ability to import WalletData files exported by the NodeJS CDP SDK

### Deprecated

- Deprecate `Wallet.load_seed` method in favor of `Wallet.load_seed_from_file`
- Deprecate `Wallet.save_seed` method in favor of `Wallet.save_seed_to_file`

Expand Down
2 changes: 2 additions & 0 deletions cdp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from cdp.balance_map import BalanceMap
from cdp.cdp import Cdp
from cdp.contract_invocation import ContractInvocation
from cdp.external_address import ExternalAddress
from cdp.faucet_transaction import FaucetTransaction
from cdp.hash_utils import hash_message, hash_typed_data_message
from cdp.mnemonic_seed_phrase import MnemonicSeedPhrase
Expand All @@ -26,6 +27,7 @@
"BalanceMap",
"Cdp",
"ContractInvocation",
"ExternalAddress",
"FaucetTransaction",
"MnemonicSeedPhrase",
"PayloadSignature",
Expand Down
5 changes: 5 additions & 0 deletions cdp/external_address.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from cdp.address import Address


class ExternalAddress(Address):
"""A class representing an external address."""

0 comments on commit 13177fc

Please sign in to comment.