Skip to content

Instantly share code, notes, and snippets.

@chriseth
Created July 2, 2020 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriseth/540c55016ae021e75d77d04bbea5adfc to your computer and use it in GitHub Desktop.
Save chriseth/540c55016ae021e75d77d04bbea5adfc to your computer and use it in GitHub Desktop.
Function entry point information
[
{
"entryPoint": 399,
"id": 42,
"paramStackSlots": 2,
"returnStackSlots": 0
},
{
"entryPoint": 408,
"id": 35,
"paramStackSlots": 2,
"returnStackSlots": 0
},
{
"entryPoint": 412,
"id": 14,
"paramStackSlots": 0,
"returnStackSlots": 1
},
{
"entryPoint": 403,
"id": 28,
"paramStackSlots": 0,
"returnStackSlots": 1
},
{
"entryPoint": 350,
"id": 56,
"paramStackSlots": 1,
"returnStackSlots": 0
},
{
"entryPoint": 417,
"id": 49,
"paramStackSlots": 1,
"returnStackSlots": 0
},
{
"entryPoint": 353,
"id": 22,
"paramStackSlots": 2,
"returnStackSlots": 1
},
{
"entryPoint": 420,
"internal_name": "abi_decode_t_array$_t_uint256_$dyn_calldata_ptr",
"paramStackSlots": 2,
"returnStackSlots": 2
},
{
"entryPoint": 494,
"internal_name": "abi_decode_t_array$_t_uint256_$dyn_memory_ptr",
"paramStackSlots": 2,
"returnStackSlots": 1
},
{
"entryPoint": 625,
"internal_name": "abi_decode_t_uint256",
"paramStackSlots": 2,
"returnStackSlots": 1
},
{
"entryPoint": 646,
"internal_name": "abi_decode_tuple_t_array$_t_uint256_$dyn_calldata_ptr",
"paramStackSlots": 2,
"returnStackSlots": 2
},
{
"entryPoint": 715,
"internal_name": "abi_decode_tuple_t_array$_t_uint256_$dyn_memory_ptr",
"paramStackSlots": 2,
"returnStackSlots": 1
},
{
"entryPoint": 780,
"internal_name": "abi_decode_tuple_t_uint256t_uint256",
"paramStackSlots": 2,
"returnStackSlots": 2
},
{
"entryPoint": 840,
"internal_name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"paramStackSlots": 2,
"returnStackSlots": 0
},
{
"entryPoint": 855,
"internal_name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"paramStackSlots": 2,
"returnStackSlots": 1
},
{
"entryPoint": 882,
"internal_name": "allocateMemory",
"paramStackSlots": 1,
"returnStackSlots": 1
},
{
"entryPoint": 927,
"internal_name": "array_allocation_size_t_array$_t_uint256_$dyn_memory_ptr",
"paramStackSlots": 1,
"returnStackSlots": 1
},
{
"entryPoint": 967,
"internal_name": "cleanup_t_uint256",
"paramStackSlots": 1,
"returnStackSlots": 1
},
{
"entryPoint": 977,
"internal_name": "validator_revert_t_uint256",
"paramStackSlots": 1,
"returnStackSlots": 0
}
]
pragma experimental ABIEncoderV2;
library L {
function f() internal returns (uint) {}
}
contract A {
function g() public returns (uint) {}
}
contract B is A {
mapping(uint => uint)[] public x;
function h() public returns (uint) {}
function cp(uint[] calldata) public {}
function ce(uint[] calldata) external {}
function mp(uint[] memory) public {}
function me(uint[] memory) external {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment