-
Notifications
You must be signed in to change notification settings - Fork 245
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
Disputable apps: add missing pieces for transaction fees module #586
Changes from 4 commits
73ddf84
f40902e
1e97ddd
fe3148f
3c202d8
91fd176
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ import "../../lib/standards/ERC165.sol"; | |
|
||
contract IDisputable is ERC165 { | ||
bytes4 internal constant ERC165_INTERFACE_ID = bytes4(0x01ffc9a7); | ||
bytes4 internal constant DISPUTABLE_INTERFACE_ID = bytes4(0xef113021); | ||
bytes4 internal constant DISPUTABLE_INTERFACE_ID = bytes4(0xce1f6de9); | ||
|
||
event AgreementSet(IAgreement indexed agreement); | ||
|
||
|
@@ -39,4 +39,6 @@ contract IDisputable is ERC165 { | |
function supportsInterface(bytes4 _interfaceId) external pure returns (bool) { | ||
return _interfaceId == DISPUTABLE_INTERFACE_ID || _interfaceId == ERC165_INTERFACE_ID; | ||
} | ||
|
||
function appId() public view returns (bytes32); | ||
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. Somewhat related discussion, but maybe we should create a new interface, e.g. That way We could also move out 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. I like the idea of |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
import "../token/ERC20.sol"; | ||
|
||
|
||
interface ITransactionFeesOracle { | ||
function setFee(bytes32 appId, ERC20 token, uint256 amount) external; | ||
function setFees(bytes32[] _appIds, ERC20[] _tokens, uint256[] _amounts) external; | ||
function unsetFee(bytes32 _appId) external; | ||
function unsetFees(bytes32[] _appIds) external; | ||
function getFee(bytes32 appId) external view returns (ERC20, uint256, address); | ||
} | ||
bingen marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Maybe we can leverage the new breaking version we are working on to make these
external
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.
What’s the benefit?
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.
To avoid having the compiler warning:
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.
Where do you see that warning? I can’t find it. Despite the name,
IDisputable
is not actually an interface, so the warning is not showing up for me.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.
not sure to be honest, however this is a minor detail, not a blocker at all