solidity/test/libsolidity/ABIJson/inherited.sol

123 lines
2.4 KiB
Solidity
Raw Normal View History

2019-07-02 15:30:54 +00:00
contract Base {
function baseFunction(uint p) public returns (uint i) { return p; }
event baseEvent(bytes32 indexed evtArgBase);
}
contract Derived is Base {
function derivedFunction(bytes32 p) public returns (bytes32 i) { return p; }
event derivedEvent(uint indexed evtArgDerived);
}
// ----
// :Base
// [
// {
2019-09-03 15:55:00 +00:00
// "anonymous": false,
// "inputs":
// [
// {
// "indexed": true,
// "internalType": "bytes32",
// "name": "evtArgBase",
// "type": "bytes32"
// }
// ],
// "name": "baseEvent",
// "type": "event"
// },
// {
2019-07-02 15:30:54 +00:00
// "inputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "uint256",
2019-07-02 15:30:54 +00:00
// "name": "p",
// "type": "uint256"
// }
// ],
// "name": "baseFunction",
// "outputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "uint256",
2019-07-02 15:30:54 +00:00
// "name": "i",
// "type": "uint256"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
2019-09-03 15:55:00 +00:00
// }
// ]
//
//
// :Derived
// [
2019-07-02 15:30:54 +00:00
// {
// "anonymous": false,
// "inputs":
// [
// {
// "indexed": true,
2019-07-02 14:04:52 +00:00
// "internalType": "bytes32",
2019-07-02 15:30:54 +00:00
// "name": "evtArgBase",
// "type": "bytes32"
// }
// ],
// "name": "baseEvent",
// "type": "event"
2019-09-03 15:55:00 +00:00
// },
// {
// "anonymous": false,
// "inputs":
// [
// {
// "indexed": true,
// "internalType": "uint256",
// "name": "evtArgDerived",
// "type": "uint256"
// }
// ],
// "name": "derivedEvent",
// "type": "event"
// },
2019-07-02 15:30:54 +00:00
// {
// "inputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "uint256",
2019-07-02 15:30:54 +00:00
// "name": "p",
// "type": "uint256"
// }
// ],
// "name": "baseFunction",
// "outputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "uint256",
2019-07-02 15:30:54 +00:00
// "name": "i",
// "type": "uint256"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
// },
// {
// "inputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "bytes32",
2019-07-02 15:30:54 +00:00
// "name": "p",
// "type": "bytes32"
// }
// ],
// "name": "derivedFunction",
// "outputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "bytes32",
2019-07-02 15:30:54 +00:00
// "name": "i",
// "type": "bytes32"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
// }
// ]