Skip to content

Commit b150d63

Browse files
authored
Merge pull request #6405 from raiden-network/release-v1.1.1
Release v1.1.1
2 parents a1b118e + 9c38fd3 commit b150d63

59 files changed

Lines changed: 1055 additions & 736 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bumpversion_client.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.1.0
2+
current_version = 1.1.1
33
commit = True
44
tag = False
55

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,8 @@ commands:
181181
key: pip-cache-{{ arch }}-<< parameters.py-version >>
182182
- restore_cache:
183183
keys:
184-
- python-deps-v3-{{ arch }}-<< parameters.py-version >>-{{ checksum "requirements/requirements-ci.txt" }}
185-
# hack: solving a inter-PR cache problem
186-
- python-deps-v3-{{ arch }}-<< parameters.py-version >>-2uPiIM_pNv5neMjXtHsw_aV6BQGcFOekCBcy7TJEkhI=
187-
- python-deps-v3-{{ arch }}-<< parameters.py-version >>-
184+
- python-deps-v4-{{ arch }}-<< parameters.py-version >>-{{ checksum "requirements/requirements-ci.txt" }}
185+
- python-deps-v4-{{ arch }}-<< parameters.py-version >>-
188186
- run:
189187
name: Creating virtualenv
190188
command: |
@@ -204,7 +202,7 @@ commands:
204202
pip-sync requirements-ci.txt _raiden-dev.txt
205203
popd
206204
- save_cache:
207-
key: python-deps-v3-{{ arch }}-<< parameters.py-version >>-{{ checksum "requirements/requirements-ci.txt" }}
205+
key: python-deps-v4-{{ arch }}-<< parameters.py-version >>-{{ checksum "requirements/requirements-ci.txt" }}
208206
paths:
209207
- "~/venv-<< parameters.py-version >>-LINUX"
210208
- "~/venv-<< parameters.py-version >>-MACOS"

docs/changelog.rst

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,45 @@
22
Changelog
33
=========
44

5+
* :release:`1.1.1 <2020-07-20>`
6+
* :feature:`-` Update WebUI to version 1.0.2 https://github.com/raiden-network/webui/releases/tag/v1.0.2
7+
* :feature:`5407` Add ``/contracts`` endpoint with information about the used contracts.
8+
* :bug:`6217` Don't crash at ``/payments`` when no target address is given.
9+
* :feature:`-` Adds minimum required balance to send out MonitorRequest on mainnet.
10+
* :bug:`6323` Handling no ETH exception in the minting endpoint.
11+
512
* :release:`1.1.0 <2020-06-18>`
613

7-
* :release:`1.0.2-rc`
14+
* :release:`1.0.2-rc <2020-06-17>`
815
* :feature:`-` Update WebUI to version 1.0.1 https://github.com/raiden-network/webui/releases/tag/v1.0.1
9-
* :bug:`6310` Fixed dependencies used in `setup.py`.
16+
* :bug:`6310` Fixed dependencies used in ``setup.py``.
1017

11-
* :release:`1.0.1`
18+
* :release:`1.0.1 <2020-06-15>`
1219
* :feature:`-` Update WebUI to version 1.0.0 https://github.com/raiden-network/webui/releases/tag/v1.0.0
1320
* :feature:`6220` Make sure the configured PFS and Matrix servers use the same chain and smart contracts.
1421
* :bug:`6224` Fix ULID generation under Windows, nanosecond clock resolution is not necessary anymore.
1522

16-
* :release:`1.0.0`
17-
23+
* :release:`1.0.0 <2020-05-26>`
1824
* :feature:`-` Update WebUI to version 0.11.1 https://github.com/raiden-network/webui/releases/tag/v0.11.1
1925

20-
* :release:`0.200.0-rc9`
26+
* :release:`0.200.0-rc9 <2020-05-19>`
2127

22-
* :release:`0.200.0-rc8`
28+
* :release:`0.200.0-rc8 <2020-04-21>`
2329
* :feature:`5338` The number of blocks queried for events is now dynamically adjusted. This is necessary to prevent timeouts because the Ethereum client is overloaded.
2430
* :bug:`6082` Small bug fix, use of undefined variable.
2531
* :bug:`6083` Weakened byte code check to prevent errors with client pruning.
2632
* :bug:`6071` Fixed transport race condition which prevented a node to restart after a failure.
2733
* :bug:`6075` Fixed serialization problem for pending transactions.
2834

29-
* :release:`0.200.0-rc7`
35+
* :release:`0.200.0-rc7 <2020-04-16>`
3036
* :bug:`6077` Fix missing requirement to build macOS binaries
3137

32-
* :release:`0.200.0-rc6`
38+
* :release:`0.200.0-rc6 <2020-04-16>`
3339
* :bug:`6072` Always return valid JSON on the config endpoint, even when the REST API is starting.
3440
* :bug:`6067` Workaround gevent's bug on wait for single elements.
3541
* :bug:`6066` Workaround slow speed of geth on mainnet for eth_getLogs.
3642

