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

Update python generate_addresses to be more Pythonic #26

Merged
merged 8 commits into from
Apr 3, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add docstring
  • Loading branch information
Dr-Electron committed Mar 31, 2023
commit fadf27349a3847577dbb3e7ea697bdb0e7a2aad1
24 changes: 23 additions & 1 deletion sdk/src/client/bindings/python/iota_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,30 @@ def generate_addresses(self,
bech32_hrp = __default,
ledger_nano_prompt = __default):
"""Generate addresses.
"""

Parameters
----------
secret_manager : Any type of SecretManager.
The secret manager to use. Can be (MnemonicSecretManager, SeedSecretManager, StrongholdSecretManager or LedgerNanoSecretManager.
account_index : int
Account index.
start : int
Start index of generated addresses
end : int
End index of generated addresses
internal : bool
Internal addresses
coin_type : int
Coin type. IOTA = 4218. Shimmer = 4219.
bech32_hrp : string
Bech32 human readable part.
ledger_nano_prompt : bool
Display the address on ledger devices.

Returns
-------
Addresses as array of strings.
"""
options = locals()

options = {k:v for k,v in options.items() if v != self.__default}
Expand Down