mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			123 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			123 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| 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
 | |
| // [
 | |
| //   {
 | |
| //     "anonymous": false,
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "indexed": true,
 | |
| //         "internalType": "bytes32",
 | |
| //         "name": "evtArgBase",
 | |
| //         "type": "bytes32"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "baseEvent",
 | |
| //     "type": "event"
 | |
| //   },
 | |
| //   {
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "internalType": "uint256",
 | |
| //         "name": "p",
 | |
| //         "type": "uint256"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "baseFunction",
 | |
| //     "outputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "internalType": "uint256",
 | |
| //         "name": "i",
 | |
| //         "type": "uint256"
 | |
| //       }
 | |
| //     ],
 | |
| //     "stateMutability": "nonpayable",
 | |
| //     "type": "function"
 | |
| //   }
 | |
| // ]
 | |
| //
 | |
| //
 | |
| //     :Derived
 | |
| // [
 | |
| //   {
 | |
| //     "anonymous": false,
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "indexed": true,
 | |
| //         "internalType": "bytes32",
 | |
| //         "name": "evtArgBase",
 | |
| //         "type": "bytes32"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "baseEvent",
 | |
| //     "type": "event"
 | |
| //   },
 | |
| //   {
 | |
| //     "anonymous": false,
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "indexed": true,
 | |
| //         "internalType": "uint256",
 | |
| //         "name": "evtArgDerived",
 | |
| //         "type": "uint256"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "derivedEvent",
 | |
| //     "type": "event"
 | |
| //   },
 | |
| //   {
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "internalType": "uint256",
 | |
| //         "name": "p",
 | |
| //         "type": "uint256"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "baseFunction",
 | |
| //     "outputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "internalType": "uint256",
 | |
| //         "name": "i",
 | |
| //         "type": "uint256"
 | |
| //       }
 | |
| //     ],
 | |
| //     "stateMutability": "nonpayable",
 | |
| //     "type": "function"
 | |
| //   },
 | |
| //   {
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "internalType": "bytes32",
 | |
| //         "name": "p",
 | |
| //         "type": "bytes32"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "derivedFunction",
 | |
| //     "outputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "internalType": "bytes32",
 | |
| //         "name": "i",
 | |
| //         "type": "bytes32"
 | |
| //       }
 | |
| //     ],
 | |
| //     "stateMutability": "nonpayable",
 | |
| //     "type": "function"
 | |
| //   }
 | |
| // ]
 |