-
Notifications
You must be signed in to change notification settings - Fork 45
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
MonitoringService update + contracts recompilation #747
Changes from all commits
fa3e05d
efbb58b
e78eaed
c172d16
6c51b26
58f49b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
library ECVerify { | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
interface Token { | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "lib/ECVerify.sol"; | ||
import "raiden/Token.sol"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "raiden/Utils.sol"; | ||
import "raiden/Token.sol"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "lib/ECVerify.sol"; | ||
import "raiden/Token.sol"; | ||
|
@@ -231,15 +231,14 @@ contract MonitoringService is Utils { | |
token_network_address | ||
)); | ||
|
||
// Only allowed to claim, if channel is settled | ||
// Channel is settled if it's data has been deleted | ||
TokenNetwork.ChannelState channel_state; | ||
(, channel_state) = token_network.getChannelInfo( | ||
// Only allowed to claim, if channel is out of the settlement period | ||
uint256 settle_block_number; | ||
(settle_block_number,) = token_network.getChannelInfo( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks tricky. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense, we should at least check that the channel_state is closed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That should work. |
||
channel_identifier, | ||
closing_participant, | ||
non_closing_participant | ||
); | ||
require(channel_state == TokenNetwork.ChannelState.Removed); | ||
require(settle_block_number < block.number); | ||
|
||
Reward storage reward = rewards[reward_identifier]; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "raiden/Utils.sol"; | ||
import "services/UserDeposit.sol"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "raiden/Token.sol"; | ||
import "raiden/Utils.sol"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "raiden/Token.sol"; | ||
import "raiden/Utils.sol"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "test/StandardToken.sol"; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "services/MonitoringService.sol"; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "raiden/Token.sol"; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "raiden/TokenNetwork.sol"; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pragma solidity 0.5.4; | ||
pragma solidity 0.5.6; | ||
|
||
import "services/UserDeposit.sol"; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
evm_version
should be recorded incontracts.json
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do I do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contract_manager.py
to read/write the new fieldevm_version
.Maybe I should do it later. When I modify
contract_manager.py
, I can also manually add the field to the existingcontracts.json
s with the new solc versions.