37-
* :release:`0.200.0-rc3`
43+
* :release:`0.200.0-rc3 <2020-03-26>`
3844
* :feature:`5281` Add a /status endpoint; start the API earlier and return 503 SERVICE UNAVAILABLE during the initial sync.
3945
* :feature:`4588` Remove the echo_node subcommand of the command line interface.
4046
* :bug:`5779` Handle the API exception when no further token networks can be registered by returning 403 FORBIDDEN.
@@ -50,7 +56,7 @@ Changelog
5056
* :feature:`5278` Always use private rooms in the matrix transport.
5157
* :feature:`5217` Fully support infura as an underlying ethereum rpc node.
5258
* :bug:`5064` Display a user-friendly error message when the PFS info request fails.
53-
* :bug:`5055` Fix withdraw messages deserialization when the messages are queued in `queueids_to_queues`.
59+
* :bug:`5055` Fix withdraw messages deserialization when the messages are queued in ``queueids_to_queues``.
5460
* :feature:`5053` Make mediation fees non-negative by default. This fixes some counter-intuitive behaviour.
5561
* :bug:`4835` Fix etherscan sync by passing user-agent in the HTTP request. The request was failing because etherscan is protected by Cloudflare.
5662
* :feature:`-` Update WebUI to version 0.10.1 https://github.com/raiden-network/webui/releases/tag/v0.10.1
@@ -223,7 +229,7 @@ Changelog
223229

224230
* :release:`0.15.0 <2018-10-27>`
225231
* :bug:`2905` Mediator task must wait for the expired message, not just for the lock to expire, otherwise the channel will be unsychronized.
226-
* :feature:`2909` Add explicit flag `--unrecoverable-error-should-crash` to control UnrecoverableError crashing behaviour.
232+
* :feature:`2909` Add explicit flag ``--unrecoverable-error-should-crash`` to control UnrecoverableError crashing behaviour.
227233
* :bug:`2894` Raiden will no longer miss confirmation blocks at restart and will emit the block state change only for confirmed blocks.
228234
* :feature:`2857` Respect the ``--environment-type`` for private chain setup.
229235
* :feature:`2858` Changed contract address argument names to be consistent with the names of the contracts in the contracts repository.
@@ -249,7 +255,7 @@ Changelog
249255
* :bug:`2662` Fix wrong deserialization of snapshots in special cases.
250256
* :bug:`2730` Refuse to send a transfer and ignore it during receiving, if its secret is already registered on-chain.
251257
* :feature:`2713` Added the protocol version in the Ping message.
252-
* :feature:`2708` Add `--showconfig` CLI flag which dumps all configuration values that will control Raiden behavior.
258+
* :feature:`2708` Add ``--showconfig`` CLI flag which dumps all configuration values that will control Raiden behavior.
253259
* :bug:`2720` A lock expired message must be considered invalid if the block in which the lock expired has not been confirmed.
254260

255261
* :release:`0.12.0 <2018-10-05>`

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def setup(app):
100100
project = "Raiden Network"
101101
author = "Raiden Project"
102102

103-
version_string = "1.1.0"
103+
version_string = "1.1.1"
104104
# The version info for the project you're documenting, acts as replacement for
105105
# |version| and |release|, also used in various other places throughout the
106106
# built documents.

nix/envrc-nix-python

Lines changed: 0 additions & 4 deletions
This file was deleted.

nix/leveldb.nix

Lines changed: 0 additions & 15 deletions
This file was deleted.

nix/shell.nix

Lines changed: 0 additions & 39 deletions
This file was deleted.

pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ enable=
3737
gevent-joinall-raise-error,
3838
gevent-disable-wait,
3939
gevent-group-join,
40+
gevent-input-forbidden,
41+
gevent-sys-stdfds-forbidden,
4042
import-self,
4143
inconsistent-return-statements,
4244
no-member,

raiden/api/python.py

