This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from iotaledger/release/2.0.5
Release/2.0.5
- Loading branch information
Showing
13 changed files
with
763 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# coding=utf-8 | ||
from __future__ import absolute_import, division, print_function, \ | ||
unicode_literals | ||
|
||
import filters as f | ||
|
||
from iota.commands import FilterCommand, RequestFilter | ||
from iota.filters import AddressNoChecksum | ||
|
||
__all__ = [ | ||
'WereAddressesSpentFromCommand', | ||
] | ||
|
||
|
||
class WereAddressesSpentFromCommand(FilterCommand): | ||
""" | ||
Executes `wereAddressesSpentFrom` command. | ||
See :py:meth:`iota.api.StrictIota.were_addresses_spent_from`. | ||
""" | ||
command = 'wereAddressesSpentFrom' | ||
|
||
def get_request_filter(self): | ||
return WereAddressesSpentFromRequestFilter() | ||
|
||
def get_response_filter(self): | ||
pass | ||
|
||
|
||
class WereAddressesSpentFromRequestFilter(RequestFilter): | ||
def __init__(self): | ||
super(WereAddressesSpentFromRequestFilter, self).__init__( | ||
{ | ||
'addresses': ( | ||
f.Required | ||
| f.Array | ||
| f.FilterRepeater( | ||
f.Required | ||
| AddressNoChecksum() | ||
| f.Unicode(encoding='ascii', normalize=False) | ||
) | ||
), | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.