-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10996 from ethereum/exportAllEvents
Export all events
- Loading branch information
Showing
139 changed files
with
2,697 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--abi --pretty-json --json-indent 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.0; | ||
library L { | ||
event e1(uint b); | ||
} | ||
|
||
function f() { | ||
emit L.e1(5); | ||
} | ||
|
||
contract C { | ||
event e1(uint indexed a); | ||
function g() public { | ||
f(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
======= events_in_abi/input.sol:C ======= | ||
Contract JSON ABI | ||
[ | ||
{ | ||
"anonymous": false, | ||
"inputs": | ||
[ | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "b", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "e1", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": | ||
[ | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "a", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "e1", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "g", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] | ||
|
||
======= events_in_abi/input.sol:L ======= | ||
Contract JSON ABI | ||
[ | ||
{ | ||
"anonymous": false, | ||
"inputs": | ||
[ | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "b", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "e1", | ||
"type": "event" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
test/libsolidity/ABIJson/event_emited_in_base_contract.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
library L { event E(uint8); } | ||
|
||
contract B { | ||
constructor() { | ||
emit L.E(0); | ||
} | ||
} | ||
|
||
contract C is B {} | ||
|
||
// ---- | ||
// :B | ||
// [ | ||
// { | ||
// "inputs": [], | ||
// "stateMutability": "nonpayable", | ||
// "type": "constructor" | ||
// }, | ||
// { | ||
// "anonymous": false, | ||
// "inputs": | ||
// [ | ||
// { | ||
// "indexed": false, | ||
// "internalType": "uint8", | ||
// "name": "", | ||
// "type": "uint8" | ||
// } | ||
// ], | ||
// "name": "E", | ||
// "type": "event" | ||
// } | ||
// ] | ||
// | ||
// | ||
// :C | ||
// [ | ||
// { | ||
// "anonymous": false, | ||
// "inputs": | ||
// [ | ||
// { | ||
// "indexed": false, | ||
// "internalType": "uint8", | ||
// "name": "", | ||
// "type": "uint8" | ||
// } | ||
// ], | ||
// "name": "E", | ||
// "type": "event" | ||
// } | ||
// ] | ||
// | ||
// | ||
// :L | ||
// [ | ||
// { | ||
// "anonymous": false, | ||
// "inputs": | ||
// [ | ||
// { | ||
// "indexed": false, | ||
// "internalType": "uint8", | ||
// "name": "", | ||
// "type": "uint8" | ||
// } | ||
// ], | ||
// "name": "E", | ||
// "type": "event" | ||
// } | ||
// ] |
Oops, something went wrong.