Lines changed: 25 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
UnknownTokenAddress,
3636
WithdrawMismatch,
3737
)
38-
from raiden.messages.monitoring_service import RequestMonitoring
3938
from raiden.settings import DEFAULT_RETRY_TIMEOUT
4039
from raiden.storage.utils import TimestampedEvent
4140
from raiden.transfer import channel, views
@@ -46,13 +45,7 @@
4645
EventPaymentSentSuccess,
4746
)
4847
from raiden.transfer.mediated_transfer.tasks import InitiatorTask, MediatorTask, TargetTask
49-
from raiden.transfer.state import (
50-
BalanceProofSignedState,
51-
ChainState,
52-
ChannelState,
53-
NettingChannelState,
54-
NetworkState,
55-
)
48+
from raiden.transfer.state import ChainState, ChannelState, NettingChannelState, NetworkState
5649
from raiden.transfer.state_change import ActionChannelClose
5750
from raiden.transfer.views import get_token_network_by_address
5851
from raiden.utils.formatting import to_checksum_address
@@ -1128,7 +1121,8 @@ def transfer_async(
11281121

11291122
def get_raiden_events_payment_history_with_timestamps(
11301123
self,
1131-
token_address: TokenAddress = None,
1124+
registry_address: TokenNetworkRegistryAddress,
1125+
token_address: Optional[TokenAddress] = None,
11321126
target_address: Address = None,
11331127
limit: int = None,
11341128
offset: int = None,
@@ -1138,25 +1132,38 @@ def get_raiden_events_payment_history_with_timestamps(
11381132
"Expected binary address format for token in get_raiden_events_payment_history"
11391133
)
11401134

1135+
chain_state = views.state_from_raiden(self.raiden)
1136+
token_network_address = None
1137+
if token_address:
1138+
token_network_address = views.get_token_network_address_by_token_address(
1139+
chain_state=chain_state,
1140+
token_network_registry_address=registry_address,
1141+
token_address=token_address,
1142+
)
1143+
if not token_network_address:
1144+
raise InvalidTokenAddress("Token address does not match a Raiden token network")
1145+
11411146
if target_address and not is_binary_address(target_address):
11421147
raise InvalidBinaryAddress(
11431148
"Expected binary address format for "
11441149
"target_address in get_raiden_events_payment_history"
11451150
)
11461151

11471152
assert self.raiden.wal, "Raiden service has to be started for the API to be usable."
1148-
events = self.raiden.wal.storage.get_events_with_timestamps(
1153+
1154+
event_types = [
1155+
"raiden.transfer.events.EventPaymentReceivedSuccess",
1156+
"raiden.transfer.events.EventPaymentSentFailed",
1157+
"raiden.transfer.events.EventPaymentSentSuccess",
1158+
]
1159+
1160+
events = self.raiden.wal.storage.get_raiden_events_payment_history_with_timestamps(
1161+
event_types=event_types,
11491162
limit=limit,
11501163
offset=offset,
1151-
filters=[
1152-
("_type", "raiden.transfer.events.EventPaymentReceivedSuccess"),
1153-
("_type", "raiden.transfer.events.EventPaymentSentFailed"),
1154-
("_type", "raiden.transfer.events.EventPaymentSentSuccess"),
1155-
],
1156-
logical_and=False,
1164+
token_network_address=token_network_address,
1165+
partner_address=target_address,
11571166
)
1158-
1159-
chain_state = views.state_from_raiden(self.raiden)
11601167
events = [
11611168
e
11621169
for e in events
@@ -1167,22 +1174,8 @@ def get_raiden_events_payment_history_with_timestamps(
11671174
token_address=token_address,
11681175
)
11691176
]
1170-
11711177
return events
11721178

1173-
def get_raiden_events_payment_history(
1174-
self,
1175-
token_address: TokenAddress = None,
1176-
target_address: Address = None,
1177-
limit: int = None,
1178-
offset: int = None,
1179-
) -> List[Event]:
1180-
timestamped_events = self.get_raiden_events_payment_history_with_timestamps(
1181-
token_address=token_address, target_address=target_address, limit=limit, offset=offset
1182-
)
1183-
1184-
return [event.wrapped_event for event in timestamped_events]
1185-
11861179
def get_raiden_internal_events_with_timestamps(
11871180
self, limit: int = None, offset: int = None
11881181
) -> List[TimestampedEvent]:
@@ -1283,30 +1276,6 @@ def get_blockchain_events_channel(
12831276
returned_events.sort(key=lambda evt: evt.get("block_number"), reverse=True)
12841277
return returned_events
12851278

1286-
def create_monitoring_request(
1287-
self, balance_proof: BalanceProofSignedState, reward_amount: TokenAmount
1288-
) -> Optional[RequestMonitoring]:
1289-
""" This method can be used to create a `RequestMonitoring` message.
1290-
It will contain all data necessary for an external monitoring service to
1291-
- send an updateNonClosingBalanceProof transaction to the TokenNetwork contract,
1292-
for the `balance_proof` that we received from a channel partner.
1293-
- claim the `reward_amount` from the UDC.
1294-
"""
1295-
# create RequestMonitoring message from the above + `reward_amount`
1296-
1297-
msg = "Default monitoring service address should not be None"
1298-
assert self.raiden.default_msc_address is not None, msg
1299-
1300-
monitor_request = RequestMonitoring.from_balance_proof_signed_state(
1301-
balance_proof=balance_proof,
1302-
non_closing_participant=self.raiden.address,
1303-
reward_amount=reward_amount,
1304-
monitoring_service_contract_address=self.raiden.default_msc_address,
1305-
)
1306-
# sign RequestMonitoring and return
1307-
monitor_request.sign(self.raiden.signer)
1308-
return monitor_request
1309-
13101279
def get_pending_transfers(
13111280
self, token_address: TokenAddress = None, partner_address: Address = None
13121281
) -> List[Dict[str, Any]]:

0 commit comments

Comments
 (0)