1593 lines
50 KiB
JSON
1593 lines
50 KiB
JSON
{
|
|
"id": "a614fae17d8cdf928aa6f34e631d7ff8",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol": {
|
|
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.13;\r\n\r\n/**\r\n * @author Matter Labs\r\n * @custom:security-contact security@matterlabs.dev\r\n * @dev The library provides a set of functions that help read data from an \"abi.encodePacked\" byte array.\r\n * @dev Each of the functions accepts the `bytes memory` and the offset where data should be read and returns a value of a certain type.\r\n *\r\n * @dev WARNING!\r\n * 1) Functions don't check the length of the bytes array, so it can go out of bounds.\r\n * The user of the library must check for bytes length before using any functions from the library!\r\n *\r\n * 2) Read variables are not cleaned up - https://docs.soliditylang.org/en/v0.8.16/internals/variable_cleanup.html.\r\n * Using data in inline assembly can lead to unexpected behavior!\r\n */\r\nlibrary UnsafeBytes {\r\n function readUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32 result, uint256 offset) {\r\n assembly {\r\n offset := add(_start, 4)\r\n result := mload(add(_bytes, offset))\r\n }\r\n }\r\n\r\n function readAddress(bytes memory _bytes, uint256 _start) internal pure returns (address result, uint256 offset) {\r\n assembly {\r\n offset := add(_start, 20)\r\n result := mload(add(_bytes, offset))\r\n }\r\n }\r\n\r\n function readUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256 result, uint256 offset) {\r\n assembly {\r\n offset := add(_start, 32)\r\n result := mload(add(_bytes, offset))\r\n }\r\n }\r\n\r\n function readBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32 result, uint256 offset) {\r\n assembly {\r\n offset := add(_start, 32)\r\n result := mload(add(_bytes, offset))\r\n }\r\n }\r\n}\r\n"
|
|
}
|
|
},
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"": [
|
|
"ast"
|
|
],
|
|
"*": [
|
|
"abi",
|
|
"metadata",
|
|
"devdoc",
|
|
"userdoc",
|
|
"storageLayout",
|
|
"evm.legacyAssembly",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers",
|
|
"evm.gasEstimates",
|
|
"evm.assembly"
|
|
]
|
|
}
|
|
},
|
|
"remappings": []
|
|
}
|
|
},
|
|
"output": {
|
|
"contracts": {
|
|
"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol": {
|
|
"UnsafeBytes": {
|
|
"abi": [],
|
|
"devdoc": {
|
|
"author": "Matter Labs",
|
|
"custom:security-contact": "security@matterlabs.dev",
|
|
"details": "The library provides a set of functions that help read data from an \"abi.encodePacked\" byte array.Each of the functions accepts the `bytes memory` and the offset where data should be read and returns a value of a certain type.WARNING! 1) Functions don't check the length of the bytes array, so it can go out of bounds. The user of the library must check for bytes length before using any functions from the library! 2) Read variables are not cleaned up - https://docs.soliditylang.org/en/v0.8.16/internals/variable_cleanup.html. Using data in inline assembly can lead to unexpected behavior!",
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": " /* \"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol\":795:1810 library UnsafeBytes {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol\":795:1810 library UnsafeBytes {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220830a7bf8ab148bfe27f7be24abec15d7ac3615282fec2f45e182ca4c0aa0c24164736f6c634300081a0033\n}\n",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220830a7bf8ab148bfe27f7be24abec15d7ac3615282fec2f45e182ca4c0aa0c24164736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x55 PUSH1 0x4B PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH0 BYTE PUSH1 0x73 EQ PUSH1 0x3F JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST ADDRESS PUSH0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP4 EXP PUSH28 0xF8AB148BFE27F7BE24ABEC15D7AC3615282FEC2F45E182CA4C0AA0C2 COINBASE PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
|
|
"sourceMap": "795:1015:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220830a7bf8ab148bfe27f7be24abec15d7ac3615282fec2f45e182ca4c0aa0c24164736f6c634300081a0033",
|
|
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP4 EXP PUSH28 0xF8AB148BFE27F7BE24ABEC15D7AC3615282FEC2F45E182CA4C0AA0C2 COINBASE PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
|
|
"sourceMap": "795:1015:0:-:0;;;;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "17000",
|
|
"executionCost": "92",
|
|
"totalCost": "17092"
|
|
},
|
|
"internal": {
|
|
"readAddress(bytes memory,uint256)": "infinite",
|
|
"readBytes32(bytes memory,uint256)": "infinite",
|
|
"readUint256(bytes memory,uint256)": "infinite",
|
|
"readUint32(bytes memory,uint256)": "infinite"
|
|
}
|
|
},
|
|
"legacyAssembly": {
|
|
".code": [
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH #[$]",
|
|
"source": 0,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH [$]",
|
|
"source": 0,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "B"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP3",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP3",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP3",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "CODECOPY",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP1",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "MLOAD",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "BYTE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "EQ",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH [tag]",
|
|
"source": 0,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "JUMPI",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "MSTORE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "4"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "MSTORE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "24"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "REVERT",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "tag",
|
|
"source": 0,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "JUMPDEST",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "ADDRESS",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "MSTORE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP2",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "MSTORE8",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP3",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP2",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "RETURN",
|
|
"source": 0
|
|
}
|
|
],
|
|
".data": {
|
|
"0": {
|
|
".auxdata": "a2646970667358221220830a7bf8ab148bfe27f7be24abec15d7ac3615282fec2f45e182ca4c0aa0c24164736f6c634300081a0033",
|
|
".code": [
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSHDEPLOYADDRESS",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "ADDRESS",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "EQ",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "MSTORE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "DUP1",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 795,
|
|
"end": 1810,
|
|
"name": "REVERT",
|
|
"source": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sourceList": [
|
|
"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol",
|
|
"#utility.yul"
|
|
]
|
|
},
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Matter Labs\",\"custom:security-contact\":\"security@matterlabs.dev\",\"details\":\"The library provides a set of functions that help read data from an \\\"abi.encodePacked\\\" byte array.Each of the functions accepts the `bytes memory` and the offset where data should be read and returns a value of a certain type.WARNING! 1) Functions don't check the length of the bytes array, so it can go out of bounds. The user of the library must check for bytes length before using any functions from the library! 2) Read variables are not cleaned up - https://docs.soliditylang.org/en/v0.8.16/internals/variable_cleanup.html. Using data in inline assembly can lead to unexpected behavior!\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol\":\"UnsafeBytes\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol\":{\"keccak256\":\"0xb0403fbbe99294d0b6286a9f360893293a8a0ed4a128502ddfa11249a2fa149a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0673bda911f5520af69949c2614fabaef12fa885fc2182ff23d302a1fd8ec7c9\",\"dweb:/ipfs/QmZH81na9mdTFPFH7B7QtYbReCy4hZEMM5GKWSYrJpgy5F\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/bridges/bridge/common/libraries/UnsafeBytes.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/bridges/bridge/common/libraries/UnsafeBytes.sol",
|
|
"exportedSymbols": {
|
|
"UnsafeBytes": [
|
|
55
|
|
]
|
|
},
|
|
"id": 56,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".13"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "35:24:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "UnsafeBytes",
|
|
"contractDependencies": [],
|
|
"contractKind": "library",
|
|
"documentation": {
|
|
"id": 2,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "63:730:0",
|
|
"text": " @author Matter Labs\n @custom:security-contact security@matterlabs.dev\n @dev The library provides a set of functions that help read data from an \"abi.encodePacked\" byte array.\n @dev Each of the functions accepts the `bytes memory` and the offset where data should be read and returns a value of a certain type.\n @dev WARNING!\n 1) Functions don't check the length of the bytes array, so it can go out of bounds.\n The user of the library must check for bytes length before using any functions from the library!\n 2) Read variables are not cleaned up - https://docs.soliditylang.org/en/v0.8.16/internals/variable_cleanup.html.\n Using data in inline assembly can lead to unexpected behavior!"
|
|
},
|
|
"fullyImplemented": true,
|
|
"id": 55,
|
|
"linearizedBaseContracts": [
|
|
55
|
|
],
|
|
"name": "UnsafeBytes",
|
|
"nameLocation": "803:11:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 14,
|
|
"nodeType": "Block",
|
|
"src": "933:127:0",
|
|
"statements": [
|
|
{
|
|
"AST": {
|
|
"nativeSrc": "953:100:0",
|
|
"nodeType": "YulBlock",
|
|
"src": "953:100:0",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "968:24:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "968:24:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "_start",
|
|
"nativeSrc": "982:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "982:6:0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "990:1:0",
|
|
"nodeType": "YulLiteral",
|
|
"src": "990:1:0",
|
|
"type": "",
|
|
"value": "4"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "978:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "978:3:0"
|
|
},
|
|
"nativeSrc": "978:14:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "978:14:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "968:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "968:6:0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nativeSrc": "1006:36:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1006:36:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "_bytes",
|
|
"nativeSrc": "1026:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1026:6:0"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1034:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1034:6:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1022:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1022:3:0"
|
|
},
|
|
"nativeSrc": "1022:19:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1022:19:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nativeSrc": "1016:5:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1016:5:0"
|
|
},
|
|
"nativeSrc": "1016:26:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1016:26:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "result",
|
|
"nativeSrc": "1006:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1006:6:0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"evmVersion": "cancun",
|
|
"externalReferences": [
|
|
{
|
|
"declaration": 4,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1026:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 6,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "982:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 11,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1034:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 11,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "968:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 9,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1006:6:0",
|
|
"valueSize": 1
|
|
}
|
|
],
|
|
"id": 13,
|
|
"nodeType": "InlineAssembly",
|
|
"src": "944:109:0"
|
|
}
|
|
]
|
|
},
|
|
"id": 15,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "readUint32",
|
|
"nameLocation": "831:10:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 7,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 4,
|
|
"mutability": "mutable",
|
|
"name": "_bytes",
|
|
"nameLocation": "855:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "842:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "842:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 6,
|
|
"mutability": "mutable",
|
|
"name": "_start",
|
|
"nameLocation": "871:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "863:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "863:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "841:37:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 12,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 9,
|
|
"mutability": "mutable",
|
|
"name": "result",
|
|
"nameLocation": "909:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "902:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
},
|
|
"typeName": {
|
|
"id": 8,
|
|
"name": "uint32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "902:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint32",
|
|
"typeString": "uint32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 11,
|
|
"mutability": "mutable",
|
|
"name": "offset",
|
|
"nameLocation": "925:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "917:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 10,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "917:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "901:31:0"
|
|
},
|
|
"scope": 55,
|
|
"src": "822:238:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 27,
|
|
"nodeType": "Block",
|
|
"src": "1181:128:0",
|
|
"statements": [
|
|
{
|
|
"AST": {
|
|
"nativeSrc": "1201:101:0",
|
|
"nodeType": "YulBlock",
|
|
"src": "1201:101:0",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "1216:25:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1216:25:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "_start",
|
|
"nativeSrc": "1230:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1230:6:0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1238:2:0",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1238:2:0",
|
|
"type": "",
|
|
"value": "20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1226:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1226:3:0"
|
|
},
|
|
"nativeSrc": "1226:15:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1226:15:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1216:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1216:6:0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nativeSrc": "1255:36:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1255:36:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "_bytes",
|
|
"nativeSrc": "1275:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1275:6:0"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1283:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1283:6:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1271:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1271:3:0"
|
|
},
|
|
"nativeSrc": "1271:19:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1271:19:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nativeSrc": "1265:5:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1265:5:0"
|
|
},
|
|
"nativeSrc": "1265:26:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1265:26:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "result",
|
|
"nativeSrc": "1255:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1255:6:0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"evmVersion": "cancun",
|
|
"externalReferences": [
|
|
{
|
|
"declaration": 17,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1275:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 19,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1230:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 24,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1216:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 24,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1283:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 22,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1255:6:0",
|
|
"valueSize": 1
|
|
}
|
|
],
|
|
"id": 26,
|
|
"nodeType": "InlineAssembly",
|
|
"src": "1192:110:0"
|
|
}
|
|
]
|
|
},
|
|
"id": 28,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "readAddress",
|
|
"nameLocation": "1077:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 20,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 17,
|
|
"mutability": "mutable",
|
|
"name": "_bytes",
|
|
"nameLocation": "1102:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 28,
|
|
"src": "1089:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 16,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1089:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 19,
|
|
"mutability": "mutable",
|
|
"name": "_start",
|
|
"nameLocation": "1118:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 28,
|
|
"src": "1110:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 18,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1110:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1088:37:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 25,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 22,
|
|
"mutability": "mutable",
|
|
"name": "result",
|
|
"nameLocation": "1157:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 28,
|
|
"src": "1149:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 21,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1149:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 24,
|
|
"mutability": "mutable",
|
|
"name": "offset",
|
|
"nameLocation": "1173:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 28,
|
|
"src": "1165:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 23,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1165:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1148:32:0"
|
|
},
|
|
"scope": 55,
|
|
"src": "1068:241:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 40,
|
|
"nodeType": "Block",
|
|
"src": "1430:128:0",
|
|
"statements": [
|
|
{
|
|
"AST": {
|
|
"nativeSrc": "1450:101:0",
|
|
"nodeType": "YulBlock",
|
|
"src": "1450:101:0",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "1465:25:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1465:25:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "_start",
|
|
"nativeSrc": "1479:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1479:6:0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1487:2:0",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1487:2:0",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1475:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1475:3:0"
|
|
},
|
|
"nativeSrc": "1475:15:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1475:15:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1465:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1465:6:0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nativeSrc": "1504:36:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1504:36:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "_bytes",
|
|
"nativeSrc": "1524:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1524:6:0"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1532:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1532:6:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1520:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1520:3:0"
|
|
},
|
|
"nativeSrc": "1520:19:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1520:19:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nativeSrc": "1514:5:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1514:5:0"
|
|
},
|
|
"nativeSrc": "1514:26:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1514:26:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "result",
|
|
"nativeSrc": "1504:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1504:6:0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"evmVersion": "cancun",
|
|
"externalReferences": [
|
|
{
|
|
"declaration": 30,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1524:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 32,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1479:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 37,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1465:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 37,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1532:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 35,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1504:6:0",
|
|
"valueSize": 1
|
|
}
|
|
],
|
|
"id": 39,
|
|
"nodeType": "InlineAssembly",
|
|
"src": "1441:110:0"
|
|
}
|
|
]
|
|
},
|
|
"id": 41,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "readUint256",
|
|
"nameLocation": "1326:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 33,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 30,
|
|
"mutability": "mutable",
|
|
"name": "_bytes",
|
|
"nameLocation": "1351:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 41,
|
|
"src": "1338:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 29,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1338:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 32,
|
|
"mutability": "mutable",
|
|
"name": "_start",
|
|
"nameLocation": "1367:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 41,
|
|
"src": "1359:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 31,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1359:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1337:37:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 38,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 35,
|
|
"mutability": "mutable",
|
|
"name": "result",
|
|
"nameLocation": "1406:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 41,
|
|
"src": "1398:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 34,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1398:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 37,
|
|
"mutability": "mutable",
|
|
"name": "offset",
|
|
"nameLocation": "1422:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 41,
|
|
"src": "1414:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 36,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1414:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1397:32:0"
|
|
},
|
|
"scope": 55,
|
|
"src": "1317:241:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 53,
|
|
"nodeType": "Block",
|
|
"src": "1679:128:0",
|
|
"statements": [
|
|
{
|
|
"AST": {
|
|
"nativeSrc": "1699:101:0",
|
|
"nodeType": "YulBlock",
|
|
"src": "1699:101:0",
|
|
"statements": [
|
|
{
|
|
"nativeSrc": "1714:25:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1714:25:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "_start",
|
|
"nativeSrc": "1728:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1728:6:0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "1736:2:0",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1736:2:0",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1724:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1724:3:0"
|
|
},
|
|
"nativeSrc": "1724:15:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1724:15:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1714:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1714:6:0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nativeSrc": "1753:36:0",
|
|
"nodeType": "YulAssignment",
|
|
"src": "1753:36:0",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "_bytes",
|
|
"nativeSrc": "1773:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1773:6:0"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nativeSrc": "1781:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1781:6:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nativeSrc": "1769:3:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1769:3:0"
|
|
},
|
|
"nativeSrc": "1769:19:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1769:19:0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nativeSrc": "1763:5:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1763:5:0"
|
|
},
|
|
"nativeSrc": "1763:26:0",
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1763:26:0"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "result",
|
|
"nativeSrc": "1753:6:0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1753:6:0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"evmVersion": "cancun",
|
|
"externalReferences": [
|
|
{
|
|
"declaration": 43,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1773:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 45,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1728:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 50,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1714:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 50,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1781:6:0",
|
|
"valueSize": 1
|
|
},
|
|
{
|
|
"declaration": 48,
|
|
"isOffset": false,
|
|
"isSlot": false,
|
|
"src": "1753:6:0",
|
|
"valueSize": 1
|
|
}
|
|
],
|
|
"id": 52,
|
|
"nodeType": "InlineAssembly",
|
|
"src": "1690:110:0"
|
|
}
|
|
]
|
|
},
|
|
"id": 54,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "readBytes32",
|
|
"nameLocation": "1575:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 46,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 43,
|
|
"mutability": "mutable",
|
|
"name": "_bytes",
|
|
"nameLocation": "1600:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 54,
|
|
"src": "1587:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 42,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1587:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 45,
|
|
"mutability": "mutable",
|
|
"name": "_start",
|
|
"nameLocation": "1616:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 54,
|
|
"src": "1608:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 44,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1608:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1586:37:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 51,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 48,
|
|
"mutability": "mutable",
|
|
"name": "result",
|
|
"nameLocation": "1655:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 54,
|
|
"src": "1647:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 47,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1647:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 50,
|
|
"mutability": "mutable",
|
|
"name": "offset",
|
|
"nameLocation": "1671:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 54,
|
|
"src": "1663:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 49,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1663:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1646:32:0"
|
|
},
|
|
"scope": 55,
|
|
"src": "1566:241:0",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 56,
|
|
"src": "795:1015:0",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "35:1777:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |