Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Release/2.0.6 #183

Merged
merged 37 commits into from
Jun 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b4d32cf
Fixed typo in python api documentation
ribhu97 Mar 18, 2018
980aa4b
Merge pull request #168 from ribhu97/master
todofixthis Mar 18, 2018
3bbbefa
Corrected parameter-name 'start' to 'index'.
rckey Mar 28, 2018
6e31c23
Merge pull request #169 from rckey/patch-1
todofixthis Mar 29, 2018
11433a6
security_level optional argument added to get_inputs
lunfardo314 Mar 31, 2018
f3e2fb4
requested change in test_pass_optional_parameters_excluded
lunfardo314 Apr 2, 2018
0916be0
requested change: optional security_level in iter_used_addresses and …
lunfardo314 Apr 2, 2018
580793c
security_level test for get_inputs command
lunfardo314 Apr 3, 2018
5e29a86
security_level for get_inputs_test: improvement to cover both banches…
lunfardo314 Apr 3, 2018
2d21a7a
security_level for get_inputs_test: improvement to cover both banches…
lunfardo314 Apr 3, 2018
0195439
type hint in iter_used_addresses
lunfardo314 Apr 4, 2018
7a2cb57
random seed for get_inputs_test.test_security_level
lunfardo314 Apr 4, 2018
0ec63d1
random seed for get_inputs_test.test_security_level
lunfardo314 Apr 4, 2018
15a96de
type hint edit
lunfardo314 Apr 4, 2018
9fddc96
PrepareTransferCommand added `security_level` param.
lunfardo314 Apr 4, 2018
e97af92
fixing a bug with incorrect use of ``stop`` in call to get_addresses.
lunfardo314 Apr 4, 2018
7654b37
fixing bug with incorrect use of ``stop`` in get_inputs. Covered with…
lunfardo314 Apr 4, 2018
4b7732e
fixing bug with incorrect use of ``stop`` in get_inputs. Covered with…
lunfardo314 Apr 4, 2018
f655af2
added `security_level` to `PrepareTransferCommand` with corresponding…
lunfardo314 Apr 5, 2018
ee564ad
added `security_level` to `PrepareTransferCommand` with corresponding…
lunfardo314 Apr 5, 2018
8c14f30
added `security_level` to `SendTransferCommand` with input validation…
lunfardo314 Apr 5, 2018
aa3ce13
prepare_transfer security_level inout filter on Type/Min/Max checking…
lunfardo314 Apr 16, 2018
aec033c
change mocking private method to seeding response in `test_start_stop`
lunfardo314 Apr 16, 2018
7e27081
wrong comment from docstring removed
lunfardo314 Apr 16, 2018
92b3f62
`test_security_level` replaced by two to make it simpler and more rea…
lunfardo314 Apr 16, 2018
93ac74b
Merge pull request #173 from lunfardo314/master
todofixthis Apr 18, 2018
a3ca34d
Fixes invalid receive address in examples
msti May 11, 2018
93dee05
Merge pull request #177 from msti/develop
todofixthis May 11, 2018
356b05c
Fixed missing import.
todofixthis May 29, 2018
4739f04
Merge branch 'develop' of github:iotaledger/iota.lib.py into develop
todofixthis May 29, 2018
09df7f3
Added missing import for type hint.
todofixthis Jun 8, 2018
7733db9
Added missing docstring entry for param.
todofixthis Jun 8, 2018
edbebf4
[#176] Added `SecurityLevel` filter macro.
todofixthis Jun 8, 2018
0b92f6b
Merge pull request #182 from iotaledger/feature/176-security-level-fi…
todofixthis Jun 8, 2018
1a24274
Bumping version number.
todofixthis Jun 9, 2018
96a966f
Fixed type hints.
todofixthis Jun 9, 2018
67741dc
Progressive PEP-8 migration.
todofixthis Jun 9, 2018
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
12 changes: 6 additions & 6 deletions docs/addresses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ Using the API
addresses = gna_result['addresses']

# Generate 1 address, starting with index 42:
gna_result = api.get_new_addresses(start=42)
gna_result = api.get_new_addresses(index=42)
addresses = gna_result['addresses']

# Find the first unused address, starting with index 86:
gna_result = api.get_new_addresses(start=86, count=None)
gna_result = api.get_new_addresses(index=86, count=None)
addresses = gna_result['addresses']

To generate addresses using the API, invoke its ``get_new_addresses``
method, using the following parameters:

- ``start: int``: The starting index (defaults to 0). This can be used
- ``index: int``: The starting index (defaults to 0). This can be used
to skip over addresses that have already been generated.
- ``count: Optional[int]``: The number of addresses to generate
(defaults to 1).
Expand All @@ -80,13 +80,13 @@ Using AddressGenerator
generator = AddressGenerator(b'SEED9GOES9HERE')

# Generate a list of addresses:
addresses = generator.get_addresses(start=0, count=5)
addresses = generator.get_addresses(index=0, count=5)

# Generate a list of addresses in reverse order:
addresses = generator.get_addresses(start=42, count=10, step=-1)
addresses = generator.get_addresses(index=42, count=10, step=-1)

# Create an iterator, advancing 5 indices each iteration.
iterator = generator.create_iterator(start=86, step=5)
iterator = generator.create_iterator(index=86, step=5)
for address in iterator:
...

Expand Down
2 changes: 1 addition & 1 deletion examples/send_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from iota import *

SEED1 = b"THESEEDOFTHEWALLETSENDINGGOESHERE999999999999999999999999999999999999999999999999"
ADDRESS_WITH_CHECKSUM_SECURITY_LEVEL_2 = b"RECEIVINGWALLETADDRESSGOESHERE9WITHCHECKSUMANDSECURITYLEVEL2999999999999999999999999999999"
ADDRESS_WITH_CHECKSUM_SECURITY_LEVEL_2 = b"RECEIVINGWALLETADDRESSGOESHERE9WITHCHECKSUMANDSECURITYLEVELB999999999999999999999999999999"

# Create the API instance.
api =\
Expand Down
Loading