mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
49 lines
1.0 KiB
Solidity
49 lines
1.0 KiB
Solidity
|
interface ERC20 {
|
||
|
/// Transfer ``amount`` from ``msg.sender`` to ``to``.
|
||
|
/// @dev test
|
||
|
/// @param to address to transfer to
|
||
|
/// @param amount amount to transfer
|
||
|
function transfer(address to, uint amount) external returns (bool);
|
||
|
}
|
||
|
|
||
|
contract Middle is ERC20 {
|
||
|
function transfer(address to, uint amount) override virtual external returns (bool) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contract Token is Middle {
|
||
|
function transfer(address too, uint amount) override external returns (bool) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// ----
|
||
|
// :ERC20 userdoc
|
||
|
// {
|
||
|
// "methods":
|
||
|
// {
|
||
|
// "transfer(address,uint256)":
|
||
|
// {
|
||
|
// "notice": "Transfer ``amount`` from ``msg.sender`` to ``to``."
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
//
|
||
|
// :Middle userdoc
|
||
|
// {
|
||
|
// "methods":
|
||
|
// {
|
||
|
// "transfer(address,uint256)":
|
||
|
// {
|
||
|
// "notice": "Transfer ``amount`` from ``msg.sender`` to ``to``."
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
//
|
||
|
// :Token userdoc
|
||
|
// {
|
||
|
// "methods": {}
|
||
|
// }
|